Skip to content

feat(config-ui): add basic/advanced field split and doc-link affordance - #76034

Closed
symonbaikov wants to merge 2 commits into
openclaw:mainfrom
symonbaikov:feat/config-ui-ux-redesign
Closed

symonbaikov wants to merge 2 commits into
openclaw:mainfrom
symonbaikov:feat/config-ui-ux-redesign

Conversation

@symonbaikov

Copy link
Copy Markdown

● - [x] Add FIELD_ADVANCED set in schema.hints.ts to mark technical config fields (auth cooldowns, gateway infra knobs, diagnostics subsections, etc.) as advanced, so the config form can hide
them by default

  • Add docLink field to ConfigUiHint type for future per-field docs links
  • In config-form.node.ts renderObject, split top-level section fields into basic (visible by default) and advanced (collapsed
    Details disclosure) when no search is active; search
    bypasses the split so all matching fields are always visible
  • Add renderHelpBlock helper that renders help text, doc link, and tags together; render the Docs ↗ anchor when hints.docLink is set
  • Add CSS for .cfg-advanced-section disclosure and .cfg-field__doc-link

Summary

  • Problem: The config UI shows all settings at the same level — basic toggles sit alongside low-level infra knobs (auth backoff timers, gateway health-check intervals, otel settings),
    making the page feel dense and hard to navigate for non-expert users.
  • Why it matters: New users opening the config page see 50+ fields at once with no visual hierarchy; important settings like log level or update channel are buried next to
    rarely-touched tuning parameters.
  • What changed: Top-level fields in each config section are now split into "basic" (always visible) and "advanced" (collapsed <details> disclosure with a count badge). The split is
    bypassed when a search query is active so all matching fields remain discoverable. The ConfigUiHint type gains an optional docLink field; when set, a Docs ↗ anchor is rendered inline
    with the help text.
  • What did NOT change: Raw mode, search behavior, the Form/Raw toggle, nested-object collapsibles, tag filtering (tag:advanced), and plugin-owned channel hints are all untouched.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • 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

Linked Issue/PR

Root Cause (if applicable)

N/A

Regression Test Plan (if applicable)

N/A — feature addition, not a regression fix.

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file: src/config/schema.hints.test.ts (42 tests pass, hint building logic unchanged)
  • Scenario the test should lock in: N/A
  • Why this is the smallest reliable guardrail: N/A
  • Existing test that already covers this (if any): src/config/schema.hints.test.ts
  • If no new test is added, why not: The change is a pure rendering split in Lit templates; the split logic (hintForPath(...).advanced) is trivial and covered indirectly by existing
    hint-building tests.

User-visible / Behavior Changes

  • Config page sections now show only "basic" fields by default; technical/tuning fields are hidden inside a collapsed "Advanced" disclosure with a count badge (e.g. "Advanced 5").
  • Clicking the disclosure reveals the advanced fields in-place, consistent with existing nested-object collapsibles.
  • Searching (tag:advanced, free text) bypasses the split — all matching fields appear regardless of their audience tier.
  • No default values, keys, or config behavior changed.

Diagram (if applicable)

Before:
[Auth section] -> [profiles] [order] [cooldowns.*] [backoff timers...] (all flat)

After:
[Auth section] -> [profiles] [order]
                  ▸ Advanced (1)  <- collapsed by default
                    └─ [cooldowns.*] [backoff timers...]

Search active:
[Auth section] -> all matching fields visible regardless of advanced flag

Security Impact (required)

- New permissions/capabilities? No
- Secrets/tokens handling changed? No
- New/changed network calls? No
- Command/tool execution surface changed? No
- Data access scope changed? No

Repro + Verification

Environment

- OS: Linux (Fedora 43)
- Runtime/container: Node 22, local dev
- Model/provider: N/A
- Integration/channel: N/A
- Relevant config: default

Steps

1. Open the control UI → Yapılandırma (Configuration) tab
2. Navigate to the Authentication section
3. Observe that "Auth Profiles" and "Auth Profile Order" are visible by default; "Auth Cooldowns" is collapsed under "Advanced (1)"
4. Click "Advanced" disclosure → cooldown fields appear
5. Type tag:advanced in the search box → all advanced fields across all sections appear

Expected

- Basic fields visible, advanced fields collapsed by default
- Search bypasses the split and shows all matches

Actual

- Matches expected behavior

Evidence

- Failing test/log before + passing after — pnpm test src/config/schema.hints.test.ts: 42 passed

Human Verification (required)

- Verified scenarios: Basic/advanced split renders correctly; search overrides split; Form/Raw toggle unaffected; dark/light theme looks correct
- Edge cases checked: Section with zero advanced fields (no disclosure rendered); search with tag:advanced returns advanced fields across all sections
- What you did not verify: Full E2E in all locales; mobile layout

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
- Config/env changes? No
- Migration needed? No

Risks and Mitigations

- Risk: A field that should be "basic" ends up in FIELD_ADVANCED (or vice versa), hiding something a user needs to find.
  - Mitigation: The search box always reveals all fields regardless of the split; no field is permanently hidden. The FIELD_ADVANCED set is a small explicit allowlist — only paths we
deliberately audited are marked.

- Add FIELD_ADVANCED set in schema.hints.ts to mark technical config
  fields (auth cooldowns, gateway infra knobs, diagnostics subsections,
  etc.) as advanced, so the config form can hide them by default
- Add docLink field to ConfigUiHint type for future per-field docs links
- In config-form.node.ts renderObject, split top-level section fields
  into basic (visible by default) and advanced (collapsed <details>
  disclosure) when no search is active; search bypasses the split so
  all matching fields are always visible
- Add renderHelpBlock helper that renders help text, doc link, and tags
  together; render the Docs ↗ anchor when hints.docLink is set
- Add CSS for .cfg-advanced-section disclosure and .cfg-field__doc-link
@clawsweeper

clawsweeper Bot commented May 2, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Keep this PR open as a coherent linked implementation candidate, but it is not merge-ready: the branch is currently dirty against main, the protocol schema change targets a moved path, visual proof is still missing, and the advanced-field allowlist needs maintainer product approval.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #75947
Summary: This PR is an open implementation candidate for the broader config/settings UX issue; adjacent settings issues overlap but ask for broader guided configuration or narrower auth-specific controls.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

So I’m closing this here because the remaining work is already tracked in the canonical issue.

Review details

Best possible solution:

Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug reproduction; this is a visible Control UI feature. Source inspection confirms current main lacks the requested basic/advanced split, while the PR currently provides tests and self-report rather than real UI proof.

Is this the best way to solve the issue?

No, not as submitted. The idea is a plausible narrow slice, but current-main protocol alignment, changelog removal, real behavior proof, and maintainer approval for the field allowlist are needed first.

Security review:

Security review cleared: No concrete security or supply-chain concern was found; the diff changes UI rendering, schema metadata, CSS, tests, and same-host docs links without new dependencies, permissions, CI execution, or secret handling.

AGENTS.md: found and applied where relevant.

What I checked:

  • stale F-rated PR: PR was opened 2026-05-02T10:15:05Z, is older than 60 days, and the latest review rated it F.
  • proof blocker: real behavior proof is mock_only and proof tier is F, so this branch is not merge-ready without contributor follow-up.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • Takhoffman: Commit f8171ff added Config UI tag filters and schema help/label coverage across the same form rendering, schema hint, protocol, CSS, and search-test surfaces this PR changes. (role: Config UI search and hint contributor; confidence: high; commits: f8171ffcdc63; files: ui/src/ui/views/config-form.node.ts, ui/src/ui/views/config-form.search.node.test.ts, src/config/schema.hints.ts)
  • BunsDev: Commit 2cfb660 introduced the broader Control UI settings and Quick Settings UX that is the adjacent current-main simplification path for this issue cluster. (role: adjacent settings UX contributor; confidence: high; commits: 2cfb660a9bb8; files: ui/src/ui/views/config-quick.ts, ui/src/ui/views/config.ts, ui/src/ui/app.ts)
  • steipete: Commits dcf8308 and b1117d9 touched shared config hint types and extracted the gateway protocol package that now owns ConfigUiHintSchema on current main. (role: shared hint and protocol package contributor; confidence: medium; commits: dcf8308c8f96, b1117d98622f; files: src/shared/config-ui-hints-types.ts, packages/gateway-protocol/src/schema/config.ts, src/config/schema.hints.ts)

Codex review notes: model internal, reasoning high; reviewed against 68e06b9ea148.

…col schema

- In renderObject, key the advanced-split bypass off selfMatched and
  the original searchCriteria instead of childSearchCriteria, so queries
  that match a section itself (e.g. tag:advanced or a section label)
  still bypass the disclosure as expected
- Add docLink to ConfigUiHintSchema in the gateway protocol schema so
  schema-aware clients with additionalProperties: false accept the field
- Add test to config-form.search.node.test.ts confirming a section
  self-matches tag:advanced when tagged advanced
- Add config-form.advanced-split.test.ts (jsdom) covering: disclosure
  shown when inactive, bypassed for free-text search, tag search, and
  section self-match
- Add CHANGELOG entry for the feature
@barnacle-openclaw

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@barnacle-openclaw barnacle-openclaw Bot added the stale Marked as stale due to inactivity label May 30, 2026
@clawsweeper clawsweeper Bot added the rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. label May 30, 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 stale Marked as stale due to inactivity labels May 31, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 14, 2026
@clawsweeper

clawsweeper Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

@clawsweeper clawsweeper Bot closed this Jul 3, 2026
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 gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. 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.

[Feature]: UI quality update based on UX scoring.

1 participant