Aquest lloc web fa servir cookies pròpies i de tercers per millorar l’experiència de navegació, i oferir continguts i serveis d’interès. En continuar la navegació entenem que acceptes la nostra política de cookies. Per a més informació consulta aquí.
Vés al contingut principal
Logo oficial de Metadecidim
  • Català Triar la llengua Elegir el idioma Choose language
    • Castellano
    • English
Registra't Entra
  • Inici
  • Processos
  • Assemblees
  • Iniciatives
  • Consultes
  • Jornades
  • Ajuda

Proposa noves funcionalitats

#DecidimRoadmap Dissenyant el Decidim entre totes

Fase 1 de 1
Obert 01-01-2019 - 31-12-2030
Veure les fases Envia una proposta
  • El procés
  • Debats
  • Proposa noves funcionalitats
  • Novetats
chevron-left Torna al llistat

Better handling of the date in Notifications

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


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


  • Resultats al filtrar per la categoria: Seguiment i notificacions Seguiment i notificacions

El desenvolupament d'aquesta proposta ha finalitzat

  • 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

Número d'adhesions0
Better handling of the date in Notifications Comentaris 0

Referència: MDC-PROP-2021-09-16749
Versió 3 (de 3) veure altres versions
Verifica l'empremta digital

Empremta digital

El text següent és una representació abreviada i hashejada d'aquest contingut. És útil per garantir que el contingut no hagi estat alterat, ja que una única modificació provocaria un valor totalment diferent.

Valor: 0f77beef9d3cc50c624120d397f8ad74965063d4b4850dcb155fc57f5b4687f5

Origen: {"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"}}

Aquesta empremta digital es calcula mitjançant un algoritme de hash SHA256. Per reproduir-lo tu mateix, pots utilitzar una Calculadora MD5 en línia i copiar-hi les dades d'origen.

Compartir:

link-intact Compartir l'enllaç

Compartir l'enllaç:

Si us plau, enganxa aquest codi a la teva pàgina:

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

Reportar contingut inapropiat

Aquest contingut no és apropiat?

Motiu

0 comentaris

Ordenar per:
  • Més antic
    • Més ben valorats
    • Recent
    • Més antic
    • Més discutit

Deixa el teu comentari

Inicia la sessió amb el teu compte o registra't per afegir el teu comentari.

Carregant els comentaris ...

  • Termes i condicions d'ús
  • Sobre la comunitat
  • Descarrega els fitxers de dades obertes
  • Metadecidim a Twitter Twitter
  • Metadecidim a Instagram Instagram
  • Metadecidim a YouTube YouTube
  • Metadecidim a GitHub GitHub
Amb llicència Creative Commons Web creada amb programari lliure.
Logo Decidim

Confirmar

D'acord Cancel·lar

Si us plau, inicia sessió

decidim Inicia sessió amb Decidim
O

Registra't

Has oblidat la teva contrasenya?