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(structure): update TimelineItem to match new UI, prepare for chunks #7449

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

pedrobonamin
Copy link
Contributor

@pedrobonamin pedrobonamin commented Aug 30, 2024

Description

Updates the TimelineItem component to match the new UI.
It also adds placeholders for chunks , collaborators and menu.

A story has been added showing the changes for easier review and testing, you can find it here https://test-studio-git-corel-144.sanity.dev/test/workshop/structure;panes;documentTimelineMenu;timelineItem?scheme=light

Screenshot 2024-08-30 at 16 38 24 Screenshot 2024-08-30 at 16 38 53

What to review

Open a document history, does it looks as expected?

Testing

No new testing has been added, existing tests cover this functionality, when moving further, e2e tests will be included to validate the history squash

Notes for release

n/a

Copy link

vercel bot commented Aug 30, 2024

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

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 8:16am
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 8:16am
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 8:16am
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 8:16am
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 8:16am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Sep 2, 2024 8:16am

Copy link
Contributor

No changes to documentation

Copy link
Contributor

github-actions bot commented Aug 30, 2024

Component Testing Report Updated Sep 2, 2024 8:20 AM (UTC)

✅ All Tests Passed -- expand for details
File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 46s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 9s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 31s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 37s 11 7 0
formBuilder/inputs/PortableText/copyPaste/CopyPasteFields.spec.tsx ✅ Passed (Inspect) 0s 0 12 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 10s 3 0 0
formBuilder/inputs/PortableText/DragAndDrop.spec.tsx ✅ Passed (Inspect) 3m 0s 0 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 45s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 49s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 15s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 8s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 26s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 1m 14s 21 0 0
formBuilder/tree-editing/TreeEditing.spec.tsx ✅ Passed (Inspect) 0s 0 3 0
formBuilder/tree-editing/TreeEditingNestedObjects.spec.tsx ✅ Passed (Inspect) 0s 0 3 0

Comment on lines +451 to +457

/** The aria label for the menu button in the timeline item */
'timeline-item.menu-button.aria-label': 'Open action menu',
/** The text for the tooltip in menu button the timeline item */
'timeline-item.menu-button.tooltip': 'Actions',
/** The text for the expand action in the timeline item menu */
'timeline-item.menu.action-expand': 'Expand',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This are placeholder, text value is not definitive.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might worth adding a todo in the code so it's easier to find :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks so much nicer!

Copy link
Contributor

@RitaDias RitaDias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's goooo, fantastic work!
I left a comment because removing a lot of props from a element make me a bit nervous but everything worked as intended

@pedrobonamin pedrobonamin merged commit 7753256 into history-updates Sep 2, 2024
42 checks passed
@pedrobonamin pedrobonamin deleted the corel-144 branch September 2, 2024 16:19
pedrobonamin added a commit that referenced this pull request Sep 4, 2024
…nks (#7449)

* feat(structure): update TimelineItem to match new UI, prepare for chunks

* chore(core): export getCalendarLabels to support DateTimeInput reusability
pedrobonamin added a commit that referenced this pull request Oct 1, 2024
…nks (#7449)

* feat(structure): update TimelineItem to match new UI, prepare for chunks

* chore(core): export getCalendarLabels to support DateTimeInput reusability
pedrobonamin added a commit that referenced this pull request Nov 6, 2024
…nks (#7449)

* feat(structure): update TimelineItem to match new UI, prepare for chunks

* chore(core): export getCalendarLabels to support DateTimeInput reusability
pedrobonamin added a commit that referenced this pull request Nov 11, 2024
…nks (#7449)

* feat(structure): update TimelineItem to match new UI, prepare for chunks

* chore(core): export getCalendarLabels to support DateTimeInput reusability
pedrobonamin added a commit that referenced this pull request Nov 14, 2024
…nks (#7449)

* feat(structure): update TimelineItem to match new UI, prepare for chunks

* chore(core): export getCalendarLabels to support DateTimeInput reusability
pedrobonamin added a commit that referenced this pull request Nov 18, 2024
…nks (#7449)

* feat(structure): update TimelineItem to match new UI, prepare for chunks

* chore(core): export getCalendarLabels to support DateTimeInput reusability
pedrobonamin added a commit that referenced this pull request Nov 18, 2024
…nks (#7449)

* feat(structure): update TimelineItem to match new UI, prepare for chunks

* chore(core): export getCalendarLabels to support DateTimeInput reusability
pedrobonamin added a commit that referenced this pull request Nov 19, 2024
…nks (#7449)

* feat(structure): update TimelineItem to match new UI, prepare for chunks

* chore(core): export getCalendarLabels to support DateTimeInput reusability
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.

2 participants