Skip to content

improve(ui): rebuild the channel setup dialog on one dialog layout - #191385

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/channel-setup-dialog
Nov 3, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/channel-setup-dialog

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

On a long channel setup step the whole dialog scrolled, so Continue sat about 1,000 px below the fold on a phone and the title went away with the content. There was no close button: leaving meant Escape, or a Cancel that only some steps had. A large tile took a quarter of the header, and multi-select options used text checkbox glyphs.

Why This Change Was Made

  • One dialog layout: the same .oc-dialog layout as Pair device and Connect provider. The title and close stay put, the step scrolls, and its actions stay at the bottom edge.
  • Header: the channel tile sits inline with the title, and the guide link stays in the description.
  • Failure: a failed start uses the danger callout, and its Close-only footer goes away because the close button does the same thing.
  • Options: neutral rows with a real check icon on the selected ones. Tinted borders are gone.
  • QR: a flat white frame that can't shrink or be clipped by the scrolling step.

User Impact

Continue is always reachable on long setup steps, closing works the same on every step, and the dialog matches the rest of Settings. No step or capability changes.

Evidence

Real clicks through Slack setup on a real local Gateway with isolated state and no credentials. Land after Pair device #191337 and Connect provider #191367. All three carry the same .oc-dialog block, so the rebase is clean.

Before After
390, long step
1440, instructions
390, choice

Absolutely dark, 1440:

CRT light, 390:

Checks on the branch: oxfmt, stylelint, oxlint, tsgo:ui, ui:check-performance:base, pages/channels and wizard control unit tests (153), and channel e2e files (13) pass. The WhatsApp QR step needs a real link session, so it wasn't reached in a browser here; its size and frame come from CSS only.

A step with a preselected choice had no visible way forward: you had to open the select and tap the current option. Picker steps now have Continue, and choosing only moves the selection. Real Slack setup on the Gateway, walked by pressing Continue only:

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR gives channel setup a shared dialog layout with a fixed header, reachable actions, a close button, and updated option and QR styling.

Example: Open Slack setup’s long manifest step at a 390-pixel viewport.

  • Before: The manifest fills the dialog and Continue is below the visible area.
  • After: Continue remains visible beneath the scrolling manifest, alongside a persistent header and close button.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong visual evidence supports the central improvement, but the introduced focus regression needs repair despite green CI.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected screenshots show the changed channel dialog through Slack setup on an isolated real Gateway: the mobile long step retains a visible Continue action, and desktop, choice, dark, and CRT captures show the new header; WhatsApp QR sizing is explicitly source-only.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Long setup steps push Continue out of view on phones, and many steps lack a visible dismissal control.
Reason: The screenshots demonstrate a concrete usability improvement, and the maintainer-authored direction reuses existing setup owners without adding configuration or capabilities.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored PR fixes a demonstrated mobile setup usability problem, but introduces a keyboard-focus accessibility regression.

Priority: P2
Reviewed head: b13cb9991ef49d481dfa561bb938d98c685245ea

Before merge

  • Preserve keyboard focus outlines in forced-colors mode (P2) - With Windows High Contrast or forced-colors emulation enabled, Tab onto a channel multiselect option: this rule removes the global focus outline, while the browser suppresses the replacement box shadow, leaving no visible focus indicator. The newly added .oc-dialog__close:focus-visible rule in modal-dialog.css has the same problem. Retain an outline or add a system-color outline in forced-colors mode for both selectors, following the existing repair in components.css and its forced-colors browser suite. MDN documents shadow suppression in this mode.

Findings

  • [P2] Preserve keyboard focus outlines in forced-colors mode — ui/src/styles/channels.css:283-285

Tests

  • Missing end-to-end proof: The retained tests do not show a red-on-base layout regression or exercise the new controls’ keyboard focus in forced-colors mode.
Agent review details

How this fits together

The Control UI renders Gateway wizard steps and submits answers through the existing channel wizard host; this PR changes their presentation without changing the setup protocol.

flowchart TD
  A[Channels settings] --> B[Native modal dialog]
  B --> C[Wizard step controls]
  C --> D[Channel wizard host]
  D --> E[Gateway wizard protocol]
  E --> F[Shared channel setup flow]
  E --> C
Loading

Technical review

Best possible solution:

Keep the shared dialog layout and restore forced-colors focus outlines for its close button and multiselect options.

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

Current-main source and supplied before screenshots establish whole-dialog scrolling; source inspection also establishes the introduced shadow-only focus path, without executing target code.

Is this the best way to solve the issue?

The simplification review found no unnecessary state or wrappers, and the change preserves native forms and the existing wizard lifecycle.

Full review comments:

  • [P2] Preserve keyboard focus outlines in forced-colors mode — ui/src/styles/channels.css:283-285
    With Windows High Contrast or forced-colors emulation enabled, Tab onto a channel multiselect option: this rule removes the global focus outline, while the browser suppresses the replacement box shadow, leaving no visible focus indicator. The newly added .oc-dialog__close:focus-visible rule in modal-dialog.css has the same problem. Retain an outline or add a system-color outline in forced-colors mode for both selectors, following the existing repair in components.css and its forced-colors browser suite. MDN documents shadow suppression in this mode.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7fd2b43e6036.

Provenance checked

  • Channel wizard scrolling and header changes intended behavior with a stated reason (e3c5821: The guided Channels redesign added a generic setup modal over the shared Gateway wizard; this PR explains replacing whole-panel scrolling to keep navigation and actions reachable.)
  • Documentation entry point keeps the original intent (d7fa079: One concise inline documentation link replaced duplicate static helper links; the new header preserves that contract.)
  • Shared wizard controls and busy behavior keeps the original intent (0a32b78: Shared Solid controls preserve caller-owned drafts, answers, validation, cancellation, and native forms; replacing checkbox glyphs leaves those responsibilities intact.)
  • Native modal styling ownership keeps the original intent (1adb204: The native modal stylesheet owns completion-row layout and available-height constraints; the shared layout extends that owner rather than introducing another lifecycle.)
  • Dialog surface tokens keeps the original intent (7eb8696: The earlier surface standardization made the native dialog own radius, surface, padding, title sizing, and close sizing; the new layout consumes those tokens.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/styles/forced-colors-indicators.browser.test.ts --maxWorkers=1
  • pnpm --dir ui test src/pages/channels/wizard-view.busy.test.tsx src/components/wizard-step-controls.test.tsx --maxWorkers=1
  • pnpm lint:ui:styles
  • pnpm tsgo:ui
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 7eb8696 adds ui/src/components/solid/modal-dialog.css:94 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7eb8696d22cb; files: ui/src/components/solid/modal-dialog.css)

PR surface

Source +73, Tests +2. Total +75 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 179 106 +73
Tests 1 3 1 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 182 107 +75

Labels

Label changes:

  • add P2: The PR improves mobile channel setup but introduces a focused accessibility defect for keyboard users in forced-colors mode.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The PR improves mobile channel setup but introduces a focused accessibility defect for keyboard users in forced-colors mode.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 2, 2026, 1:48 PM ET / 18:48 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 4285c6c into main Nov 3, 2026
15 of 16 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/channel-setup-dialog branch November 3, 2026 14:11
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…penclaw#191385)

Give picker steps in setup a Continue button, including preselected choices, and use the shared dialog layout.

The existing Telegram setup E2E now confirms the account selection through Continue while preserving request, busy-state, and final answer assertions. Shared dialog integration retains header actions and existing channel close/save behavior.

Validation: 19 wizard tests, the previously failing Telegram setup E2E, and UI typecheck passed. Full CI remains pending under the authorized batch landing policy.
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant