Python
Merge main into feat/gui-i18n
Rohit C Prasad5392e7ac1534
diff --cc surfaces/gui/src/components/ModelChecklist.tsxindex 380fa068,6c501979..08a620a2--- a/surfaces/gui/src/components/ModelChecklist.tsx+++ b/surfaces/gui/src/components/ModelChecklist.tsx@@@ -1,7 -1,22 +1,23 @@@import { useState } from "react";+import { useTranslation } from "react-i18next";import { addModel, getSettings, removeModel, setDefaultModel } from "../api";+ // Cloud-account providers dispatch by a family segment baked into the model id+ // (`bedrock:claude/…`, `vertex:openweight/…`). The add-model row shows a dropdown so+ // users pick the family instead of memorizing the prefix; curated matrix ids already+ // carry theirs.+ const MODEL_FAMILIES: Record<string, { value: string; label: string }[]> = {+ bedrock: [+ { value: "claude", label: "Claude family" },+ { value: "other", label: "Other models" },+ ],+ vertex: [+ { value: "gemini", label: "Gemini family" },+ { value: "claude", label: "Claude family" },+ { value: "openweight", label: "Open-weight" },+ ],+ };+// One provider's models as a checklist: tick = shown in the composer's model picker (the// curated list), the black "default" badge marks the model new sessions use, and hovering any// other row reveals "Make default". A free-type row below adds models by hand, so brand-new@@@ -23,8 -38,9 +39,10 @@@ export function ModelChecklist(labels?: Record<string, string>; // curated display names (full id → label); raw id when absentonChanged: (next: { models: string[]; model: string }) => void;}) {+ const { t } = useTranslation();const [draft, setDraft] = useState("");+ const families = MODEL_FAMILIES[provider];+ const [family, setFamily] = useState(families?.[0]?.value || "");const provOf = (id: string) => {const i = id.indexOf(":");@@@ -92,8 -112,22 +114,22 @@@);})}<div className="mlist-add">+ {families && (+ <select+ value={family}+ onChange={(e) => setFamily(e.target.value)}+ aria-label="Model family"+ data-testid="mlist-family"+ >+ {families.map((f) => (+ <option key={f.value} value={f.value}>+ {f.label}+ </option>+ ))}+ </select>+ )}<input- placeholder="Add another model…"+ placeholder={t("models.add_placeholder")}value={draft}spellCheck={false}autoComplete="off"diff --cc surfaces/gui/src/components/connectors/CloudSignIn.tsxindex c1edcc37,92f5ccbf..4b3c2e2e--- a/surfaces/gui/src/components/connectors/CloudSignIn.tsx+++ b/surfaces/gui/src/components/connectors/CloudSignIn.tsx@@@ -28,9 -26,9 +28,9 @@@ export function CloudSignInInline({ blu});}}>- {waiting ? "Check your browser…" : "Sign in to OpenWorker Cloud"}+ {waiting ? t("cloud.check_browser") : t("cloud.sign_in")}</button>- <div className="text-[11.5px] text-faint">+ <div className="text-[12px] text-faint">{blurb || "Sign-in unlocks one-click connects — or switch to Manual, which works without it."}</div></div>diff --cc surfaces/gui/src/components/connectors/ConnectorsSection.tsxindex 49db012d,4db12be7..9d64aa0a--- a/surfaces/gui/src/components/connectors/ConnectorsSection.tsx+++ b/surfaces/gui/src/components/connectors/ConnectorsSection.tsx@@@ -51,9 -53,9 +54,10 @@@ const DETAIL_PAGES: Record<string, (p:};export function ConnectorsSection() {+ const { t: tt } = useTranslation();const [detail, setDetail] = useState<string | null>(null);const [connectors, setConnectors] = useState<Connector[]>([]);+ const [mcpServers, setMcpServers] = useState<McpServer[]>([]);const [cloud, setCloud] = useState<CloudStatus | null>(null);const [slack, setSlack] = useState<SlackStatus | null>(null);@@@ -131,9 -165,9 +168,9 @@@ function GenericDetail(<ConnectorBadge connector={c} size={44} title={c.title} /><div className="min-w-0 flex-1"><h2 className="text-[20px] font-semibold tracking-tight leading-tight">{c.title}</h2>- <div className="text-[12.5px] text-muted flex items-center gap-1.5">+ <div className="text-[13px] text-muted flex items-center gap-1.5"><span className="w-2 h-2 rounded-full bg-ok" />- {c.account || (c.auth === "none" ? "Built in" : "Connected")}+ {c.account || (c.auth === "none" ? t("connector.built_in") : t("connector.connected"))}</div></div>{c.auth !== "none" && (