Repository navigation
improve(ui): align window chrome, Settings, Usage and chat composer with the Fluent design system - #2131
Conversation
|
🦞👀 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 unifies native window chrome, Settings cards, Usage rows, and chat composer controls around the Fluent design system. Example: Open the chat composer’s model picker.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep this maintainer-authored draft open: the redesign contains distinct work, but speech setup now requires enabling agent access, and four acknowledged source-contract failures remain. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe WinUI presentation layer renders existing settings and Gateway snapshots, then forwards user actions to the existing controllers and services. flowchart LR
A[Settings and Gateway snapshots] --> B[Existing controllers]
B --> C[WinUI and Reactor views]
D[Shared Fluent presentation] --> C
C --> E[Native controls]
E --> F[User actions]
F --> B
Technical reviewBest possible solution: Keep the shared Fluent presentation changes, preserve speech configuration independently of agent permissions, and reconcile the affected contracts. Do we have a high-confidence way to reproduce the issue? Source establishes that NodeSttEnabled=false or NodeTtsEnabled=false disables the corresponding configuration container, and the four obsolete source assertions deterministically reject the changed markup; no target code was executed. Is this the best way to solve the issue? Reusing existing controllers with shared presentation adapters fits the authorized redesign, but making configuration depend on agent access exceeds its stated presentation scope. 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: unit tests only. 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. Review metrics
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 Reviewed November 12, 2026, 6:02 PM ET / 23:02 UTC. |
7fcbc88 to
788a479
Compare
788a479 to
bfff298
Compare
…ith the Fluent design system - Full-bleed native title bar with a resizable sidebar, unified page headings and a constant 56 DIP page inset, with the Mica content layer on pinned pages. - Settings, Sandbox, Permissions, Usage and Systems pages use connected Toolkit SettingsCard groups (new SettingsCardGroup attached property) with one spacing scale. - Owner identity badge, sidebar footer and chat composer follow the Colophon definitions, with one combined model and effort picker beside the context ring. - Name the Toolkit SettingsExpander disclosure buttons (Sandbox, Notifications and Systems rows), add the PageAction_Refresh resources in every locale and give the Systems Online tile and WorkspaceTitleBar accessible names. - Colophon (DESIGN.md and components.jsonc) and docs updated in step. Tests updated for the replaced designs. Co-authored-by: Copilot App <[email protected]>
bfff298 to
0a6ddfc
Compare
Resolves conflicts with openclaw#2173 (session dashboard tab beside chat), openclaw#2176, openclaw#2175, openclaw#2116 and openclaw#2172: - ReactorBoardView: embedded board keeps main's compact 12/0 padding, standalone pages keep the shared PageResponsiveLayout PaddingTop/PaddingBottom. - Resources.resw (all 6 locales): keep this PR's PageAction_Refresh keys and main's Chat_Panel_Dashboard. - TestTimingPatternBaseline.json: main's counts, then lowered for this branch. Co-authored-by: Copilot App <[email protected]>
Resolve conflicts with Fluent typography (openclaw#2131): selectable image and HTML placeholders, wrapped list markers and disclosure summaries use the shared body size and font family. Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
The native Windows app's surfaces had drifted apart: Settings, Usage and Connection pages mixed hand-built cards with Toolkit rows at different spacings, the title bar was a separate branded row, pinned pages lacked the Mica content layer that Home chat has, and the chat composer's model, effort and context controls were scattered.
User Impact
User impact: Window chrome, Settings pages, Usage sessions and the chat composer now follow one Fluent layout. The title bar is full-bleed with a resizable sidebar, pinned pages show the same Mica plus content layer as Home chat, related settings sit in connected card groups, and the composer has a single model and effort picker with the context ring beside it. No setting, Gateway contract or stored data changes. Sessions and Automations keep the Reactor pages already on
main.Visible behavior changes to review:
Why This Change Was Made
The pages are rebuilt on the design contract in
DESIGN.mdand.agents/design/components.jsonc(Colophon), using Toolkit SettingsCard rows. A newSettingsCardGroupattached property joins related rows into one frame, with dividers and first/last corner rounding that follow row visibility. Colophon gained the matching definitions (57 total, including main's three lobster definitions: CountedSectionHeader, SectionTitle, ItemExpanderCard, ItemNavigationCard, SubtleExpander, InlineToggleFilter and others), and the docs were updated in step. Toolkit expanders whose Header is an element now name their disclosure button explicitly (SettingsExpanderAutomation.NameDisclosure), so assistive technology does not read an unnamed button.Evidence
Captured from the rebased app against the synthetic fixture Gateway (Windows ARM64 Debug,
GatewayFixtureHost, one page per capture, Normal window state). The screenshots were taken at092e1c61; later commits change accessibility names, tests andDESIGN.mdonly.Hanselman dual-model review (
claude-opus-5.5andgpt-6-astrawithlong_context, both reasoning effort high, run by therubber-duckagent):206b2851(base64c96ac9). Fixed: missingPageAction_Refreshresources, tests asserting replaced layouts, unnamed disclosure buttons on Toolkit expanders with an element Header, the renamed model picker in a fixture test, a translucent brush in a contrast test, the unnamedWorkspaceTitleBar, andSettingsCardGroupcallbacks that kept the group alive (now aWeakReference).092e1c61(basec7b75ded), after the rebase. Both models found the duplicatetypography.captionStrongkey that the rebase left inDESIGN.md(HIGH, fixed). Opus also found that Connection saved-gateway rows had the same unnamed disclosure button (fixed with the shared helper), a Systems test that only checked for a non-empty name (now compares to the row name), a hardcoded English separator in the Systems Online tile name, and no test for the title bar name (added).main), so the final delta has not had a third review pass. It is limited to the findings above, the CI-found fixes listed under Validation, and theDESIGN.mdkey.CI results are listed under Validation.
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: window chrome, Settings, Usage and composer visuals changed. Current-head visual and accessibility proof in the isolated app is still needed beyond the fixture captures above.Validation
Run on Windows ARM64 (
win-arm64, Debug) in the task-owned worktree, then on GitHub Actions:./build.ps1 -NoTrustRepository: all five builds succeeded on the final headccfe57fe.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj: 5863 passed, 0 failed, 28 skipped (this PR changes no Shared sources).dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj: 6486 passed, 0 failed, 0 skipped on the final merged tree (ccfe57fe)../scripts/validate-test-timing-patterns.ps1: passed after replacing fixed settles in the new reasoning and model menu tests with observable waits and lowering the baselines../scripts/validate-docs.ps1(run bybuild.ps1): passed;components.jsonchas 57 unique definitions (Components 18, Setup 7, Chat 13, Settings 19),DESIGN.mdhas no duplicate keys and all six.reswlocales carry the same 4372 keys.7fcbc880.mainthen moved 13 commits and the branch was rebased to788a4796(one conflict, the test timing baseline, resolved by taking main's file and lowering it). Run 43456809138 on788a4796was also green, including CI Gate.mainthen added improve(chat): show pending attachments as compact pills #2150 (compact attachment pills) and the branch was rebased tobfff2986. That rebase had two code conflicts, both in the chat composer:ChatVisuals.cs(kept main's attachment constants and this PR's 12 DIPComposerBottomInset) andReactorChatComposer.cs(kept main's attachment pill code and dropped theEffortIconButtonthat this PR's combined model and effort picker replaces).mainthen added feat: add an animated desktop lobster with notification bubbles #1681 (animated desktop lobster) and the branch was rebased to0a6ddfca. That rebase had two conflicts.DESIGN.mdtook the combined definition count (57, with Chat 13 including main's three lobster definitions). InReactorChatComposer.csthe writing surface keeps main's compact lobster layout (4 DIP gap, 8 DIP padding) and this PR's non-compact spacing (8 DIP gap, 12 DIP top and 8 DIP bottom padding). The CI run on0a6ddfcapassed everything except one unrelated failure:DesktopCompanionWindowTests.Notification_UsesExistingMascot_ShowsLiteralText_AndDismissesLocally(the lobster test from feat: add an animated desktop lobster with notification bubbles #1681, whichmain's own CI failed the same way onfbc02870), and only that job was rerun.mainthen added six more commits (feat(chat): show the session dashboard as a tab beside chat #2173 session dashboard tab beside chat, fix: collapsing the sidebar can crash Companion after sessions or pinned pages change #2172, fix(tests): Usage scroll proof fails when the page title briefly leaves UI Automation after a resize #2175, fix(tests): Automations hero wash check fails when the window is maximized between measuring the page and the hero #2176, test(dashboards): widget boundary timeouts do not say whether WebView2 or the ticket fetch stalled #2177 and test(ui): stop re-looking up UI Automation elements after a successful wait #2116), somainwas merged into the branch asccfe57ferather than rebased. That merge had eight conflicts:ReactorBoardView.cs(the board embedded beside chat keeps main's compact 12 top and 0 bottom padding, standalone pages keep this PR's sharedPaddingTopandPaddingBottom), the sixResources.reswfiles (kept this PR'sPageAction_Refreshkeys and main'sChat_Panel_Dashboard) and the timing baseline (main's counts, then lowered). The CI run onccfe57fehas started and had not finished when this was written. The earlier runs covered Core and CLI, Tray and setup, the Tray UI shard, UI/functional/accessibility, Mock Gateway fixtures, the three WSL E2E jobs and the MSIX jobs.ChatPickerValueTextStylenow usesChatSecondaryTextBrush.IsOpenflips first). It now waits for theClosedevent.SettingsCardGroupTestswaited on the Toolkit default border, which is already true before the group applies. It now waits on the first row's border.SettingsExpanderAutomation.NameDisclosure, also used by Systems).SetupWindowMinimumSizeTests.MinimumViewport_KeepsNativeInstallAndCapabilitiesReachable, failed once on an earlier head and onmain's own run forc7b75ded. This PR does not touch the setup window. It passed on rerun.Page_PassesAccessibilityScanforDashboardsPageis intermittent locally with[ButtonShouldHavePatterns]on the WinUISplitViewLightDismisslayer (offscreen, empty rectangle) but passed in every CI run of this PR.GatewayFixtureUiTests.SessionsRows_ArrowNavigationEntersLaterRowActions(a keyboard-proof test) looks for a button named "Open in chat" whilemainnames it "Open {title} in chat"; neither the Sessions sources nor that test differ frommain, and I did not change it.Real Behavior Proof
win-arm64Debug build), isolated app profile,GatewayFixtureHostsynthetic Gateway (multi-session-browse,dashboards,usage-analytics,systems-inventoryscenarios), plus GitHub Actions Windows Server 2025 runners for the UI suites.092e1c61; build, Shared and Tray unit tests on the final headccfe57fe; the last completed green CI run is on the earlier head788a4796, and the run forccfe57feis pending. Later commits change accessibility names, one text brush, tests andDESIGN.md, not the captured layouts../build.ps1 -NoTrustRepository, then the fixture host with--app src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-arm64\OpenClaw.Tray.WinUI.exe --scenario <name> --theme Light|Dark, navigating withapp.navigateand capturing the window (PrintWindow) for each page.UsagePageRoot.Top == WorkspaceTitleBar.Bottom(the 56 DIP pinned-page inset), and the green CI run above.Yes/No/N/A)Yes(all 14 raw URLs return HTTP 200).windows-winui-interactivepool and live Gateway pairing were not run. Narrow-host layouts were not re-proved. The Clipboard popup options are not checked on hosts where the sandbox is unsupported.Security Impact
Yes/No)NoYes/No)NoYes/No)NoYes/No)NoYes/No)NoYes, explain the risk and mitigation: N/ACompatibility and Migration
Yes/No)YesYes/No)NoYes/No)NoReview Conversations