Skip to content

feat(ui): unify model settings with shared panel dialogs - #3601

Merged
GCWing merged 2 commits into
mainfrom
gcwing/model-settings-panel-dialogs-20261029
Oct 29, 2026
Merged

GCWing merged 2 commits into
mainfrom
gcwing/model-settings-panel-dialogs-20261029

Conversation

@GCWing

@GCWing GCWing commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Model, subscription, pool, router, and image-service dialogs now share a viewport-safe Panel Dialog preset instead of maintaining separate sizing and header layouts.

  • Add Dialog preset="panel", a leading header-action slot, a fixed-height token, and exit-presentation retention. Document and preview the preset in Design Lab.
  • Add split capsules with content-sized leading controls; combine subscription region selection and sign-in in one capsule.
  • Align model and image-service editor fields and floating footers. Require billing confirmation before an image test, and display the verification section only after an image is returned.
  • Update English, Simplified Chinese, and Traditional Chinese labels and the generated Data Tools token bundle.
  • Repair Design Lab validation: include image generation in the tool replay and localized actions, share compatibility-tool ownership with the production adapter types, and explicitly verify generic-card coverage without dropping legacy adapters.
  • Keep the Lab bubble color contract aligned with the production submission-motion surface while retaining its geometry checks.

Type and Areas

Type: Feature / UI/UX

Areas: Design system, Web UI settings and tool-card registry contracts, i18n, generated Data Tools theme assets.

Motivation / Impact

Management dialogs keep consistent geometry while navigating between provider, model, subscription, and image-service settings. Subscription cards keep region selection beside its sign-in action. Image tests show the billing notice before making a request and distinguish empty responses from successful image results.

Verification

Passed:

  • pnpm run check:web — Web UI type-check, typography, Appearance, theme color audit across all surfaces, and theme visual governance.
  • pnpm run i18n:audit — zero warnings.
  • pnpm run motion:audit — inventory completed; existing reduced-motion inventory entry in PortForwardDialog.scss remains.
  • pnpm run data-tools:theme:check — generated bundle is current.
  • git diff --check.
  • pnpm run design-system:check — package and Design Lab builds, token/theme/UI/package contracts, Flow Chat presentation tests, Lab checks, and typography audit. Includes all 347 UI package tests and 936 Flow Chat presentation tests.
  • pnpm --dir src/web-ui exec tsc --noEmit — final type-check after the tool-registry fixes.
  • pnpm --dir src/web-ui exec vitest run --maxWorkers=2 src/flow_chat/tool-cards/index.test.ts src/flow_chat/tool-cards/AgentControlToolCard.test.tsx src/flow_chat/tool-cards/RelationshipToolCards.test.tsx src/flow_chat/tool-cards/TaskToolDisplay.test.tsx — 4 files, 69 tests passed, including generic-card routing and historical tool rendering.
  • Focused Web UI tests: 17 files, 267 tests passed:
pnpm --dir src/web-ui run test:run \
  src/app/scenes/settings/pages/ai/ModelSettingsPage.loading.test.tsx \
  src/app/scenes/settings/pages/ai/ModelSettingsPage.presentation.test.ts \
  src/app/scenes/settings/pages/ai/ModelDiscoveryPicker.test.tsx \
  src/app/scenes/settings/pages/ai/ModelPoolsSection.test.tsx \
  src/infrastructure/config/components/common/SettingsControlSizing.test.ts \
  src/infrastructure/config/components/ModelSettingsDialog.presentation.test.ts \
  src/infrastructure/config/components/ModelRouterSettings.test.tsx \
  src/infrastructure/config/components/image-generation/imageDialects.test.ts \
  src/infrastructure/config/components/image-generation/imageModels.test.ts \
  src/infrastructure/config/components/image-generation/ImageGenerationSettings.test.tsx \
  src/shared/ui/OverlayStack.test.tsx \
  src/shared/ui/OverlayOwnership.contract.test.ts \
  src/shared/ui/Dialog.test.tsx \
  src/shared/ui/MenuPopover.test.tsx \
  src/infrastructure/appearance/runtime/AppearanceOverlayHost.test.ts \
  src/shared/notification-system/components/NotificationContainer.test.tsx \
  src/shared/context-menu-system/components/ui/ContextMenu.test.tsx

Reviewer Notes

AI-assisted; lightly tested with automated package, source, DOM, and type checks. No screenshots or native visual verification were performed, per the repository instructions. These checks do not establish visual fidelity.

Remote scenarios exercised: no live remote-workspace, Remote Control, Peer Device, or Detached Dispatch connection. DOM fixtures cover simulated device switches, unsupported peer capabilities, stale image-test completion, and dialog ownership. No persisted format or transport protocol changes.

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 abc089c into main Oct 29, 2026
3 checks passed
@GCWing
GCWing deleted the gcwing/model-settings-panel-dialogs-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