Skip to content

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.

feat(browser-voice): B2 wiring — reachable Browser Voice view + sidebar entry

Ruben Lütke1810dfce0c03
diff --git a/jarvis/ui/web/frontend/src/components/layout/MainView.tsx b/jarvis/ui/web/frontend/src/components/layout/MainView.tsx
index 900ca82f65..be064c2918 100644
--- a/jarvis/ui/web/frontend/src/components/layout/MainView.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/MainView.tsx
@@ -16,6 +16,7 @@ import { RunInspectorView } from "@/views/RunInspectorView";
import { SessionsView } from "@/views/SessionsView";
import { SocialsView } from "@/views/socials/SocialsView";
import { ContactsView } from "@/views/contacts/ContactsView";
+import BrowserVoiceView from "@/views/BrowserVoiceView";
import { TelephonySetupView } from "@/views/TelephonyView";
/**
@@ -96,6 +97,8 @@ function SwitchOnActiveSection({ active }: { active: string }) {
return <SocialsView />;
case "contacts":
return <ContactsView />;
+ case "browser-voice":
+ return <BrowserVoiceView />;
default:
return <ChatsView />;
}
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
index e17696dbdb..e287786267 100644
--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
@@ -12,6 +12,7 @@ import {
Notebook,
Sparkles,
Mic,
+ Headphones,
Terminal,
Share2,
Contact,
@@ -34,6 +35,17 @@ interface NavItem {
// skills/plugins/mcps, "CLIs" fronting clis/cli-test-hub); the active id
// doubles as the tab state.
matchIds?: SectionId[];
+ // English fallback shown when `labelKey` has no translation yet (used while
+ // the nav.browser_voice / browser_voice.* locale keys are still being wired in).
+ fallbackLabel?: string;
+}
+
+// Resolve a nav row's label, preferring the active-locale translation and
+// falling back to the English `fallbackLabel` when the key is not yet present
+// (the i18n resolver returns the key itself on a miss).
+function resolveNavLabel(t: (key: string) => string, item: NavItem): string {
+ const resolved = t(item.labelKey);
+ return resolved === item.labelKey && item.fallbackLabel ? item.fallbackLabel : resolved;
}
// Sidebar nav, clustered into logical groups separated by a thin divider:
@@ -61,6 +73,12 @@ const NAV_GROUPS: NavItem[][] = [
[
{ id: "tasks", labelKey: "nav.tasks", icon: ListTodo },
{ id: "sessions", labelKey: "nav.sessions", icon: Mic },
+ {
+ id: "browser-voice",
+ labelKey: "nav.browser_voice",
+ icon: Headphones,
+ fallbackLabel: "Browser Voice",
+ },
{ id: "run_inspector", labelKey: "nav.run_inspector", icon: Gauge },
{ id: "board", labelKey: "nav.board", icon: Sparkles },
{ id: "memory", labelKey: "nav.wiki", icon: Notebook },
@@ -191,7 +209,7 @@ export function Sidebar() {
<NavRow
key={item.id}
item={item}
- label={t(item.labelKey)}
+ label={resolveNavLabel(t, item)}
active={item.matchIds ? item.matchIds.includes(active) : item.id === active}
badge={item.id === "agents" ? agentsCount : undefined}
onClick={() => setActive(item.id)}
diff --git a/jarvis/ui/web/frontend/src/store/events.ts b/jarvis/ui/web/frontend/src/store/events.ts
index 91a7a7035e..fc6af5dadc 100644
--- a/jarvis/ui/web/frontend/src/store/events.ts
+++ b/jarvis/ui/web/frontend/src/store/events.ts
@@ -32,7 +32,8 @@ export type SectionId =
| "outputs"
| "socials"
| "taskbar"
- | "contacts";
+ | "contacts"
+ | "browser-voice";
export const SECTION_IDS = [
"chats",
@@ -58,6 +59,7 @@ export const SECTION_IDS = [
"socials",
"taskbar",
"contacts",
+ "browser-voice",
] as const satisfies readonly SectionId[];
export function isSectionId(value: unknown): value is SectionId {
@@ -88,6 +90,7 @@ export const SECTION_LABELS: Record<SectionId, string> = {
socials: "Socials",
taskbar: "Taskbar",
contacts: "Contacts",
+ "browser-voice": "Browser Voice",
};
export interface EventItem {