Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

UI polish round 13: a fresh conversation from +, plainer theme and thinking guidance

aivsomkar095fa9785618
diff --git a/src/components/BotSettingsDialog.simple.test.ts b/src/components/BotSettingsDialog.simple.test.ts
index 3cb726b992..e4b365325d 100644
--- a/src/components/BotSettingsDialog.simple.test.ts
+++ b/src/components/BotSettingsDialog.simple.test.ts
@@ -622,7 +622,7 @@ describe("the Details tab", () => {
const empty = botTab(makeBot());
expect(empty.html).toContain('data-panel-empty="routines"');
expect(empty.html).toContain(">Jobs this bot runs on a schedule, like a news roundup every morning.</p>");
- expect(empty.html).toContain(">See every bot&#x27;s routines in Automations<svg");
+ expect(empty.html).toContain(">View all routines in Automations<svg");
expect(empty.html.match(/data-panel-page="routines"/g)).toHaveLength(1);
const add = find(empty, "data-panel-page", "routines");
expect(empty.html).toMatch(/data-panel-page="routines"[^>]*>.*<span class="truncate">Add a routine<\/span><\/button>/);
diff --git a/src/components/ModelPicker.dom.test.ts b/src/components/ModelPicker.dom.test.ts
index 5af3475bdb..442007ce85 100644
--- a/src/components/ModelPicker.dom.test.ts
+++ b/src/components/ModelPicker.dom.test.ts
@@ -359,13 +359,13 @@ describe("the floating menu and the pointer", () => {
vi.spyOn(chip(), "getBoundingClientRect").mockImplementation(() =>
({ left: right - 80, right, top: 40, bottom: 72, width: 80, height: 32, x: right - 80, y: 40, toJSON: () => ({}) }) as DOMRect);
await openWith("click");
- expect(menu()!.style.left).toBe(`${980 - 300}px`);
+ expect(menu()!.style.left).toBe(`${980 - 324}px`);
right = 952;
flushSync(() => chip().parentElement!.dispatchEvent(new Event("animationend", { bubbles: true })));
- expect(menu()!.style.left).toBe(`${952 - 300}px`);
+ expect(menu()!.style.left).toBe(`${952 - 324}px`);
right = 900;
flushSync(() => menu()!.dispatchEvent(new Event("animationend", { bubbles: true })));
- expect(menu()!.style.left).toBe(`${952 - 300}px`);
+ expect(menu()!.style.left).toBe(`${952 - 324}px`);
});
it("moves the keyboard highlight to the row under the mouse once the keyboard is in the list", async () => {
diff --git a/src/components/ModelPicker.simple.test.ts b/src/components/ModelPicker.simple.test.ts
index fbcbd0ab6a..23080944e9 100644
--- a/src/components/ModelPicker.simple.test.ts
+++ b/src/components/ModelPicker.simple.test.ts
@@ -186,15 +186,15 @@ describe("the model picker in Simple mode", () => {
expect(html).not.toContain("new chats too");
});
- it("is a 300px menu on the shared menu surface, and the full picker keeps its own 420px", () => {
- expect(SIMPLE_POPOVER_WIDTH).toBe(300);
+ it("is a 324px menu on the shared menu surface, and the full picker keeps its own 420px", () => {
+ expect(SIMPLE_POPOVER_WIDTH).toBe(324);
fixture.instances = [claude(false)];
const forBot = bot();
const opened = open(forBot);
const content = opened.nodes.find((node) => node.props["data-model-picker-content"] !== undefined)!;
expect(String(content.props.className)).toContain("menu-surface");
expect(String(content.props.className)).not.toMatch(/\bborder\b|shadow-2xl|rounded-2xl/);
- expect(menu(opened.html)).toContain("width:300px");
+ expect(menu(opened.html)).toContain("width:324px");
pane(opened)!.props.onSetUp(instance("claude"), false);
expect(menu(render(forBot).html)).toContain("width:420px");
});
@@ -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">Auto lets the model choose. Higher levels are slower but more careful.</p>');
+ expect(atDefault).toContain('data-simple-effort-auto="true" class="px-2 pb-1 text-[12px] leading-4 text-ink-tertiary">Recommended. The model picks how hard to think; 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", () => {
diff --git a/src/components/ModelPicker.tsx b/src/components/ModelPicker.tsx
index 1dc76fff79..f505157628 100644
--- a/src/components/ModelPicker.tsx
+++ b/src/components/ModelPicker.tsx
@@ -197,7 +197,7 @@ export function ModelVariantRow({ bot, threadId, updateBotDefault, className, la
const POPOVER_WIDTH = 420;
const POPOVER_HEIGHT = 600;
-export const SIMPLE_POPOVER_WIDTH = 300;
+export const SIMPLE_POPOVER_WIDTH = 324;
const MENU_ITSELF = ":scope";
export function ModelPicker({
@@ -675,8 +675,7 @@ export function ModelPicker({
instances,
listed: pickerInstances,
selection,
- bot: { name: profile.name, selection: profile.modelSelection, follows },
- updatesBotDefault: !threadId || simpleUpdatesBotDefault,
+ bot: { name: profile.name, selection: profile.modelSelection, follows }, updatesBotDefault: !threadId || simpleUpdatesBotDefault,
query,
expanded,
probing,
diff --git a/src/components/SettingsSimplePages.tsx b/src/components/SettingsSimplePages.tsx
index eed01cedc1..1a68377326 100644
--- a/src/components/SettingsSimplePages.tsx
+++ b/src/components/SettingsSimplePages.tsx
@@ -112,8 +112,7 @@ export function SimpleGeneralPage({ has, peopleOpen, onLooks }: { has: Has; peop
function LooksRow({ onLooks }: { onLooks: () => void }) {
const current = SKINS.find((skin) => skin.id === resolveSkin(useSkinChoice()))?.name;
return (
- <SettingRow title={t("settings.theme.title")} subtitle={t("settings.simple.themes.hint")}>
- {current && <span data-looks-current className="me-3 text-[13px] text-ink-tertiary">{current}</span>}
+ <SettingRow title={current ? `${t("settings.theme.title")} · ${current}` : t("settings.theme.title")} subtitle={t("settings.simple.themes.hint")}>
<button type="button" className="ui-button" onClick={onLooks}>{t("settings.simple.themes.browse")}</button>
</SettingRow>
);
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index fe543bda1a..c53d222c94 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -1,7 +1,7 @@
import { OrganizationIdentity } from "./OrganizationIdentity";
import { memo, useCallback, useEffect, useMemo, useRef, useState, type CSSProperties, type Dispatch } from "react";
import { createPortal } from "react-dom";
-import { Archive, Bot as BotIcon, Check, ChevronRight, ClipboardCopy, Crown, FolderPlus, LayoutTemplate, Loader2, MessageSquarePlus, MoreHorizontal, Pencil, Phone, Pin, Plus, Search, TextQuote, Trash2, Users, X } from "lucide-react";
+import { Archive, Bot as BotIcon, Check, ChevronRight, ClipboardCopy, Crown, FolderPlus, LayoutTemplate, Loader2, MessageSquarePlus, MoreHorizontal, Pencil, Phone, Pin, Plus, Search, SquarePen, TextQuote, Trash2, Users, X } from "lucide-react";
import { api, useStore, formatTime, visibleMessages, currentTaskBot, botOpensTo, openBot, openThread, type Action, type AppState, type Bot, type BotProject, type Group, type InstanceInfo, type Message } from "@/state/store";
import { approvalModeFor } from "../../shared/approval-mode";
import { liveActivityLabel, sidebarMessage } from "@/lib/live-activity";
@@ -1144,7 +1144,7 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {
setSearchOpen(true);
toggleCollapsed();
};
- const plusItem = cn(MENU_ITEM, "text-ink hover:bg-menu-hover");
+ const plusItem = cn(MENU_ITEM, "text-ink hover:bg-menu-hover"), plusBot = state.activeView === "chat" ? state.bots.find((candidate) => candidate.id === state.selectedId) : undefined;
const plusControl = (
<div ref={plusMenuRef} className="contents">
<button
@@ -1177,6 +1177,7 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {
<MessageSquarePlus size={16} className="text-ink-secondary" />
{t("sidebar.newChat.title")}
</button>}
+ {!advanced && plusBot && <button role="menuitem" className={cn(plusItem, "border-b-[0.5px] border-ink/10")} onClick={() => { setPlusOpen(false); dispatch({ type: "newTask", botId: plusBot.id }); }}><SquarePen size={16} className="text-ink-secondary" />{t("sidebar.newConversationWith", { name: plusBot.name })}</button>}
{teamSettingsAllowed !== false && <button
onClick={() => { setPlusOpen(false); dispatch({ type: "newBot" }); }}
role="menuitem"
@@ -1194,8 +1195,7 @@ export function Sidebar({ open, onClose, collapseToIcons = false }: {
role="menuitem"
className={plusItem}
>
- <Users size={16} className="text-ink-secondary" />
- {t("sidebar.newChannel.title")}
+ <Users size={16} className="text-ink-secondary" />{t("sidebar.newChannel.title")}
</button>
{advanced && !remoteClient && teamSettingsAllowed !== false && <button
onClick={() => { setPlusOpen(false); setNewTeam(true); }}
diff --git a/src/components/SimpleModelMenu.tsx b/src/components/SimpleModelMenu.tsx
index c2a636f20f..b533c62918 100644
--- a/src/components/SimpleModelMenu.tsx
+++ b/src/components/SimpleModelMenu.tsx
@@ -160,7 +160,7 @@ function Thinking({ thinking, labelId }: { thinking: SimpleThinking; labelId: st
const levels = thinking;
const auto = levels.current === undefined;
const pill = (pressed: boolean) => cn(
- "h-7 min-w-0 truncate rounded-full px-1.5 text-[12px] leading-4 transition-colors touch:h-8",
+ "h-8 min-w-0 truncate rounded-full px-1.5 text-[13px] leading-4 transition-colors",
pressed ? "bg-ink/[0.1] font-medium text-ink" : "text-ink-secondary hover:text-ink",
);
return (
@@ -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.thinkingAuto") : t("model.simple.thinkingLevel", { level: effortLabel(levels.current!) })}
+ {auto ? t("model.simple.thinkingAuto") : t(`model.simple.effortHint.${levels.current!}`)}
</p>
</div>
);
diff --git a/src/components/bot-panel/DetailsTab.tsx b/src/components/bot-panel/DetailsTab.tsx
index bbf330868c..d047fd55a9 100644
--- a/src/components/bot-panel/DetailsTab.tsx
+++ b/src/components/bot-panel/DetailsTab.tsx
@@ -69,7 +69,7 @@ export function DetailsTab({ bot, derived, onOpen }: {
<CardLabel>{t("botSettings.simple.routines")}</CardLabel>
<p className="mx-3.5 text-[13px] leading-[18px] text-ink-tertiary">{t("botPanel.routines.emptyHint")}</p>
<button type="button" data-panel-automations onClick={() => dispatch({ type: "showRoutines", view: "list" })}
- className="mx-3.5 mt-1.5 inline-flex items-center gap-0.5 rounded-[4px] text-[13px] font-medium text-ink-secondary hover:text-ink">
+ className="mx-3.5 mt-0.5 inline-flex min-h-7 items-center gap-0.5 rounded-[4px] text-[13px] font-medium text-ink-secondary underline-offset-2 hover:text-ink hover:underline focus-visible:underline">
{t("botPanel.routines.seeAll")}<ChevronRight size={14} aria-hidden="true" className="rtl:-scale-x-100" />
</button>
<button
diff --git a/src/locales/en.json b/src/locales/en.json
index 2967d5493a..2eece59e72 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -2143,6 +2143,7 @@
"sidebar.room.deleteChatBody": "This permanently deletes the {name} thread and its messages. The bots in it are not deleted. This cannot be undone.",
"sidebar.copyConversationId": "Copy conversation ID",
"sidebar.newChannel.title": "New group chat",
+ "sidebar.newConversationWith": "New conversation with {name}",
"sidebar.newChannel.name": "Group chat name (for example, Website launch)",
"sidebar.newChannel.nameLabel": "Group chat name",
"sidebar.newChannel.context": "Department (optional): Work, Personal, Client…",
@@ -3037,7 +3038,13 @@
"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.thinkingAuto": "Recommended. The model picks how hard to think; higher levels are slower but more careful.",
+ "model.simple.effortHint.none": "No extra thinking. The fastest replies.",
+ "model.simple.effortHint.low": "A little thinking. Quick replies for simple asks.",
+ "model.simple.effortHint.medium": "Some thinking. A good balance for most work.",
+ "model.simple.effortHint.high": "Careful thinking for harder problems. Slower.",
+ "model.simple.effortHint.xhigh": "Very careful, for tricky multi-step work. Slower still.",
+ "model.simple.effortHint.max": "Thinks as long as it needs. Slowest, for the hardest jobs.",
"model.simple.thinkingSummary": "{level} thinking",
"model.setupRequired": "Setup required",
"model.signInRequired": "Sign-in required",
@@ -4263,7 +4270,7 @@
"botPanel.tab.library": "Library",
"botPanel.routines.empty": "Routines are recurring tasks this bot runs on a schedule. Ask it in chat to set one up.",
"botPanel.routines.emptyHint": "Jobs this bot runs on a schedule, like a news roundup every morning.",
- "botPanel.routines.seeAll": "See every bot's routines in Automations",
+ "botPanel.routines.seeAll": "View all routines in Automations",
"botPanel.routines.add": "Add a routine",
"botPanel.library.empty": "Pages, files, and apps this bot makes show up here",
"botPanel.library.pages": "Pages",
@@ -6534,7 +6541,7 @@
"settings.simple.looks.change": "Change",
"settings.simple.themes.title": "Color themes",
"settings.simple.themes.browse": "Browse themes",
- "settings.simple.themes.hint": "Light or dark switches between Daylight and Midnight. Pick any other theme to keep it on.",
+ "settings.simple.themes.hint": "Follow system switches between Daylight and Midnight. Other themes stay fixed until you change them.",
"settings.simple.looks.back": "Back",
"settings.simple.theme.system": "Follow system",
"settings.simple.language.system": "Follow system",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 79f05c8064..b8edb20bba 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -2020,6 +2020,7 @@
"sidebar.room.deleteChatBody": "Isso exclui permanentemente a conversa {name} e suas mensagens. Os bots da conversa não são excluídos. Não dá para desfazer.",
"sidebar.copyConversationId": "Copiar ID da conversa",
"sidebar.newChannel.title": "Novo chat em grupo",
+ "sidebar.newConversationWith": "Nova conversa com {name}",
"sidebar.newChannel.name": "Nome do grupo (ex.: Lançamento do site)",
"sidebar.newChannel.nameLabel": "Nome do chat em grupo",
"sidebar.newChannel.context": "Equipe (opcional): Trabalho, Pessoal, Cliente…",
@@ -2907,7 +2908,13 @@
"model.simple.clearSearch": "Limpar busca",
"model.simple.thinkingLevel": "Raciocínio: {level}. Níveis mais altos deixam o raciocínio mais lento, mas mais cuidadoso.",
"model.simple.thinkingDefault": "O modelo decide quanto precisa pensar.",
- "model.simple.thinkingAuto": "No Auto, o modelo escolhe. Níveis mais altos são mais lentos, porém mais cuidadosos.",
+ "model.simple.thinkingAuto": "Recomendado. O modelo escolhe quanto pensar; níveis mais altos são mais lentos, porém mais cuidadosos.",
+ "model.simple.effortHint.none": "Sem raciocínio extra. As respostas mais rápidas.",
+ "model.simple.effortHint.low": "Um pouco de raciocínio. Respostas rápidas para pedidos simples.",
+ "model.simple.effortHint.medium": "Algum raciocínio. Um bom equilíbrio para a maioria das tarefas.",
+ "model.simple.effortHint.high": "Raciocínio cuidadoso para problemas mais difíceis. Mais lento.",
+ "model.simple.effortHint.xhigh": "Muito cuidadoso, para tarefas complexas em várias etapas. Ainda mais lento.",
+ "model.simple.effortHint.max": "Pensa o quanto precisar. O mais lento, para as tarefas mais difíceis.",
"model.simple.thinkingSummary": "Raciocínio: {level}",
"model.setupRequired": "Precisa de configuração",
"model.signInRequired": "Precisa de login",
@@ -6269,7 +6276,7 @@
"settings.simple.looks.change": "Alterar",
"settings.simple.themes.title": "Temas de cores",
"settings.simple.themes.browse": "Ver temas",
- "settings.simple.themes.hint": "Claro ou escuro alterna entre Daylight e Midnight. Escolha qualquer outro tema para mantê-lo.",
+ "settings.simple.themes.hint": "Seguir o sistema alterna entre Daylight e Midnight. Outros temas ficam fixos até você mudar.",
"settings.simple.looks.back": "Voltar",
"settings.simple.theme.system": "Seguir o sistema",
"settings.simple.language.system": "Seguir o sistema",
@@ -7320,7 +7327,7 @@
"botPanel.tab.library": "Biblioteca",
"botPanel.routines.empty": "Rotinas são tarefas recorrentes que este bot executa em horários definidos. Peça no chat para ele criar uma.",
"botPanel.routines.emptyHint": "Tarefas que este bot executa em um horário, como um resumo de notícias toda manhã.",
- "botPanel.routines.seeAll": "Ver as rotinas de todos os bots em Automações",
+ "botPanel.routines.seeAll": "Ver todas as rotinas em Automações",
"botPanel.routines.add": "Adicionar uma rotina",
"botPanel.library.empty": "As páginas, os arquivos e os apps que este bot cria aparecem aqui",
"botPanel.library.pages": "Páginas",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index f33e6865ff..72fc6882f3 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -33314,17 +33314,24 @@
"settings.simple.group.typing": "0b96af8bce90a78a3ab5958209736b8738fe952deefc38fc958a14fbbeb75ef6",
"model.simple.auto": "0286249762f7c94349cdc0ba3bb2255baf9a80036e2193ead1d77696f888582f",
"botPanel.routines.emptyHint": "b540483c412961de856a2336db7643a5a7f3bc816afe8d3b9985b0fba6bf4cf0",
- "botPanel.routines.seeAll": "b19d361a58c13c0aa6ee4636d2948af133bb809425fe678c135b21eefb0f7775",
+ "botPanel.routines.seeAll": "d527f42e92589c7cdf4206957f30f7f0236358f47139f591023c83a68e8ce3b2",
"settings.userBubbles.simpleTitle": "376821eb1ffb476bbbe293fe9c8f43d79e8f64417292afade8a351e443941aaa",
"chat.openBotPanel": "1f9ede9056d58ca37a4f7f79dd7da5226a8f30d0f1b616ac7eaaca6dcebaccbf",
- "model.simple.thinkingAuto": "d197c7577cb9c63227b5e04ef066f6e69b1552577edd17788f88da04883ff3b5",
+ "model.simple.thinkingAuto": "06130b18bfad8c684041ec5c924ff0f27083fc192dbf275be321c8dcabc978b9",
"model.simple.botsModelScope": "c82c64a1fc353ed97f01626c16baf213f73cc6c0859519653ec5eaea9608bbee",
"settings.simple.themes.title": "eceab8df6ddf48352bc730a2784437d15472a4e9d81ee29834587d7f1a532e08",
"settings.simple.themes.browse": "5d7a5476ede9e8cb334ca24996a48200bea59e871006443754457753f797bf53",
"task.untitledChat": "4d4e126c2185da5e86b7478f0f12fc30009339941ef0d8627959aeb4641b6f69",
"settings.theme.lightOrDark": "9c259901979dc2195dc36e59bf07ea998c75f090cbd266614bb4b3bcffe04333",
"placeLook.sharedPictureSub": "6f65f006618295894fcd7f2158e066745e9c8eb621e8bcd81df21602663fb1a0",
- "settings.simple.themes.hint": "c3a92ede69003cc37437a7d74d20acbfd8278bd43841fd124339c829497ce6ed"
+ "settings.simple.themes.hint": "b4a933bbef7eebd1ba5305d6bbc14395b9c23eb149178c14c1b1436510c88a9b",
+ "sidebar.newConversationWith": "980cf3e4baa59749dbe29ac4960fccb0ec6a5278903cdef15e4afae74657c2ac",
+ "model.simple.effortHint.none": "55a20fa5220bf26aa8762241df3dfb36f421390668b629feb585e07bef8a35fa",
+ "model.simple.effortHint.low": "5922c465b05d4d086ba46fee455e609c44f43f0f888e8c9743586d7ed51c5c30",
+ "model.simple.effortHint.medium": "b74fb799966ff8749e0b5448e4327c74895473651216e174081f9628fc82a5de",
+ "model.simple.effortHint.high": "1047c77245128c587fef2147e25c8f5bf3f26e7b93f8d6427404c3a0707b8be5",
+ "model.simple.effortHint.xhigh": "0d7b127249765963253aba66f71673ff43ddaadb8388cd08869cbf0c84c20695",
+ "model.simple.effortHint.max": "6e85e76c8a82a49efaf6d7bdc01096003ea30f6b334306381b8d6c6f450fb452"
},
"zh": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",