js
js copied to clipboard
2025 wrapped
PR-Codex overview
This PR introduces a new "Rewind" feature to the account section, allowing users to view their yearly statistics. It includes a modal for displaying these stats, analytics tracking, and UI components for better user engagement.
Detailed summary
- Added new route for
Rewindinlayout.tsx. - Introduced
RewindModalClientto manage modal display logic. - Created
RewindBadgecomponent for UI integration. - Implemented analytics reporting for
rewind viewedevents. - Added
getYearInReviewAPI for fetching yearly stats. - Developed
RewindModalfor displaying yearly statistics. - Enhanced
RewindPagewith a button to trigger modal. - Integrated
RewindBadgeinto existing headers and UI components.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}
Summary by CodeRabbit
- New Features
- Year in Review (2025) showing totals for RPC requests, wallet connections, and mainnet sponsored transactions
- Rewind badge button added to account and team headers for quick access
- Multi-slide Rewind modal with animated intro, metrics, and sharing support
- Dedicated Rewind page and new "Rewind" account tab
- Automatic Rewind display in December/January on first visit; view events are reported for analytics
✏️ Tip: You can customize this high-level summary in your review settings.