Repository navigation
Seed v3 Colophon design system for OpenClaw Windows Hub - #1395
Conversation
Carry over the v1 design.json tokens/brand/authority and principles.md verbatim, port all 9 components (Button, Field, Card, Badge, ComposerPicker, ChatBubble, ChatComposer, ChatThread, ExampleScreen) from raw-CSS attrs.style to v3 Auto Layout with token-bound layout/appearance, and add a v3 colophon.jsonc presentation profile. Adds the idempotent Colophon pointer block to AGENTS.md. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 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. Reviewed October 5, 2026, 2:06 AM ET / 06:06 UTC (Revision 24). ClawSweeper reviewWhat this changesAdds a Fluent design guide, 34 preview components, three catalog pages, a Colophon presentation profile, and instructions for future Windows UI work. Merge readiness⛔ Needs changes before merge - 12 items remain This remains a distinct, collaborator-authored contribution. The latest commit fixes the chat documentation link and adds supported catalog pages, but eleven previously reported preview and guidance defects remain. Priority: P2 Review scores
Verification
How this fits togetherThe design catalog translates shipping Windows controls into reusable tokens and Colophon previews. Agents consume this guidance when implementing native WinUI and Reactor surfaces. flowchart LR
A[Shipping Windows controls] --> B[Design guide and tokens]
B --> C[Component catalog]
C --> D[Colophon preview]
B --> E[Agent UI guidance]
E --> F[Native UI implementation]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Maintain a catalog derived from shipping native controls, with supported Colophon interactions, accurate tooling guidance, and verified preview appearance. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the proposed preview failures through Colophon's selection and styling owners; no live current-head canvas reproduction was executed. Is this the best way to solve the issue? No, the current catalog still contains unsupported interactions and inaccurate implementation guidance; repairing these files preserves the useful contribution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7127c16d537c. LabelsLabel changes: No label changes. Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (23 earlier review cycles; latest 8 shown)
|
ComposerPicker now follows the Fluent ComboBox pattern (bordered control fill + hairline border, ink value, right-aligned muted chevron). ChatComposer and ChatThread are realigned to the actual ReactorChatComposer/ReactorChatTimeline implementation: - ChatComposer toolbar: adds session picker, speaker, and settings; notes the Send<->Stop toggle; binds ControlFill/ControlStroke (control/controlLine) instead of Card resources; 12px outer margin. - ChatThread/ChatBubble: user bubble uses the softer accentSubtle (AccentFillColorSecondaryBrush) with a hover Copy; assistant bubble uses subtleHover fill + controlLine border, adds Read aloud, and max-width 720. Adds 3 tokens the system did not cover: control (ControlFillColorDefaultBrush), controlLine (ControlStrokeColorDefaultBrush), accentSubtle (AccentFillColorSecondaryBrush). Preview hex only; code binds the resource keys. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
…AppCli Reactor port of the design system's ComposerPicker into the shipping composer: ReactorChatComposer.PickerButton now renders a bordered Fluent ComboBox (ControlFill fill, ControlStroke hairline border, primary-text value, right-aligned muted chevron pinned by a Star/Auto grid, radius 4, MinWidth 64, padding 12/8) instead of a borderless subtle button. Session/model/reasoning selection still opens the existing MenuFlyout of RadioMenuItems. design.json: add a winapp (WinAppCli, https://github.com/microsoft/WinAppCli) tooling reference to authority and a toolingSource on both the default WinUI 3 port and the Reactor chat override, since XAML and Reactor now build/package through winapp. Update the composer chevron contract test to assert the ComboBox styling. Remove em dashes from the Colophon pointer block in AGENTS.md so the repo doc validator (no em dashes in user-facing docs) passes. Validation: build.ps1 OK; OpenClaw.Shared.Tests 3989 passed; OpenClaw.Tray.Tests 2897 passed; design-system validators (componentsio/profileio/validateDesignDir) OK; rubber-duck review clean. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
The bordered Fluent ComboBox port regressed the composer's session/model/reasoning selectors. Restore the subtle inline dropdown the surface is meant to ship: ReactorChatComposer.PickerButton goes back to a borderless, transparent button (SubtleFillColorTransparent resting, subtle hover/press, muted value + trailing chevron with a small right/up offset). Update the design system's ComposerPicker to the same subtle pattern (transparent fill, no border, muted text/chevron, gap/padding tokens 1/2) and rename the contract test to ReactorComposer_StylesPickersAsSubtleDropdown. The WinAppCli port authority (design.json) is unchanged. Validation: build.ps1 OK; OpenClaw.Shared.Tests 3989 passed; OpenClaw.Tray.Tests 2897 passed; design-system validators OK. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
This PR is design-system seeding only. Restore src/OpenClaw.Tray.WinUI/Chat/ReactorChatComposer.cs and tests/OpenClaw.Tray.Tests/ChatTimelinePresentationTests.cs to their main state, removing the composer picker code port entirely. The design system (.agents/design/*) still describes the subtle inline dropdown that the app actually ships, and design.json keeps the WinAppCli port authority. No production code or tests are changed by this PR. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Update the ChatComposer sample values and placeholder to mirror the real Reactor composer (Message Assistant placeholder; Main session / Claude Sonnet 5 / Default pickers), and note that a picker with a single option (the session picker with one session) renders disabled so its label reads lighter than its enabled neighbours. Design data only; no code or token changes. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
The ComposerPicker and the chat icon/send/copy buttons rendered with the browser default button bevel in the Colophon preview because they were the only authored el:button nodes without the canonical ds-btn reset class (border: 1px solid transparent). Adding it drops the retro OS chrome so the subtle borderless pickers render as intended; inline appearance still drives radius, color, and the Send accent fill. Design-only, no production changes. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
The composer pickers and toolbar icon buttons ship as WinUI subtle DropDownButtons / transparent Buttons (SubtleFillColorTransparent rest, SubtleFillColorSecondary hover, SubtleFillColorTertiary press, ControlCornerRadius, TextFillColorSecondary glyph) - verified against the canonical ReactorChatComposer PickerButton and WinUI Fluent resources. In the web preview these were rendering as native <button>s (browser chrome plus the ds-btn web button weight), which read as Fluent-web rather than Fluent-Windows. Represent them as role-annotated elements so the transparent WinUI rest state shows cleanly; only the filled primary Send stays a real button. Notes now name the WinUI control and resource ladder explicitly. Design-only, no production or test changes. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
The composer message input was a raw <textarea>, so the preview showed the browser's default field border. The design intent is a borderless, transparent WinUI TextBox (the hairline border belongs to the outer control panel, not the input). Render it as a borderless contenteditable textbox (role=textbox) showing the muted placeholder, so no field border shows in any theme, while keeping it typeable. Design-only, no production or test changes. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Clicking the composer input showed the browser's :focus outline ring, a web-Fluent artifact that only appeared because contenteditable made the div focusable. A Windows Fluent TextBox has no such ring. Render the preview input as a non-focusable role=textbox div (drop contenteditable) so no focus outline shows on click, keeping the static borderless rest-state representation. The real focus cue (accent underline) ships on port. Design-only. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Interactive editability is the point of the web preview, so keep the composer input contenteditable (typeable). The browser's :focus outline ring that shows on click is a web-Fluent artifact the static renderer cannot suppress from design-only JSON (appearance has no outline key; raw style attrs are rejected). Document that caveat and route the fix (suppress web outline / show a Windows accent-underline focus cue) to the Colophon extension, tracked in karkarl/colophon#14. Design-only. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
…ickers Re-express the chat composer's borderless input, subtle picker/icon buttons, and picker flyout using the schema-pure interaction keys (control/states/on) from the colophon #16 components schema, replacing the earlier focus-ring-routing workaround. No raw CSS; all tokens bind to design.json. - ComposerPicker root is now a real transparent button: control.chrome none removes the web button border, control.focus supplies the Windows accent focus rectangle, and states carry WinUI subtleHover/subtlePressed plus a disabled shade. on.click opens a representative single-select ComposerPickerOptions flyout (targets take no props). - New ComposerPickerOptions component: WinUI RadioMenuItem-style flyout on a surface sheet with md radius/shadow. - chat-composer-input renders borderless and typeable with an accent underline on focus (control.chrome none + control.focus underline), dropping the web focus ring. - The four subtle icon buttons (add context, dictate, read aloud, chat settings) become real buttons with transparent rest state and WinUI hover/pressed/hoverPressed states. - Notes refreshed to describe the real button + control model and drop the obsolete combobox-div and web-ring caveats. Design-only: no production or test files touched. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Replace the radio-dot selection indicator in ComposerPickerOptions with a reserved leading glyph column that renders an accent checkmark on the selected row, matching WinUI RadioMenuItem selection. Preserves menuitemradio/aria-checked semantics. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Use the Fluent icon CheckMark (U+E73E) in the Segoe Fluent Icons font for the selected ComposerPickerOptions row instead of a generic Unicode check, matching WinUI menu selection glyphs. Document the icon font as an 'icon' typography family (SymbolThemeFontFamily provenance); the glyph keeps its accent color token-bound and applies the icon font via a font-family-only raw style, since the token appearance.fontFamily is capped to display/body/mono. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Re-express the v3 seed in Colophon's new DESIGN.md format (karkarl/colophon#20): - Add root DESIGN.md carrying every token, Fluent `resource` mapping, the `authority` port targets (WinUI 3 default + Reactor chat override + winapp tooling, owner, sync process), per-color dark/high-contrast themes, and the OpenClaw principles prose (voice, hierarchy, do/don't, anti-references). - Remove legacy .agents/design/design.json and .agents/design/principles.md; loadDesign now errors if both DESIGN.md and design.json coexist. - Keep .agents/design/components.jsonc and colophon.jsonc unchanged. - Repoint the AGENTS.md Colophon block at DESIGN.md. Validated with the colophon validate.mjs CLI at commit cca8a71: design system is valid. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
…olicy CI user-facing documentation check forbids em dashes. Replace them in the DESIGN.md front matter token descriptions and the managed AGENTS.md Colophon block with commas, periods, and parentheses. Front-matter edits stay YAML-safe (no colon-space introduced into plain scalars); colophon validate still passes. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Add token-bound row hover and pressed fills with rounded corners. Keep selection stable and replace the checkmark's overriding inline style with semantic typography. Document the existing high-contrast preview limitation. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
I have cycles again and am auditing the existing components. It will be ready to land in 1-2 days. |
Add instance-local ToggleSwitch interactions and native motion. Reconcile WorkspaceShell artwork, pane and button geometry, identity footer, and disconnected content with production. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Organize shared controls and feature previews, reuse accent badge and normal button variations, and align setup backplates and interactions with their documented native resources. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Checkpoint passive iconless settings rows, shared geometry, full-header disclosure and a content-only Settings shell. Restore the Fluent chevron slot and add the notification flyout presenter backplate with token-bound shadow and preview clearance. Disclosure remains immediate with a fixed chevron. Native animation support is handed off to Colophon upstream; current-source browser and native visual proof remain uncollected. Application code and the installed plugin are unchanged. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Preserve native presenter/card alpha, authored spacing, Fluent glyphs and the supplied empty-state reference. Document browser rendering limits without claiming native pixel identity. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3
Preserve current upstream agent guidance and the existing Colophon pointer block. No design artifacts were changed by the conflict resolution. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ac8d03a2-7198-43dc-8506-709986d6e1d3

What Problem This Solves
Gives contributors a versioned Fluent design reference that follows OpenClaw's shipping Windows controls instead of generic web approximations.
User Impact
User impact: contributors can inspect 39 reusable control and composition examples across Components, Setup, Chat, and Settings. This is design data and documentation only; shipping application behavior is unchanged.
Browser examples are not a verified pixel-identical native renderer. Native high contrast, acrylic, font/shadow rasterization, and expander animation remain explicitly unproven or unsupported.
Why This Change Was Made
Root
DESIGN.mdowns tokens, resource mappings, production authority, and rationale..agents/design/components.jsoncuses the v3 semantic graph, shared controls, and stable node IDs;colophon.jsoncsupplies the presentation profile. The managedAGENTS.mdpointer makes the design discoverable without requiring the plugin.Shipping WinUI 3 and Reactor implementations remain canonical. Colors bind named Fluent resources in production; preview swatches are not shipping constants. The catalog retains exact authored padding where established, native glyphs, alpha-preserving surfaces, and documented renderer limitations rather than inventing native parity.
Current examples include the shared interactive ToggleSwitch, immediate HTML expander disclosure, the content-only Settings shell, Reactor chat geometry, workspace chrome, and separate populated/empty notification presenters with native resource and spacing mappings. The installed Colophon plugin is unchanged.
Evidence
Current published head:
2b02fa90647c5f1f8d50493fc79b7d2df160b996.Reference files are not substitutes for current-head catalog proof: supplied native notification image and historical chat comparison.
Change Type
Scope
winnodeDesign references cover those UI surfaces, but no shipping UI, application code, tests, build files, or installed-plugin files are modified. The branch changes only
DESIGN.md,.agents/design/, and the managedAGENTS.mdpointer.Required proof pools
none: design-data/documentation-only changes do not alter shipping WinUI, MCP, node, setup, pairing, or gateway behavior. Planned headless catalog screenshots are browser resource simulations, notwindows-winui-interactiveproof. The shared-host browser admission requirement remains a separate outstanding prerequisite.Validation
node <session-files>\notification-design-diagnostic-20261020-g\verify-notification-design.mjs --static-onlynode <session-files>\catalog-design-diagnostic-20261021-a\verify-catalog-design.mjs --static-onlynode --check <file>for all three catalog.mjsinputsnode <session-files>\catalog-design-diagnostic-20261021-a\verify-catalog-design.mjswith its grant variable absent.\scripts\validate-docs.ps1git diff --checkandgit diff --cached --checkbefore commitgit diff origin/main...HEAD --stat.\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore<session-files>denotes local proof artifacts, not files committed in this PR. Source bindings: DESIGN65E0BA9E, components56D566D7, supplied notification image5A7642AF, native notification XAMLB370AFDF(SHA-256 prefixes).Automated text review was attempted against a byte-matched, explicitly text-only snapshot with the reference image separately inspected. Codex failed with HTTP401 before returning a verdict. No successful automated review is claimed.
Real Behavior Proof
2b02fa90647c5f1f8d50493fc79b7d2df160b996.PASS: 39 unique definitions x 3 themes = 117 named captures; PNG shape controls. No browser started.This establishes preparation only, not rendered behavior.Yes/No/N/A) No for the requested current-head catalog screenshots; none have been produced.Security Impact
Yes/No) No.Yes/No) No.Yes/No) No shipping network changes.Yes/No) No.Yes/No) No.Yes, explain the risk and mitigation: N/A.Compatibility and Migration
Yes/No) Yes for shipping application behavior; this is a standalone design seed rather than an application migration.Yes/No) No application configuration changes. The optional catalog uses Colophon's v3 graph and its persistent-state/geometry-transition support.Yes/No) No application migration. The unmerged earlier seed is not a prerequisite; this branch uses rootDESIGN.md, not the obsolete legacydesign.json/principles.mdlayout.Review Conversations