Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71788

Make it easier to copy the export url

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
      MDL-71788-master-7
    • Testing Instructions:
      Hide

      Note: Test on all supported browsers

      Test
      1. Log in as a user.
      2. Go to the calendar
      3. Click "Export calendar"
      4. Press "Get calendar URL"
      5. Confirm that you see the calendar URL in a read-only text area.
      6. Press "Copy URL"
      7. Confirm that you see a toast message that the text was copied.
      8. Open a new browser tab and click on the address bar.
      9. Press Ctrl-V.
      10. Confirm that the calendar URL is pasted on the address bar.
      Fallback test
      1. Repeat the above test with the Clipboard API not available (site is not localhost or not served over HTTPS). Set $CFG->wwwroot to a value that is in HTTP and not localhost like your machine's local IP address or the HTTP link from ngrok. e.g. "http://192.168.0.2/your_moodle_root"
      Show
      Note: Test on all supported browsers Test Log in as a user. Go to the calendar Click "Export calendar" Press "Get calendar URL" Confirm that you see the calendar URL in a read-only text area. Press "Copy URL" Confirm that you see a toast message that the text was copied. Open a new browser tab and click on the address bar. Press Ctrl-V. Confirm that the calendar URL is pasted on the address bar. Fallback test Repeat the above test with the Clipboard API not available (site is not localhost or not served over HTTPS). Set $CFG->wwwroot to a value that is in HTTP and not localhost like your machine's local IP address or the HTTP link from ngrok. e.g. " http://192.168.0.2/your_moodle_root "
    • Story Points:
      1
    • Sprint:
      HQ Team International Sprint 3, HQ Team International Sprint 4

      Description

      Current behaviour: When the user is exporting the calendar and click "Get calendar URL" button, the url is displayed on the footer of the page.

      Proposed change: Enclose the export URL in a field and implement the "Copy URL" button as per prototype

      Link to prototype

      Must have: Enclose the calendar URL in a text box
      Could have: Implement the copy URL button.

      Note:
      If the "Copy URL" button will be implemented, we should not use document.execCommand() because it's a deprecated feature. The Clipboard API might be useful.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpataleta Jun Pataleta
              Reporter:
              lameze Simey Lameze
              Peer reviewer:
              Michael Hawkins Michael Hawkins
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 2 hours, 33 minutes
                  3d 2h 33m