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

@@ -6,7 +6,7 @@ import { Search } from "lucide-react";
import { useTranslation } from "react-i18next";
import { Button } from "@/components/ui/button";
import { formControlFocusClassName } from "@/components/ui/form-control";
import { SearchInput } from "@/components/ui/input";
import {
Sheet,
SheetContent,
@@ -56,7 +56,7 @@ export function PromptNavigator({
variant="ghost"
size="icon"
className={cn(
"host-no-drag h-8 w-8 rounded-xl text-muted-foreground/80",
"host-no-drag h-8 w-8 rounded-control text-muted-foreground/80",
"hover:text-foreground",
)}
aria-label={t("thread.promptNavigator.open")}
@@ -80,16 +80,12 @@ export function PromptNavigator({
aria-hidden
className="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"
/>
<input
<SearchInput
value={query}
onChange={(event) => setQuery(event.target.value)}
aria-label={t("thread.promptNavigator.search")}
placeholder={t("thread.promptNavigator.search")}
className={cn(
"touch-text-input h-10 w-full rounded-full border border-border bg-background pl-9 pr-3 text-sm",
"transition-colors",
formControlFocusClassName,
)}
className="h-10 rounded-full border-border bg-background pl-9 pr-3 text-sm transition-colors"
/>
</div>
</div>
@@ -135,7 +131,7 @@ function PromptNavigatorRow({
<button
type="button"
className={cn(
"w-full rounded-xl px-3 py-3 text-left transition",
"w-full rounded-control px-3 py-3 text-left transition",
"hover:bg-accent focus-visible:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30",
)}
aria-label={t("thread.promptNavigator.jumpTo", { label: prompt.label })}