Repository navigation
Standardize onboarding gateway choice on ListView pill selector - #1048
Merged
Merged
Conversation
The Welcome step wrapped two accent-bordered cards in a RadioButtons group while also swapping the card border on selection, so each option showed two selection indicators (radio ellipse + highlighted card). Replace it with a single-select ListView whose built-in Fluent selection pill is the sole indicator, matching the ListView pattern already used by WizardPage. Vertically center the icon tiles so they align with the title/caption block. Delete the now-redundant UpdateCardSelection border-swap logic and its call sites, and enforce an always-one-selected invariant in the SelectionChanged handler (a single-select ListView can otherwise be cleared to no selection). Add AutomationProperties.HelpText for the choice group and harden the WelcomePage contract test to lock in single-select, disabled inner scroll, the wired handler, and absence of the old card chrome. Co-authored-by: Copilot App <[email protected]>
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: Standardize onboarding gateway choice on ListView pill selector This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
6 of 16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
The onboarding Welcome step (gateway choice, step 2 of 6) rendered each option as an accent-bordered card wrapped in a
RadioButtonsgroup, while the code-behindUpdateCardSelection()also swapped the card border to accent on selection. The result was two competing selection indicators on every option: the default radio ellipse plus the highlighted card, which looked wrong.Other onboarding surfaces (for example
WizardPage'sSelectOptions) already use a single-selectListView, whose selected item shows the Fluent "thin vertical accent pill." This PR standardizes the Welcome choice on that same pattern.Changes
RadioButtons+ twoRadioButtoncards with a single-selectListView(GatewayChoiceSelector) containing twoListViewItems. The ListView's built-in selection pill + row highlight is now the sole selection indicator.Borderchrome and delete the redundantUpdateCardSelection()border-swap logic and its call sites (plus an unusedusing).ScrollViewerand disable the ListView's own scroll so the outer scroller owns overflow (mirrorsWizardPage).SelectionChanged(a single-select ListView can otherwise be cleared to no selection via Ctrl+click/automation, leaving the persisted value stale).AutomationProperties.HelpTextfor the choice group.AutomationIds and the existing selection-state wiring.SelectedIndex/SelectionChangedare identical across both controls, so the code-behind's_suppressSelectionWrite/IsWelcomeInstallSelected/SetWelcomeInstallSelectedflow is unchanged.Validation
./build.ps1: all projects build.dotnet test tests/OpenClaw.Shared.Tests: 3170 passed, 31 skipped (unrelated MXC/device-identity integration).dotnet test tests/OpenClaw.Tray.Tests: 1916 passed, including the hardenedSetupWelcomePage_KeepsNavigationOutsideScrollableSemanticChoicescontract test (now asserts single-select, disabled inner scroll, the wired handler, and absence of the old card chrome).Real behavior proof
run-app-local.ps1 -NoBuild -Isolated) and navigated to the Welcome step. The gateway choice now renders as a ListView with the Fluent selection pill on the selected row and a single selection indicator; the icon tiles are vertically centered against the title/caption. Developer-confirmed visually.