Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
refactor(settings): drop the Local models nav entry
rubenluetke10-beep49d366e8369f
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsxindex 3aa1214a94..36610145f1 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx@@ -268,8 +268,8 @@ export function Sidebar({const pluginAttention = usePluginAttention();const pluginsNeedReconnect = pluginAttention.count > 0;// The Local models health monitor (D7) writes a `local_models` record; a- // failing or half-configured local setup gets the same amber dot — badge- // only, never a toast.+ // failing or half-configured local setup marks the profile button, the+ // hub's entry point — badge only, never a toast.const localModelsHealth = sectionHealth.local_models;const localModelsNeedAttention =localModelsHealth?.status === "error" || localModelsHealth?.status === "needs_setup";@@ -350,8 +350,8 @@ export function Sidebar({badge={item.id === "agents" ? agentsCount : undefined}betaLabel={item.beta ? t("nav.agentic_ide_beta") : undefined}alert={item.id === "apikeys" && apikeysHasError} alertTitle={t("sidebar.apikeys_alert")}- warn={item.id === "plugins" ? pluginsNeedReconnect : item.id === "local-models" && localModelsNeedAttention}- warnTitle={item.id === "local-models" ? localModelsHealth?.detail || localModelsHealth?.reason || undefined : pluginWarnTitle}+ warn={item.id === "plugins" && pluginsNeedReconnect}+ warnTitle={pluginWarnTitle}onClick={() => { setActive(item.id); }} />;};diff --git a/jarvis/ui/web/frontend/src/components/layout/navGroups.ts b/jarvis/ui/web/frontend/src/components/layout/navGroups.tsindex 5eebbfdb92..00d0aa93d5 100644--- a/jarvis/ui/web/frontend/src/components/layout/navGroups.ts+++ b/jarvis/ui/web/frontend/src/components/layout/navGroups.ts@@ -10,7 +10,6 @@* a section added here would silently never appear on the deck.*/import { KeyRound, type LucideIcon } from "lucide-react";-import { OllamaIcon } from "@/components/icons/OllamaIcon";import {AgentsIcon,ArtifactsIcon,@@ -210,14 +209,6 @@ export const NAV_GROUPS: NavItem[][] = [icon: KeyRound,matchIds: ["apikeys", "telephony", "telephony-setup"],},- // Local models sit directly under API Keys: the same "which brain" question,- // answered for the machine itself instead of a hosted account.- {- id: "local-models",- labelKey: "nav.local_models",- icon: OllamaIcon,- fallbackLabel: "Local models",- },{id: "settings",labelKey: "nav.settings",diff --git a/jarvis/ui/web/frontend/src/lib/quickSwitch.ts b/jarvis/ui/web/frontend/src/lib/quickSwitch.tsindex 35c7bdf7f8..2f7e359296 100644--- a/jarvis/ui/web/frontend/src/lib/quickSwitch.ts+++ b/jarvis/ui/web/frontend/src/lib/quickSwitch.ts@@ -23,6 +23,7 @@* active language.*/import { KeyRound, type LucideIcon } from "lucide-react";+import { OllamaIcon } from "@/components/icons/OllamaIcon";import {ChatIcon,ConnectorIcon,@@ -174,7 +175,11 @@ function expand(item: NavItem): QuickSwitchEntry[] {tab("agentic-ide-classic", "quick_switch.terminal_grid", PaneGridIcon, "nav.agentic_ide"),];case "apikeys":- return [entry(item), tab("telephony", "nav.telephony", PhoneIcon, "nav.apikeys")];+ return [+ entry(item),+ tab("telephony", "nav.telephony", PhoneIcon, "nav.apikeys"),+ tab("local-models", "nav.local_models", OllamaIcon, "nav.apikeys"),+ ];case "settings":return [entry(item), tab("languages", "nav.languages", LanguageIcon, "nav.settings")];case "dictation":diff --git a/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx b/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsxindex 10aa4956a0..b7cd4ad8cd 100644--- a/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx+++ b/jarvis/ui/web/frontend/src/views/SettingsHubView.test.tsx@@ -102,7 +102,6 @@ const NAV_IDS = ["contacts","socials","apikeys",- "local-models","costs","feedback",] as const;@@ -218,6 +217,17 @@ describe("SettingsHubView tab resolution", () => {).toBe("page");});+ it("has no Local models entry and highlights API Keys while that page is open", async () => {+ mockState.activeSection = "local-models";+ render(<SettingsHubView />);++ await screen.findByTestId("TAB_LOCAL_MODELS");+ expect(screen.queryByTestId("settings-hub-nav-local-models")).toBeNull();+ expect(+ screen.getByTestId("settings-hub-nav-apikeys").getAttribute("aria-current"),+ ).toBe("page");+ });+it("falls back to Settings for an unexpected section id", async () => {mockState.activeSection = "chats";render(<SettingsHubView />);@@ -300,21 +310,6 @@ describe("SettingsHubView health signals", () => {await screen.findByTestId("TAB_SETTINGS");expect(screen.getByTestId("settings-hub-alert-apikeys")).toBeTruthy();- expect(screen.queryByTestId("settings-hub-warn-local-models")).toBeNull();- });-- it("carries the Local-models warn dot while the setup needs care", async () => {- mockHealth.local_models = {- status: "needs_setup",- reason: "not_configured",- detail: "",- subject_id: "ollama",- };- render(<SettingsHubView />);- await screen.findByTestId("TAB_SETTINGS");-- expect(screen.getByTestId("settings-hub-warn-local-models")).toBeTruthy();- expect(screen.queryByTestId("settings-hub-alert-apikeys")).toBeNull();});it("stays calm when nothing is broken", async () => {@@ -322,6 +317,5 @@ describe("SettingsHubView health signals", () => {await screen.findByTestId("TAB_SETTINGS");expect(screen.queryByTestId("settings-hub-alert-apikeys")).toBeNull();- expect(screen.queryByTestId("settings-hub-warn-local-models")).toBeNull();});});diff --git a/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx b/jarvis/ui/web/frontend/src/views/SettingsHubView.tsxindex dd428e4f93..fc2cb7a976 100644--- a/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx+++ b/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx@@ -25,15 +25,17 @@ import { cn } from "@/lib/utils";** General: Settings, Keyboard shortcuts, Appshots, My Pets, Profile,* {name} (the assistant), Contacts, Socials- * System: Computers, API Keys, Local models, Jarvis actions+ * System: Computers, API Keys, Jarvis actions* Activity: Spend, Feedback** Same merged-section pattern as VoiceHubView / ClisHubView: the active* section id IS the tab state, so deep links, voice commands ("open the API* keys"), the deck and detached windows keep landing on the right tab with no* extra routing. The merged-in ids ("telephony", "taskbar", "languages",- * "telephony-setup") resolve to the tab that hosts their content today,- * exactly like MainView used to map them to standalone views.+ * "telephony-setup", "local-models") resolve to the tab that hosts their+ * content today, exactly like MainView used to map them to standalone views.+ * The Local models page has no nav entry of its own: it opens from the local+ * server rows on API Keys, so API Keys stays highlighted while it is shown.** Labels, icons and grouping resolve from `NAV_GROUPS` (via `resolveNavLabel`,* so all three locales behave exactly like the sidebar rows did) — no second hand-written list to drift (AP-4).@@ -109,7 +111,6 @@ type HubNavId =| "contacts"| "socials"| "apikeys"- | "local-models"| "computers"| "jarvis-actions"| "costs"@@ -131,7 +132,7 @@ const HUB_NAV_GROUPS: readonly { labelKey: string; ids: readonly HubNavId[] }[]},{labelKey: "settings_hub.group_system",- ids: ["computers", "apikeys", "local-models", "jarvis-actions"],+ ids: ["computers", "apikeys", "jarvis-actions"],},{labelKey: "settings_hub.group_activity",@@ -139,7 +140,10 @@ const HUB_NAV_GROUPS: readonly { labelKey: string; ids: readonly HubNavId[] }[]},];-const TAB_CONTENT: Record<HubNavId | "telephony-setup", LazyExoticComponent<ComponentType>> = {+/** Pages the hub shows under another entry's highlight. */+type HubSubPage = "telephony-setup" | "local-models";++const TAB_CONTENT: Record<HubNavId | HubSubPage, LazyExoticComponent<ComponentType>> = {settings: SettingsTab,profile: ProfileTab,"agent-instructions": AssistantTab,@@ -162,7 +166,7 @@ const TAB_CONTENT: Record<HubNavId | "telephony-setup", LazyExoticComponent<Comp* section id. Plain ids name their own tab; the merged-in ids resolve to the* tab hosting their content; anything else falls back to Settings.*/-function resolveHubTab(active: string): { content: HubNavId | "telephony-setup"; highlight: HubNavId } {+function resolveHubTab(active: string): { content: HubNavId | HubSubPage; highlight: HubNavId } {switch (active) {case "profile":return { content: "profile", highlight: "profile" };@@ -178,7 +182,7 @@ function resolveHubTab(active: string): { content: HubNavId | "telephony-setup";case "telephony-setup":return { content: "telephony-setup", highlight: "apikeys" };case "local-models":- return { content: "local-models", highlight: "local-models" };+ return { content: "local-models", highlight: "apikeys" };case "computers":return { content: "computers", highlight: "computers" };case "appshots":@@ -265,24 +269,15 @@ export function SettingsHubView({ onClose }: { onClose: () => void }) {group.items.some((item) => item.id === match.id))).map((match) => ({ ...match, label: resolveNavLabel(t, findNavItem(match.id)) }));- // The same two health signals the sidebar rows used to carry, now on the- // hub's own nav: a hard provider error on API Keys, a failing or- // half-configured local setup on Local models. Badge only, never a toast.+ // The health signal the sidebar row used to carry, now on the hub's own+ // nav: a hard provider error on API Keys. Badge only, never a toast.const apikeysHasError = useMemo(() => apiKeysHealthError(sectionHealth), [sectionHealth]);- const localModelsHealth = sectionHealth.local_models;- const localModelsNeedAttention =- localModelsHealth?.status === "error" || localModelsHealth?.status === "needs_setup";const renderNavItem = (item: NavItem) => {const Icon = item.icon;const isActive = item.id === highlight;const showAlert = item.id === "apikeys" && apikeysHasError;- const showWarn = item.id === "local-models" && localModelsNeedAttention;- const hint = showAlert- ? t("sidebar.apikeys_alert")- : showWarn- ? localModelsHealth?.detail || localModelsHealth?.reason- : undefined;+ const hint = showAlert ? t("sidebar.apikeys_alert") : undefined;return (<li key={item.id}><button@@ -319,13 +314,6 @@ export function SettingsHubView({ onClose }: { onClose: () => void }) {className="h-2 w-2 shrink-0 rounded-full bg-destructive"/>)}- {!showAlert && showWarn && (- <span- data-testid="settings-hub-warn-local-models"- role="status"- className="h-2 w-2 shrink-0 rounded-full bg-warning"- />- )}</button></li>);