refactor(webui): open models directly for first-run setup

This commit is contained in:
Xubin Ren committed 2026-09-02 16:25:07 +08:00
1 parent 1c1f746903
commit 05100b70ad
22 files changed
+75 -627

No files matched your search

@@ -1,7 +1,6 @@
import { SettingsPage } from "@/components/settings/SettingsPage";
import type { SettingsSectionKey } from "@/components/settings/contracts";
import { useSettingsController } from "@/components/settings/useSettingsController";
import type { ModelSetupIntent } from "@/lib/model-setup";
import type { SettingsPayload, SkillSummary } from "@/lib/types";
export type { SettingsSectionKey } from "@/components/settings/contracts";
@@ -10,7 +9,6 @@ interface SettingsViewProps {
theme: "light" | "dark";
initialSection?: SettingsSectionKey;
initialSettings?: SettingsPayload | null;
modelSetupIntent?: ModelSetupIntent | null;
showSidebar?: boolean;
onToggleTheme: () => void;
onBackToChat: () => void;
@@ -29,7 +27,6 @@ export function SettingsView({
theme,
initialSection = "overview",
initialSettings = null,
modelSetupIntent = null,
showSidebar = true,
onToggleTheme,
onBackToChat,
@@ -56,7 +53,6 @@ export function SettingsView({
return (
<SettingsPage
controller={controller}
modelSetupIntent={modelSetupIntent}
theme={theme}
showSidebar={showSidebar}
onToggleTheme={onToggleTheme}