balancer / frontend-monorepo

Balancer frontend apps and packages. Includes the official Balancer web application.
https://balancer.fi
MIT License
4 stars 0 forks source link

Non-verbose relative times #37

Open uiuxxx opened 3 months ago

uiuxxx commented 3 months ago

Let's implement a non-verbose relative time system, to get cleaner outputs (e.g. "2m ago" vs "2 minutes ago")

We can use a react library like: https://catamphetamine.gitlab.io/react-time-ago/

This is the ideal format:

You might need to use custom labels to achieve this: https://github.com/catamphetamine/javascript-time-ago?tab=readme-ov-file#custom

This should be applied to:

garethfuller commented 2 months ago

Looked into this, it's definitely not as simple as it seems without adding a hacky solution with an additional package.