fix(web): move chat metrics into top-bar information panel

This commit is contained in:
2026-10-21 11:01:22 +01:00
parent de987555e9
commit b9ace1db62
9 changed files with 187 additions and 21 deletions
+19
View File
@@ -8,6 +8,25 @@ test, or a code change without a capture, is `partial` at best.
Status legend: `todo` · `partial` (some of it works) · `done` (working + captured).
### Chat metrics behind Info (2026-10-21)
The four usage/performance values now live in an explicit **Chat information**
panel, opened by the always-visible Info button at the far right of the chat's
top bar. The permanent metric rail is removed on mobile and desktop. The panel
overlays rather than shrinking the conversation, still receives live numeric
updates, and keeps unknowns distinct from reported zeros.
`test/chat-usage-browser.mjs` verifies collapsed/open/unknown/partial/zero states
at 390/420/1100px and a short viewport; metrics arriving while closed remain
available on open. It checks unchanged transcript height/DOM, preserved draft and
selection, trapped panel focus, return focus, Escape, browser Back, Close and
backdrop dismissal, accurate expanded state, and the crowded mobile toolbar with
both history and approval controls. Captures: approved OpenCode
temporary `chat-info-captures/`. A modal lifecycle cleanup hook also handles
programmatic closure without leaving stale Info state. Shell cache is v14.
This supersedes the permanent-header-rail placement described in the earlier
usage entry below; the native metrics protocol/accounting is unchanged.
### Run graph opens recorded visits (2026-10-21)
Run-graph stage clicks now call the same visit-pane action as Timeline, selecting