Conversation
Co-authored-by: spapinwar <spapinwar@gmail.com>
|
Cursor Agent can help with this pull request. Just |
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughIntroduces a new "2025 Wrapped" feature enabling users to review their annual chat activity through an interactive, multi-slide experience. Adds routing configuration, a statistics data model, provider-based computation of aggregated metrics from conversations, and an animated presentation page with six narrative slides. Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant Profile as Profile Page
participant Router as Navigation
participant WrappedPage as Wrapped Page
participant Provider as WrappedStats Provider
participant Repo as Conversations Repo
User->>Profile: Tap "2025 Wrapped" tile
Profile->>Router: Navigate to wrapped route
Router->>WrappedPage: Instantiate WrappedPage
WrappedPage->>Provider: Request wrappedStats
rect rgba(100, 200, 150, 0.3)
Note over Provider: Computing Statistics
Provider->>Repo: Fetch all conversations
Repo-->>Provider: Return conversations
Provider->>Provider: Aggregate 2025 metrics<br/>(messages, models, dates, streaks)
end
alt Has Data
Provider-->>WrappedPage: WrappedStats with aggregates
WrappedPage->>WrappedPage: Render Intro Slide
User->>WrappedPage: Swipe/Tap next
WrappedPage->>WrappedPage: Animate to Conversations Slide
User->>WrappedPage: Continue through<br/>Models → Activity →<br/>Personality → Final Slide
else No Data
Provider-->>WrappedPage: WrappedStats.empty
WrappedPage->>WrappedPage: Show celebratory intro<br/>+ Start Chatting action
else Loading
WrappedPage->>WrappedPage: Show progress indicator
else Error
WrappedPage->>WrappedPage: Show error UI + Go Back
end
User->>WrappedPage: Tap Close/Share
WrappedPage->>Router: Pop or trigger share action
Estimated code review effort🎯 4 (Complex) | ⏱️ ~65 minutes Poem
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add a "2025 Wrapped" feature to provide users with a fun, personalized year-in-review of their AI conversations.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.