Repository navigation
Conversation
remove the local usage page title/subtitle block to avoid duplicate headers rely on the shared navigation subtitle rendering for the usage tab delete unused usage.page.subtitle locale entries
Greptile SummaryThis PR correctly removes the duplicate local header block from the Usage view ( Confidence Score: 4/5Safe to merge for the UI fix, but the locale cleanup will regress on the next i18n sync until The view change is correct and minimal. The P1 finding is that
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bb4c261d55
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6cc3793e0c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: afaae2207d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d04a9fcffd
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Codex review: needs changes before merge. Summary Reproducibility: yes. Current main source renders both the shared Usage title/subtitle and a local Usage title/subtitle, and the inspected PR screenshots show the before/after visual result. Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Land the focused Usage-only duplicate-header fix after regenerating every registered locale bundle and translation-memory file from English and dropping the leftover unused selector, while keeping the broader global header redesign separate. Do we have a high-confidence way to reproduce the issue? Yes. Current main source renders both the shared Usage title/subtitle and a local Usage title/subtitle, and the inspected PR screenshots show the before/after visual result. Is this the best way to solve the issue? No, not as currently authored. Removing the local Usage header is the right narrow fix, but the branch must synchronize all registered i18n outputs and remove the unused selector before merge. Full review comments:
Overall correctness: patch is incorrect Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 8237d165e266. |
There was a problem hiding this comment.
Pull request overview
This PR removes the redundant local title/subtitle block from the Usage tab so the UI relies on the app-level navigation header/subtitle, eliminating duplicated header content and aligning the Usage tab with other tabs’ header composition.
Changes:
- Removed the local Usage page header section from the Usage view template.
- Added new Usage header-related CSS selectors (though they don’t appear to be used by current markup).
- Deleted
usage.page.subtitlefrom several locale maps and removed matching entries from some translation-memory.tm.jsonlfiles.
Reviewed changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| ui/src/ui/views/usage.ts | Removes the local Usage title/subtitle block to avoid duplicating the global navigation header. |
| ui/src/styles/usage.css | Adds new header/subtitle-related selectors for Usage view styling. |
| ui/src/i18n/locales/zh-TW.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/zh-CN.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/uk.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/tr.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/pt-BR.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/pl.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/ko.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/ja-JP.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/id.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/fr.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/es.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/locales/en.ts | Removes usage.page.subtitle locale entry (base locale). |
| ui/src/i18n/locales/de.ts | Removes usage.page.subtitle locale entry. |
| ui/src/i18n/.i18n/tr.tm.jsonl | Removes translation-memory segment for usage.page.subtitle. |
| ui/src/i18n/.i18n/pt-BR.tm.jsonl | Removes translation-memory segment for usage.page.subtitle. |
| ui/src/i18n/.i18n/ko.tm.jsonl | Removes translation-memory segment for usage.page.subtitle. |
| ui/src/i18n/.i18n/ja-JP.tm.jsonl | Removes translation-memory segment for usage.page.subtitle. |
| ui/src/i18n/.i18n/id.tm.jsonl | Removes translation-memory segment for usage.page.subtitle. |
| ui/src/i18n/.i18n/fr.tm.jsonl | Removes translation-memory segment for usage.page.subtitle. |
| ui/src/i18n/.i18n/de.tm.jsonl | Removes translation-memory segment for usage.page.subtitle. |
Comments suppressed due to low confidence (1)
ui/src/i18n/locales/en.ts:661
- This PR removes
usage.page.subtitlefromen(and several other locales), but the key still exists in other locale maps (e.g.ui/src/i18n/locales/ar.ts,fa.ts,it.ts,nl.ts,th.ts,vi.ts) and corresponding.i18n/*.tm.jsonlentries. That leaves the locale keyset drifting and doesn’t fully match the PR description of deleting the unused entries; consider removing the key everywhere (or keeping it intentionally until all locales are regenerated).
usage: {
common: {
emptyValue: "—",
unknown: "unknown",
},
| return html` | ||
| <div class="usage-page"> | ||
| <section class="usage-page-header"> | ||
| <div class="usage-page-title">${t("tabs.usage")}</div> | ||
| <div class="usage-page-subtitle">${t("usage.page.subtitle")}</div> | ||
| </section> | ||
|
|
||
| <section class="card usage-header ${display.headerPinned ? "pinned" : ""}"> | ||
| <div class="usage-header-row"> | ||
| <div class="usage-header-title"> |
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
Thanks for the focused fix here. I opened #81950 as the maintainer replacement because it carries the same visible repair while also resolving the review blockers that kept this PR from landing:
Closing this PR as superseded by #81950 so maintainers do not have two branches for the same Usage-heading defect. If you want to keep contributing here, a fresh small PR on top of current |
Remove the local Usage view header now that the shared Control UI shell owns the page title, clean up the obsolete Usage subtitle locale key through the i18n sync pipeline, and add focused render coverage. Fixes #45709. Supersedes #67290 and #74238. Verification: - 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.ts - pnpm lint --threads=8 - pnpm ui:i18n:check - pnpm 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/*.ts - git diff --check - node scripts/run-vitest.mjs src/logging/logger-redaction-behavior.test.ts - GitHub CI run 25895690773 passed after failed-job rerun - Real behavior proof run 25895689499 passed Head: f60e501
Remove the local Usage view header now that the shared Control UI shell owns the page title, clean up the obsolete Usage subtitle locale key through the i18n sync pipeline, and add focused render coverage. Fixes openclaw#45709. Supersedes openclaw#67290 and openclaw#74238. Verification: - 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.ts - pnpm lint --threads=8 - pnpm ui:i18n:check - pnpm 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/*.ts - git diff --check - node scripts/run-vitest.mjs src/logging/logger-redaction-behavior.test.ts - GitHub CI run 25895690773 passed after failed-job rerun - Real behavior proof run 25895689499 passed Head: f60e501
Remove the local Usage view header now that the shared Control UI shell owns the page title, clean up the obsolete Usage subtitle locale key through the i18n sync pipeline, and add focused render coverage. Fixes openclaw#45709. Supersedes openclaw#67290 and openclaw#74238. Verification: - 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.ts - pnpm lint --threads=8 - pnpm ui:i18n:check - pnpm 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/*.ts - git diff --check - node scripts/run-vitest.mjs src/logging/logger-redaction-behavior.test.ts - GitHub CI run 25895690773 passed after failed-job rerun - Real behavior proof run 25895689499 passed Head: f60e501
Remove the local Usage view header now that the shared Control UI shell owns the page title, clean up the obsolete Usage subtitle locale key through the i18n sync pipeline, and add focused render coverage. Fixes openclaw#45709. Supersedes openclaw#67290 and openclaw#74238. Verification: - 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.ts - pnpm lint --threads=8 - pnpm ui:i18n:check - pnpm 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/*.ts - git diff --check - node scripts/run-vitest.mjs src/logging/logger-redaction-behavior.test.ts - GitHub CI run 25895690773 passed after failed-job rerun - Real behavior proof run 25895689499 passed Head: f60e501
Summary
usage.page.subtitlelocale entries.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
subtitles.usage), resulting in duplicated header information.usage.page.subtitle) after shared navigation subtitle support became the standard.Regression Test Plan (if applicable)
User-visible / Behavior Changes
Diagram (if applicable)
Security Impact (required)
No)No)No)No)No)Yes, explain risk + mitigation:N/ARepro + Verification
Environment
Steps
Expected
Actual
Evidence
Attach at least one:
Image placeholders to fill:
Human Verification (required)
Review Conversations
If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.
Compatibility / Migration
Yes)No)No)N/ARisks and Mitigations
usage.page.subtitle.