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

Change the display of the event names of the items on the timeline block

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-72543-master
    • Testing Instructions:
      Hide

      Pre requisites

      1. A course with a student enrolled.
      2. A third-party activity plugin that creates action events, for example mod_questionnaire

      Setup

      1. Log in as admin and go to the course.
      2. Add one activity of each type, enabling and setting the dates (under Availability section):
        • Assignment
        • Choice
        • Database
        • Feedback
        • Forum
        • Lesson
        • Quiz
        • Scorm
        • Workshop
        • Questionnaire
          Note: Quiz module has the open/close dates under Timing section in settings.

      Testing

      1. Log in as student and go to the Dashboard.
      2. In the Timeline block, go through each activity making sure:
        • The link to the activity displays only the title.
        • On the line below, it should display the Course name followed by the activity type and the event type language string, eg: Course 1 · Feedback closes
        • Only Questionnaire module should display the event lang string "requires action", eg. Course 1 · Questionnaire requires action
      3. Change the view to Sort by courses.
      4. Make sure it does not display the course name on the second line (below the activity link) eg Workshop deadline for submissions, Assignment is due .
      Show
      Pre requisites A course with a student enrolled. A third-party activity plugin that creates action events, for example mod_questionnaire Setup Log in as admin and go to the course. Add one activity of each type, enabling and setting the dates (under Availability section): Assignment Choice Database Feedback Forum Lesson Quiz Scorm Workshop Questionnaire Note : Quiz module has the open/close dates under Timing section in settings. Testing Log in as student and go to the Dashboard . In the Timeline block, go through each activity  making sure : The link to the activity displays only the title. On the line below, it should display the Course name followed by the activity type and the event type language string, eg: Course 1 · Feedback closes Only Questionnaire module should display the event lang string "requires action", eg.  Course 1 · Questionnaire requires action Change the view to Sort by courses . Make sure it does not display the course name on the second line (below the activity link) eg Workshop deadline for submissions , Assignment is due .
    • Story Points:
      4
    • Sprint:
      HQ Team International Sprint 9, HQ Team International Sprin 10

      Description

      Currently, we use the calendar event name of the items in the calendar block. Having the whole event name in a link is a bit hard to read.

      In order to further improve the readability of timeline block items, we need to update the layout as follows:

      1. The link of the timeline block item should only contain the activity name (eg "Organic Chemistry Lab Report").
      2. The item description will be displayed on the line below via a generic string depending on the event type and activity, in the following format for dates view:

        <course name> · <activity type> <event action>

        For example, an item relating to an assignment being due in the "Chemistry 101" course, would be shown as:

        Chemistry 101 · Assignment is due

      3. This will look similar to the following (replacing the colon shown in the prototype with the space and dot described above):
      4. In courses view, the second line does not need to include the course name, so will use the following format:

        <activity type> <event action>

      5. The courses view will look as follows:
      6. In both views, the second line (course/event info) should be truncated (with ellipses)  when it is too long, with a tooltip or similar showing the whole contents of that line when hovered over.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              jpataleta Jun Pataleta
              Peer reviewer:
              Michael Hawkins Michael Hawkins
              Integrator:
              Adrian Greeve Adrian Greeve
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 week, 2 hours, 52 minutes
                  1w 2h 52m