Repository navigation
feat(config-ui): add basic/advanced field split and doc-link affordance - #76034
symonbaikov wants to merge 2 commits into
Conversation
- 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
|
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 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 detailsBest 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:
Likely related people:
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
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
● - [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
Details
disclosure) when no search is active; searchbypasses the split so all matching fields are always visible
Summary
making the page feel dense and hard to navigate for non-expert users.
rarely-touched tuning parameters.
<details>disclosure with a count badge). The split isbypassed when a search query is active so all matching fields remain discoverable. The
ConfigUiHinttype gains an optionaldocLinkfield; when set, aDocs ↗anchor is rendered inlinewith the help text.
tag:advanced), and plugin-owned channel hints are all untouched.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
N/A
Regression Test Plan (if applicable)
N/A — feature addition, not a regression fix.
src/config/schema.hints.test.ts(42 tests pass, hint building logic unchanged)src/config/schema.hints.test.tshintForPath(...).advanced) is trivial and covered indirectly by existinghint-building tests.
User-visible / Behavior Changes
tag:advanced, free text) bypasses the split — all matching fields appear regardless of their audience tier.Diagram (if applicable)