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 9: copy that says what each control changes
aivsomkar90eeaa085077
diff --git a/src/components/AppSettingsRows.tsx b/src/components/AppSettingsRows.tsxindex b8f2c088d9..b837ff968d 100644--- a/src/components/AppSettingsRows.tsx+++ b/src/components/AppSettingsRows.tsx@@ -242,7 +242,7 @@ export function FollowUpRow({ simple = false }: { simple?: boolean }) {export function ColorUserBubblesRow({ simple = false }: { simple?: boolean }) {const enabled = useColorUserBubbles();return (- <SettingRow title={t("settings.userBubbles.title")} subtitle={simple ? undefined : t("settings.userBubbles.subtitle")}>+ <SettingRow title={t(simple ? "settings.userBubbles.simpleTitle" : "settings.userBubbles.title")} subtitle={simple ? undefined : t("settings.userBubbles.subtitle")}><Switchchecked={enabled}aria-label={t("settings.userBubbles.aria")}diff --git a/src/components/ChatHeadPill.tsx b/src/components/ChatHeadPill.tsxindex b2b7513db7..7d4eadf125 100644--- a/src/components/ChatHeadPill.tsx+++ b/src/components/ChatHeadPill.tsx@@ -54,7 +54,7 @@ export function ChatHeadPill({ bot, avatar, privacy, onToggle }: {data-chathead-pilldata-tour="bot-pill"onClick={onToggle}- title={t("chat.openProfile")}+ title={t("chat.openBotPanel")}aria-label={conversation ? `${label}, ${conversation}` : label}aria-expanded={open}aria-controls={open ? BOT_PANEL_ID : undefined}diff --git a/src/components/ModelPicker.simple.test.ts b/src/components/ModelPicker.simple.test.tsindex 7649ccde07..fbcbd0ab6a 100644--- a/src/components/ModelPicker.simple.test.ts+++ b/src/components/ModelPicker.simple.test.ts@@ -360,7 +360,7 @@ describe("the model picker in Simple mode", () => {const atDefault = region(menu(open(bot()).html), "data-simple-effort-band");expect(atDefault.match(/aria-pressed="true"/g)).toHaveLength(1);expect(atDefault).toMatch(/data-effort-auto="true" aria-pressed="true"[^>]*>Auto<\/button>/);- expect(atDefault).toContain('data-simple-effort-auto="true" class="px-2 pb-1 text-[12px] leading-4 text-ink-tertiary">The model decides how hard to think.</p>');+ expect(atDefault).toContain('data-simple-effort-auto="true" class="px-2 pb-1 text-[12px] leading-4 text-ink-tertiary">Auto lets the model choose. Higher levels are slower but more careful.</p>');});it("names the model on the Simple chip, quiet until hovered; thinking and route stay in its tooltip and the menu", () => {@@ -886,7 +886,7 @@ describe("a thread's picker and its bot's model", () => {it("says on the current model that a thread follows its bot, with no follow row to click", () => {const opened = open(scout(null));expect(list(opened).follow).toBe(false);- expect(list(opened).current!.meta).toBe("Scout's model");+ expect(list(opened).current!.meta).toBe("Scout's model, used in all its chats");expect(menu(opened.html)).not.toContain("data-follow-bot-model");expect(render(scout(null)).nodes.find((node) => node.props["data-tour"] === "model")!.props.title).toContain("Uses Scout's model");});diff --git a/src/components/ModelPicker.tsx b/src/components/ModelPicker.tsxindex 61071d1157..1dc76fff79 100644--- a/src/components/ModelPicker.tsx+++ b/src/components/ModelPicker.tsx@@ -676,6 +676,7 @@ export function ModelPicker({listed: pickerInstances,selection,bot: { name: profile.name, selection: profile.modelSelection, follows },+ updatesBotDefault: !threadId || simpleUpdatesBotDefault,query,expanded,probing,diff --git a/src/components/SettingsModal.simple.test.ts b/src/components/SettingsModal.simple.test.tsindex 863c39dd25..bea50bde5f 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"', ">More looks<"]+ 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<"].map((needle) => appearance.indexOf(needle));expect(order.every((at) => at > -1), String(order)).toBe(true);expect(order).toEqual([...order].sort((a, b) => a - b));diff --git a/src/components/SettingsSimplePages.tsx b/src/components/SettingsSimplePages.tsxindex 36ce981828..0576b3466b 100644--- a/src/components/SettingsSimplePages.tsx+++ b/src/components/SettingsSimplePages.tsx@@ -112,9 +112,9 @@ 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.looks.title")}>+ <SettingRow title={t("settings.simple.themes.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.looks.change")}</button>+ <button type="button" className="ui-button" onClick={onLooks}>{t("settings.simple.themes.browse")}</button></SettingRow>);}diff --git a/src/components/SidebarThreadRow.tsx b/src/components/SidebarThreadRow.tsxindex 04ad73ef3a..1d8c56581f 100644--- a/src/components/SidebarThreadRow.tsx+++ b/src/components/SidebarThreadRow.tsx@@ -307,7 +307,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,return () => { observer?.disconnect(); window.removeEventListener("resize", keepOnScreen); };}, [menu]);const heading = <span className="flex min-w-0 flex-1 items-baseline gap-1.5">- <span dir="auto" className={cn("min-w-0 flex-1 max-w-max truncate", task.unread && "font-semibold text-ink", (closed || archived || snoozed) && !current && "text-ink-tertiary")}>{displayTitle}</span>+ <span dir="auto" className={cn("min-w-0 flex-1 max-w-max", panel ? "line-clamp-2 break-words" : "truncate", task.unread && "font-semibold text-ink", (closed || archived || snoozed) && !current && "text-ink-tertiary")}>{displayTitle}</span>{byline && (<span className="min-w-0 max-w-[45%] shrink truncate font-normal text-ink-tertiary">{byline}</span>)}diff --git a/src/components/SimpleModelMenu.tsx b/src/components/SimpleModelMenu.tsxindex 85338566bd..c2a636f20f 100644--- a/src/components/SimpleModelMenu.tsx+++ b/src/components/SimpleModelMenu.tsx@@ -190,7 +190,7 @@ function Thinking({ thinking, labelId }: { thinking: SimpleThinking; labelId: st))}</div><p data-simple-effort-auto={auto || undefined} className="px-2 pb-1 text-[12px] leading-4 text-ink-tertiary">- {auto ? t("model.simple.thinkingDefault") : t("model.simple.thinkingLevel", { level: effortLabel(levels.current!) })}+ {auto ? t("model.simple.thinkingAuto") : t("model.simple.thinkingLevel", { level: effortLabel(levels.current!) })}</p></div>);diff --git a/src/lib/simple-model-menu.ts b/src/lib/simple-model-menu.tsindex 9d1c94bcb4..fa3433b0d7 100644--- a/src/lib/simple-model-menu.ts+++ b/src/lib/simple-model-menu.ts@@ -80,6 +80,8 @@ export interface SimpleMenuInput {probing: ReadonlySet<string>;loading: boolean;refreshing?: string | null;+ /** Picking a model also changes the bot's own model, not just this conversation's. */+ updatesBotDefault?: boolean;}export function providerName(instance: InstanceInfo): string {@@ -144,7 +146,7 @@ function currentRow(input: SimpleMenuInput): MenuCurrent {if (active.policy) return { ...row, meta: t("policy.managedBy", { organization: active.policy.organizationName }), warning: true };if (needsCli(active)) return { ...row, meta: t("model.setupRequired"), warning: true };if (needsSignIn(active) && !isCustomOnly(active) && !option?.custom) return { ...row, meta: t("model.signInRequired"), warning: true };- if (bot.follows === true) return { ...row, meta: t("model.simple.botsModel", { name: bot.name }) };+ if (bot.follows === true) return { ...row, meta: t(input.updatesBotDefault ? "model.simple.botsModelScope" : "model.simple.botsModel", { name: bot.name }) };const family = signInFamily(active);const accounts = family ? instances.filter((instance) => signInFamily(instance) === family).length : 0;if (accounts > 1 || active.snapshot.chatgptPlan) return { ...row, meta: engineDisplayName(active) };diff --git a/src/locales/en.json b/src/locales/en.jsonindex 5947bbaed6..98bad2d4ad 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -1723,6 +1723,7 @@"settings.followUp.queue": "Queue it for after the turn","settings.followUp.subtitle": "Steering adds your message to what the bot is doing now; queueing runs it once the turn ends. {key} does the other one for a single message, and the arrow beside Send can also restart the turn. On this device only.","settings.userBubbles.title": "Color my messages",+ "settings.userBubbles.simpleTitle": "Use the bot's color for my messages","settings.userBubbles.subtitle": "In a one-to-one chat, your messages are filled with a gradient of that bot's color. Rooms keep the neutral bubble.","settings.userBubbles.aria": "Color my messages with the bot's color","settings.advancedMode.title": "Advanced mode",@@ -2582,6 +2583,7 @@"chat.emptyPrompt": "Send a message to start the conversation.","chat.chiefOfStaff": "Chief of Staff","chat.openProfile": "Open agent profile",+ "chat.openBotPanel": "Details and conversations","chat.backToMainThread": "Back to your chat","chat.openProfileAria": "Open {name}'s profile","chat.showConversations": "Show {name}'s conversations",@@ -3022,6 +3024,7 @@"model.simple.signInForOwn": "Sign in for {name}'s own models","model.simple.reasoning": "Reasoning","model.simple.botsModel": "{name}'s model",+ "model.simple.botsModelScope": "{name}'s model, used in all its chats","model.simple.unavailable": "Unavailable","model.orgBlocked": "Turned off by your organization","model.simple.signIn": "Sign in",@@ -3032,6 +3035,7 @@"model.simple.clearSearch": "Clear search","model.simple.thinkingLevel": "{level} thinking. Higher is slower but more careful.","model.simple.thinkingDefault": "The model decides how hard to think.",+ "model.simple.thinkingAuto": "Auto lets the model choose. Higher levels are slower but more careful.","model.simple.thinkingSummary": "{level} thinking","model.setupRequired": "Setup required","model.signInRequired": "Sign-in required",@@ -6525,6 +6529,8 @@"settings.simple.people.invite": "Invite someone","settings.simple.looks.title": "More looks","settings.simple.looks.change": "Change",+ "settings.simple.themes.title": "Color themes",+ "settings.simple.themes.browse": "Browse themes","settings.simple.looks.back": "Back","settings.simple.theme.system": "Follow system","settings.simple.language.system": "Follow system",