This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Propose new functionalities for Decidim software

#DecidimRoadmap Designing Decidim together

Phase 1 of 1
Open 2019-01-01 - 2030-12-31
Process phases Submit a proposal
  • The process
  • Debates
  • Propose new features
  • News
chevron-left Back to list

Better handling of the date in Notifications

Avatar: InnovacióDemocràtica InnovacióDemocràtica verified-badge
16/09/2021 12:04  
Finished


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


  • Filter results for category: Follow and notifications Follow and notifications

The development of this proposal has finished

  • Reviewed by @product and accepted in the main project
  • It is funded by Barcelona City Council
  • Developed by Populate
  • Available in release 0.26 via #8564

Endorsements count0
Better handling of the date in Notifications Comments 0

Reference: MDC-PROP-2021-09-16749
Version number 3 (of 3) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: 0f77beef9d3cc50c624120d397f8ad74965063d4b4850dcb155fc57f5b4687f5

Source: {"body":{"en":"<h4><br></h4><p>Ref. PWA11.1</p><p>NOTE: this feature is from a big development. See <a href=\"https://github.com/decidim/decidim/discussions/8334\" target=\"_blank\">PWA discussion at GitHub</a>.</p><p><strong>Is your feature request related to a problem? Please describe.</strong></p><p>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.</p><p><strong>Describe the solution you’d like</strong></p><ul><li>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”)</li><li>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).</li></ul><p><strong>Describe alternatives you’ve considered</strong></p><p>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.</p><p><strong>Acceptance criteria</strong></p><ul><li>Given that I’m a participant with a notification from 10 days,<strong><br></strong> When I go to my notifications page<strong><br></strong> Then I see that the notification is from “Less than 10 days”<strong><br></strong> and if I hover the date on the desktop I can see the full date<strong><br></strong> and if I click on the date in mobile I can see the full date</li><li>Given that I’m a participant with a notification from 8 hours,<strong><br></strong> When I go to my notifications page<strong><br></strong> Then I see that the notification is from “Less than 8 hours”<strong><br></strong> and if I hover the date on the desktop I can see the full date<strong><br></strong> and if I click on the date in mobile I can see the full date</li><li>Given that I’m a participant with a notification from 31 days,<strong><br></strong> When I go to my notifications page<strong><br></strong> Then I see that the date notification follows the format “DD/MM”<strong><br></strong> and if I hover the date on the desktop I can see the full date<strong><br></strong> and if I click on the date in mobile I can see the full date</li><li>Given that I’m a participant with a notification from 400 days,<strong><br></strong> When I go to my notifications page<strong><br></strong> Then I see that the date notification follows the format “DD/MM/YYYY”<strong><br></strong> and if I hover the date on the desktop I can see the full date<strong><br></strong> and if I click on the date in mobile I can see the full date</li></ul><p><br></p>"},"title":{"en":"Better handling of the date in Notifications"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16749/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16749/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Report inappropriate content

Is this content inappropriate?

Reason

0 comments

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed

Add your comment

Sign in with your account or sign up to add your comment.

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim
Or

Sign up

Forgot your password?