Repository navigation
fix(settings): refine fallback channel routing layout in model editor - #3965
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
Refine the Fallback channels (
备用渠道) and Routing mode (使用方式) presentation inside the single-model settings editor dialog so added fallback routes render in a clean, full-width ordered list instead of a cramped, zero-padding nestedFieldGroupcolumn.Type and Areas
Type: UI/UX bug fix
Areas: Web UI (
src/web-ui— AI model settings editor)Motivation / Impact
Previously, adding one or more fallback channels inside
renderChannelRoutingRowscaused two visual defects:<Select>invalidated the single-control:only-childcolumn rule onConfigPageRow, shrinking the right-hand control column back to150px(narrower than the adjacentRouting modeselect)..openbitfun-model-settings__account-pool-itemrows (flex-wrap: wrap) inside a defaultappearance="subtle"<FieldGroup>produced a zero-padding dark surface where the step number, truncatedProvider · Modellabel, and reorder/remove buttons wrapped onto three separate lines per item.With this change:
Fallback channelsheader row keeps the+ Add fallback channelSelectaligned at--openbitfun-overlay-menu-inline-sizeon the right (matchingRouting modeand sibling fields), and disables it cleanly in place once all eligible candidates are added.grid-column: 1 / -1) as single-line ordered items with tabular step badges, separated provider/model typography (OverflowTextmarquee + tooltip on overflow, warning pill for deleted models), and tooltipped reorder/remove actions (hiding redundant up/down buttons when only one fallback channel is present).Selectmenus usepopupWidth="content"so longProvider · Modellabels remain readable when expanded, and read-onlyisBackupOfnotices use full-row description layout instead of wrapping inside a narrow control column.Verification
pnpm --dir src/web-ui run test:run src/app/scenes/settings/pages/ai/ModelSettingsPage.presentation.test.ts src/infrastructure/config/components/ModelSettingsDialog.presentation.test.ts src/infrastructure/config/components/common/SettingsControlSizing.test.ts src/app/scenes/settings/pages/ai/ModelSettingsPage.loading.test.tsx(82/82 passed)pnpm run check:web(passed: typography audit, Appearance contract audit, 27-surface frontend color audit, visual contract, and Web UItsc --noEmit)pnpm --dir src/web-ui exec eslint src/app/scenes/settings/pages/ai/ModelSettingsPage.tsx(0 errors)pnpm run check:repo-hygiene && node scripts/check-git-object-sizes.mjs --base upstream/main --head HEAD(passed)Reviewer Notes
canEditChannelRoutingOnSurfacecapability gate and persistedchannel_routingpayload shape; verified via local DOM/contract fixtures rather than live SSH workspace, Remote Control, Peer Device Mode, or Detached Dispatch hosts.Checklist