⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@idoshamun
Copy link
Member

@idoshamun idoshamun commented Jan 13, 2026

Summary

  • Add PostType.Tweet and tweet fields to frontend GraphQL types
  • Create TweetPostContent component for detail view
  • Create TweetGrid and TweetList card components for feeds
  • Create TweetMediaGallery for image/video/GIF display
  • Create TweetThread component for thread display
  • Add Twitter-specific link preview UI
  • Add Tweet post type routing in modals and pages
  • Create loading/error state components
  • Add Storybook stories for all Tweet components
  • Add unit tests for tweet helper functions and components

Test plan

  • Verify tweet posts render correctly in grid and list views
  • Verify tweet detail modal opens with correct content
  • Verify media gallery displays images/videos correctly
  • Verify thread display expands and collapses
  • Verify error states display appropriate messages
  • Run Storybook to verify component stories
  • Run unit tests

Preview domain

https://twitter-support2.preview.app.daily.dev

Add Tweet to PostType enum and extend Post interface with tweet-specific
fields including TweetMedia and TweetData types.

New fields:
- tweetId, tweetAuthorUsername/Name/Avatar/Verified
- tweetContent, tweetContentHtml, tweetMedia
- tweetCreatedAt, isThread, threadTweets

Also adds isTweetPost helper function.

ENG-308
Add tweet components for displaying Twitter posts in detail view:
- TweetAuthorHeader: Author info with avatar, name, handle, verified badge
- TweetContent: Tweet text with parsed links, mentions, and hashtags
- TweetPostContent: Main wrapper with media preview and "View on X" link

Register Tweet type in SquadPostContent ContentMap for proper routing.

ENG-309
ENG-314: Add Tweet post type support to post content routing.

- Update TweetPostContent to conform to PostContentProps interface
- Create TweetPostModal for feed modal views
- Add PostType.Tweet to PostModalMap in Feed.tsx
- Add PostType.Tweet to CONTENT_MAP in post page
ENG-317: Create UI components for tweets being processed.

- Add TweetCardSkeleton for feed cards while tweet is loading
- Add TweetContentLoading for post detail view loading state
- Add TweetProcessingError for failed tweet processing
- Twitter branding visible in all states
- Optional author info display from preview data
ENG-320: Create comprehensive Storybook documentation for tweet components.

Stories created:
- TweetGrid (cards): Default, with images, video, long text, thread, unverified
- TweetList (cards): Same variants as grid in list layout
- TweetCardSkeleton: Loading states with/without author info
- TweetMediaGallery: 1-4 images, video, GIF, empty states
- TweetThread: Short/long threads, expanded, custom preview count
- TweetAuthorHeader: Verified/unverified, long names, no avatar
- TweetContentLoading: Loading states with author/URL info
- TweetProcessingError: Error states with various action configs

Also adds mock/tweet.ts with comprehensive mock data for all stories.
ENG-315: Handle Twitter error states in frontend.

- Add TweetStatus type for tweet availability states
- Add TweetMedia fields for width/height/duration
- Add tweetStatus and tweetErrorReason to Post interface
- Add tweet engagement count fields (like, retweet, reply)
- Add threadSize field for thread metadata
- Add helper functions: isTweetAvailable, isTweetProcessing, isTweetError
- Add getTweetErrorMessage for user-friendly error messages
Add comprehensive tests for:
- Tweet helper functions (isTweetPost, isTweetAvailable, isTweetProcessing, isTweetError, getTweetErrorMessage)
- TweetGrid component (author info, content, verified badge, X link, actions)
- TweetList component (content, media preview, X link, actions)
- Test fixtures for various tweet post states (normal, media, thread, processing, deleted, private, failed)
@vercel
Copy link

vercel bot commented Jan 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
daily-webapp Error Error Jan 13, 2026 10:48am
1 Skipped Deployment
Project Deployment Review Updated (UTC)
storybook Ignored Ignored Jan 13, 2026 10:48am

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