mozilla/pontoon

Notifications should say "Now", or "Just now" instead of "0 minutes ago"

Closed this issue ยท 3 comments

Edge case, but it would be nice to fix

Screenshot 2024-07-19 alle 16 31 57

Note that we have two different implementations of the Notifications panel and this bug is specific to the one powered by a Django template:
https://github.com/mozilla/pontoon/blob/main/pontoon/contributors/templates/contributors/widgets/notifications_menu.html#L51

We should use a JS library that refreshes the presented value regularly, same as we do in the React implementation that's used in the translate view.

We already load jquery.timego.js, but it seems like the actual library file is not present:
https://github.com/mozilla/pontoon/blob/main/pontoon/settings/base.py#L545

@RafaelJohn9 Would you take this one?

๐Ÿ˜… Yea sure, I will ๐Ÿ‘