Skip to content

fix(WebUI): remove duplicate headers, move i18n descriptions to bread…crumb - #74238

Closed
npmisantosh wants to merge 1 commit into
openclaw:mainfrom
npmisantosh:fix/duplicate-header-webui
Closed

npmisantosh wants to merge 1 commit into
openclaw:mainfrom
npmisantosh:fix/duplicate-header-webui

Conversation

@npmisantosh

Copy link
Copy Markdown

Remove duplicate page headers across the web UI, consolidating all navigation context into a single topbar with breadcrumb navigation.

Summary

  • Problem: Every page had duplicate headers - topbar showed "OpenClaw" branding, then a separate
    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.

  • What changed: Consolidated all navigation into a single topbar with inline breadcrumb + subtitle.
    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).
  • What did NOT change (scope boundary): No backend changes, no API changes, no config schema changes, no
    behavior changes to chat functionality or config diff logic - purely visual/UI cleanup.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

User-visible / Behavior Changes

  • Topbar now shows: "OpenClaw › {Page} • {subtitle}" on all pages (single source of truth for navigation
    context)
  • Pages no longer show: Duplicate page title + subtitle below topbar
  • Chat tab exception: Retains content-header with session dropdown, model dropdown, and action buttons
    (Refresh, Thinking, Tool calls, Focus, Cron sessions)
  • Config page: Removed "No changes" / "X unsaved changes" badge; kept only expandable "View X pending
    changes" diff panel (now positioned at top of page)
  • Mobile: Subtitle hidden on small screens to keep topbar compact

Security Impact (required)

  • No impact on security, just UI changes.

Repro + Verification

Environment

  • OS: Linux (development)
  • Runtime/container: Node 22, pnpm
  • Model/provider: N/A (UI only)
  • Integration/channel (if any): N/A
  • Relevant config (redacted): N/A

Steps

  1. Start dev server: pnpm dev (from ui/ directory)
  2. Navigate to each page: Sessions, Usage, Skills, Logs, Config, Chat
  3. Verify topbar shows breadcrumb + subtitle
  4. Verify no duplicate title/subtitle below topbar
  5. Verify Chat tab has session/model dropdowns and action buttons
  6. Verify Config page shows diff panel at top when changes exist

Expected

  • Single topbar header with "OpenClaw › {Page} • {subtitle}"
  • No duplicate page headers below topbar
  • Chat controls visible and functional
  • Config diff panel at top when changes exist

Actual

  • Matches expected (verified locally)

Evidence

  • Screenshot/recording
Screenshot from 2026-03-19 15-12-13 Duplicate title before(top), fixed UI (bottom) Screenshot from 2026-03-19 14-18-50 Duplicate Diff panel and change status (before), fixed UI (bottom)

Human Verification (required)

What you personally verified (not just CI), and how:

Verified scenarios:

  • All pages render without duplicate headers
  • Topbar breadcrumb + subtitle displays correctly
  • Chat tab controls (dropdowns + buttons) functional
  • Config diff panel appears at top when changes exist
  • Mobile layout hides subtitle appropriately
  • Edge cases checked:
  • Sessions page with/without store path
  • Config page with no changes (clean UI)
  • Config page with pending changes (diff panel visible)
  • Chat tab with controls expanded
  • What you did not verify:
  • All i18n translations (only English verified)
  • Tablet breakpoint layouts
  • Screen reader accessibility

Compatibility / Migration

  • Backward compatible? Yes (visual only, no API/config changes)
  • Config/env changes? No
  • Migration needed? No
  • If yes, exact upgrade steps: N/A

Failure Recovery (if this breaks)

  • How to disable/revert this change quickly: Revert commit or restore previous CSS + view files
  • Files/config to restore: ui/src/ui/app-render.ts, ui/src/ui/components/dashboard-header.ts,
    ui/src/ui/views/.ts, ui/src/styles/.css
  • Known bad symptoms reviewers should watch for: Missing page titles, missing chat controls, broken
    config diff panel

