From b103a1664d5b1e8c713726f946bb82a89789144e Mon Sep 17 00:00:00 2001 From: xiebin760 Date: Fri, 27 Feb 2026 16:21:30 +0800 Subject: [PATCH] refactor(version-management): remove LLM installation wizard and related state Eliminate the LLM installation wizard and its associated state management from the Version Management Page for a cleaner interface. This change simplifies the component by removing unused code and improving maintainability. --- .../components/VersionManagementPage.tsx | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/renderer/components/VersionManagementPage.tsx b/src/renderer/components/VersionManagementPage.tsx index f4b2720..4322a13 100644 --- a/src/renderer/components/VersionManagementPage.tsx +++ b/src/renderer/components/VersionManagementPage.tsx @@ -37,7 +37,7 @@ import { } from '../store/thunks/webServiceThunks'; import type { RootState } from '../store'; import { PackageSourceSelector } from './PackageSourceSelector'; -import { InstallationWizard } from './installation-wizard'; + interface Version { id: string; @@ -115,7 +115,7 @@ export default function VersionManagementPage() { const [reinstallDialogOpen, setReinstallDialogOpen] = useState(false); const [uninstallDialogOpen, setUninstallDialogOpen] = useState(false); const [pendingVersionId, setPendingVersionId] = useState(null); - const [llmWizardOpen, setLlmWizardOpen] = useState(false); + useEffect(() => { fetchAllData(); @@ -514,16 +514,6 @@ export default function VersionManagementPage() { - {/* Claude Installation Button */} -
- -
{/* Package Source Selector */} @@ -1024,14 +1014,6 @@ export default function VersionManagementPage() { - {/* LLM Installation Wizard Dialog */} - {llmWizardOpen && ( - setLlmWizardOpen(false)} - onComplete={() => setLlmWizardOpen(false)} - /> - )} ); }