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

Create a “human date” output classes

XMLWordPrintable

    • 3
    • HQ 2025 Sprint I1.1 Moppies

      This issue is part of the new course overview page.

      The issue involves implementing an alternative to the current "userdate" but at a renderer level. The new method should return the HTML to print a date in a more human format to match the UX proposal (Teacher experience prototype).

      This implies:

      • If the date is past, it is renderer dimmed
      • If the date is near, it is renderer in "alert" color with an alert icon.
      • If the date is future, it is renderer normal in dark color.
      • If the date is today, yesterday or tomorrow, it will not show the month and the day but the relative name. For example "tomorrow at 5:00".

      For now, the method will be tested using a fixture file. It will be later in the parent epic.

      Technical shaping

      There a possible implementation in this proof of concept commit: https://github.com/ferranrecio/moodle/commit/e059bf745fe5ac6d5a2cc2cecf23671be98657eb

       

        1. Screenshot from 2024-12-04 15-58-34.png
          63 kB
          Ferran Recio
        2. image-2025-02-03-13-38-51-322.png
          29 kB
          Laurent David
        3. image-2025-02-03-13-39-44-579.png
          14 kB
          Laurent David
        4. image-2025-02-03-13-40-30-419.png
          14 kB
          Laurent David
        5. (1) 6 Passed -- (Main)MDL-83873.png
          45 kB
          Kim Jared Lucas
        6. upcoming events with untranslated text.png
          19 kB
          Helen Foster

            amaia Amaia Anabitarte
            tusefomal Ferran Recio
            Laurent David Laurent David
            Ferran Recio Ferran Recio
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 weeks, 2 days, 2 hours, 54 minutes
                2w 2d 2h 54m

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