Risks and Mitigations

  • Risk: Chat controls may not render correctly if session/model data is unavailable
  • Mitigation: Existing disabled state logic preserved; controls gracefully disable when disconnected
  • Risk: Config diff panel positioning may conflict with future layout changes
  • Mitigation: Uses existing CSS classes; positioned at top of main content area (standard location)
  • Risk: Mobile subtitle hiding may affect accessibility
  • Mitigation: Subtitle still present in DOM (hidden via CSS); screen readers can access it

@clawsweeper

clawsweeper Bot commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

Summary
The PR moves Control UI tab subtitles into the dashboard breadcrumb and removes many page/card header blocks across Web UI views while keeping Chat controls in a content header.

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
Sufficient (screenshot): The PR body contains before/after screenshots of real Control UI pages, and the downloaded images directly show the visible duplicate-header cleanup and config diff placement change.

Next step before merge
The remaining blockers are narrow Web UI render repairs plus a rebase-preservation task, so a focused repair or replacement branch is feasible if a maintainer promotes it.

Security
Cleared: The diff is limited to Web UI rendering, CSS, and a focused UI test adjustment with no dependency, workflow, permission, credential, network, or code-execution surface change.

Review findings

  • [P2] Preserve dashboard breadcrumb context — ui/src/ui/components/dashboard-header.ts:19-32
  • [P2] Keep rendering the Sessions store path — ui/src/ui/views/sessions.ts:271
  • [P2] Keep the Cron form mode heading — ui/src/ui/views/cron.ts:713-715
Review details

Best 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:

  • [P2] Preserve dashboard breadcrumb context — ui/src/ui/components/dashboard-header.ts:19-32
    Current main passes basePath and agentLabel into dashboard-header and renders the OpenClaw crumb as a real Overview link. This branch's header drops those props and uses a span click target, so rebasing this change as-is would lose prefixed Control UI URLs and active-agent breadcrumb context.
    Confidence: 0.88
  • [P2] Keep rendering the Sessions store path — ui/src/ui/views/sessions.ts:271
    This removes the only visible rendering of props.result.path. The new breadcrumb subtitle is static, so loaded Sessions pages would no longer show the actual session store location; render that dynamic path elsewhere instead of dropping it with the duplicate title block.
    Confidence: 0.94
  • [P2] Keep the Cron form mode heading — ui/src/ui/views/cron.ts:713-715
    The Cron form title/subtitle distinguish New Job from Edit Job and explain the current create/update mode. The static tab breadcrumb cannot replace that per-form context, so keep or relocate this header instead of replacing it with an empty div.
    Confidence: 0.88
  • [P3] Skip empty content headers — ui/src/ui/app-render.ts:1512-1515
    For ordinary non-chat tabs with no Dreams controls or global error, this still renders a styled .content-header with empty containers. That preserves blank vertical header space; only render this section when it has controls or an error.
    Confidence: 0.86
  • [P3] Drop the empty Manual RPC row — ui/src/ui/views/debug.ts:71-73
    The Manual RPC card replaces a meaningful title/subtitle with two empty divs inside a space-between row. Since there are no controls to align there, remove the wrapper or keep a meaningful section label.
    Confidence: 0.9

Overall correctness: patch is incorrect
Overall confidence: 0.91

Acceptance criteria:

  • pnpm test ui/src/ui/views/cron.test.ts ui/src/ui/views/sessions.test.ts ui/src/ui/views/debug.test.ts ui/src/ui/navigation.test.ts ui/src/ui/navigation.browser.test.ts ui/src/styles/layout.mobile.test.ts
  • pnpm exec oxfmt --check --threads=1 ui/src/styles/layout.css ui/src/ui/app-render.ts ui/src/ui/components/dashboard-header.ts ui/src/ui/views/sessions.ts ui/src/ui/views/debug.ts ui/src/ui/views/cron.ts ui/src/ui/views/usage.ts
  • git diff --check

What I checked:

  • live_pr_state: Live PR state is open, non-draft, head 7b04eaa, mergeable=CONFLICTING, with only Web UI files changed. (7b04eaa6ec22)
  • current_main_duplicate_header_path: Current main still renders the non-config shared content header with titleForTab/subtitleForTab, which is one source of the duplicate page context the PR is trying to remove. (ui/src/ui/app-render.ts:1622, 207fb9951d67)
  • current_main_usage_local_header: Current main also renders a local Usage title/subtitle region, confirming the Usage duplicate-header symptom is source-reproducible. (ui/src/ui/views/usage.ts:424, 207fb9951d67)
  • pr_removes_sessions_store_path: At PR head, the Sessions card header is replaced with an empty div, removing the dynamic props.result.path display that current main renders as the session store path. (ui/src/ui/views/sessions.ts:271, 7b04eaa6ec22)
  • current_main_sessions_store_path: Current main renders props.result.path via sessionsView.store, so the PR would remove installation-specific context rather than merely deduplicate a static page title. (ui/src/ui/views/sessions.ts:509, 207fb9951d67)
  • pr_removes_cron_form_context: At PR head, the Cron form header is replaced with an empty div, dropping the New/Edit form title and create/update subtitle that current main uses for per-section context. (ui/src/ui/views/cron.ts:713, 7b04eaa6ec22)

Likely related people:

  • BunsDev: Recent GitHub path history shows BunsDev authored dashboard-header/base-path work and repeated Control UI app-render, Sessions, Cron, and responsiveness changes central to this PR's behavior. (role: recent area contributor; confidence: high; commits: 5fe8cde28f84, 1390eadd9289, 6b3cd9043ee6; files: ui/src/ui/components/dashboard-header.ts, ui/src/ui/app-render.ts, ui/src/ui/views/sessions.ts)
  • steipete: Recent history shows steipete fixed the dashboard breadcrumb handler and made broad Control UI formatting/refactor touches near the affected files. (role: recent adjacent contributor; confidence: medium; commits: b48f6ca1fcb9, 4505987b9c8b, d35f37a58cd4; files: ui/src/ui/components/dashboard-header.ts, ui/src/ui/app-render.ts, ui/src/ui/views/usage.ts)
  • vincentkoc: Recent Sessions history includes work on runtime display in the Sessions table, making this person relevant to preserving Sessions context while cleaning up headers. (role: recent Sessions contributor; confidence: medium; commits: 16454f5c7ae1; files: ui/src/ui/views/sessions.ts)

Remaining risk / open question:

  • The PR is currently marked CONFLICTING against main, so a repair must preserve newer dashboard breadcrumb basePath and agentLabel behavior.
  • No live browser smoke was rerun during this read-only review; the reproduction and branch regressions are source-backed, with PR screenshots covering the visible before/after target.

Codex review notes: model gpt-5.5, reasoning high; reviewed against 207fb9951d67.

@npmisantosh
npmisantosh marked this pull request as ready for review April 29, 2026 09:14
@greptile-apps

greptile-apps Bot commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes duplicate page headers across the WebUI by consolidating navigation context into the topbar breadcrumb via DashboardHeader. The bulk of app-render.ts and view-file changes are formatting-only (reformatting ${a ? b : c} inline ternaries to block style). The DashboardHeader component was updated to pull in subtitleForTab for the breadcrumb.

  • The sessions card subtitle previously showed a dynamic, installation-specific value (Store: ${props.result.path}) when session data was loaded. This has been removed and replaced by the static subtitleForTab(\"sessions\") i18n string in the breadcrumb, meaning the store path is no longer visible anywhere in the UI.

Confidence Score: 4/5

Safe 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 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.

---

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

Comment on lines 270 to +271
<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>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 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!

Comment thread ui/src/ui/views/debug.ts
Comment on lines 68 to +71
</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;">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 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.

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 13, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels May 13, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 13, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 13, 2026
@BunsDev

BunsDev commented May 14, 2026

Copy link
Copy Markdown
Contributor

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.

@BunsDev BunsDev closed this May 14, 2026
BunsDev added a commit that referenced this pull request May 15, 2026
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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
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
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
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
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui size: XL triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants