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.

fix(ui): make the library search visible instead of merely present

rubenluetke10-beep29b4912f45c1
diff --git a/jarvis/ui/web/frontend/src/components/providers/LocalModelDownloadPanel.test.tsx b/jarvis/ui/web/frontend/src/components/providers/LocalModelDownloadPanel.test.tsx
index 1f7c267c30..361c8b19de 100644
--- a/jarvis/ui/web/frontend/src/components/providers/LocalModelDownloadPanel.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/providers/LocalModelDownloadPanel.test.tsx
@@ -27,6 +27,7 @@ vi.mock("@/i18n", () => ({
"apikeys_model_pull.installed": "Installed",
"apikeys_model_pull.download": "Download",
"apikeys_model_pull.custom_placeholder": "Search the library, or type an exact name…",
+ "apikeys_model_pull.library_title": "Every model in the Ollama library",
"apikeys_model_pull.library_searching": "Searching the library…",
"apikeys_model_pull.library_no_results": "No models found for that search.",
"apikeys_model_pull.library_loading_versions": "Loading versions…",
@@ -420,6 +421,21 @@ function libraryFetchMock(overrides: Record<string, unknown> = {}) {
}
describe("local model download panel — browsing the public library", () => {
+ it("says on the card that the whole library is searchable here", async () => {
+ // The first version of this shipped as a bare input with a changed
+ // placeholder, sitting exactly where the old blind text field had been.
+ // It worked, and it was invisible — reported as "there is no model
+ // search". A feature indistinguishable from what it replaced has not
+ // been delivered, so the heading is part of the feature, not decoration.
+ libraryFetchMock();
+
+ render(<AuthWidget descriptor={PULL_CARD} onChanged={() => {}} />);
+
+ await waitFor(() =>
+ expect(screen.getByText("Every model in the Ollama library")).toBeTruthy(),
+ );
+ });
+
it("does not touch the public catalog until the user asks", async () => {
// The panel renders inside a provider LIST; searching on mount would hit
// the catalog once per card on every render of the settings view.
diff --git a/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx b/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx
index c6a7b90def..fca96b6c3d 100644
--- a/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx
+++ b/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx
@@ -1,5 +1,5 @@
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
-import { AlertCircle, Bot, Brain, Check, ChevronDown, Copy, Download, HardDrive, Loader2, LogIn, LogOut, Mic, Play, PlugZap, Radio, Sparkles, Square, Terminal, Volume2, Wand2, Waypoints, XCircle } from "lucide-react";
+import { AlertCircle, Bot, Brain, Check, ChevronDown, Copy, Download, HardDrive, Loader2, LogIn, LogOut, Mic, Play, PlugZap, Radio, Search, Sparkles, Square, Terminal, Volume2, Wand2, Waypoints, XCircle } from "lucide-react";
import { AltCredentialNote } from "@/components/AltCredentialNote";
import { ApiKeyForm } from "@/components/ApiKeyForm";
import { BrainModelSelector } from "@/components/BrainModelSelector";
@@ -2635,18 +2635,30 @@ function LibraryBrowser({
return (
<div className="space-y-2 border-t border-border/50 pt-2" data-testid="model-library">
+ {/* The first version of this shipped as a bare input with a changed
+ placeholder, in the exact spot the old blind text field had occupied.
+ It worked and nobody could see it: a feature that looks identical to
+ what it replaced has not been delivered. Hence the heading — the
+ panel has to SAY that the whole catalog is searchable here. */}
+ <p className="flex items-center gap-1.5 text-xs font-medium">
+ <Search className="h-3.5 w-3.5 text-muted-foreground" />
+ {t("apikeys_model_pull.library_title")}
+ </p>
<div className="flex items-center gap-2">
- <input
- type="text"
- value={query}
- onFocus={() => setBrowsing(true)}
- onChange={(e) => {
- setQuery(e.target.value);
- setBrowsing(true);
- }}
- placeholder={t("apikeys_model_pull.custom_placeholder")}
- className="h-8 w-full rounded-md border border-border bg-background px-2 text-xs"
- />
+ <div className="relative w-full">
+ <Search className="pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" />
+ <input
+ type="text"
+ value={query}
+ onFocus={() => setBrowsing(true)}
+ onChange={(e) => {
+ setQuery(e.target.value);
+ setBrowsing(true);
+ }}
+ placeholder={t("apikeys_model_pull.custom_placeholder")}
+ className="h-8 w-full rounded-md border border-border bg-background pl-7 pr-2 text-xs"
+ />
+ </div>
{/* The exact-name path the panel has always had: whatever is typed can
be pulled directly, whether or not the catalog was reachable. */}
<Button
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 57ecff23b6..f004727fcc 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -1369,6 +1369,7 @@
"installed": "Installiert",
"download": "Laden",
"custom_placeholder": "Bibliothek durchsuchen oder genauen Namen eingeben…",
+ "library_title": "Alle Modelle der Ollama-Bibliothek",
"library_searching": "Bibliothek wird durchsucht…",
"library_no_results": "Keine Modelle für diese Suche gefunden.",
"library_loading_versions": "Versionen werden geladen…",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index aedeca8506..2c54010541 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -1369,6 +1369,7 @@
"installed": "Installed",
"download": "Download",
"custom_placeholder": "Search the library, or type an exact name…",
+ "library_title": "Every model in the Ollama library",
"library_searching": "Searching the library…",
"library_no_results": "No models found for that search.",
"library_loading_versions": "Loading versions…",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index e71da4cdca..298dc781e0 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -1369,6 +1369,7 @@
"installed": "Instalado",
"download": "Descargar",
"custom_placeholder": "Busca en la biblioteca o escribe un nombre exacto…",
+ "library_title": "Todos los modelos de la biblioteca de Ollama",
"library_searching": "Buscando en la biblioteca…",
"library_no_results": "No se encontraron modelos para esa búsqueda.",
"library_loading_versions": "Cargando versiones…",