Skip to content

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
amir/chat-sharing-6-frontend-stories
Open

feat(DATAGO-128261): EXPERIMENTAL: Chat Sharing #6 Storybook stories for share components#1205
amir-ghasemi wants to merge 2 commits intoamir/chat-sharing-5-frontend-chat-integrationfrom
amir/chat-sharing-6-frontend-stories

Conversation

@amir-ghasemi
Copy link
Collaborator

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

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:

  • Added new stories for MessageAttribution, ShareNotificationMessage, and UserPresenceAvatars components, each with multiple scenarios and mock data for collaborative chat users and sessions. [1] [2] [3]
  • Introduced a comprehensive set of stories for the ShareDialog component, 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:

  • Added a new CollaborativeChat story to ChatPage.stories.tsx with a sequence of mock messages representing a conversation between multiple users, including simulated sharing events and message attributions.
  • Imported the MessageFE type to ensure correct typing for collaborative message mock data.

@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-5-frontend-chat-integration branch from ba6abdb to cc6b16b Compare March 18, 2026 10:59
@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-6-frontend-stories branch from 97e3b3f to 0d5dafc Compare March 18, 2026 10:59
@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-5-frontend-chat-integration branch from cc6b16b to b3aa461 Compare March 19, 2026 17:17
@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-6-frontend-stories branch from 0d5dafc to 620e6ce Compare March 19, 2026 17:17
@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-5-frontend-chat-integration branch from b3aa461 to 0580ec2 Compare March 19, 2026 19:00
@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-6-frontend-stories branch from 620e6ce to 500c2f0 Compare March 19, 2026 19:00
@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-5-frontend-chat-integration branch from 0580ec2 to 960973a Compare March 19, 2026 19:13
@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-6-frontend-stories branch 2 times, most recently from 06fb551 to a462743 Compare March 19, 2026 19:30
@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-5-frontend-chat-integration branch from 960973a to 08350a5 Compare March 19, 2026 19:30
amir-ghasemi and others added 2 commits March 19, 2026 15:41
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>
@amir-ghasemi amir-ghasemi force-pushed the amir/chat-sharing-6-frontend-stories branch from a462743 to 57cd923 Compare March 19, 2026 19:41
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.

1 participant