Skip to content

refactor(dashboard): simplify account pool overview#402

Open
kslr wants to merge 2 commits into
james-6-23:mainfrom
kslr:codex/simplify-dashboard
Open

refactor(dashboard): simplify account pool overview#402
kslr wants to merge 2 commits into
james-6-23:mainfrom
kslr:codex/simplify-dashboard

Conversation

@kslr

@kslr kslr commented Jul 16, 2026

Copy link
Copy Markdown

我对仪表盘的可支撑时间页面做了调整,之前的需要单独的去展开,文案也不够清晰。

顺带也做了其他调整,如果有不合适的我也可以退回

  1. 移除了 账号池概览,因为和指标重复
  2. 将原来的可支撑改为指标卡,文案调整为只有三种: 可支撑 x 小时,可支撑 1天+,等待数据
  3. 移除了 系统健康状态,因为和请求趋势类似

旧:
截屏2026-07-16 15 27 52

截屏2026-07-16 16 41 11

Summary by CodeRabbit

  • New Features

    • Added an always-visible pool runway statistic to the dashboard, including runway duration, dispatchable accounts, and unknown status indicators.
    • Dashboard data now refreshes automatically every 15 seconds.
  • Improvements

    • Simplified the account status layout into a compact statistics grid.
    • Updated English and Simplified Chinese dashboard labels for account availability, runway, and refresh status.
    • Changed the live indicator to a static dot.
  • Removed

    • Removed the expandable pool runway and system health sections.

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3ab02f1e-917b-4a6e-abcc-49596555b3d6

📥 Commits

Reviewing files that changed from the base of the PR and between dd105d5 and bfb0566.

📒 Files selected for processing (7)
  • frontend/src/components/PoolRunwayCard.tsx
  • frontend/src/components/StatCard.tsx
  • frontend/src/components/SystemHealthBar.tsx
  • frontend/src/components/TimeRangeSelector.tsx
  • frontend/src/locales/en.json
  • frontend/src/locales/zh.json
  • frontend/src/pages/Dashboard.tsx
💤 Files with no reviewable changes (2)
  • frontend/src/components/SystemHealthBar.tsx
  • frontend/src/components/PoolRunwayCard.tsx

📝 Walkthrough

Walkthrough

The dashboard now always loads runway inputs, computes and refreshes runway status, and displays it in the account-status stats grid. Legacy runway and system-health components are removed, localization keys are simplified, and the live badge uses a static indicator.

Changes

Dashboard status experience

Layer / File(s) Summary
Runway data loading and refresh
frontend/src/pages/Dashboard.tsx
Dashboard always fetches account and operations data, computes runway state with selectPoolRunway, and refreshes the calculation on an interval.
Account status and runway cards
frontend/src/pages/Dashboard.tsx, frontend/src/components/StatCard.tsx
The hero summary becomes an account-status grid, and StatCard accepts arbitrary ReactNode values for combined metric displays.
Legacy status UI and localization cleanup
frontend/src/components/PoolRunwayCard.tsx, frontend/src/components/SystemHealthBar.tsx, frontend/src/pages/Dashboard.tsx, frontend/src/locales/*.json
Legacy runway and system-health paths are removed, while dashboard labels are updated for the new account, refresh, and runway presentation.
Static live indicator
frontend/src/components/TimeRangeSelector.tsx
The live badge dot is no longer animated and its comment describes the auto-refresh status.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Suggested reviewers: james-6-23

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main dashboard refactor and accurately summarizes the simplified account pool overview.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kslr
kslr marked this pull request as ready for review July 16, 2026 09:35
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.

1 participant