Repository navigation
fix(ui): remove duplicate section headers in single-section settings view - #68005
Conversation
Greptile SummaryThis PR fixes duplicate section headers in the settings view by adding a Confidence Score: 5/5Safe 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 No files require special attention. Reviews (1): Last reviewed commit: "fix(ui): remove duplicate section header..." | Re-trigger Greptile |
|
hey @BunsDev i think this fix is pretty important (in terms of ui/ux), let me know if any changes are needed! |
|
Related work from PRtags group Title: Open PR duplicate: [Bug]: Duplicate section title/description appears in Control UI single-section settings pages
|
|
Hey @BunsDev, just following up on this PR. does this look good to merge or should i update anything? |
There was a problem hiding this comment.
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
showHeadercontrol 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. |
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
@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. |
|
Thanks so much, I will visually inspect once more when I wake up in the AM, it's 2:30am here. @d1rshan |
|
Codex deep review: this is the best canonical PR for #68003. Why this one:
I am closing the later duplicate PRs (#68071 and #68093) in favor of this one. |
BunsDev
left a comment
There was a problem hiding this comment.
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.

Summary
Change Type
Scope
Linked Issue/PR
Regression Test Plan
ui/src/ui/views/config.browser.test.tsUser-visible / Behavior Changes
Security Impact
Repro + Verification
Environment
Any Environment
Steps
Expected
In single-section settings view, section title/description should be rendered once (top hero only)
Actual
Section title/description is duplicated:
Evidence
Before (duplicated top section hero and nested section card header)

After:

Human Verification
Review Conversations
Compatibility / Migration