Skip to content

fix(usage): polish usage dashboard, services, and history UI - #1471

Open
appergb wants to merge 65 commits into
betafrom
fix/usage-page-ui
Open

appergb wants to merge 65 commits into
betafrom
fix/usage-page-ui

Conversation

@appergb

@appergb appergb commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Merge fix/recessed-search-fields (Dev preview: refine input surfaces, vocabulary, and desktop feedback #1470) cleanly into fix/usage-page-ui.
  • Consolidate the Usage view switcher, period selector, and clear action into one horizontal control bar.
  • Redesign Reported model usage and Recent records on the History tab, plus Model cache reports and Services and purposes on the Services tab:
    • Size desktop split-panel views to fill the remaining viewport height so bottom 28px card corners stay cleanly visible above the bottom margin instead of getting clipped at the fold.
    • Embed each scrollable list inside a concentric 16px rounded clipping frame (.ol-usage-inset-frame) within the 28px outer plate so scrolling stays cleanly clipped inside its own rounded container.
    • Replace the cramped 4-column grid inside Reported model usage with structured 2-band rows and an inset 5-column token strip that never breaks labels mid-word, plus dedicated per-purpose summary tiles.
  • Align Overview metric tiles and daily chart with the OpenLess Overview visual language.

Verification

  • npx prettier --check on all modified usage files
  • npm test (prebuild + tsc + vite build + full frontend test suite)
  • npx playwright test e2e/usage.spec.ts (2/2 passed)
  • Visually verified light & dark modes and viewport bounds across Overview, Services, and History tabs

Follow-up: desktop refresh and history detail

  • Reuse the desktop document's existing style nonce for notification exit layout. Repeated refresh receipts stay top-anchored with the packaged CSP, without changing the policy.
  • Use a Bézier curve for the overview app ranking and keep its collapsed avatar preview available for the fade transition.
  • Show recognition and polish side by side. Switch between polished text and the original above an inset scroller, with Copy fixed at the bottom right.
  • Verified the packaged frontend under desktop-style CSP in a native macOS WKWebView: 20 consecutive refreshes, no layout jumps, no style-policy violations, and no remaining receipts. The installed app was not replaced.
  • npm test passed. Focused history, notification, and narrow-layout regressions pass in Chromium and WebKit. Local headless WebKit wheel failures in the larger native-overview matrix also reproduce on the prior PR head.

History and switcher design follow-up

  • Remove Remember Vocabulary from the history detail footer; keep Copy at the bottom right.
  • Align history search and record edges with a shared 12px inset and matching 28px/16px concentric radii.
  • Use the same sliding selection indicator in the style workflow, vocabulary filter, and history transcript switchers.
  • Verified the build and 10 focused Chromium/WebKit checks, including narrow French vocabulary layout.

lvbaiqing added 30 commits November 18, 2026 23:32
lvbaiqing added 23 commits November 19, 2026 20:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T10:52:35.115437Z 176ce88 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fb04107070

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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