sanity icon indicating copy to clipboard operation
sanity copied to clipboard

Show the date and time when change is hovered

Open selbekk opened this issue 2 years ago • 2 comments

Description

This pull request adds a hover effect that shows the date and time (or ISO timestamp) for a given change.

This helps out users that are looking at changes made weeks or months ago, that need to know the precise moment a change occurred (or at least the actual date), instead of "2w", "1y" etc.

What to review

Make sure the code compiles, and that you want to use the ISO format. This was the quickest way to provide as much detail as possible without cluttering up the code with date formatting.

Notes for release

Add support for showing the exact date and time a timeline item happened, by hovering a given timeline item.

selbekk avatar Apr 21 '22 10:04 selbekk

@selbekk is attempting to deploy a commit to the Sanity Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 21 '22 10:04 vercel[bot]

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

Name Status Preview Updated
perf-studio ✅ Ready (Inspect) Visit Preview Apr 27, 2022 at 2:50PM (UTC)
studio-workshop ✅ Ready (Inspect) Visit Preview Apr 27, 2022 at 2:50PM (UTC)
test-studio ✅ Ready (Inspect) Visit Preview Apr 27, 2022 at 2:50PM (UTC)

vercel[bot] avatar Apr 21 '22 10:04 vercel[bot]

Thanks for the PR @selbekk! - we decided to make this a tooltip in #3628 to align it with how we show timestamps elsewhere.

sjelfull avatar Sep 12 '22 14:09 sjelfull