Skip to content

feat(ui): refresh welcome mode and workspace selection - #3607

Merged
GCWing merged 2 commits into
mainfrom
gcwing/welcome-panel-selection-20261029
Oct 29, 2026
Merged

GCWing merged 2 commits into
mainfrom
gcwing/welcome-panel-selection-20261029

Conversation

@GCWing

@GCWing GCWing commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

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.
  • The following focused Web UI run — 17 files, 324 tests passed:
pnpm --dir src/web-ui run test:run \
  src/flow_chat/components/WelcomePanel.test.tsx \
  src/flow_chat/components/HarnessProfileSelector.test.tsx \
  src/flow_chat/components/ChatInputWorkspaceStrip.test.tsx \
  src/flow_chat/components/ChatInputWorkspaceStripLayout.test.ts \
  src/flow_chat/components/usage/SessionUsageComponents.test.tsx \
  src/flow_chat/components/overlayClippingContract.test.ts \
  src/infrastructure/appearance/registry/AppearanceRegistry.test.ts \
  src/shared/ui/MenuComposition.contract.test.ts \
  src/infrastructure/design-system/IconUsageIntegration.test.tsx \
  src/app/startup/startupPreload.test.ts \
  src/app/services/sessionSceneLifecycle.test.ts \
  src/flow_chat/services/sessionActivation.test.ts \
  src/flow_chat/services/storeSync.test.ts \
  src/app/stores/sceneStore.test.ts \
  src/flow_chat/hooks/useChatInputModeSync.test.tsx \
  src/flow_chat/hooks/useSessionModeSelection.test.tsx \
  src/flow_chat/utils/chatInputMode.test.ts

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

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

@GCWing
GCWing merged commit d67ebd3 into main Oct 29, 2026
13 checks passed
@GCWing
GCWing deleted the gcwing/welcome-panel-selection-20261029 branch November 6, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant