Skip to main content

Cookie settings

We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want.

Essential

Preferences

Analytics and statistics

Marketing

Changes at "Better handling of the date in Notifications"

Avatar: AndrƩs AndrƩs

Title

  • +{"en"=>"Better handling of the date in Notifications"}

Body

  • +["


    Ref. PWA11.1

    NOTE: this feature is from a big development. See PWA discussion at GitHub.

    Is your feature request related to a problem? Please describe.

    As a registered participant who is following content in Decidim, when I see the date of a Notification in /notifications, it just shows the day of week and day of the month it was sent.

    Describe the solution youā€™d like

    • When the notificationsā€™ date is recent I want to have a relative date, less than 30 days sent with the full date shown on hover or click in mobile phones) donā€™t show the full date. In case notification is less than a date one day Iā€™d like to see the relative date (ā€œ1 hour agoā€, ā€œ30 minutes agoā€)
    • When the notificationsā€™ date is not that recent I want to have only the DD/MM, but when the notification is from another year I want to also have the YYYY (format DD/MM/YYYY).

    Describe alternatives youā€™ve considered

    We could always show the full date (DD/MM/YYYY) but I think itā€™s better to show the relative date so I donā€™t have to see which day is today and make the diff in my head.

    Acceptance criteria

    • Given that Iā€™m a participant with a notification from 10 days,
      When I go to my notifications page
      Then I see that the notification is from ā€œLess than 10 daysā€
      and if I hover the date on the desktop I can see the full date
      and if I click on the date in mobile I can see the full date
    • Given that Iā€™m a participant with a notification from 8 hours,
      When I go to my notifications page
      Then I see that the notification is from ā€œLess than 8 hoursā€
      and if I hover the date on the desktop I can see the full date
      and if I click on the date in mobile I can see the full date
    • Given that Iā€™m a participant with a notification from 31 days,
      When I go to my notifications page
      Then I see that the date notification follows the format ā€œDD/MMā€
      and if I hover the date on the desktop I can see the full date
      and if I click on the date in mobile I can see the full date
    • Given that Iā€™m a participant with a notification from 400 days,
      When I go to my notifications page
      Then I see that the date notification follows the format ā€œDD/MM/YYYYā€
      and if I hover the date on the desktop I can see the full date
      and if I click on the date in mobile I can see the full date


    "]

Confirm

Please log in

The password is too short.

Share