Skip to content

feat(web): merge the dashboard ops summary into a single ops page - #10

Open
TyperBody wants to merge 3 commits into
feat/project-review-and-pr-qafrom
agent/sixserven/ops-merge
Open

TyperBody wants to merge 3 commits into
feat/project-review-and-pr-qafrom
agent/sixserven/ops-merge

Conversation

@TyperBody

Copy link
Copy Markdown
Member

Merges the two ops surfaces into one page (ESPL-22).

There was no separate 「运维面板」 route: the "ops panel" was the dashboard
right-rail 「系统状态」 card, which repeated the adapter and message totals the
/monitoring page already showed.

Changes

  • pages/Monitoring.tsx → pages/Ops.tsx: the single metrics strip now also
    carries the dashboard's backend-connectivity badge (on the same 5s health
    tick), so the totals exist once. Status list and realtime card unchanged.
  • App.tsx: canonical /ops; /monitoring → <Navigate to="/ops" replace />.
    Client-side only — a BrowserRouter SPA has no server 301.
  • Layout.tsx: the 运维 group holds exactly this one item.
  • Dashboard.tsx: 系统状态 rail card removed, activity-header link → /ops.
  • Locales: symmetric ops namespace; dead monitoring.*, dashboard.systemStatus*
    and unused backend* keys dropped.

Verification

  • tsc --noEmit rc 0; eslint src 67 warnings / 0 errors (baseline: 67);
    test:locales ok, both packs at 501 keys.
  • Playwright on the deployed build: 15/15 checks, 0 console/page errors
    (single entry point, /monitoring redirect, one sidebar item, no duplicate
    counts, dark mode, no overflow at 420px).

Two pre-existing bugs found via screenshots and fixed: padding="none" let the
realtime title collide at 420px, and {errorRate}% passed two children so
MetricPanel read it as a loading placeholder (错误率 was a permanent skeleton).

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