Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: show time ago timestamp under message tile (#947) #1137

Merged
merged 2 commits into from
Nov 9, 2022
Merged

feat: show time ago timestamp under message tile (#947) #1137

merged 2 commits into from
Nov 9, 2022

Conversation

foolo
Copy link
Contributor

@foolo foolo commented Nov 8, 2022

What does this PR do?

On /messages page, change from showing absolute datetime for a message, to showing "x days/hours/minutes ago".
Also added a title attribute so that the absolute datetime is shown when hovering mouse over the "x ago" label.
Fixes #947

Screenshot_2022-11-08_18-28-46

Type of change

  • Enhancement (non-breaking small changes to existing functionality)

How should this be tested?

Open a message conversation and check that timestamps are shown as e.g. "5 minutes ago"

@foolo foolo requested a review from bigint as a code owner November 8, 2022 18:53
@vercel
Copy link

vercel bot commented Nov 8, 2022

@foolo is attempting to deploy a commit to the Lenster Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Nov 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lenster ✅ Ready (Inspect) Visit Preview Nov 9, 2022 at 6:39AM (UTC)

@bigint bigint enabled auto-merge (squash) November 9, 2022 06:34
@vercel vercel bot temporarily deployed to Preview November 9, 2022 06:39 Inactive
@bigint bigint merged commit f754ec6 into heyxyz:main Nov 9, 2022
@gitpoap-bot
Copy link

gitpoap-bot bot commented Nov 9, 2022

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2022 Lenster Contributor:

GitPOAP: 2022 Lenster Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

@foolo
Copy link
Contributor Author

foolo commented Nov 9, 2022

@bigint If you think that the hovering feature was a good addition, I can add it to other places as well. Personally I find such a feature helpful whenever a website shows me a relative date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show time ago timestamp under message tile
2 participants