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

"Preview mode" warning banner is displayed on H5P activities even when not applicable

    XMLWordPrintable

Details

    • MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-69225-402
    • MDL-69225-403
    • MDL-69225-main
    • Easy
    • Hide

      Covered by behat and PHPUnit.

       

      For testing it manually:

      1. Create a course with 2 H5P activities, one with "Enable attempt tracking" set to "No" and another with it set to "Yes".
      2. Enrol a student and a non-editing teacher.
      3. Login as the student:
        1. No message should be displayed above these H5P activities when accessing them.
      4. Login as non-editing teacher:
        1. Both activities should display the "You are in preview mode. " banner when accessing them. It should be blue and shouldn't display the close button.
        2. Only the activity without tracking should display: "Attempt tracking is not enabled for this activity.". It should be yellow and should display the close button.
      Show
      Covered by behat and PHPUnit.   For testing it manually: Create a course with 2 H5P activities, one with "Enable attempt tracking" set to "No" and another with it set to "Yes". Enrol a student and a non-editing teacher. Login as the student: No message should be displayed above these H5P activities when accessing them. Login as non-editing teacher: Both activities should display the "You are in preview mode. " banner when accessing them. It should be blue and shouldn't display the close button. Only the activity without tracking should display: "Attempt tracking is not enabled for this activity.". It should be yellow and should display the close button.
    • 1
    • HQ 2024 Planning I1 Moppies

    Description

      Currently, H5P activities are equipped with a warning banner saying "This content is displayed in preview mode. No attempt tracking will be stored." under the following circumstances:

      • Attempt tracking is disabled in the activity settings
      • The activity is viewed by a guest or a user who isn't enrolled in the course

      The banner is displayed even for content types that don't provide tracking data, e.g. accordion.

      This message can be confusing for users, especially in situations where they don't expect anything to be tracked (e.g. when they are logged out, or when the content is purely informational).

      It is also confusing to teachers, since there is no option to enable/disable preview mode for H5P activities.

      Attachments

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              yannicks Yannick Schillinger
              Carlos Escobedo Carlos Escobedo
              Jun Pataleta Jun Pataleta
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              24 Vote for this issue
              Watchers:
              29 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 22 minutes
                  1d 22m

                  Clockify

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