feat(DATAGO-128261): EXPERIMENTAL: Chat Sharing #6 Storybook stories for share components#1205
Open
amir-ghasemi wants to merge 2 commits intoamir/chat-sharing-5-frontend-chat-integrationfrom
Conversation
ba6abdb to
cc6b16b
Compare
97e3b3f to
0d5dafc
Compare
cc6b16b to
b3aa461
Compare
0d5dafc to
620e6ce
Compare
b3aa461 to
0580ec2
Compare
620e6ce to
500c2f0
Compare
0580ec2 to
960973a
Compare
06fb551 to
a462743
Compare
960973a to
08350a5
Compare
Stories for share-related components: - ShareDialog.stories: various states (empty, with users, with link, loading, error, outdated snapshots) - ChatPage.stories: chat page with share integration - MessageAttribution.stories: user and agent attribution display - ShareNotificationMessage.stories: share event notification variants - UserPresenceAvatars.stories: collaborative user presence display Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Deduplicate callback handlers across 7 story exports by extracting common args into a sharedArgs object. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
a462743 to
57cd923
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stories for share-related components:
This pull request adds several new Storybook stories for collaborative chat components and sharing functionality, providing mock data and various scenarios to facilitate UI development and testing. The main focus is on improving coverage and demonstration of collaborative chat features, user presence, message attribution, share notifications, and the sharing dialog, including different sharing states.
Storybook stories for collaborative chat and sharing:
MessageAttribution,ShareNotificationMessage, andUserPresenceAvatarscomponents, each with multiple scenarios and mock data for collaborative chat users and sessions. [1] [2] [3]ShareDialogcomponent, covering various states such as default, add row, public link, fully expanded, outdated session, only owner, and closed. Mock API handlers and user/session data are included for realistic interactions.Collaborative chat mock data and stories:
CollaborativeChatstory toChatPage.stories.tsxwith a sequence of mock messages representing a conversation between multiple users, including simulated sharing events and message attributions.MessageFEtype to ensure correct typing for collaborative message mock data.