Repository navigation
fix(models): restore centered panel dialog layout - #3676
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
Model connection and detail editors restore the shared Panel Dialog layout: centered provider branding, top and bottom spacing, and floating centered actions. Standard field styling and the existing defaults, draft handling, and return navigation remain intact.
The settings guide records this presentation contract, and existing source/DOM checks now require the panel preset for model management dialogs.
Type and Areas
Type: Bug fix / UI/UX.
Areas: Web UI model settings and settings development guidance.
Motivation / Impact
The content-sized editor layout left-aligned provider branding and reduced the surrounding spacing. Restoring the shared panel preset gives API-provider setup, subscription-provider editing, and model details consistent centered presentation, while retaining the shared form-control contracts.
Verification
pnpm --dir src/web-ui run test:run src/infrastructure/config/components/modelEditorRequestSettings.test.ts src/infrastructure/config/components/subscriptionAccountState.test.ts src/infrastructure/config/components/ModelSettingsDialog.presentation.test.ts src/app/scenes/settings/pages/ai/ModelSettingsPage.presentation.test.ts src/app/scenes/settings/pages/ai/ModelSettingsPage.loading.test.tsx— 72 tests passed across 5 files.pnpm run check:web— passed, including type checking and Appearance/theme checks.pnpm run motion:audit— completed; the existing SSH port-forward animation inventory entry is unchanged.git diff --check— passed.Reviewer Notes
Latest upstream main and relevant open PRs were checked; they do not cover this layout restoration. This change uses the existing shared dialog preset rather than page-specific spacing overrides.
Verification covers local source/DOM fixtures, including simulated device switching. Browser/computer-use visual verification was not performed. Live SSH workspaces, relay/mobile remote control, Peer Device Mode, and Detached Dispatch were not exercised. No persisted shape, host API, or remote protocol changes are involved.
Checklist