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

Improve Presets management list page for Database activity

    XMLWordPrintable

Details

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-75148-master
    • Hide

      These testing instructions only check the features uncovered by behat.

      Setup

      1. Unzip the attached datapreset plugin (it's a clone of the imagegallery that only have been renamed) and copy the imagegallery2 folder into the mod/data/preset folder.
      2. Login as admin and install the datapreset plugin.
      3. Create a course.
      4. Add a database activity (with the default configuration).
      5. Create one field (it can be from any type and have any name).
      6. Click the "Save as preset" button that appears in the "Fields" tab and give a name to the preset.

      Testing instructions

      1. Access the database activity and go to the "Presets" tab.
      2. Check a brief description is displayed above the presets list, with an explanation of what presets are (something like "Choose a preset to use as a starting point.").
      3. Check presets table contains column headers (Name, Action).
      4. Check the Import button is displayed on the right, in the same row where the "Presets" title appears.
      5. Check the kebab action menu icon is not displayed for "Image gallery" and "Image gallery 2".
      6. Go to the "Fields" tab.
      7. Select "Use a preset" from the tertiary navigation.
      8. Check presets table contains column header Name, but Action is not displayed.
      9. Check there is no kebab action menu icon for any of the presets.
      10. Check that 'Use preset' button is disabled if no preset is selected
      Show
      These testing instructions only check the features uncovered by behat. Setup Unzip the attached datapreset plugin (it's a clone of the imagegallery that only have been renamed) and copy the imagegallery2 folder into the mod/data/preset folder. Login as admin and install the datapreset plugin. Create a course. Add a database activity (with the default configuration). Create one field (it can be from any type and have any name). Click the "Save as preset" button that appears in the "Fields" tab and give a name to the preset. Testing instructions Access the database activity and go to the "Presets" tab. Check a brief description is displayed above the presets list, with an explanation of what presets are (something like "Choose a preset to use as a starting point."). Check presets table contains column headers (Name, Action). Check the Import button is displayed on the right, in the same row where the "Presets" title appears. Check the kebab action menu icon is not displayed for "Image gallery" and "Image gallery 2". Go to the "Fields" tab. Select "Use a preset" from the tertiary navigation. Check presets table contains column header Name, but Action is not displayed. Check there is no kebab action menu icon for any of the presets. Check that 'Use preset' button is disabled if no preset is selected
    • 2
    • HQ Sprint 0.1 Database

    Description

      An improved Presets list should be implemented following the prototype:

      https://www.figma.com/proto/vmspDJsBAYrPfECMrgpGEd/4.1-Database?page-id=0%3A1&node-id=288%3A109467&viewport=90%2C15691%2C0.25&scaling=scale-down&starting-point-node-id=288%3A105628&show-proto-sidebar=1

      Some of the improvements need to be done:

      • Add a new help text
      • Add captions to table columns
      • Move the 'Import' button to the right
      • Add an action menu for each presets based on the user's capabilities. New actions will be added in separate issues:
      • CSS improvements
        • We agreed with the UX team that the action menu will be displayed always, not just on hover as displayed in the current prototype (to avoid accessibility issues and for consistency with other similar places, like the main course page).
      • 'Use preset' button will be enabled when a preset is selected only.

      Note: Don't add the 'Use preset' button as a sticky footer because it will be decided on MDL-75134

      Attachments

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              amaia Amaia Anabitarte
              Amaia Anabitarte Amaia Anabitarte
              Ilya Tregubov Ilya Tregubov
              Angelia Dela Cruz Angelia Dela Cruz
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                28/Nov/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 35 minutes
                  3d 35m