refactor(app): restructure settings with modular section navigation

This commit is contained in:
Mohamed Boudra
2026-04-18 14:21:40 +07:00
parent 63a46acaf1
commit 5c3cc99d8c
41 changed files with 2526 additions and 2317 deletions
+3 -4
View File
@@ -14,7 +14,7 @@ import {
} from "@/utils/command-center-focus-restore";
import {
buildHostAgentDetailRoute,
buildHostSettingsRoute,
buildSettingsRoute,
parseServerIdFromPathname,
} from "@/utils/host-routes";
import type { ShortcutKey } from "@/utils/format-shortcut";
@@ -170,9 +170,8 @@ export function useCommandCenter() {
}, [agents, open, query]);
const settingsRoute = useMemo<Href>(() => {
const serverIdFromPath = activeServerId;
return serverIdFromPath ? buildHostSettingsRoute(serverIdFromPath) : "/";
}, [activeServerId]);
return buildSettingsRoute();
}, []);
const actionItems = useMemo(() => {
if (!open) {