Repository navigation
feat(classic): add rankings page with model and vendor leaderboards - #5404
MetaInsight7 wants to merge 1 commit into
Conversation
Add complete rankings feature to web/classic including: - Rankings page with period tabs (today/week/month/year/all) - ModelsSection with VChart history chart and ranked model list - MarketShareSection with vendor share chart and color-coded list - PulseSection showing trending up/down models - Navigation integration and admin settings for rankings module Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (13)
WalkthroughThis PR introduces a new Rankings feature page showing model and market-share rankings with period-based filtering (today/week/month/year/all). The feature includes lazy-loaded page routing with optional auth protection, data fetching from ChangesRankings Page Feature
Sequence Diagram(s)sequenceDiagram
participant User
participant RankingsPage
participant useRankingsData
participant API
participant ModelsSection
participant MarketShareSection
participant PulseSection
User->>RankingsPage: Navigate to /rankings
RankingsPage->>useRankingsData: call hook with default 'week' period
useRankingsData->>API: GET /api/rankings?period=week
API-->>useRankingsData: { models, vendors, movers, droppers }
useRankingsData-->>RankingsPage: snapshot ready
RankingsPage->>ModelsSection: pass models history and rows
RankingsPage->>MarketShareSection: pass vendor history and rows
RankingsPage->>PulseSection: pass movers and droppers
ModelsSection-->>RankingsPage: render chart and list
MarketShareSection-->>RankingsPage: render chart and list
PulseSection-->>RankingsPage: render mover cards
RankingsPage-->>User: display rankings UI
User->>RankingsPage: click different period tab
RankingsPage->>useRankingsData: call changePeriod
useRankingsData->>API: GET /api/rankings?period=month
API-->>useRankingsData: updated snapshot
useRankingsData-->>RankingsPage: refresh components
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
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 complete rankings feature to web/classic including:
Important
📝 变更描述 / Description
(简述:做了什么?为什么这样改能生效?请基于你对代码逻辑的理解来写,避免粘贴未经整理的内容)
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
(请在此粘贴截图、关键日志或测试报告,以证明变更生效)
Summary by CodeRabbit