Changes at "Better handling of the date in Notifications"
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
"]
Share