Repository navigation
improve(setup): restyle the setup wizard with the two-pane companion design - #2127
Conversation
…design Restyle every setup page to match the new Figma design without changing the pages, their order or their behavior: a left companion pane (speech bubble, mascot, glow) above a four-step progress timeline, and row-based pages with left-aligned titles and right-aligned actions. Setup styles live in a scoped SetupResources dictionary. The window opens at 1120x720 with a 960x640 minimum, both capped at the work area. Animations follow the Windows animation setting and high contrast uses system colors. The ready screen describes the verified Gateway by route. New copy is translated in all six locales, and tests and design docs are updated for the new structure. Co-authored-by: Copilot App <[email protected]>
…ne-shell # Conflicts: # DESIGN.md # src/OpenClaw.Tray.WinUI/Strings/en-us/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/fr-fr/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/nl-nl/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/pt-br/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/zh-cn/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/zh-tw/Resources.resw
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR restyles onboarding with a companion pane, four-step timeline, shared presentation resources, and route-specific Gateway summaries. Example: A user opens first-run setup.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep open: this collaborator-authored redesign has clear value and fixes both earlier findings, but a native-footer overflow and two UI-test regressions remain. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherSetupWindow hosts the existing onboarding pages and setup operations; the new controls project their route, progress, and verified Gateway information into native WinUI presentation. flowchart LR
A[User choices] --> B[SetupWindow]
B --> C[Existing setup pages]
C --> D[Setup and verification owners]
D --> E[Verified Ready window]
B --> F[Companion and timeline]
E --> F
Technical reviewBest possible solution: Reuse SetupFooterPanel for native installer actions, update the affected UI-test contracts, and preserve the existing setup and readiness owners. Do we have a high-confidence way to reproduce the issue? Source establishes the fixed native-footer width and both stale test expectations; no native reproduction was run during this read-only review. Is this the best way to solve the issue? The presentation redesign preserves the existing flow owners, but its adaptive layout must cover native installation and its tests must reflect the shipped control and sizing contracts. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 64c96ac92d10. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 12, 2026, 6:10 PM ET / 23:10 UTC (Revision 2). |
Both setup footer button styles now share SetupFooterButtonMinWidth (180), so paired Back and Next actions are the same size. The footer keeps its 8px spacing. Co-authored-by: Copilot App <[email protected]>
Setup footers now use SetupFooterPanel, which keeps actions in one right-aligned row when they fit and stacks them one per row otherwise. Back, Retry and Close on a finishing failure no longer overflow the page column at the minimum or work-area-capped window width. The native install footer uses the shared footer button width, and the onboarding guide describes the current footer. Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: Copilot App <[email protected]>
…p the companion without waiting (#2153) #2127 added seven null-forgiving SetupCompanion.Find(page)! lookups, which the test-timing ratchet rejects. Acquire the companion inside a bounded named wait (OnboardingNativeProof.CompanionAsync) and use that capture. AssertFixedPageChrome and AssertProgress become async and every call site awaits them. All assertions are unchanged and the ratchet baseline is not raised. Co-authored-by: Copilot App <[email protected]>
…e app is busy ChatCopyButton started its 2 s reset timer at the click. When the UI thread stayed busy past that window, the reset ran before the "Copied" or "Copy failed" feedback was ever rendered or announced. Start the window when the feedback reaches the native button, and name the default window. The proof tests now record the button's label transitions instead of sampling the label after a fixed settle that a loaded CI runner stretched past the 2 s timer (the CopyFeedback_MessageAndCodeCapture failure on openclaw#2127). The repeated-click, content, identity and disposal checks use held or short reset windows so each phase can only pass for the behavior it names. Co-authored-by: Copilot App <[email protected]>
…e app is busy (#2138) ChatCopyButton started its 2 s reset timer at the click. When the UI thread stayed busy past that window, the reset ran before the "Copied" or "Copy failed" feedback was ever rendered or announced. Start the window when the feedback reaches the native button, and name the default window. The proof tests now record the button's label transitions instead of sampling the label after a fixed settle that a loaded CI runner stretched past the 2 s timer (the CopyFeedback_MessageAndCodeCapture failure on #2127). The repeated-click, content, identity and disposal checks use held or short reset windows so each phase can only pass for the behavior it names. Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
The first-run setup wizard looks dated next to the new designer mockups and gives no sense of where you are in setup.
User Impact
User impact: setup now uses the new two-pane design. A companion mascot with a speech bubble sits on the left, above a four-step progress timeline (Choose your PC tools, Set up, Connect your AI, Start chatting). Each page is a cleaner row-based layout on the right. The pages, their order, and what each page does are unchanged; this is a visual redesign.
Visible copy changes, in all six languages:
Why This Change Was Made
The redesign follows the Figma frames but keeps every existing page, control, and flow on its original page. Nothing was split into new pages or sub-views. Setup styles live in a scoped
SetupResourcesdictionary merged per page and control, never in app resources.The window opens at 1120×720, never larger than the screen's work area. Its minimum is 960×640, also capped at the work area so small or highly scaled screens still show every button. Animations follow the Windows animation setting, and high contrast drops the glow and tint and uses system colors.
Notable details
SetupCompanion(bubble, mascot, glow, badges),SetupStepTimeline/SetupStepRow(pour, pop and detail-expand animations),SetupGlyphTile,SetupShellLayout(used by the ready window).OnboardingStepPlanmaps the route's internal stages onto the four steps. Steps the route skips render as done but are announced as skipped.SetupReadyGatewayclassifies the verified Gateway from its saved registry record, so the ready screen's Gateway row and steps match the route.SetupPhaseStatusis now a full phase row (title, activity, status) with an accent progress ring while running.InfoBarto row layout keep their screen-reader announcements, on the title text. The welcome safety note keeps its "Before you get started" title.DESIGN.mdand.agents/design/components.jsoncdescribe the new setup tokens and components.SetupProgressIndicatorwas removed.Evidence
Screenshots below are from the current working tree: preview mode for each page (Dark left, Light right), and the UI test harness with a synthetic Gateway for "Set up your AI" and the ready screens.
A dual-model adversarial review (Claude Opus 5.5 and GPT-6 Astra) found eight issues, all fixed and covered by the tests below:
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: every setup page's visual design, theme and accessibility presentation changed.Validation
Run locally on Windows 11 ARM64 at merge commit
8adeae9b(branch merged withorigin/mainat3d5f1427). Every run reported non-zero test counts../build.ps1: all builds succeeded (Shared, Cli, WinNodeCli, SetupEngine, WinUI), documentation validation passed (73 files).dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj: 5,848 passed, 28 skipped, 0 failed.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj: 6,347 passed, 0 failed.dotnet test ./tests/OpenClaw.SetupEngine.Tests/OpenClaw.SetupEngine.Tests.csproj: 2,618 passed, 4 skipped, 0 failed. Includes newSetupReadyGatewayTestsand work-area minimum tests.dotnet test tests/OpenClaw.Tray.UITests -r win-arm64 --filter "(Onboarding|NativeSharedFlow|SetupWindow|StartupWindow|AiReadyPageRendering|LocalAiHardwareProfile|NativeGatewayEligibilityText)&Category!=NativeOnboardingProof&Category!=GatewayFixture&..."): 269 passed, 4 skipped, 0 failed. Includes the newReady_GatewayRowAndStepsFollowHowTheGatewayWasReached(9 cases). One earlier run had 3 intermittent failures (ProviderSecret_UsesOneDialogAndCloseClearsInputs,MinimumWindow_SharedAiAndVerifiedChatRemainsReachableLight/Dark); they passed in isolation and in two later full runs.substdrive with-p:DisableGitVersionTask=true, because this worktree's path exceeds MAX_PATH for the FileWorker payload copy.Real Behavior Proof
2a23706991584d5bcb813f40deda4cd2883667bc, identical in content to this PR's commit.OPENCLAW_SETUP_PREVIEW_PAGE=<page>previews in Dark and Light for every preview page.OPENCLAW_UI_PROOF_DIR.scripts/clean-uninstall.ps1 -All -ConfirmDestructive, launched with./run-app-local.ps1 -NoBuild -UseStoreGatewayand completed through to chat.Security Impact
Yes, explain the risk and mitigation:Compatibility and Migration
Review Conversations