Skip to content

fix(ui): align Communications settings layout - #131421

Merged
Patrick-Erichsen merged 5 commits into
mainfrom
codex/communications-page-tabs
Aug 28, 2026
Merged

Patrick-Erichsen merged 5 commits into
mainfrom
codex/communications-page-tabs

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users opening Communications saw no page subtitle, button-style section tabs that differed from the Plugins navigation, a redundant contextual-help control, uneven tab spacing, and a card-like advanced-settings control that did not read as a normal section.

Why This Change Was Made

Communications now uses the route-owned Settings subtitle and the shared underlined hub tabs already used by Plugins. Both Communications and Plugins give the tabs equal space above and below. The contextual section-help affordance is suppressed at the Communications page boundary only, so other Settings pages retain their existing documentation links.

Advanced settings now use the native details/summary disclosure pattern already established by Cron. The change lives in the shared schema renderer, so Settings, Channels, and embedded Memory settings use the same browser-native toggle without writing config when it opens or closes.

The shared tab renderer preserves the former activation-target callback for scroll ownership and exposes the selected section through a labelled tab panel.

User Impact

The Communications page now has the same hierarchy and tab language as the rest of Settings: a short description under the title, evenly spaced underlined Messages/Voice tabs, no duplicate question-mark help control, and a left-aligned Advanced settings section that expands in place. Plugins receives the same even tab rhythm.

Evidence

Before After — Communications
Communications before: no subtitle and button tabs Communications after: subtitle, evenly spaced underlined tabs, and collapsed Advanced settings section
After — Advanced expanded After — Plugins spacing
Advanced settings expanded to reveal Queue limit Plugins with equal space above and below its underlined tabs

Responsive Communications page with collapsed Advanced settings

Playwright mocked-Gateway proof at 1440×900 and 390×844 verified:

  • subtitle: Messages and text-to-speech settings.
  • tabs: Messages, Voice, with click activation
  • Communications tab gaps: 24px above / 24px below
  • Plugins tab gaps: 20px above / 19px below (subpixel-rounded; ≤1px invariant)
  • native Advanced settings disclosure opens and closes without config writes
  • contextual help controls on Communications: 0

Validation:

  • pnpm --dir ui test — 798 files, 11,728 passed, 1 skipped
  • focused exact-head unit coverage — 81 passed
  • focused sibling Playwright E2E coverage — 20 passed; both prior CI failures rerun exact-head (3 passed)
  • pnpm tsgo:ui
  • pnpm lint:ui:styles
  • pnpm ui:i18n:verify
  • pnpm ui:build

Repair notes

  • Root owners: schema-driven Settings composition and the shared Plugins/Settings hub-tab shell.
  • Canonical fix: reuse the shared hub tabs and native disclosure semantics; keep the help suppression page-scoped.
  • Removed paths: segmented flat-section tabs, the Communications-only help affordance, and the advanced ghost row/divider/count UI.
  • Sibling coverage: the shared disclosure is verified in Settings, Channels, and Memory; equal tab spacing is verified for Communications and Plugins at desktop and narrow widths.
  • Production LOC: +84/-123 (net -39) | Tests: +314/-87 | Ratchet baseline: +1/-1.

@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 28, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/communications-page-tabs branch from fcc2858 to 1b4c234 Compare August 28, 2026 02:31
@Patrick-Erichsen Patrick-Erichsen changed the title fix(ui): align Communications subtitle and tabs with Settings fix(ui): align Communications settings layout Aug 28, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/communications-page-tabs branch from 1b4c234 to 666d537 Compare August 28, 2026 02:39
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/communications-page-tabs branch from 666d537 to ab95acc Compare August 28, 2026 02:53
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 27, 2026, 10:59 PM ET / August 28, 2026, 02:59 UTC.

ClawSweeper review

What this changes

The PR aligns Communications settings with shared Settings tabs, replaces the shared advanced-settings card with a native disclosure, and adds layout and interaction coverage.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 3 items remain

Keep open: current main does not contain this branch, and the maintainer-owned PR has no concrete introduced correctness or security defect in the reviewed UI paths.

Priority: P3
Reviewed head: ab95acc199dc2ed03dc963497caf47e534ba6110

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) PR readiness rating was derived from proof quality, review findings, security review, and reviewer confidence.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed browser surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed browser surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Shared advanced-field owner: The native disclosure is controlled by shared reveal state, calls the matching open/close callbacks, and restores forced/search-owned disclosures when users attempt to close them.
Caller and sibling coverage: ConfigPage passes the shared advanced-state setters; channel forms pass both boolean callbacks, so the renderer remains the common owner across Settings and channel forms.
Accessible tab-panel contract: The Settings view supplies the shared tabs with a controlled panel ID and renders the destination as the corresponding labelled tab panel; the tab component preserves pointer, Enter, Space, focus, and scroll activation paths.
Findings None None.
Security None None.

Live Verification

Entry: /settings/communications

Result: FAIL (partial) — step 2 wait_for wa-tab-group.config-sections-hub-tabs: locator.waitFor: Timeout 15000ms exceeded.

Steps:

  • PASS goto /settings/communications
  • FAIL wait_for wa-tab-group.config-sections-hub-tabs — locator.waitFor: Timeout 15000ms exceeded.

How this fits together

The Control UI turns gateway configuration schemas into Settings pages and channel forms. This change affects section navigation, advanced-field disclosure, and page-level documentation presentation for operators.

flowchart LR
A[Gateway configuration schema] --> B[Config page]
B --> C[Shared tab navigation]
B --> D[Shared form renderer]
D --> E[Advanced settings disclosure]
C --> F[Active settings panel]
E --> F
F --> G[Operator Control UI]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed browser surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Exact-head CI was still in progress in the supplied PR state; wait for its completion before merge.
  • Complete next step (P2) - No repair lane is needed because the review found no actionable introduced defect; normal owner review and exact-head CI remain.
Agent review details

Security

None.

PR surface

Source -39, Tests +227, Other 0. Total +188 across 20 files.

View PR surface stats
Area Files Added Removed Net
Source 9 84 123 -39
Tests 10 314 87 +227
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 20 399 211 +188

Review metrics

Metric Value Why it matters
Production versus test delta production +84/-123 (net -39); tests +314/-87; safety baseline +1/-1 The UI consolidation is net-negative in production while adding focused browser and E2E coverage.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the shared-renderer and shared-tab approach after exact-head CI completes, retaining the Communications mocked-Gateway layout coverage.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the shared-renderer and shared-tab approach after exact-head CI completes, retaining the Communications mocked-Gateway layout coverage.

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

Not applicable as a defect reproduction: this PR refines an observable Control UI layout. Its mocked-Gateway E2E provides a deterministic after-change behavior path, though this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. Reusing the existing shared tab and schema-rendering owners avoids a Communications-only implementation, while page-scoped documentation suppression leaves other Settings documentation links intact.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a bounded Control UI consistency and ergonomics change without data, security, delivery, or availability impact.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦞 diamond lobster.
  • add status: needs maintainer proof decision: A ClawSweeper-authored PR needs a maintainer proof capture or override decision. Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed browser surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P3: This is a bounded Control UI consistency and ergonomics change without data, security, delivery, or availability impact.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦞 diamond lobster.
  • status: needs maintainer proof decision: A ClawSweeper-authored PR needs a maintainer proof capture or override decision. Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed browser surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Shared advanced-field owner: The native disclosure is controlled by shared reveal state, calls the matching open/close callbacks, and restores forced/search-owned disclosures when users attempt to close them. (ui/src/components/config-form.render.ts:79, ab95acc199dc)
  • Caller and sibling coverage: ConfigPage passes the shared advanced-state setters; channel forms pass both boolean callbacks, so the renderer remains the common owner across Settings and channel forms. (ui/src/pages/config/view.ts:528, ab95acc199dc)
  • Accessible tab-panel contract: The Settings view supplies the shared tabs with a controlled panel ID and renders the destination as the corresponding labelled tab panel; the tab component preserves pointer, Enter, Space, focus, and scroll activation paths. (ui/src/pages/config/view.ts:380, ab95acc199dc)
  • Focused behavior coverage: Tests cover collapsed/expanded disclosure behavior, channel callbacks, section-tab scroll reset, Communications help suppression, and mocked-Gateway Communications layout. (ui/src/e2e/settings-layout.e2e.test.ts:75, ab95acc199dc)
  • Current-main necessity: The PR head is not an ancestor of fetched main, while its base is; current main therefore does not already include this branch's central change. (fbdc906f37f9)

Likely related people:

  • Peter Steinberger: Introduced the common/advanced tier model and has continued work on shared hub-tab presentation. (role: shared-settings feature owner; confidence: high; commits: e01f3e18a7f7, 917fab24a50d; files: ui/src/components/config-form.render.ts, ui/src/components/hub-tabs.ts)
  • Patrick Erichsen: Recent merged work covers the Settings header and documentation-link presentation that this PR extends. (role: recent area contributor; confidence: high; commits: 51f34f15dc93, 4ef9446daf15; files: ui/src/pages/config/config-page.ts, ui/src/components/config-form.render.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add after-fix proof from a real setup, such as a short recording, terminal output, linked artifact, or redacted logs.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@Patrick-Erichsen

Patrick-Erichsen commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Maintainer proof decision for the latest ClawSweeper review:\n\n- The rank-up request for additional real-setup visual proof is skipped for this landing. The real local Gateway is reachable on loopback, but the Codex app Playwright browser backend did not register after opening that surface; the ambient preview URL was stale. Switching the personal Gateway to this branch solely for capture would disturb live user state.\n- The PR already contains deterministic Playwright before/after screenshots from the branch UI with a mocked Gateway, including collapsed, expanded, Plugins spacing, and mobile states.\n- Exact-head CI is now fully green, including checks-ui, all 14 UI E2E shards, checks-ui-e2e-real-gateway, and openclaw/ci-gate.\n- ClawSweeper found no actionable code or security defect and rated patch quality 5/6.\n\nPatrick explicitly requested landing with this proof set, so this records the required maintainer override rather than leaving the rank-up move unaddressed.

@Patrick-Erichsen
Patrick-Erichsen merged commit f6e3879 into main Aug 28, 2026
164 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/communications-page-tabs branch August 28, 2026 03:55
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
* fix(ui): align Communications header and tabs

* fix(ui): remove Communications section help

* fix(ui): refine settings tab and advanced spacing

* fix(ui): narrow tab and disclosure event targets

* fix(ui): preserve advanced menu labels
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant