Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4370

App displays unneeded "Show more" when there are a lot of availability restrictions

    XMLWordPrintable

Details

    • Hide

      This issue only needs to be tested in 1 device.

      1. In a 4.2 site or older, create 1 section and 1 activity with at least 5-6 access restrictions for each one. They're already created in 4.2 site > MM Dev Testing course, section "Section with a lot of restrictions" (it's currently the last one) and the activity is in "Activities with restrictions > URL with a lot of restrictions".
      2. In the app, open the section with restrictions. Check that you can see the full list of restrictions and there is no "Show more" in the text.
      3. Also, check that clicking an activity link inside the restrictions list opens the activity in the app (this wasn't working before, clicks didn't do anything).
      4. Now open the section that contains the activity with restrictions and expand the restrictions text of the activity (in tablet it might already be expanded). Check that you can see the full list of restrictions and there is no "Show more" in the text. 
      Show
      This issue only needs to be tested in 1 device. In a 4.2 site or older, create 1 section and 1 activity with at least 5-6 access restrictions for each one. They're already created in 4.2 site > MM Dev Testing course, section "Section with a lot of restrictions" (it's currently the last one) and the activity is in "Activities with restrictions > URL with a lot of restrictions". In the app, open the section with restrictions. Check that you can see the full list of restrictions and there is no "Show more" in the text. Also, check that clicking an activity link inside the restrictions list opens the activity in the app (this wasn't working before, clicks didn't do anything). Now open the section that contains the activity with restrictions and expand the restrictions text of the activity (in tablet it might already be expanded). Check that you can see the full list of restrictions and there is no "Show more" in the text. 
    • MOODLE_402_STABLE
    • MOODLE_403_STABLE
    • Moodle Apps - 2023 Sprint i3.2

    Description

      When there are a lot of availability restrictions, in LMS a "Show more" is displayed and the restriction is partially collapsed. In the app we render the HTML as we receive it from WS, so the app displays this Show more (but there is no collapsing here since the JS from LMS doesn't run in the app).

      In MDL-78204 this part is being refactored and this doesn't happen anymore with the proposed patch (15th June 2023), but we should fix it for older sites. This show more is returned with the format:

      <li data-action="showmore" class="d-block showmore">
           <a role="button" aria-expanded="false" aria-controls="availability-tree-648b22d226ea8" href="#" > Show more</a>
      </li>

      Attachments

        Issue Links

          Activity

            People

              dpalou Dani Palou
              dpalou Dani Palou
              Alfonso Salces Alfonso Salces
              Isabel Renedo Rouco Isabel Renedo Rouco
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.