Repository navigation
fix(ui): remove duplicate Usage heading - #81950
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. Current main has a source-reproducible path where the app shell renders the Usage title/subtitle and renderUsage renders a second local usage-page-header with its own title/subtitle. Real behavior proof Next step before merge Security Review detailsBest possible solution: Land the focused Usage-only cleanup after normal maintainer review and required CI pass, keeping broader header redesigns separate. Do we have a high-confidence way to reproduce the issue? Yes. Current main has a source-reproducible path where the app shell renders the Usage title/subtitle and renderUsage renders a second local usage-page-header with its own title/subtitle. Is this the best way to solve the issue? Yes. Removing the local Usage-only header, dead CSS, and obsolete i18n key is the narrowest maintainable fix while preserving the shared shell header and other page-specific context. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 63d72e219176. |
310b2f5 to
8aa9bd1
Compare
8aa9bd1 to
f60e501
Compare
|
Landing proof for exact head Local verification:
GitHub verification:
Known proof gaps:
|
Summary
usage.page.subtitlekey throughpnpm ui:i18n:syncso generated locale metadata stays aligned.Fixes #45709.
Supersedes #67290 and #74238.
Verification
Behavior addressed: Control UI Usage no longer renders both the shared tab header and a second local Usage page header.
Real environment tested: Local macOS workspace, Node/pnpm repo environment, jsdom render tests and repo i18n sync/check.
Exact steps or command run after this patch:
pnpm install(only after Vitest wrapper reported missingvitest/package.json)node scripts/run-vitest.mjs ui/src/ui/views/usage.test.ts ui/src/ui/views/usage-render-overview.test.ts ui/src/styles/usage.test.ts ui/src/i18n/test/translate.test.tspnpm ui:i18n:syncpnpm ui:i18n:checkpnpm exec oxfmt --check --threads=1 CHANGELOG.md ui/src/styles/usage.css ui/src/ui/views/usage.ts ui/src/ui/views/usage.test.ts ui/src/i18n/locales/*.tsgit diff --checkEvidence after fix:
renderUsagenow starts with the existing filter header card;rgfinds no remainingusage.page.subtitle,usage-page-header,usage-page-title, orusage-page-subtitleproduction references.Observed result after fix: Focused Vitest passed 4 files / 15 tests; i18n check reported all 18 locales clean; oxfmt and whitespace checks passed.
What was not tested: A live browser screenshot was not captured. Broad
pnpm check:changedwas attempted throughnode scripts/crabbox-wrapper.mjs run --shell -- "pnpm check:changed", but Crabbox default AWS credentials were unavailable; retrying with-provider blacksmith-testboxfailed because.github/workflows/crabbox-hydrate.ymlhas no Testbox step.Related Triage