Skip to content

fix: restore console dashboard component visibility - #38

Merged
cursor[bot] merged 3 commits into
mainfrom
cursor/fix-console-dashboard-visibility-0089
Aug 20, 2026
Merged

cursor[bot] merged 3 commits into
mainfrom
cursor/fix-console-dashboard-visibility-0089

Conversation

@WilliamWang1721

@WilliamWang1721 WilliamWang1721 commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Problem

The control console dashboard rendered all React cards, charts, and navigation through ReactPageHost on a display: contents mount node. WebKit (including mobile Safari) can drop that element from the box tree, so every console component looks like it disappeared even though the page still loads.

Fix

  • Mount React console pages in a real flex host (console-runtime-host) instead of display: contents.
  • Fail visibly if the host node is missing, instead of returning silently.
  • Keep dashboard cards on explicit HSL token colors and the shared .card surface so text/background cannot collapse to the page color.
  • Force console card surfaces in the modern CSS layer.
  • Cover the host and admin dashboard with regression tests.

Preview

Local Vite preview of the admin dashboard after the fix:

控制仪表台修复后预览

All metric cards, Token trend, model distribution, and user usage table are visible.

Verification

  • pnpm exec vitest run src/console/ReactPageHost.spec.ts src/console/react/DashboardPage.test.ts
  • Related layout/sidebar/audit tests passed.
  • python3 tools/codebase_inventory.py --check
  • python3 tools/secret_scan.py

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Mount React console pages in a real flex box instead of display:contents, which WebKit can omit from the box tree and hide every dashboard card. Keep card surfaces on explicit HSL tokens and add regression coverage for the host and admin dashboard.

Co-authored-by: GeekMr <WilliamWang1721@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA).

To sign, please reply with the following comment:

I have read the CLA Document and I hereby sign the CLA

You only need to sign once — it will be valid for all your future contributions to this project.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

cursoragent and others added 2 commits August 20, 2026 09:43
Record the console dashboard visibility fix for the next release and keep the release inventory gate current.

Co-authored-by: GeekMr <WilliamWang1721@users.noreply.github.com>
Co-authored-by: GeekMr <WilliamWang1721@users.noreply.github.com>
@cursor
cursor Bot merged commit dfa9609 into main Aug 20, 2026
1 of 2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants