-
Notifications
You must be signed in to change notification settings - Fork 430
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(structure): squash chunks in timeline. #7458
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
Component Testing Report Updated Sep 4, 2024 7:39 AM (UTC) ✅ All Tests Passed -- expand for details
|
packages/sanity/src/structure/panes/document/timeline/expandableTimelineItemMenu.tsx
Show resolved
Hide resolved
7753256
to
a68e82c
Compare
44f8ae9
to
8343d67
Compare
👋 |
@RitaDias yes, makes sense, I am thinking on proposing to @mariuslundgard using a Caret icon instead of the three dots. Specially considering that we have only 1 action the user can do in this cases. I think it will make it easier to notice that you can expand it. |
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.
✅
* feat(structure): add squashed chunks to timeline * feat(structure): refactor expandable item, all items need to be rendered in the same virtual list * feat(structure): expand elements on menu click * chore(structure): clean timeline item
* feat(structure): add squashed chunks to timeline * feat(structure): refactor expandable item, all items need to be rendered in the same virtual list * feat(structure): expand elements on menu click * chore(structure): clean timeline item
* feat(structure): add squashed chunks to timeline * feat(structure): refactor expandable item, all items need to be rendered in the same virtual list * feat(structure): expand elements on menu click * chore(structure): clean timeline item
* feat(structure): add squashed chunks to timeline * feat(structure): refactor expandable item, all items need to be rendered in the same virtual list * feat(structure): expand elements on menu click * chore(structure): clean timeline item
* feat(structure): add squashed chunks to timeline * feat(structure): refactor expandable item, all items need to be rendered in the same virtual list * feat(structure): expand elements on menu click * chore(structure): clean timeline item
* feat(structure): add squashed chunks to timeline * feat(structure): refactor expandable item, all items need to be rendered in the same virtual list * feat(structure): expand elements on menu click * chore(structure): clean timeline item
* feat(structure): add squashed chunks to timeline * feat(structure): refactor expandable item, all items need to be rendered in the same virtual list * feat(structure): expand elements on menu click * chore(structure): clean timeline item
Description
This PR changes how the rows in the history are shown in the UI, collapsing draft edits into the publish action.
Once the draft changes are published all the draft edits done before that publish will be squashed and shown as 1 change, that could be expanded, showing also the collaborators for that published.
This means:
If we have the following mutations:
[draftEdit, publish, draftEdit, draftEdit, create]
it will be shown as
[draftEdit, publish (expandable), create]
On expand, it will show the two collapsed draftEdit actions
The changes are not removed from the history, they are only visually squashed for easier navigation in the UI.
The story has been updated to include this new behavior, you can check it here https://test-studio-git-corel-145.sanity.dev/test/workshop/structure;panes;documentTimelineMenu;timelineItem?scheme=light
This is achieved by creating a relation between parents publish action and children draftEdit actions, in the
addChunksMetadata
function.Collapsable.history.items.mov
What to review
Is this correct? Are changes clear?
Testing
Notes for release
n/a