-
Notifications
You must be signed in to change notification settings - Fork 435
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
fix(desk): edit logic for published- and edit status message in document list #5067
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
No changes to documentation |
Component Testing Report Updated Oct 30, 2023 11:54 AM (UTC)
|
Great find @ninaandal Since this issue lies with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, good catch & thanks for fixing!
There are several |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ninaandal!
I think it makes sense to keep as is for the preview components (reference and CDR reference) as this shows how long ago it was (like almost two years ago instead of the date it was published).
(nitpicking and not blocking) I would opt for consistency here – as rolling over these publish icons in different contexts currently yields different values (document list previews say "published yesterday", whilst reference inputs say "published 1 day ago"). Whilst we may know they're different components, it may not be apparent to users.
Screenflick.Movie.15.mp4
We should make a decision of which format we would like then, as the reference preview one uses |
Had a chat with @kaylasanity and decided to go for the timestamp format ✨ |
packages/sanity/src/core/form/inputs/ReferenceInput/ReferencePreview.tsx
Outdated
Show resolved
Hide resolved
…review.tsx Co-authored-by: Robin Pyon <[email protected]>
Description
The logic for published and edits message in the document list was wrong and would be incorrect in certain instances.
This was also the case for the
PublishAction
tooltip.Before:
Instead of using
<TimeAgo />
, we can useuseTimeAgo()
and show label with abbreviations and suffix.What to review
The document list published and edits status.
Notes for release
Fixed published and edits message in document list