Skip to content

fix(ui): remove duplicate section headers in single-section settings view - #68005

Merged
BunsDev merged 7 commits into
openclaw:mainfrom
d1rshan:fix/config-header-duplication
Apr 25, 2026
Merged

BunsDev merged 7 commits into
openclaw:mainfrom
d1rshan:fix/config-header-duplication

Conversation

@d1rshan

@d1rshan d1rshan commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Problem: In the Control UI dashboard settings, when opening a single section (for example, Automation), the section title and description are shown twice: once in the top section hero and again inside the nested section card header.
  • Why it matters: The duplication adds visual noise and weakens information hierarchy in the settings UX.
  • What changed: Updated config form rendering to suppress nested section-card headers in single-section/subsection contexts while preserving them in root/multi-section views; added tests for both behaviors.
  • What did NOT change (scope boundary): No gateway auth/network/protocol behavior changed; no config schema changes.

Change Type

  • Bug fix

Scope

  • UI / DX

Linked Issue/PR

Regression Test Plan

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file: ui/src/ui/views/config.browser.test.ts
  • Scenario the test should lock in:
    1. Single active section shows hero title and no nested card header.
    2. Root/multi-section view still renders section-card headers.
  • Why this is the smallest reliable guardrail: The bug is a pure render-branch issue localized to config view composition.
  • Existing test that already covers this (if any): None specific to this duplication.
  • If no new test is added, why not: N/A

User-visible / Behavior Changes

  • Single-section settings pages no longer show duplicated section title/description blocks.
  • Root/multi-section settings layout remains unchanged.

Security Impact

  • New permissions/capabilities? (Yes/No) No
  • Secrets/tokens handling changed? (Yes/No) No
  • New/changed network calls? (Yes/No) No
  • Command/tool execution surface changed? (Yes/No) No
  • Data access scope changed? (Yes/No) No
  • If any Yes, explain risk + mitigation: N/A

Repro + Verification

Environment

Any Environment

Steps

  1. Start OpenClaw dashboard.
  2. Open a section in Settings (Relevant: Communications, Automation, Infrastructure, AI & Agents).
  3. Select Automation for Example and Select any pill inside it (eg: Approvals).
  4. Observe the section heading area.

Expected

In single-section settings view, section title/description should be rendered once (top hero only)

Actual

Section title/description is duplicated:

  • top section hero
  • nested section card header inside the same page

Evidence

Before (duplicated top section hero and nested section card header)
Image

After:
image

Human Verification

  • Verified scenarios:
    • Single active section (Approvals in Automation) shows hero and no nested duplicated card header.
    • Root/multi-section settings still show section-card headers.

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

Compatibility / Migration

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

@greptile-apps

greptile-apps Bot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes duplicate section headers in the settings view by adding a showHeader boolean parameter to renderSectionCard. Card headers are now suppressed when drilling into a single section (activeSection != null) or a subsection (always), and shown only in the root multi-section view. Two targeted tests verify both paths.

Confidence Score: 5/5

Safe to merge — pure render-branch fix with no schema, network, or auth changes and targeted test coverage.

The change is minimal and isolated to the config form renderer. The showHeader logic correctly maps to all three rendering contexts (root, single-section, subsection). Tests lock in both the fixed path and the unchanged multi-section behavior. No P0/P1 findings.

No files require special attention.

Reviews (1): Last reviewed commit: "fix(ui): remove duplicate section header..." | Re-trigger Greptile

@d1rshan

d1rshan commented Apr 19, 2026 •

Copy link
Copy Markdown
Contributor Author

hey @BunsDev i think this fix is pretty important (in terms of ui/ux), let me know if any changes are needed!

@d1rshan d1rshan changed the title fix(ui): remove duplicate section headers in settings view fix(ui): remove duplicate section headers in single-section settings view Apr 19, 2026
@BunsDev BunsDev self-assigned this Apr 20, 2026
@prtags

prtags Bot commented Apr 23, 2026

Copy link
Copy Markdown

Related work from PRtags group funny-bear-wxs2

Title: Open PR duplicate: [Bug]: Duplicate section title/description appears in Control UI single-section settings pages

Number Title
#68005* fix(ui): remove duplicate section headers in single-section settings view
#68071 fix(ui): hide section card header in single-section settings views
#68093 Fix: dedupe section title/desc in single-section config view (Resolves #68003)

* This PR

@d1rshan

d1rshan commented Apr 24, 2026

Copy link
Copy Markdown
Contributor Author

Hey @BunsDev, just following up on this PR. does this look good to merge or should i update anything?

Copilot AI left a comment

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.

Pull request overview

Fixes duplicated section title/description rendering in the Control UI settings when viewing a single section by suppressing nested section-card headers while keeping the section hero, preserving existing behavior on the root/multi-section settings view.

Changes:

  • Add showHeader control to section-card rendering so headers can be hidden in single-section/subsection contexts.
  • Keep section-card headers enabled for root/multi-section views.
  • Add unit tests covering “single section hides nested card header” and “root view keeps headers” behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ui/src/ui/views/config-form.render.ts Adds showHeader flag to conditionally render section-card headers depending on active section/subsection context.
ui/src/ui/views/config.browser.test.ts Adds regression tests for hero/header rendering behavior in single-section vs root/multi-section views.

Comment thread ui/src/ui/views/config.browser.test.ts Resolved
Comment thread ui/src/ui/views/config.browser.test.ts Resolved
d1rshan and others added 2 commits April 24, 2026 12:38
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@d1rshan

d1rshan commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor Author

@BunsDev cleaned up the redundant tests Copilot flagged. New tests were added after I opened this PR, so I didn’t notice the duplication earlier.

Re-ran the targeted test file too, it's passing
image

@BunsDev

BunsDev commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

Thanks so much, I will visually inspect once more when I wake up in the AM, it's 2:30am here. @d1rshan

@steipete

Copy link
Copy Markdown
Contributor

Codex deep review: this is the best canonical PR for #68003.

Why this one:

  • It fixes the current main behavior: single-section settings pages render a hero and currently also render the same section card header.
  • The implementation is explicit: renderSectionCard gets showHeader, root/multi-section cards keep headers, active single-section cards suppress them, and subsection cards also stay headerless.
  • It includes targeted browser tests for the fixed single-section path and unchanged root multi-section path.
  • Current checks on the PR are green.

I am closing the later duplicate PRs (#68071 and #68093) in favor of this one.

@BunsDev BunsDev left a comment

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.

Reviewed the diff against #68003 and the current config renderer behavior. This is the right scoped fix: the single-section hero remains the only section title/description, root multi-section cards keep their headers, and subsection cards stay headerless. The added browser coverage locks both the fixed path and the unchanged root view.

Checks are green and there are no unresolved review threads. Approved.

@BunsDev
BunsDev merged commit 95b7a85 into openclaw:main Apr 25, 2026
64 checks passed
@d1rshan
d1rshan deleted the fix/config-header-duplication branch April 25, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Duplicate section title/description appears in Control UI single-section settings pages

4 participants