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
feat(model-picker): filter chips (free/frontier/best-value) + maintainer stars
Ruben Lütkef4b36efad3e0
diff --git a/jarvis/ui/web/frontend/src/components/BrainModelSelector.test.tsx b/jarvis/ui/web/frontend/src/components/BrainModelSelector.test.tsxindex 80ec3e5745..ae254898de 100644--- a/jarvis/ui/web/frontend/src/components/BrainModelSelector.test.tsx+++ b/jarvis/ui/web/frontend/src/components/BrainModelSelector.test.tsx@@ -314,4 +314,74 @@ describe("BrainModelSelector", () => {await screen.findByLabelText("apikeys_model.search_placeholder"),).toBeTruthy();});++ // ── Filter chips + star ───────────────────────────────────────────────────+ const TAGGED = {+ provider: "openrouter",+ current_model: "",+ models: [+ {+ id: "anthropic/claude-opus-4.8",+ label: "Claude Opus 4.8",+ frontier: true,+ starred: true,+ },+ { id: "deepseek/deepseek-v3.2", label: "DeepSeek V3.2", value: true },+ {+ id: "nvidia/nemotron-3-ultra:free",+ label: "NVIDIA: Nemotron 3 Ultra (free)",+ free: true,+ },+ ],+ source: "live",+ fetched_at: 1,+ };++ function mockTagged(body = TAGGED) {+ return vi.fn().mockImplementation(async (url: string) => {+ if (String(url).includes("/models")) return { ok: true, json: async () => body };+ return { ok: true, json: async () => ({}) };+ });+ }++ it("shows a star next to a starred model", async () => {+ vi.stubGlobal("fetch", mockTagged());+ render(<BrainModelSelector providerId="openrouter" currentModel="" />);+ await openDropdown();+ await screen.findByText("Claude Opus 4.8");+ // The star carries an aria-label so it is discoverable + asserted.+ expect(screen.getByLabelText("apikeys_model.starred_label")).toBeTruthy();+ });++ it("narrows the list to free models when the Free chip is clicked", async () => {+ vi.stubGlobal("fetch", mockTagged());+ render(<BrainModelSelector providerId="openrouter" currentModel="" />);+ await openDropdown();+ // All three visible before filtering.+ await screen.findByText("Claude Opus 4.8");+ expect(screen.getByText("DeepSeek V3.2")).toBeTruthy();+ fireEvent.click(screen.getByLabelText("apikeys_model.filter_free"));+ // Only the free model remains.+ expect(await screen.findByText("NVIDIA: Nemotron 3 Ultra (free)")).toBeTruthy();+ expect(screen.queryByText("Claude Opus 4.8")).toBeNull();+ expect(screen.queryByText("DeepSeek V3.2")).toBeNull();+ });++ it("narrows to frontier models when the Frontier chip is clicked", async () => {+ vi.stubGlobal("fetch", mockTagged());+ render(<BrainModelSelector providerId="openrouter" currentModel="" />);+ await openDropdown();+ fireEvent.click(await screen.findByLabelText("apikeys_model.filter_frontier"));+ expect(await screen.findByText("Claude Opus 4.8")).toBeTruthy();+ expect(screen.queryByText("NVIDIA: Nemotron 3 Ultra (free)")).toBeNull();+ });++ it("hides the filter chips for a tag-less catalog (voice/STT)", async () => {+ // The Gemini mock carries no tags → the band chips must not render.+ vi.stubGlobal("fetch", mockFetch());+ render(<BrainModelSelector providerId="gemini" currentModel="" />);+ await openDropdown();+ await screen.findByText("gemini-3.1-pro-preview");+ expect(screen.queryByLabelText("apikeys_model.filter_free")).toBeNull();+ });});diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex d184b68750..ccb55b8a81 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -877,7 +877,13 @@"choose_voice": "Stimme wählen…","use_custom": "\"{0}\" verwenden","no_models": "Keine Modelle gefunden",- "loading": "Lädt…"+ "loading": "Lädt…",+ "filter_all": "Alle",+ "filter_starred": "Top",+ "filter_free": "Kostenlos",+ "filter_frontier": "Frontier",+ "filter_value": "Preis-Leistung",+ "starred_label": "Top-Empfehlung"},"apikeys_cu_model": {"heading": "Modell für Computer-Use",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex bc2de3abbe..348ba83b6e 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -878,7 +878,13 @@"choose_voice": "Choose a voice…","use_custom": "Use \"{0}\"","no_models": "No models found",- "loading": "Loading…"+ "loading": "Loading…",+ "filter_all": "All",+ "filter_starred": "Top",+ "filter_free": "Free",+ "filter_frontier": "Frontier",+ "filter_value": "Best value",+ "starred_label": "Top pick"},"apikeys_cu_model": {"heading": "Computer-Use model",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex ef2d5dea4f..9b3345e9f9 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -877,7 +877,13 @@"choose_voice": "Elige una voz…","use_custom": "Usar \"{0}\"","no_models": "Sin modelos",- "loading": "Cargando…"+ "loading": "Cargando…",+ "filter_all": "Todos",+ "filter_starred": "Top",+ "filter_free": "Gratis",+ "filter_frontier": "Frontier",+ "filter_value": "Mejor valor",+ "starred_label": "Selección top"},"apikeys_cu_model": {"heading": "Modelo para Computer-Use",