feat(webui): improve model and provider settings UX (#6145)

* feat(webui): improve model and provider settings UX

* refactor(webui): organize provider forms and model picker interactions

* fix(webui): separate OAuth credentials from provider configuration

* fix(webui): stabilize shared combobox navigation

* refactor(config): store provider connections as sparse entries

* fix(webui): preserve provider validation and isolate catalog tests

* refactor(config): manage explicit provider connections

* refactor(webui): decouple settings UX from provider removal

* fix(webui): select current combobox options during rapid input

* feat(webui): refine model preset and provider management

* style(webui): refine preset footer actions

* fix(webui): align model settings with responsive layout rules

* refactor(webui): finalize preset dialogs and simplify provider state

* fix(webui): keep fallback heading stable while sorting presets

Animate card dimensions without changing layout height and keep the section heading outside sortable cards. Remove proxy normalization from this PR.

* docs: update WebUI model and provider setup instructions

* docs: start model setup from new preset

* docs: remove duplicate WebUI model setup instructions
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-11 04:30:43 +08:00
1 parent 8080ea843a
commit 9261e731ce
88 files changed
+2854 -1734

No files matched your search

@@ -31,12 +31,7 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
import { HoverHint } from "@/components/ui/tooltip";
import {
createWorkbenchLayoutGeometry,
resizeHandleRatio,
@@ -174,8 +169,7 @@ function HeaderIconButton({
onClick: () => void;
}) {
return (
<Tooltip>
<TooltipTrigger asChild>
<HoverHint content={disabled ? disabledLabel ?? label : label} side="bottom">
<span className="inline-flex">
<Button
type="button"
@@ -189,9 +183,7 @@ function HeaderIconButton({
<Icon className="h-4 w-4" aria-hidden />
</Button>
</span>
</TooltipTrigger>
<TooltipContent side="bottom">{disabled ? disabledLabel ?? label : label}</TooltipContent>
</Tooltip>
</HoverHint>
);
}
@@ -690,7 +682,6 @@ export function PaneWorkbench({
&& "[--thread-header-position:relative]",
)}
>
<TooltipProvider>
{chrome ? (
<header className="pointer-events-none inset-x-0 top-0 z-30 shrink-0 [position:var(--thread-header-position,absolute)]">
<div
@@ -738,8 +729,13 @@ export function PaneWorkbench({
headerActions,
})}
{chrome && panes.length > 1 && !compact ? (
<Tooltip>
<TooltipTrigger asChild>
<HoverHint
enabled={active}
side="top"
content={t("workbench.movePaneHint", {
defaultValue: "Drag to move, or use the arrow keys.",
})}
>
<button
type="button"
tabIndex={active ? 0 : -1}
@@ -772,15 +768,7 @@ export function PaneWorkbench({
)}
/>
</button>
</TooltipTrigger>
{active ? (
<TooltipContent side="top">
{t("workbench.movePaneHint", {
defaultValue: "Drag to move, or use the arrow keys.",
})}
</TooltipContent>
) : null}
</Tooltip>
</HoverHint>
) : null}
</section>
);
@@ -844,7 +832,6 @@ export function PaneWorkbench({
/>
</footer>
) : null}
</TooltipProvider>
</section>
);
}