Repository navigation
feat(ui): refresh welcome mode and workspace selection - #3607
Merged
Merged
Conversation
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.
Summary
Refresh the empty-chat welcome panel with an inline four-mode selector and a workspace picker in the greeting. Keep the caption mounted during expansion, adapt the selector to the available pane width, and use the assistant avatar for Claw sessions.
The welcome panel and composer share draft workspace selection. Choosing a different workspace from an existing empty session opens a fresh draft without changing the original session's owner. Also tighten composer spacing, show folder icons and localized mode labels, simplify the usage empty state, and add a reusable cloud Git branch icon.
Type and Areas
Type: UI/UX, bug fix
Areas: Web UI, shared design-system icons, generated MiniApp chat styles, en-US / zh-CN / zh-TW copy.
Motivation / Impact
Make mode and project selection available where a conversation starts, preserve keyboard and reduced-motion behavior, and avoid duplicate workspace or usage copy in compact views. The welcome panel no longer subscribes to Git status just to render the greeting.
Verification
Passed locally before the clean rebase onto current
main:pnpm run check:web— type checking, Appearance contracts, typography, theme color and visual governance.pnpm run i18n:audit— zero warnings.pnpm run motion:audit— inventory reviewed; the selector includes reduced-motion styles.pnpm --dir src/web-ui run icons:check.node scripts/generate-miniapp-chat-styles.mjs --check.node --test scripts/generate-miniapp-chat-styles.test.mjs— 1 passed.node --test design-system/packages/ui/tests/icon.test.mjs design-system/packages/ui/tests/icon-slots.test.mjs— 19 passed.Passed after rebase:
git diff origin/main...HEAD --check.node scripts/check-git-object-sizes.mjs --base origin/main --head HEAD— 26 blobs checked.Reviewer Notes
AI-assisted; tested with focused package, DOM, store and contract checks. Full CI must pass before merge. No computer-use or browser verification/screenshots were performed, per the user's instruction.
Remote coverage: DOM/store fixtures exercise simulated Peer surface changes and stale-operation fences. No live SSH remote workspace, relay remote control, Peer Device or Detached Dispatch scenario was exercised. Workspace selection reuses existing draft/navigation services and surface fences; no persisted shape or wire protocol changes are introduced.
Checklist