Work - #5972
Conversation
|
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 (31)
WalkthroughThis PR replaces CI release workflows with a Docker Hub publishing workflow, rebrands documentation and the Docker Compose image toward a fork repository, adds a ChangesCI Workflow and Repo Tooling Docs
Fork Branding Documentation and Compose Image
Billing Credits Endpoint
Gemini Model List Normalization
Dashboard Time-Granularity Feature
Build Config Date-fns Alias
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant Router as router.dashboard
participant Controller as controller.GetCredits
participant Model as model (Token/User)
Client->>Router: GET /v1/credits
Router->>Controller: GetCredits(c)
Controller->>Model: fetch remaining quota (token or user)
Model-->>Controller: quota value
Controller->>Controller: convert via GetQuotaDisplayType()
Controller-->>Client: OpenAICreditsResponse{total_usage}
sequenceDiagram
participant Header as DashboardHeader
participant Dashboard as Dashboard/index.jsx
participant DataHook as useDashboardData
participant ChartsHook as useDashboardCharts
Header->>Dashboard: onGranularityChange(defaultTime)
Dashboard->>DataHook: handleGranularityChange(defaultTime)
DataHook->>DataHook: saveDefaultTime(userKey, defaultTime)
Dashboard->>DataHook: refresh(defaultTime)
DataHook-->>Dashboard: quota data
Dashboard->>ChartsHook: updateChartData(data, defaultTime)
Dashboard->>Dashboard: loadUserData(defaultTime)
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 Warning |
Important
📝 变更描述 / Description
(简述:做了什么?为什么这样改能生效?请基于你对代码逻辑的理解来写,避免粘贴未经整理的内容)
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
(请在此粘贴截图、关键日志或测试报告,以证明变更生效)
Summary by CodeRabbit
New Features
Bug Fixes
Documentation