Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
UI polish round 10: one name per thing
aivsomkarf0598b137c5c
diff --git a/src/components/ChatHeadPill.test.ts b/src/components/ChatHeadPill.test.tsindex e33bf8b1af..fd6830e84d 100644--- a/src/components/ChatHeadPill.test.ts+++ b/src/components/ChatHeadPill.test.ts@@ -20,7 +20,7 @@ it("names the shared chat beside the bot, so the person knows where they are", (it("says nothing extra off a team, and a private chat keeps its own name", () => {expect(pill(bot("main"), null)).not.toContain("Shared chat");- expect(pill(bot("own"), { kind: "private" })).toContain("New conversation");+ expect(pill(bot("own"), { kind: "private" })).toContain("Untitled chat");expect(pill(bot("own", "Quarter numbers"), { kind: "private" })).toContain("Quarter numbers");});diff --git a/src/components/ChatHeadPill.tsx b/src/components/ChatHeadPill.tsxindex 7d4eadf125..9925c79ed6 100644--- a/src/components/ChatHeadPill.tsx+++ b/src/components/ChatHeadPill.tsx@@ -46,7 +46,7 @@ export function ChatHeadPill({ bot, avatar, privacy, onToggle }: {const title = bot.tasks?.find((task) => task.threadId === bot.threadId)?.title;// Simple mode calls an untitled conversation what it is, never a "thread".const conversation = !awayFromMainThread(bot, false) ? (privacy?.kind === "shared" ? t("task.sharedChat") : null)- : !title || title === UNTITLED ? t("task.untitledConversation") : localizedTaskTitle(title);+ : !title || title === UNTITLED ? t("task.untitledChat") : localizedTaskTitle(title);const label = t("chat.openProfileAria", { name: bot.name });return (<buttondiff --git a/src/components/ChatMoreMenu.test.ts b/src/components/ChatMoreMenu.test.tsindex 4c192392f5..4a3bc84581 100644--- a/src/components/ChatMoreMenu.test.ts+++ b/src/components/ChatMoreMenu.test.ts@@ -101,7 +101,7 @@ describe("ChatMoreMenu, the round ⋯ for the bot panel", () => {expect(threads).toMatchObject({ label: "All threads", value: "3" });expect(threads.submenu!.map((item) => [item.label, Boolean(item.active)])).toEqual([["Trip plan", true],- ["New conversation", false],+ ["Untitled chat", false],["Our chat", false],]);threads.submenu![2].onSelect();diff --git a/src/components/RoomMoreMenu.test.ts b/src/components/RoomMoreMenu.test.tsindex ab0a698971..18ce897f79 100644--- a/src/components/RoomMoreMenu.test.ts+++ b/src/components/RoomMoreMenu.test.ts@@ -104,7 +104,7 @@ describe("RoomMoreMenu, the Room panel's round ⋯", () => {expect(threads).toMatchObject({ label: "All threads", value: "3" });expect(threads.submenu!.map((entry) => [entry.label, Boolean(entry.active)])).toEqual([["Launch plan", true],- ["New conversation", false],+ ["Untitled chat", false],["Desk HQ", false],]);threads.submenu![2]!.onSelect();diff --git a/src/components/SettingsModal.simple.test.ts b/src/components/SettingsModal.simple.test.tsindex bea50bde5f..8cf15bc301 100644--- a/src/components/SettingsModal.simple.test.ts+++ b/src/components/SettingsModal.simple.test.ts@@ -179,7 +179,7 @@ describe("Settings in Simple mode", () => {fixture.rail = { available: true, hidden: false };const html = render();const appearance = html.slice(html.indexOf('data-settings-block="appearance"'), html.indexOf(">Notifications<"));- const order = ['role="radiogroup" aria-label="Theme"', ">Sidebar picture<", 'aria-label="Show your computers"', 'aria-label="Color my messages with the bot's color"', ">Color themes<"]+ const order = ['role="radiogroup" aria-label="Light or dark"', ">Browse themes<", ">Sidebar picture<", 'aria-label="Show your computers"', 'aria-label="Color my messages with the bot's color"'].map((needle) => appearance.indexOf(needle));expect(order.every((at) => at > -1), String(order)).toBe(true);expect(order).toEqual([...order].sort((a, b) => a - b));@@ -206,7 +206,7 @@ describe("Settings in Simple mode", () => {it("keeps the everyday rows and leaves the fourteen builder controls to Advanced, where search still points", () => {const general = open("general");for (const shown of ['aria-label="Send usage analytics"', 'aria-label="Color my messages with the bot's color"', 'aria-label="Send messages with"',- 'aria-label="Notification sounds"', 'aria-label="Show the notification feed"', 'aria-label="App language"', 'role="radiogroup" aria-label="Theme"']) {+ 'aria-label="Notification sounds"', 'aria-label="Show the notification feed"', 'aria-label="App language"', 'role="radiogroup" aria-label="Light or dark"']) {expect(placement(general, shown), shown).toBe("shown");}expect(placement(open("updates"), "MARKER:updatesConsent;")).toBe("shown");diff --git a/src/components/SettingsSimplePages.tsx b/src/components/SettingsSimplePages.tsxindex 0576b3466b..499f9a1271 100644--- a/src/components/SettingsSimplePages.tsx+++ b/src/components/SettingsSimplePages.tsx@@ -66,11 +66,11 @@ export function SimpleGeneralPage({ has, peopleOpen, onLooks }: { has: Has; peop<SettingsGroup label={t("settings.section.appearance")} block="appearance"><SettingsRows><ThemeRow simple />+ <LooksRow onLooks={onLooks} /><PlaceLookRows /><ChromeRailRow /><WindowFrameRow /><ColorUserBubblesRow simple />- <LooksRow onLooks={onLooks} /></SettingsRows></SettingsGroup>)}@@ -112,7 +112,7 @@ export function SimpleGeneralPage({ has, peopleOpen, onLooks }: { has: Has; peopfunction LooksRow({ onLooks }: { onLooks: () => void }) {const current = SKINS.find((skin) => skin.id === resolveSkin(useSkinChoice()))?.name;return (- <SettingRow title={t("settings.simple.themes.title")}>+ <SettingRow title={t("settings.theme.title")}>{current && <span data-looks-current className="me-3 text-[13px] text-ink-tertiary">{current}</span>}<button type="button" className="ui-button" onClick={onLooks}>{t("settings.simple.themes.browse")}</button></SettingRow>diff --git a/src/components/SidebarThreadRow.test.ts b/src/components/SidebarThreadRow.test.tsindex 64dfc75290..ca8ee5df8d 100644--- a/src/components/SidebarThreadRow.test.ts+++ b/src/components/SidebarThreadRow.test.ts@@ -322,7 +322,7 @@ describe("thread title direction", () => {it("renders the title with dir=auto and leaves the time a fixed column", () => {const arabic = "انسخ محتوى الذكاء الاصطناعي وصمم منشورات";const arabicClass = titleSpan(row(arabic), arabic);- const englishClass = titleSpan(row("New thread"), "New conversation");+ const englishClass = titleSpan(row("New thread"), "Untitled chat");const withByline = titleSpan(row("QA PR 245", { botId: "scout", name: "Scout", at: 1 }), "QA PR 245");for (const classes of [arabicClass, englishClass, withByline]) {expect(classes).toContain("min-w-0");diff --git a/src/components/ThemeRow.tsx b/src/components/ThemeRow.tsxindex e05eb437be..06995c7e35 100644--- a/src/components/ThemeRow.tsx+++ b/src/components/ThemeRow.tsx@@ -19,10 +19,10 @@ export function ThemeRow({ simple = false }: { simple?: boolean }) {const look = THEMES.some((theme) => theme.choice === choice) ? undefined : SKINS.find((skin) => skin.id === choice)?.name;return (<SettingRow- title={t("settings.theme.title")}+ title={t(simple ? "settings.theme.lightOrDark" : "settings.theme.title")}subtitle={look ? t("settings.theme.look", { name: look }) : simple ? undefined : t("settings.theme.subtitle")}>- <div role="radiogroup" aria-label={t("settings.theme.title")} className={simple ? "inline-flex h-7 rounded-full bg-ink/[0.06] p-0.5" : "inline-flex rounded-full bg-inset p-0.5"}>+ <div role="radiogroup" aria-label={t(simple ? "settings.theme.lightOrDark" : "settings.theme.title")} className={simple ? "inline-flex h-7 rounded-full bg-ink/[0.06] p-0.5" : "inline-flex rounded-full bg-inset p-0.5"}>{THEMES.map((theme) => (<buttonkey={theme.choice}diff --git a/src/components/bot-panel/DetailsTab.tsx b/src/components/bot-panel/DetailsTab.tsxindex 8cf7d784ef..541a33997b 100644--- a/src/components/bot-panel/DetailsTab.tsx+++ b/src/components/bot-panel/DetailsTab.tsx@@ -70,8 +70,8 @@ export function DetailsTab({ bot, derived, onOpen }: {<p className="mx-3.5 text-[13px] leading-[18px] text-ink-tertiary">{t("botPanel.routines.emptyHint")}{" "}<button type="button" data-panel-automations onClick={() => dispatch({ type: "showRoutines", view: "list" })}- className="rounded-[4px] font-medium text-ink-secondary underline decoration-ink/25 underline-offset-2 hover:text-ink hover:decoration-ink/60">- {t("botPanel.routines.seeAll")}+ className="inline-flex items-center gap-0.5 rounded-[4px] font-medium text-ink-secondary hover:text-ink">+ {t("botPanel.routines.seeAll")}<ChevronRight size={13} aria-hidden="true" className="rtl:-scale-x-100" /></button></p><buttondiff --git a/src/components/bot-panel/PanelShell.dom.test.ts b/src/components/bot-panel/PanelShell.dom.test.tsindex 78a78c71a6..5d39a33961 100644--- a/src/components/bot-panel/PanelShell.dom.test.ts+++ b/src/components/bot-panel/PanelShell.dom.test.ts@@ -275,7 +275,7 @@ describe("the chat header's pill", () => {}const untitled = pill({ bot: { ...withTasks, mainThreadId: "other", tasks: [{ ...withTasks.tasks![0]!, title: "New thread" }, withTasks.tasks![1]!] } });try {- expect(untitled.header.querySelector("[data-chathead-conversation]")!.textContent).toBe("New conversation");+ expect(untitled.header.querySelector("[data-chathead-conversation]")!.textContent).toBe("Untitled chat");} finally {untitled.done();}diff --git a/src/lib/task-title.ts b/src/lib/task-title.tsindex 0ab365164f..0b16f64fbe 100644--- a/src/lib/task-title.ts+++ b/src/lib/task-title.ts@@ -4,5 +4,5 @@ import { t } from "./i18n";/** Localize the factory title while preserving titles chosen by the user. */export function localizedTaskTitle(title: string): string {if (title === SHARED_CHAT_TITLE) return t("task.sharedChat");- return title === "New thread" ? t("task.untitledConversation") : title;+ return title === "New thread" ? t("task.untitledChat") : title;}diff --git a/src/locales/en.json b/src/locales/en.jsonindex 98bad2d4ad..7f42923316 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -1693,6 +1693,7 @@"settings.profile.learned.remove": "Remove","settings.profile.learned.error": "Could not update About me. Try again.","settings.theme.title": "Theme",+ "settings.theme.lightOrDark": "Light or dark","settings.theme.subtitle": "Follow your computer, or keep it light or dark.","settings.theme.look": "Using the {name} look. Pick one to switch back.","settings.theme.system": "System",@@ -3091,6 +3092,7 @@"task.newShort": "New thread","task.sharedChat": "Shared chat","task.untitledConversation": "New conversation",+ "task.untitledChat": "Untitled chat","task.matching": "{count} matching threads","task.list": "Threads","task.namedList": "{name} threads",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex d9a57bf9f2..e1ecb76164 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -1570,6 +1570,7 @@"settings.profile.learned.remove": "Remover","settings.profile.learned.error": "Não foi possível atualizar “Sobre mim”. Tente novamente.","settings.theme.title": "Tema",+ "settings.theme.lightOrDark": "Claro ou escuro","settings.theme.subtitle": "Use o tema do computador ou mantenha o modo claro ou escuro.","settings.theme.look": "Usando o visual {name}. Escolha uma opção para voltar.","settings.theme.system": "Sistema",@@ -2961,6 +2962,7 @@"task.newShort": "Nova conversa","task.sharedChat": "Conversa compartilhada","task.untitledConversation": "Nova conversa",+ "task.untitledChat": "Conversa sem título","task.matching": "Conversas encontradas: {count}","task.list": "Conversas","task.namedList": "Conversas de {name}",diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex 64b0a1e873..f3b4ad6f74 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -33320,7 +33320,9 @@"model.simple.thinkingAuto": "d197c7577cb9c63227b5e04ef066f6e69b1552577edd17788f88da04883ff3b5","model.simple.botsModelScope": "c82c64a1fc353ed97f01626c16baf213f73cc6c0859519653ec5eaea9608bbee","settings.simple.themes.title": "eceab8df6ddf48352bc730a2784437d15472a4e9d81ee29834587d7f1a532e08",- "settings.simple.themes.browse": "5d7a5476ede9e8cb334ca24996a48200bea59e871006443754457753f797bf53"+ "settings.simple.themes.browse": "5d7a5476ede9e8cb334ca24996a48200bea59e871006443754457753f797bf53",+ "task.untitledChat": "4d4e126c2185da5e86b7478f0f12fc30009339941ef0d8627959aeb4641b6f69",+ "settings.theme.lightOrDark": "9c259901979dc2195dc36e59bf07ea998c75f090cbd266614bb4b3bcffe04333"},"zh": {"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",