Repository navigation
fix(WebUI): remove duplicate headers, move i18n descriptions to bread…crumb - #74238
npmisantosh wants to merge 1 commit into
Conversation
|
Codex review: needs changes before merge. Summary Reproducibility: yes. Current main source shows the shared non-config header plus local Usage header, and the PR screenshots show the duplicate-header target without needing backend setup. Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Land a narrower Web UI header cleanup that removes duplicated page-level context while preserving dynamic paths, section labels, form-mode context, and current dashboard breadcrumb behavior. Do we have a high-confidence way to reproduce the issue? Yes. Current main source shows the shared non-config header plus local Usage header, and the PR screenshots show the duplicate-header target without needing backend setup. Is this the best way to solve the issue? No as-is. The topbar consolidation direction is sound, but the branch should preserve dynamic Sessions store context, Cron form mode context, Manual RPC labels, and current dashboard breadcrumb route/context support while removing duplicated page titles. 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 207fb9951d67. |
Greptile SummaryThis PR removes duplicate page headers across the WebUI by consolidating navigation context into the topbar breadcrumb via
Confidence Score: 4/5Safe to merge with minor UX regression — no broken functionality, one piece of dynamic info (sessions store path) lost. One P1 finding (sessions store path permanently removed, no alternative in UI), no P0s. All other changes are formatting or clean header removal. P1 ceiling is 4/5; single isolated finding keeps it at 4. ui/src/ui/views/sessions.ts — dynamic store path removed; ui/src/ui/views/debug.ts — unnecessary empty row wrapper Prompt To Fix All With AIThis is a comment left during a code review.
Path: ui/src/ui/views/sessions.ts
Line: 270-271
Comment:
**Dynamic store path lost with no replacement**
The old card subtitle conditionally showed `Store: ${props.result.path}` when session data was loaded — giving users the actual filesystem path of their session store. This is dynamic, installation-specific info that cannot be encoded in the static `subtitleForTab("sessions")` i18n string now used in the breadcrumb. After this change, there is no way for a user to see their sessions store path in the UI.
Consider preserving it by rendering it separately (e.g., as a small `muted` note near the filter controls), rather than inside the old card-title structure.
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: ui/src/ui/views/debug.ts
Line: 68-71
Comment:
**Odd empty-row structure replaces removed card title**
The "Manual RPC" section previously had a clean `card-title` + `card-sub`. It's now replaced with:
```html
<div class="row" style="justify-content: space-between;">
<div></div>
<div></div>
</div>
```
Two empty sibling divs inside a `space-between` row render no visible content and add unnecessary DOM. Since there are no controls to right-align here (unlike the "Snapshots" or "Nodes" cards that need to push a refresh button to the right), the entire wrapper can simply be removed.
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "fix(WebUI): remove duplicate headers, mo..." | Re-trigger Greptile |
| <div class="row" style="justify-content: space-between; margin-bottom: 12px;"> | ||
| <div> | ||
| <div class="card-title">Sessions</div> | ||
| <div class="card-sub"> | ||
| ${props.result | ||
| ? `Store: ${props.result.path}` | ||
| : "Active session keys and per-session overrides."} | ||
| </div> | ||
| </div> | ||
| <div></div> |
There was a problem hiding this comment.
Dynamic store path lost with no replacement
The old card subtitle conditionally showed Store: ${props.result.path} when session data was loaded — giving users the actual filesystem path of their session store. This is dynamic, installation-specific info that cannot be encoded in the static subtitleForTab("sessions") i18n string now used in the breadcrumb. After this change, there is no way for a user to see their sessions store path in the UI.
Consider preserving it by rendering it separately (e.g., as a small muted note near the filter controls), rather than inside the old card-title structure.
Prompt To Fix With AI
This is a comment left during a code review.
Path: ui/src/ui/views/sessions.ts
Line: 270-271
Comment:
**Dynamic store path lost with no replacement**
The old card subtitle conditionally showed `Store: ${props.result.path}` when session data was loaded — giving users the actual filesystem path of their session store. This is dynamic, installation-specific info that cannot be encoded in the static `subtitleForTab("sessions")` i18n string now used in the breadcrumb. After this change, there is no way for a user to see their sessions store path in the UI.
Consider preserving it by rendering it separately (e.g., as a small `muted` note near the filter controls), rather than inside the old card-title structure.
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| </div> | ||
|
|
||
| <div class="card"> | ||
| <div class="card-title">Manual RPC</div> | ||
| <div class="card-sub">Send a raw gateway method with JSON params.</div> | ||
| <div class="row" style="justify-content: space-between;"> |
There was a problem hiding this comment.
Odd empty-row structure replaces removed card title
The "Manual RPC" section previously had a clean card-title + card-sub. It's now replaced with:
<div class="row" style="justify-content: space-between;">
<div></div>
<div></div>
</div>Two empty sibling divs inside a space-between row render no visible content and add unnecessary DOM. Since there are no controls to right-align here (unlike the "Snapshots" or "Nodes" cards that need to push a refresh button to the right), the entire wrapper can simply be removed.
Prompt To Fix With AI
This is a comment left during a code review.
Path: ui/src/ui/views/debug.ts
Line: 68-71
Comment:
**Odd empty-row structure replaces removed card title**
The "Manual RPC" section previously had a clean `card-title` + `card-sub`. It's now replaced with:
```html
<div class="row" style="justify-content: space-between;">
<div></div>
<div></div>
</div>
```
Two empty sibling divs inside a `space-between` row render no visible content and add unnecessary DOM. Since there are no controls to right-align here (unlike the "Snapshots" or "Nodes" cards that need to push a refresh button to the right), the entire wrapper can simply be removed.
How can I resolve this? If you propose a fix, please make it concise.|
Thanks for putting work into the duplicate-header cleanup. I opened #81950 as the focused maintainer replacement for the concrete Usage-heading bug and closed the linked issue from there. I’m closing this PR because the broad header refactor is not the path we want to land in its current form. Prior review found it drops dynamic UI context such as the Sessions store path and Cron form-mode heading, and the branch is also conflicting. #81950 keeps the fix narrow: only the duplicated Usage page header is removed, while existing shared shell/header behavior and other page-specific context remain intact. A fresh narrower PR is welcome if there is a specific remaining duplicated header after #81950, with the dynamic context preserved and focused tests for that surface. |
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
Remove duplicate page headers across the web UI, consolidating all navigation context into a single topbar with breadcrumb navigation.
Summary
content-header below showed "OpenClaw › {Page} • {subtitle}" again. Additionally, pages showed
hardcoded subtitles that duplicated (with different wording) the i18n subtitles already in the topbar.
Why it matters: Visual clutter, wasted vertical space, inconsistent UX, and confusion from seeing the
same information twice with different wording.
Removed duplicate content-header sections and hardcoded page subtitles. Chat tab retains a dedicated
content-header for necessary controls (session/model dropdowns, chat action buttons).
behavior changes to chat functionality or config diff logic - purely visual/UI cleanup.
Change Type (select all)
Scope (select all touched areas)
User-visible / Behavior Changes
context)
(Refresh, Thinking, Tool calls, Focus, Cron sessions)
changes" diff panel (now positioned at top of page)
Security Impact (required)
Repro + Verification
Environment
Steps
Expected
Actual
Evidence
Human Verification (required)
What you personally verified (not just CI), and how:
Verified scenarios:
Compatibility / Migration
Failure Recovery (if this breaks)
ui/src/ui/views/.ts, ui/src/styles/.css
config diff panel
Risks and Mitigations