Repository navigation
Fix: dedupe section title/desc in single-section config view (Resolves #68003) - #68093
Mlightsnow wants to merge 1 commit into
Conversation
Greptile SummaryFixes duplicate title/description rendering in single-section config views by computing Confidence Score: 5/5Safe to merge; the fix is minimal, conditions align correctly with the hero render path, and tests validate both branches. No P0/P1 issues found. The No files require special attention. Reviews (1): Last reviewed commit: "UI: dedupe section title/desc in single-..." | Re-trigger Greptile |
|
Related work from PRtags group Title: Open PR duplicate: [Bug]: Duplicate section title/description appears in Control UI single-section settings pages
|
Fixes #68003.
Summary
In the Control UI settings, when a single section is active (e.g. Automation → Approvals), the section title/description was rendered twice: once in the top hero and again in the nested
config-section-cardheader.This PR hides the per-card header when
renderConfigFormis invoked with anactiveSection, keeping the hero as the single source of the title/description. Multi-section (root) views still show the per-card headers.Changes
ui/src/ui/views/config-form.render.ts: skipconfig-section-card__headerwhenactiveSectionis set.ui/src/ui/views/config.browser.test.ts: add regression tests for single-section (hero-only) and multi-section (per-card headers) rendering.Test plan
pnpm test ui/src/ui/views/config.browser.test.ts(18 passed)pnpm test ui/src/ui/config-form.browser.test.ts(14 passed)pnpm linton the touched files (0 warnings, 0 errors)AI-assisted