Skip to content

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

UI polish: one radius scale, clearer type, replies that read as one answer

aivsomkar09ef50900e8e
diff --git a/src/components/AskCard.test.ts b/src/components/AskCard.test.ts
index 3e87fa1317..478d8ab79f 100644
--- a/src/components/AskCard.test.ts
+++ b/src/components/AskCard.test.ts
@@ -13,7 +13,7 @@ describe("AskCard", () => {
it("is one raised card in both modes: the composer's surface, a 0.5px hairline, rounded 20, 560 wide", () => {
const html = renderToStaticMarkup(createElement(AskCard, { ariaLabel: "Plan", title: "Choose a plan", explanation: "Why it asks." }));
const card = classesOf(html, /^<div[^>]*class="([^"]*)"/);
- expect(card).toEqual(expect.arrayContaining(["bg-composer", "ring-[0.5px]", "ring-ink/10", "rounded-[24px]", "max-w-[560px]", "w-full", "text-start"]));
+ expect(card).toEqual(expect.arrayContaining(["bg-composer", "ring-[0.5px]", "ring-ink/10", "rounded-[18px]", "max-w-[560px]", "w-full", "text-start"]));
expect(html).toContain('role="group"');
expect(html).toContain('aria-label="Plan"');
expect(html).toContain("Why it asks.");
diff --git a/src/components/AskCard.tsx b/src/components/AskCard.tsx
index 85717d7825..1bec2626ab 100644
--- a/src/components/AskCard.tsx
+++ b/src/components/AskCard.tsx
@@ -65,7 +65,7 @@ export function AskCard({
data-tour={tour}
data-ask-card="pending"
onKeyDown={onKeyDown}
- className={cn("w-full max-w-[560px] rounded-[24px] px-4 pb-3.5 pt-3 text-start", stays ? `sticky top-[60px] bottom-[72px] z-10 ${ELEVATED_FLOAT}` : ELEVATED_CARD)}
+ className={cn("w-full max-w-[560px] rounded-[18px] px-4 pb-3.5 pt-3 text-start", stays ? `sticky top-[60px] bottom-[72px] z-10 ${ELEVATED_FLOAT}` : ELEVATED_CARD)}
>
{header && <div className="mb-1.5 pe-6">{header}</div>}
<div className="flex min-w-0 items-start gap-2">
@@ -294,7 +294,7 @@ export const ASK_SECONDARY_BUTTON = `${ASK_BUTTON_SHAPE} ${ASK_LOOK} bg-ink/[0.0
/** An extra option that should not compete with the answer: Always allow, Details. */
export const ASK_QUIET_ANSWER = `${ASK_BUTTON_SHAPE} ${ASK_LOOK} text-ink-secondary enabled:hover:bg-ink/[0.06] enabled:hover:text-ink enabled:active:bg-ink/[0.1]`;
-const ASK_CHOICE = `flex min-h-10 w-full items-center gap-2.5 rounded-[14px] px-3.5 py-2 text-start text-[14px] leading-5 text-ink ring-[0.5px] ring-ink/[0.14] transition-colors ${ASK_LOOK} disabled:cursor-default pointer-coarse:min-h-11`;
+const ASK_CHOICE = `flex min-h-10 w-full items-center gap-2.5 rounded-[12px] px-3.5 py-2 text-start text-[14px] leading-5 text-ink ring-[0.5px] ring-ink/[0.14] transition-colors ${ASK_LOOK} disabled:cursor-default pointer-coarse:min-h-11`;
export const ASK_CHIP = `${ASK_CONTROL} max-w-full border`;
export const ASK_CHIP_IDLE = "border-transparent bg-ink/[0.07] text-ink hover:bg-ink/[0.12]";
diff --git a/src/components/ChatHeadPill.tsx b/src/components/ChatHeadPill.tsx
index d7fbd86718..b2b7513db7 100644
--- a/src/components/ChatHeadPill.tsx
+++ b/src/components/ChatHeadPill.tsx
@@ -78,8 +78,8 @@ export function ChatHeadPill({ bot, avatar, privacy, onToggle }: {
<span role="img" data-chathead-elsewhere aria-label={t("task.otherActivity", { count: elsewhere })} className="size-1.5 shrink-0 rounded-full bg-accent" />
)}
{!open && !conversation && (
- <span aria-hidden="true" data-chathead-chevron className={cn("-ml-2 flex w-0 shrink-0 overflow-hidden opacity-0 transition-[width,margin,opacity] group-hover:ml-0 group-hover:w-2 group-hover:opacity-100 group-focus-visible:ml-0 group-focus-visible:w-2 group-focus-visible:opacity-100", CHEVRON_MOTION)}>
- <ChevronRight size={12} className={cn("-ml-0.5 shrink-0 -translate-x-1.5 text-ink-tertiary transition-transform group-hover:translate-x-0 group-focus-visible:translate-x-0", CHEVRON_MOTION)} />
+ <span aria-hidden="true" data-chathead-chevron className="-ml-0.5 flex shrink-0">
+ <ChevronRight size={12} className={cn("shrink-0 text-ink-tertiary transition-transform group-hover:translate-x-0.5 group-focus-visible:translate-x-0.5", CHEVRON_MOTION)} />
</span>
)}
</button>
diff --git a/src/components/ChatMarkdown.test.ts b/src/components/ChatMarkdown.test.ts
index 8ede32883c..da0adfd24b 100644
--- a/src/components/ChatMarkdown.test.ts
+++ b/src/components/ChatMarkdown.test.ts
@@ -352,7 +352,7 @@ describe("repaired tables", () => {
const html = renderToStaticMarkup(createElement(ChatMarkdown, {
text: "Pros | Cons\n---\n\n| a \\| b | c |\n| --- | --- |\n| 1 | 2 |",
}));
- expect(html).toContain('font-semibold">Pros | Cons</div>');
+ expect(html).toContain('tracking-[-0.005em]">Pros | Cons</div>');
expect(html.match(/<table\b/g)).toHaveLength(1);
expect(html).toContain(">a | b</span>");
expect(html.match(/<th\b/g)).toHaveLength(2);
@@ -555,7 +555,7 @@ describe("#Title thread links in markdown", () => {
const markup = render("`#QA PR 245` in code, [#QA PR 245](https://example.test) as a link, #123 an issue\n\n# QA PR 245\n\nplain");
expect(markup).not.toContain("data-thread-link");
expect(markup).toContain("<code");
- expect(markup).toContain('font-semibold">QA PR 245</div>');
+ expect(markup).toContain('tracking-[-0.01em]">QA PR 245</div>');
});
it("does nothing without any visible threads", () => {
@@ -1223,7 +1223,7 @@ describe("bidi: message content carries its own direction", () => {
].join("\n"),
}));
- expect(html).toContain('<div dir="rtl" class="mt-3 text-[18px] font-semibold">');
+ expect(html).toContain('<div dir="rtl" class="md-heading mt-3 text-[20px] font-semibold leading-[26px] tracking-[-0.01em]">');
expect(html).toContain('<p dir="rtl">');
expect(html).toContain('<p dir="ltr">An English paragraph');
expect(html).toContain('<blockquote dir="rtl"');
diff --git a/src/components/ChatMarkdown.tsx b/src/components/ChatMarkdown.tsx
index e47c65a645..249f88dec9 100644
--- a/src/components/ChatMarkdown.tsx
+++ b/src/components/ChatMarkdown.tsx
@@ -698,10 +698,10 @@ const MARKDOWN_COMPONENTS: Components = {
return <ol dir={blockDirection(node)} className="list-decimal space-y-1 ps-5">{children}</ol>;
},
h1({ node, children }: BlockProps) {
- return <div dir={blockDirection(node)} className="mt-3 text-[18px] font-semibold">{children}</div>;
+ return <div dir={blockDirection(node)} className="md-heading mt-3 text-[20px] font-semibold leading-[26px] tracking-[-0.01em]">{children}</div>;
},
h2({ node, children }: BlockProps) {
- return <div dir={blockDirection(node)} className="mt-2 text-[16px] font-semibold">{children}</div>;
+ return <div dir={blockDirection(node)} className="md-heading mt-2 text-[17px] font-semibold leading-6 tracking-[-0.005em]">{children}</div>;
},
h3({ node, children }: BlockProps) {
return <div dir={blockDirection(node)} className="mt-1.5 font-semibold">{children}</div>;
diff --git a/src/components/CommandPalette.tsx b/src/components/CommandPalette.tsx
index a51fa2a750..db1160dd8c 100644
--- a/src/components/CommandPalette.tsx
+++ b/src/components/CommandPalette.tsx
@@ -1,6 +1,7 @@
import { t } from "@/lib/i18n";
import { useEffect, useRef, useState } from "react";
-import { Bot as BotIcon, MessageSquare, Search, Users } from "lucide-react";
+import { MessageSquare, Search, Users } from "lucide-react";
+import { BotAvatar } from "./Avatar";
import { api, openBot, useStore, type Bot, type Group } from "@/state/store";
import { rankByName } from "@/lib/palette-rank";
import { useShowThreads } from "@/lib/thread-preferences";
@@ -139,9 +140,9 @@ export function CommandPalette({ onOpenChange }: { onOpenChange?: (open: boolean
// mousemove, not mouseenter: rows shifting under a resting pointer must not steal the keyboard selection.
onMouseMove={() => setCursor(index)}
className={cn(
- "flex w-full items-center gap-3 rounded-xl px-3 py-2 text-left",
+ "flex min-h-10 w-full items-center gap-3 rounded-lg px-3 py-2 text-left",
twoLine && "flex-col items-stretch gap-0.5",
- index === selected ? "bg-raised" : "hover:bg-raised/50",
+ index === selected ? "bg-menu-active" : "hover:bg-menu-hover",
)}
>
{children}
@@ -158,7 +159,7 @@ export function CommandPalette({ onOpenChange }: { onOpenChange?: (open: boolean
role="dialog"
aria-modal="true"
aria-label={t("palette.label")}
- className="popover-surface flex max-h-[min(480px,70vh)] w-full max-w-[560px] flex-col overflow-hidden rounded-xl border border-hairline/50 bg-card shadow-2xl shadow-black/60"
+ className="popover-surface flex max-h-[min(480px,70vh)] w-full max-w-[560px] flex-col overflow-hidden rounded-[var(--radius-menu)] border border-hairline/50 bg-menu shadow-2xl shadow-black/60"
>
<div className="flex items-center gap-3 border-b border-hairline/40 px-4 py-3">
<Search size={16} className="shrink-0 text-ink-secondary" />
@@ -181,7 +182,7 @@ export function CommandPalette({ onOpenChange }: { onOpenChange?: (open: boolean
</div>
)}
{bots.length > 0 && (
- <div className="px-3 pb-1 pt-1.5 text-[11px] font-medium uppercase tracking-[0.08em] text-ink-secondary">
+ <div className="px-3 pb-1 pt-1.5 text-[12px] font-medium text-ink-tertiary">
{t("palette.bots")}
</div>
)}
@@ -191,7 +192,7 @@ export function CommandPalette({ onOpenChange }: { onOpenChange?: (open: boolean
i,
() => void activate({ kind: "bot", bot }),
<>
- <BotIcon size={16} className="shrink-0 text-ink-secondary" />
+ <BotAvatar bot={bot} state="happy" size={22} animated={false} />
<span className="truncate text-[14px] text-ink">{bot.name}</span>
{bot.title && (
<span className="min-w-0 truncate text-[13px] text-ink-secondary">{bot.title}</span>
@@ -200,7 +201,7 @@ export function CommandPalette({ onOpenChange }: { onOpenChange?: (open: boolean
),
)}
{rooms.length > 0 && (
- <div className="px-3 pb-1 pt-2 text-[11px] font-medium uppercase tracking-[0.08em] text-ink-secondary">
+ <div className="px-3 pb-1 pt-2 text-[12px] font-medium text-ink-tertiary">
{t("palette.groups")}
</div>
)}
@@ -210,13 +211,13 @@ export function CommandPalette({ onOpenChange }: { onOpenChange?: (open: boolean
roomOffset + i,
() => void activate({ kind: "room", group }),
<>
- <Users size={16} className="shrink-0 text-ink-secondary" />
+ <Users size={16} strokeWidth={1.75} className="mx-[3px] shrink-0 text-ink-secondary" />
<span className="truncate text-[14px] text-ink">{group.name}</span>
</>,
),
)}
{q && messageHits.length > 0 && (
- <div className="px-3 pb-1 pt-2 text-[11px] font-medium uppercase tracking-[0.08em] text-ink-secondary">
+ <div className="px-3 pb-1 pt-2 text-[12px] font-medium text-ink-tertiary">
{t("palette.messages")}
</div>
)}
diff --git a/src/components/Composer.simple.test.ts b/src/components/Composer.simple.test.ts
index 93c25ed6cf..d3ea543f74 100644
--- a/src/components/Composer.simple.test.ts
+++ b/src/components/Composer.simple.test.ts
@@ -130,7 +130,7 @@ describe("the Simple composer in a bot chat", () => {
expect([...menu()!.querySelectorAll("[data-menu-key]")].map((row) => row.textContent)).toEqual(["Attach files", "Work until done", "Teach a task"]);
const row = menu()!.querySelector("[data-menu-key='attach']")!.className.split(" ");
expect(row).toEqual(expect.arrayContaining(["h-[34px]", "gap-2", "px-3", "text-[15px]"]));
- expect(menu()!.className.split(" ")).toEqual(expect.arrayContaining(["popover-surface", "rounded-[14px]", "w-max", "min-w-[200px]", "max-w-[280px]"]));
+ expect(menu()!.className.split(" ")).toEqual(expect.arrayContaining(["popover-surface", "rounded-[12px]", "w-max", "min-w-[200px]", "max-w-[280px]"]));
});
it("starts a /learn draft from Teach a task, ahead of anything already typed", () => {
diff --git a/src/components/Composer.tsx b/src/components/Composer.tsx
index ae1348d8d2..0cc68689c9 100644
--- a/src/components/Composer.tsx
+++ b/src/components/Composer.tsx
@@ -713,7 +713,7 @@ export function Composer({
<MentionMenu listRef={mentionListRef} motion={mentionMotion} choices={candidates} highlight={highlight}
everyoneCount={mentionEveryoneCount} onPick={pickMention} onHighlight={setHighlight} />
{approval && (
- <div className={cn("mb-2 overflow-hidden rounded-[24px]", ELEVATED_CARD)}>
+ <div className={cn("mb-2 overflow-hidden rounded-[18px]", ELEVATED_CARD)}>
<PendingApprovalPanel
key={approval.requestId}
pending={approval}
diff --git a/src/components/ComposerPlusMenu.tsx b/src/components/ComposerPlusMenu.tsx
index 1d36628b7b..76d01b089d 100644
--- a/src/components/ComposerPlusMenu.tsx
+++ b/src/components/ComposerPlusMenu.tsx
@@ -321,7 +321,7 @@ function ComposerMenu({ items, renderTrigger }: { items: SidebarMenuItem[]; rend
data-composer-menu
{...motion.exitProps}
className={cn(
- "popover-surface absolute bottom-full start-0 z-40 mb-2 w-max min-w-[200px] max-w-[280px] origin-bottom-left rounded-[14px] border-[0.5px] border-ink/10 bg-menu p-1",
+ "popover-surface absolute bottom-full start-0 z-40 mb-2 w-max min-w-[200px] max-w-[280px] origin-bottom-left rounded-[12px] border-[0.5px] border-ink/10 bg-menu p-1",
motion.className,
)}
>
@@ -336,7 +336,7 @@ function ComposerMenu({ items, renderTrigger }: { items: SidebarMenuItem[]; rend
close(false);
item.onSelect();
}}
- className="flex h-[34px] w-full items-center gap-2 rounded-[9px] px-3 text-start text-[15px] text-ink transition-colors hover:bg-menu-hover focus-visible:bg-menu-hover focus-visible:outline-none disabled:opacity-50"
+ className="flex h-[34px] w-full items-center gap-2 rounded-[8px] px-3 text-start text-[15px] text-ink transition-colors hover:bg-menu-hover focus-visible:bg-menu-hover focus-visible:outline-none disabled:opacity-50"
>
<span className={cn("flex size-3.5 shrink-0 items-center justify-center [&_svg]:size-3.5 [&_svg]:stroke-[1.5]", item.active ? "text-accent" : "text-ink-secondary")} aria-hidden="true">{item.icon}</span>
<span className="min-w-0 flex-1 truncate">{item.label}</span>
diff --git a/src/components/ComputerNode.tsx b/src/components/ComputerNode.tsx
index b343729771..c8bc17c143 100644
--- a/src/components/ComputerNode.tsx
+++ b/src/components/ComputerNode.tsx
@@ -43,7 +43,7 @@ export const ComputerNode = memo(function ComputerNode({ computer, bots, frameUr
<button type="button" onClick={onOpen} disabled={!onOpen} title={activity ? `${name} · ${activity}` : name}
aria-label={t("mapComputer.open", { name, state: t(STATE_LABEL[state]) })}
className="relative flex size-full flex-col rounded-[18px] border border-white/10 bg-[#0f1117] p-2 text-left shadow-[0_10px_30px_rgba(0,0,0,0.35)] outline-none transition-transform hover:-translate-y-0.5 focus-visible:ring-2 focus-visible:ring-accent disabled:cursor-default">
- <span className="relative block h-[160px] w-full overflow-hidden rounded-[10px] bg-[#06070b] [contain:paint]">
+ <span className="relative block h-[160px] w-full overflow-hidden rounded-[8px] bg-[#06070b] [contain:paint]">
{frameUrl
? <img src={frameUrl} alt="" draggable={false} decoding="async" className={cn("size-full object-cover", state === "asleep" || state === "off" ? "opacity-40 grayscale" : "")} />
: <span className="flex size-full flex-col items-center justify-center gap-2 bg-[radial-gradient(circle_at_50%_40%,#1b2030,#06070b_70%)] text-[11px] text-white/45">
diff --git a/src/components/EmailCard.tsx b/src/components/EmailCard.tsx
index 36ca8118cb..21c11d4790 100644
--- a/src/components/EmailCard.tsx
+++ b/src/components/EmailCard.tsx
@@ -9,7 +9,7 @@ import { SidebarPopoverMenu } from "./SidebarPopoverMenu";
export function EmailIcon() {
return (
- <span className="grid size-10 shrink-0 place-items-center rounded-[10px] bg-[#2f6f6d] text-white" aria-hidden="true"><Mail size={20} /></span>
+ <span className="grid size-10 shrink-0 place-items-center rounded-[8px] bg-[#2f6f6d] text-white" aria-hidden="true"><Mail size={20} /></span>
);
}
diff --git a/src/components/ModelPicker.simple.test.ts b/src/components/ModelPicker.simple.test.ts
index 8cf23fd459..859c654b4e 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).not.toContain('aria-pressed="true"');
expect(atDefault).not.toContain("Use default");
- expect(atDefault).toContain('title="The model decides how hard to think." class="text-[12px] leading-4 text-ink-tertiary">Default</span>');
+ 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>');
});
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/PlaceAddSheet.tsx b/src/components/PlaceAddSheet.tsx
index fc3564bf70..b7df3b141c 100644
--- a/src/components/PlaceAddSheet.tsx
+++ b/src/components/PlaceAddSheet.tsx
@@ -122,7 +122,7 @@ export function OwnServerLink({ onBack, onConnected, connect = null, start = nul
function Choice({ icon, title, sub, onClick, kind }: { icon: ReactNode; title: string; sub: string; onClick: () => void; kind: string }) {
return <button type="button" data-place-add-choice={kind} onClick={onClick}
className="flex min-w-0 flex-1 flex-col items-start gap-2 rounded-2xl border border-hairline bg-card p-5 text-start transition-colors hover:border-accent/60 hover:bg-raised focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus">
- <span aria-hidden="true" className="grid size-9 place-items-center rounded-[10px] bg-accent/12 text-accent-text">{icon}</span>
+ <span aria-hidden="true" className="grid size-9 place-items-center rounded-[8px] bg-accent/12 text-accent-text">{icon}</span>
<span className="text-[15px] font-semibold text-ink">{title}</span>
<span className="text-[13px] leading-snug text-ink-secondary">{sub}</span>
</button>;
diff --git a/src/components/PlacesRail.test.ts b/src/components/PlacesRail.test.ts
index 7be440318f..a00ede21ad 100644
--- a/src/components/PlacesRail.test.ts
+++ b/src/components/PlacesRail.test.ts
@@ -358,7 +358,7 @@ it("the window's own rail: drawn at every width, 36px wide with small rounded ti
expect(nav.textContent, "no name under the place on screen: its tile's ring marks it").toBe("MCCAACBCCO");
expect(host.querySelector('[data-rail-place="home"]')?.getAttribute("title")).toBe("My Cloud");
expect(host.querySelector('[data-rail-place="home"] span[style]')?.getAttribute("style")).toContain("width: 24px; height: 24px; border-radius: 7px");
- expect(host.querySelector("[data-rail-add]")?.className).toContain("size-6 place-items-center rounded-[7px]");
+ expect(host.querySelector("[data-rail-add]")?.className).toContain("size-6 place-items-center rounded-[8px]");
expect(expand.mock.calls.at(-1)).toEqual([false]);
await click(host.querySelector("[data-rail-add]"));
expect(expand.mock.calls.at(-1), "+'s sheet covers the window").toEqual([true]);
diff --git a/src/components/PlacesRail.tsx b/src/components/PlacesRail.tsx
index 6874ab737d..159beea6d6 100644
--- a/src/components/PlacesRail.tsx
+++ b/src/components/PlacesRail.tsx
@@ -153,7 +153,7 @@ function PlaceTile({ place, canPair, onOpen, onMenu }: { place: RailPlace; canPa
const label = placeLabel(place), acts = placeActs(place, canPair);
return <button type="button" aria-label={tileLabel(place)} title={label} aria-current={place.active ? "page" : undefined} aria-disabled={acts ? undefined : true}
data-rail-place={place.id} data-rail-kind={place.kind} onClick={() => { if (acts) onOpen(place); }} onContextMenu={menuOpener(place, onMenu)}
- className={cn("group/tile relative shrink-0 rounded-[7px] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
+ className={cn("group/tile relative shrink-0 rounded-[8px] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
!acts && cn("cursor-default", !place.offline && "opacity-75"))}>
<span aria-hidden="true" data-rail-pill={place.active ? "page" : acts ? "hover" : undefined}
className={cn("pointer-events-none absolute -left-1.5 top-1/2 w-[3px] -translate-y-1/2 rounded-r-full bg-ink transition-[height,opacity] duration-150 motion-reduce:transition-none",
@@ -455,12 +455,12 @@ export function PlacesRail({ chrome = false }: { chrome?: boolean }) {
<div className="relative mt-2 flex flex-col items-center gap-2 pb-3" style={noDrag} ref={moreRef}>
{state.places.length > RAIL_SHOWN && <button type="button" aria-label={t("rail.more", { count: state.places.length })} title={t("rail.more", { count: state.places.length })}
aria-haspopup="dialog" aria-expanded={more} data-rail-more-button onClick={() => setMore(!more)}
- className="grid size-6 place-items-center rounded-[7px] text-ink-secondary hover:bg-ink/[0.06] hover:text-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus aria-expanded:bg-ink/[0.06]">
+ className="grid size-6 place-items-center rounded-[8px] text-ink-secondary hover:bg-ink/[0.06] hover:text-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus aria-expanded:bg-ink/[0.06]">
<MoreHorizontal size={13} aria-hidden="true" />
</button>}
{more && <MorePlaces places={state.places} canPair={canPair} onOpen={open} onMenu={openMenu} onClose={() => setMore(false)} />}
{canAdd && <button type="button" aria-label={addLabel} title={addLabel} aria-haspopup="dialog" data-rail-add onClick={() => { track("rail_add", { step: "opened" }); setAdding(true); }}
- className="grid size-6 place-items-center rounded-[7px] border border-dashed border-ink/25 text-ink-secondary hover:border-ink/40 hover:bg-ink/[0.04] hover:text-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus">
+ className="grid size-6 place-items-center rounded-[8px] border border-dashed border-ink/25 text-ink-secondary hover:border-ink/40 hover:bg-ink/[0.04] hover:text-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus">
<Plus size={13} aria-hidden="true" />
</button>}
</div>
diff --git a/src/components/PluginsPanel.tsx b/src/components/PluginsPanel.tsx
index 1bc570486c..ea8cb9c6e1 100644
--- a/src/components/PluginsPanel.tsx
+++ b/src/components/PluginsPanel.tsx
@@ -779,7 +779,7 @@ export function PluginsPanel() {
className="flex min-w-0 flex-col rounded-xl px-2 py-2 transition-colors hover:bg-raised/40"
>
<div className="flex items-center gap-3">
- <ServiceIcon card={card} className="size-10 shrink-0 rounded-[10px]" />
+ <ServiceIcon card={card} className="size-10 shrink-0 rounded-[8px]" />
<div className="min-w-0 flex-1">
<div className="flex min-w-0 items-center gap-1.5">
<span className="truncate text-[14px] font-semibold leading-5 text-ink">{card.label}</span>
diff --git a/src/components/PostizCard.tsx b/src/components/PostizCard.tsx
index 674e307525..d465c48e60 100644
--- a/src/components/PostizCard.tsx
+++ b/src/components/PostizCard.tsx
@@ -22,7 +22,7 @@ const OWN_SIGN_IN_WAIT_MS = 5 * 60_000;
/** OpenMausBot's own mark for Postiz: no Postiz artwork is bundled. */
export function PostizIcon() {
return (
- <svg viewBox="0 0 40 40" className="size-10 shrink-0 rounded-[10px]" aria-hidden="true">
+ <svg viewBox="0 0 40 40" className="size-10 shrink-0 rounded-[8px]" aria-hidden="true">
<rect width="40" height="40" rx="10" fill="#612bd3" />
<path d="M14 29V11h7.2c4.1 0 6.8 2.3 6.8 5.9s-2.7 5.9-6.8 5.9h-3.1V29zm4.1-9.7h2.8c1.9 0 3-0.9 3-2.4s-1.1-2.4-3-2.4h-2.8z" fill="#fff" fillRule="evenodd" />
</svg>
diff --git a/src/components/ReplyBlocks.tsx b/src/components/ReplyBlocks.tsx
index e2d32dc173..61bef1d918 100644
--- a/src/components/ReplyBlocks.tsx
+++ b/src/components/ReplyBlocks.tsx
@@ -26,7 +26,7 @@ export function ReplyBlocks({ blocks, join, citation, tray, render }: {
>
{blocks.map((block, index) => {
const body = block.kind === "table"
- ? <div key={index} data-reply-table className="my-2 w-full max-w-[var(--chat-card-pct)] first:mt-0 last:mb-0">{render(block.text)}</div>
+ ? <div key={index} data-reply-table className="w-full max-w-[var(--chat-card-pct)]">{render(block.text)}</div>
: (
<div key={index} data-chat-bubble="simple" className={cn("w-fit", SIMPLE_BUBBLE_MAX, SIMPLE_BOT_BUBBLE,
joinedCorners("start", { above: index === 0 && Boolean(join?.above), below: index === last && Boolean(join?.below) }))}>
diff --git a/src/components/RichTable.test.ts b/src/components/RichTable.test.ts
index 019ccda0e7..ec2754459a 100644
--- a/src/components/RichTable.test.ts
+++ b/src/components/RichTable.test.ts
@@ -73,7 +73,7 @@ describe("Simple mode's table card", () => {
it("draws a short table as a card with a hover plate, header names that sort, and no footer", () => {
const html = card(3);
const surface = html.match(/<div data-table-card="[^"]*" class="([^"]*)"/)?.[1] ?? "";
- expect(surface.split(" ")).toEqual(expect.arrayContaining(["rounded-[24px]", "bg-composer", "touch:pt-11"]));
+ expect(surface.split(" ")).toEqual(expect.arrayContaining(["rounded-[18px]", "w-fit", "bg-card", "touch:pt-11"]));
// The header row starts at the card's top: the plate floats over it instead of keeping a band at rest.
expect(surface.split(" ").some((name) => /^(pt|py|p)-/.test(name))).toBe(false);
const plate = html.match(/<div class="(table-plate [^"]*)"/)?.[1] ?? "";
diff --git a/src/components/RichTable.tsx b/src/components/RichTable.tsx
index 6bd700f395..2f556b9b76 100644
--- a/src/components/RichTable.tsx
+++ b/src/components/RichTable.tsx
@@ -50,7 +50,7 @@ const SMALL_TABLE_ROWS = 8;
/** Simple mode's table card: the composer surface with a hairline edge and no footer. Its header row starts at the
* top; the hover plate floats over the header's right end and takes no room. Only touch screens, where the plate is
* always shown and its buttons keep 40px targets, give it a band of its own. */
-const TABLE_CARD = "group/table relative w-full overflow-hidden rounded-[24px] bg-composer text-ink shadow-[0_0_0_0.5px_var(--color-composer-ring),0_2px_8px_rgb(28_28_28/0.035)] touch:pt-11";
+const TABLE_CARD = "group/table relative w-fit min-w-[min(100%,20rem)] max-w-full overflow-hidden rounded-[18px] bg-card text-ink touch:pt-11";
export function RichTable({ columns, rows, name = t("table.title"), expanded = false, direction = "ltr", headless = false, card: asCard = true }: RichTableProps) {
const simple = !useAdvancedMode();
@@ -188,7 +188,7 @@ function TableViewport({ columns, rows, order, name, wrap, large, sort, onSort,
style={{ maxHeight: large ? "65dvh" : virtual || !wrap ? 400 : undefined }} data-fit={fit || undefined}>
<table dir={direction} aria-label={name} aria-rowcount={order.length + 1} className={cn("w-full border-separate border-spacing-0 text-[14px]", fit ? "table-auto" : "table-fixed", card && "leading-5")} style={fit ? undefined : { minWidth: widths.reduce((a, b) => a + b, 0) }}>
{!fit && <colgroup>{widths.map((width, index) => <col key={index} style={{ width }} />)}</colgroup>}
- <thead ref={heading} hidden={headless} className={cn("sticky top-0 z-10", look === "panel" ? "bg-raised" : "bg-composer")}><tr aria-rowindex={1}>
+ <thead ref={heading} hidden={headless} className={cn("sticky top-0 z-10", look === "panel" ? "bg-raised" : look === "card" ? "bg-card" : "bg-composer")}><tr aria-rowindex={1}>
{columns.map((column, index) => <th key={index} scope="col" aria-sort={sort?.column === index ? sort.descending ? "descending" : "ascending" : "none"}
className={card ? "px-4 py-2.5 align-bottom font-semibold" : "h-10 border-b border-hairline/60 px-3 py-2 font-medium"} style={{ textAlign: alignment(column, index) }}>
<div className="break-words [overflow-wrap:anywhere]" style={fit ? { minWidth: minimums[index] } : undefined}>
diff --git a/src/components/SettingsModal.simple.test.ts b/src/components/SettingsModal.simple.test.ts
index 532c7ef489..863c39dd25 100644
--- a/src/components/SettingsModal.simple.test.ts
+++ b/src/components/SettingsModal.simple.test.ts
@@ -163,10 +163,10 @@ describe("Settings in Simple mode", () => {
for (const id of hidden) expect(SIMPLE_HIDDEN_SECTIONS).toContain(id);
});
- it("opens General on Account, then Appearance, Notifications, System and Import, with Advanced mode last as a plain row", () => {
+ it("opens General on Account, then Appearance, Language and typing, Notifications, System and Import, with Advanced mode last as a plain row", () => {
const html = render();
expect(currentPage(html)).toBe("general");
- expect(groupLabels(html)).toEqual(["Account", "Appearance", "Notifications", "System", "Import", "Organization"]);
+ expect(groupLabels(html)).toEqual(["Account", "Appearance", "Language and typing", "Notifications", "System", "Import", "Organization"]);
expect(blocks(html).at(-1)).toBe("advanced-mode");
expect([...html.matchAll(/<button[^>]*role="switch"[^>]*>/g)].at(-1)?.[0]).toContain('aria-label="Advanced mode"');
expect(html).toContain("Show every control, including tools for builders. Nothing is deleted either way.");
diff --git a/src/components/SettingsSimplePages.tsx b/src/components/SettingsSimplePages.tsx
index 41004b1e5f..54e192497d 100644
--- a/src/components/SettingsSimplePages.tsx
+++ b/src/components/SettingsSimplePages.tsx
@@ -68,15 +68,21 @@ export function SimpleGeneralPage({ has, peopleOpen, onLooks }: { has: Has; peop
<ChromeRailRow />
<WindowFrameRow />
<ColorUserBubblesRow simple />
- <LanguageRow simple />
- <SendKeyRow simple />
- <FollowUpRow simple />
<SettingRow title={t("settings.simple.looks.title")}>
<button type="button" className="ui-button" onClick={onLooks}>{t("settings.simple.looks.change")}</button>
</SettingRow>
</SettingsRows>
</SettingsGroup>
)}
+ {has("appearance") && (
+ <SettingsGroup label={t("settings.simple.group.typing")}>
+ <SettingsRows>
+ <LanguageRow simple />
+ <SendKeyRow simple />
+ <FollowUpRow simple />
+ </SettingsRows>
+ </SettingsGroup>
+ )}
{has("appearance") && (
<SettingsGroup label={t("notifications.title")}>
<SettingsRows><NotificationRows simple /></SettingsRows>
diff --git a/src/components/SetupOffer.tsx b/src/components/SetupOffer.tsx
index 7bd2ef64c4..ba596c39e1 100644
--- a/src/components/SetupOffer.tsx
+++ b/src/components/SetupOffer.tsx
@@ -107,9 +107,12 @@ export function SetupOffer({ botId, threadId, message, transcript }: { botId: st
return (
<section data-setup-card={message.id} aria-label={title} aria-busy={busy || pending || updating || undefined} onKeyDown={quiet || pending ? undefined : byLetter}
- className="w-full max-w-[min(var(--chat-bubble-max),var(--chat-bubble-pct))] rounded-[24px] bg-composer px-2 pb-2 pt-3 ring-[0.5px] ring-ink/10">
+ className="w-full max-w-[min(var(--chat-bubble-max),var(--chat-bubble-pct))] rounded-[18px] bg-composer px-2 pb-2 pt-3 ring-[0.5px] ring-ink/10">
<div className="flex items-start justify-between gap-2 ps-3 pe-1">
- <h3 dir="auto" className="py-px text-[16px] font-semibold leading-[22px] text-ink-secondary">{title}</h3>
+ <div className="min-w-0">
+ <h3 dir="auto" className="py-px text-[16px] font-semibold leading-[22px] text-ink">{title}</h3>
+ {!settled && <p dir="auto" className="text-[13px] leading-[18px] text-ink-tertiary">{t("chat.setupCard.hint")}</p>}
+ </div>
{!settled && <button type="button" onClick={close} aria-label={t("common.close")} title={t("common.close")}
className="-mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-ink-tertiary hover:bg-ink/[0.07] hover:text-ink-secondary">
<X size={15} aria-hidden="true" />
@@ -125,7 +128,7 @@ export function SetupOffer({ botId, threadId, message, transcript }: { botId: st
className={cn("mt-1.5 flex flex-col", updating ? "motion-safe:animate-pulse" : waitedOnce.current && "motion-safe:animate-msg-in")}>
{options.map((option, index) => (
<button key={option.label} type="button" data-ask-choice="" disabled={quiet || busy} onClick={option.pick}
- className={cn("group flex min-h-10 items-center gap-3 rounded-xl px-3 py-2 text-start",
+ className={cn("group flex min-h-10 items-center gap-3 rounded-lg px-3 py-2 text-start",
quiet ? "cursor-default" : "hover:bg-ink/[0.05] disabled:cursor-default")}>
<kbd className={cn("flex size-6 shrink-0 items-center justify-center rounded-md font-sans text-[12px] font-medium",
quiet ? "bg-ink/[0.04] text-ink-tertiary" : "bg-ink/[0.07] text-ink-secondary group-hover:bg-ink/[0.1]")}>
diff --git a/src/components/Sidebar.simple-mode.test.ts b/src/components/Sidebar.simple-mode.test.ts
index f215763d18..7ae1656369 100644
--- a/src/components/Sidebar.simple-mode.test.ts
+++ b/src/components/Sidebar.simple-mode.test.ts
@@ -89,7 +89,7 @@ describe("bot-first sidebar", () => {
{ advanced: true, enabled: true, density: "comfortable", size: 32, spacing: ["gap-2", "py-2", "pl-6"] },
{ advanced: true, enabled: true, density: "icons", size: 44, spacing: ["justify-center", "px-1", "py-1.5"] },
{ advanced: true, enabled: false, density: "comfortable", size: 44, spacing: ["gap-3", "py-2", "pl-2.5", "pr-9"] },
- { advanced: false, enabled: false, density: "comfortable", size: 42, spacing: ["gap-2", "rounded-[10px]", "pl-2", "pr-2", "md:h-[54px]"] },
+ { advanced: false, enabled: false, density: "comfortable", size: 42, spacing: ["gap-2", "rounded-[8px]", "pl-2", "pr-2", "md:h-[54px]"] },
{ advanced: false, enabled: false, density: "icons", size: 36, spacing: ["h-[54px]", "justify-center"] },
] as const)("sizes bot portraits and row spacing in $density density with threads $enabled (advanced $advanced)", ({ advanced, enabled, density, size, spacing }) => {
fixture.advanced = advanced;
@@ -290,7 +290,7 @@ describe("bot-first sidebar", () => {
});
it.each([
- { advanced: false, density: "comfortable", face: 36, spacing: ["gap-2", "rounded-[10px]", "pl-2", "pr-2", "md:h-[54px]"], name: "font-medium", preview: "text-[13px]" },
+ { advanced: false, density: "comfortable", face: 36, spacing: ["gap-2", "rounded-[8px]", "pl-2", "pr-2", "md:h-[54px]"], name: "font-medium", preview: "text-[13px]" },
{ advanced: false, density: "icons", face: 36, spacing: ["h-[54px]", "justify-center"], name: "font-semibold", preview: "text-[11px]" },
{ advanced: true, density: "icons", face: 44, spacing: ["justify-center", "px-1", "py-1.5"], name: "font-semibold", preview: "text-[11px]" },
{ advanced: true, density: "comfortable", face: 32, spacing: ["gap-2", "py-1.5", "pl-6", "pr-9"], name: "font-semibold", preview: "text-[11px]" },
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index 598df54d7c..d1824278f8 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -187,7 +187,7 @@ export function GroupListItem({
className={cn(
"relative flex w-full items-center rounded-md text-left", SIMPLE_ROW_FOCUS,
density === "icons" ? (railTile ? "h-[54px] justify-center" : "justify-center px-1 py-1.5") : simpleRow
- ? cn("gap-2 rounded-[10px] py-2 pr-2 group-hover:pr-9 group-focus-within:pr-9 max-md:pr-9 touch:pr-9 md:h-[54px] md:py-0", !group.dm && hasThreadList ? "pl-6" : "pl-2") : "gap-2 py-1.5 pl-6 pr-9",
+ ? cn("gap-2 rounded-[8px] py-2 pr-2 group-hover:pr-9 group-focus-within:pr-9 max-md:pr-9 touch:pr-9 md:h-[54px] md:py-0", !group.dm && hasThreadList ? "pl-6" : "pl-2") : "gap-2 py-1.5 pl-6 pr-9",
selected && !expanded ? "bg-raised" : "hover:bg-raised/50",
)}
title={density === "icons" ? group.name : undefined}
@@ -721,7 +721,7 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {
"flex w-full items-center rounded-xl text-left transition-colors duration-150", SIMPLE_ROW_FOCUS,
iconOnly
? railTile ? "h-[54px] justify-center" : "justify-center px-1 py-1.5"
- : simpleRow ? "gap-2 rounded-[10px] py-2 pl-2 pr-2 md:h-[54px] md:py-0"
+ : simpleRow ? "gap-2 rounded-[8px] py-2 pl-2 pr-2 md:h-[54px] md:py-0"
: cn(showThreads ? "gap-2 py-2" : "gap-3 py-2", showThreads ? "pl-6 pr-9 group-hover:pr-[5.75rem] group-focus-within:pr-[5.75rem] max-md:pr-9 touch:pr-[5.75rem]" : "pl-2.5 pr-9"),
!iconOnly && "max-md:rounded-2xl max-md:py-2.5",
selected ? "bg-raised" : "hover:bg-raised/50",
diff --git a/src/components/SidebarBotDrag.tsx b/src/components/SidebarBotDrag.tsx
index 601838eaa5..e0ba174a9f 100644
--- a/src/components/SidebarBotDrag.tsx
+++ b/src/components/SidebarBotDrag.tsx
@@ -27,7 +27,7 @@ const carries = (event: DragEvent<HTMLElement>) => event.dataTransfer.types.incl
const failure = (cause: unknown) => (cause instanceof Error ? cause.message : String(cause));
export function botRowDropClass(drop: BotDropPlace | null | undefined, dragging: boolean | undefined): string {
- return cn(dragging && "opacity-40", drop === "group" && "rounded-[10px] bg-accent/10 outline outline-2 -outline-offset-2 outline-accent/70");
+ return cn(dragging && "opacity-40", drop === "group" && "rounded-[8px] bg-accent/10 outline outline-2 -outline-offset-2 outline-accent/70");
}
export function BotDropLine({ place }: { place: BotDropPlace | null | undefined }) {
@@ -182,7 +182,7 @@ export function useSidebarBotDrag({ dispatch, announce, onNamed, onRenamed, onEr
},
}),
slot: active !== null && mainIds.length === 0 && botListOf(lists, active) !== ""
- ? <div data-bot-drop-slot="" className={cn("mx-2 flex h-10 items-center justify-center rounded-[10px] border border-dashed text-[13px] leading-[18px]",
+ ? <div data-bot-drop-slot="" className={cn("mx-2 flex h-10 items-center justify-center rounded-[8px] border border-dashed text-[13px] leading-[18px]",
shown?.kind === "end" && shown.list === "" ? "border-accent bg-accent/10 text-ink" : "border-ink/20 text-ink-secondary")}>{t("sidebar.section.removeFromDepartment")}</div>
: null,
naming: (name: string | null): SectionNaming | undefined => {
diff --git a/src/components/SidebarSectionHeader.tsx b/src/components/SidebarSectionHeader.tsx
index 9a87b3d309..12846166d9 100644
--- a/src/components/SidebarSectionHeader.tsx
+++ b/src/components/SidebarSectionHeader.tsx
@@ -125,7 +125,7 @@ export function SidebarSectionHeader({
aria-haspopup="menu"
aria-expanded={menuOpen}
onClick={(event) => onMenu(event.currentTarget)}
- className="flex h-[18px] w-[22px] shrink-0 items-center justify-center rounded-[5px] text-ink-tertiary opacity-0 transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-focus group-hover/section:opacity-100 group-focus-within/section:opacity-100 aria-expanded:bg-raised aria-expanded:text-ink aria-expanded:opacity-100 touch:opacity-100"
+ className="flex h-[18px] w-[22px] shrink-0 items-center justify-center rounded-[6px] text-ink-tertiary opacity-0 transition-opacity hover:bg-raised hover:text-ink focus-visible:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-focus group-hover/section:opacity-100 group-focus-within/section:opacity-100 aria-expanded:bg-raised aria-expanded:text-ink aria-expanded:opacity-100 touch:opacity-100"
>
<MoreHorizontal size={15} aria-hidden="true" />
</button>
diff --git a/src/components/SidebarThreadRow.tsx b/src/components/SidebarThreadRow.tsx
index 8ec6433e4e..2bdffc0c30 100644
--- a/src/components/SidebarThreadRow.tsx
+++ b/src/components/SidebarThreadRow.tsx
@@ -313,7 +313,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,
)}
</span>;
return <>
- <div className={cn("group/thread relative flex min-w-0 items-center rounded-md", selectMode && checked ? "bg-accent/10" : current ? "bg-raised" : "hover:bg-raised/50", panel && cn("items-start rounded-[10px]", current ? "bg-ink/[0.07]" : "hover:bg-ink/[0.04]"))}>
+ <div className={cn("group/thread relative flex min-w-0 items-center rounded-md", selectMode && checked ? "bg-accent/10" : current ? "bg-raised" : "hover:bg-raised/50", panel && cn("items-start rounded-[8px]", current ? "bg-ink/[0.07]" : "hover:bg-ink/[0.04]"))}>
{renaming ? <input autoFocus value={draft} maxLength={80} aria-label={t("task.renameAria")}
onFocus={(event) => event.currentTarget.select()} onChange={(event) => setDraft(event.target.value)} onBlur={() => finishRename(true)}
onKeyDown={(event) => { if (event.key === "Enter" && !event.nativeEvent.isComposing) { event.preventDefault(); finishRename(true); } else if (event.key === "Escape") { event.preventDefault(); event.stopPropagation(); finishRename(false); } }}
@@ -323,7 +323,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,
{...(selectMode ? { role: "checkbox", "aria-checked": checked, "aria-disabled": !tickable, "aria-label": t("task.bulk.rowCheck", { title: displayTitle }) } : {})}
onClick={choose} onDoubleClick={selectMode ? undefined : startRename} onContextMenu={contextMenu}
onKeyDown={(event) => { if (opensRowMenuFromKey(event.key, event.shiftKey, selectMode)) { event.preventDefault(); const rect = event.currentTarget.getBoundingClientRect(); openMenu(rect.left, rect.bottom); } }}
- className={cn("flex min-w-0 flex-1 items-center gap-2 rounded-md pl-6 pr-1 text-left text-[13px] font-medium outline-none focus-visible:ring-1 focus-visible:ring-accent/60", "min-h-8 py-1.5", current ? "font-semibold text-ink" : "text-ink-secondary hover:text-ink", panel && "rounded-[10px] py-2 pl-3 text-[14px]", selectMode && "pl-1.5", selectMode && !tickable && "cursor-not-allowed opacity-60")}>
+ className={cn("flex min-w-0 flex-1 items-center gap-2 rounded-md pl-6 pr-1 text-left text-[13px] font-medium outline-none focus-visible:ring-1 focus-visible:ring-accent/60", "min-h-8 py-1.5", current ? "font-semibold text-ink" : "text-ink-secondary hover:text-ink", panel && "rounded-[8px] py-2 pl-3 text-[14px]", selectMode && "pl-1.5", selectMode && !tickable && "cursor-not-allowed opacity-60")}>
{selectMode && <span aria-hidden="true" title={tickable ? undefined : t("task.bulk.running")}
className={cn("flex size-3.5 shrink-0 items-center justify-center rounded-[3px] border", checked ? "border-accent bg-accent text-white" : "border-ink-tertiary", !tickable && "opacity-50")}>
{checked && <Check size={10} strokeWidth={3} />}
diff --git a/src/components/SidebarTiles.test.ts b/src/components/SidebarTiles.test.ts
index b55460b78f..2c779ed42b 100644
--- a/src/components/SidebarTiles.test.ts
+++ b/src/components/SidebarTiles.test.ts
@@ -42,9 +42,9 @@ beforeEach(() => {
afterEach(() => vi.unstubAllGlobals());
describe("the sidebar tiles", () => {
- it.each([true, false])("draws the main tile and a pinned tile the same: 78 by 92, radius 10, a 56px avatar over a one-line 13px medium name (main %s)", (primary) => {
+ it.each([true, false])("draws the main tile and a pinned tile the same: 78 by 92, radius 8, a 56px avatar over a one-line 13px medium name (main %s)", (primary) => {
const html = renderToStaticMarkup(createElement(SidebarBotTile, { ...props(bot({ chiefOfStaff: primary })), primary }));
- expect(html).toMatch(new RegExp(`data-sidebar-tile="${primary ? "primary" : "pinned"}"[^>]*class="[^"]*\\bh-\\[92px\\] w-\\[78px\\][^"]*\\brounded-\\[10px\\]`));
+ expect(html).toMatch(new RegExp(`data-sidebar-tile="${primary ? "primary" : "pinned"}"[^>]*class="[^"]*\\bh-\\[92px\\] w-\\[78px\\][^"]*\\brounded-\\[8px\\]`));
expect(html).toContain('width="56px" height="56px"');
expect(html).toMatch(/truncate text-center text-\[13px\] font-medium leading-4 text-ink"[^>]*>MausBot</);
expect(html).not.toContain("data-provider-mark");
diff --git a/src/components/SidebarTiles.tsx b/src/components/SidebarTiles.tsx
index 0f59c17a83..c005415da6 100644
--- a/src/components/SidebarTiles.tsx
+++ b/src/components/SidebarTiles.tsx
@@ -75,7 +75,7 @@ export const SidebarBotTile = memo(function SidebarBotTile({ primary = false, dr
onKeyDown={onKeyDown}
onContextMenu={(event) => openBotContextMenu(onMenu, bot.id, event)}
className={cn(
- "flex h-[92px] w-[78px] shrink-0 cursor-pointer flex-col items-center rounded-[10px] bg-[var(--tile)] px-1 pt-2 transition-colors duration-150", SIMPLE_ROW_FOCUS,
+ "flex h-[92px] w-[78px] shrink-0 cursor-pointer flex-col items-center rounded-[8px] bg-[var(--tile)] px-1 pt-2 transition-colors duration-150", SIMPLE_ROW_FOCUS,
selected ? "[--tile:var(--color-raised)]" : "[--tile:var(--color-panel)] hover:[--tile:color-mix(in_srgb,var(--color-raised)_50%,var(--color-panel))]",
pinnedCircleDragClass({ drag, dragging, drop }),
)}
diff --git a/src/components/SimpleModelMenu.tsx b/src/components/SimpleModelMenu.tsx
index 00147282a6..b3dea02c65 100644
--- a/src/components/SimpleModelMenu.tsx
+++ b/src/components/SimpleModelMenu.tsx
@@ -164,10 +164,10 @@ function Thinking({ thinking, labelId }: { thinking: SimpleThinking; labelId: st
<div className="flex h-6 items-end justify-between gap-2 px-2 pb-0.5">
<span id={labelId} className="text-[12px] font-medium leading-4 text-ink-tertiary">{t("botSettings.simple.thinking")}</span>
{(levels.current === undefined
- ? <span title={t("model.simple.thinkingDefault")} className="text-[12px] leading-4 text-ink-tertiary">{t("model.effort.default")}</span>
+ ? null
: (
<button type="button" data-simple-effort-default onClick={levels.onReset} title={t("model.simple.thinkingDefault")}
- className="-mr-1 rounded-[5px] px-1 text-[12px] leading-4 text-ink-secondary hover:bg-ink/[0.06] hover:text-ink">
+ className="-mr-1 rounded-[6px] px-1 text-[12px] leading-4 text-ink-secondary hover:bg-ink/[0.06] hover:text-ink">
{t("model.simple.useDefault")}
</button>
))}
@@ -192,6 +192,9 @@ function Thinking({ thinking, labelId }: { thinking: SimpleThinking; labelId: st
</button>
))}
</div>
+ {levels.current === undefined && (
+ <p data-simple-effort-auto className="px-2 pb-1 text-[12px] leading-4 text-ink-tertiary">{t("model.simple.thinkingDefault")}</p>
+ )}
</div>
);
}
diff --git a/src/components/XCard.tsx b/src/components/XCard.tsx
index 6cf777476d..81572a08c4 100644
--- a/src/components/XCard.tsx
+++ b/src/components/XCard.tsx
@@ -18,7 +18,7 @@ export const X_CARD_SEARCH = "x twitter treg tweets posts";
export function XIcon() {
return (
- <svg viewBox="0 0 40 40" className="size-10 shrink-0 rounded-[10px]" aria-hidden="true">
+ <svg viewBox="0 0 40 40" className="size-10 shrink-0 rounded-[8px]" aria-hidden="true">
<rect width="40" height="40" rx="10" fill="#000" />
<path transform="translate(9 9) scale(0.9167)" fill="#fff" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
</svg>
diff --git a/src/components/bot-panel/BackupAis.tsx b/src/components/bot-panel/BackupAis.tsx
index da188e2d85..bbfba741da 100644
--- a/src/components/bot-panel/BackupAis.tsx
+++ b/src/components/bot-panel/BackupAis.tsx
@@ -248,7 +248,7 @@ export function BackupAis({ bot, onChange }: { bot: Bot; onChange: (fallback: Ba
label={t("botPanel.backups.row", { position: index + 1, model: name })}
title={instance ? `${instance.displayName} · ${name}` : name}
data-panel-action="backup-change"
- className="group flex h-8 min-w-0 flex-1 items-center gap-2 rounded-[9px] bg-ink/[0.04] pl-2.5 pr-2 text-left text-[13px] text-ink hover:bg-ink/[0.07] aria-expanded:bg-ink/[0.08]"
+ className="group flex h-8 min-w-0 flex-1 items-center gap-2 rounded-[8px] bg-ink/[0.04] pl-2.5 pr-2 text-left text-[13px] text-ink hover:bg-ink/[0.07] aria-expanded:bg-ink/[0.08]"
>
{instance
? <InstanceProviderMark instance={instance} size={14} subtle />
diff --git a/src/components/bot-panel/Conversations.tsx b/src/components/bot-panel/Conversations.tsx
index 1ef21baae2..b14183951c 100644
--- a/src/components/bot-panel/Conversations.tsx
+++ b/src/components/bot-panel/Conversations.tsx
@@ -9,6 +9,7 @@ import { api, currentTaskBot, openBotThread, useStore, visibleMessages, type Bot
import { lastLine } from "../sidebar-preview";
import { isArchived, orderedThreadList, SidebarThreadRow, stampClock, threadRecency, threadRowActions, useRelativeNow } from "../SidebarThreadRow";
import { filterTasks } from "../TaskPicker";
+import { CardLabel } from "./rows";
export const CONVERSATIONS_SHOWN = 3;
const PANEL_ROW_LOOK = "[&_.font-semibold]:font-medium [&_time]:text-[12px] [&_time]:text-ink-tertiary [&_span.bg-accent]:size-2";
@@ -119,7 +120,8 @@ export function BotConversations({ bot }: { bot: Bot }) {
);
return (
- <section data-panel-card="conversations" aria-label={t("botPanel.conversations.title")} className="mt-3.5">
+ <section data-panel-card="conversations" aria-label={t("botPanel.conversations.title")}>
+ <CardLabel>{t("botPanel.conversations.title")}</CardLabel>
<div className={cn("flex items-center gap-2", listed && "mb-2")}>
{bot.yourAccess !== "view" && (
<button
@@ -162,7 +164,7 @@ export function BotConversations({ bot }: { bot: Bot }) {
}}
placeholder={t("botPanel.conversations.searchPlaceholder", { name: bot.name })}
aria-label={t("botPanel.conversations.searchPlaceholder", { name: bot.name })}
- className="mb-1.5 w-full rounded-[10px] border border-hairline/60 bg-inset px-3 py-1.5 text-[13px] text-ink outline-none placeholder:text-ink-tertiary focus:border-focus"
+ className="mb-1.5 w-full rounded-[8px] border border-hairline/60 bg-inset px-3 py-1.5 text-[13px] text-ink outline-none placeholder:text-ink-tertiary focus:border-focus"
/>
)}
{listed && <div role="list" aria-label={t("botPanel.conversations.title")} className={cn("flex flex-col gap-px", PANEL_ROW_LOOK)}>
diff --git a/src/components/bot-panel/DetailsTab.tsx b/src/components/bot-panel/DetailsTab.tsx
index 63645c8341..1bdf7c46f4 100644
--- a/src/components/bot-panel/DetailsTab.tsx
+++ b/src/components/bot-panel/DetailsTab.tsx
@@ -10,7 +10,7 @@ import type { useBotSettingsDerived } from "../bot-settings/useBotSettingsDerive
import { BotConversations } from "./Conversations";
import type { SimplePageId } from "./page-registry";
import { TryAsking } from "./TryAsking";
-import { Card, NavRow, RowIcon, rowCls, RowText } from "./rows";
+import { buttonCls, Card, CardLabel, NavRow, RowIcon, rowCls, RowText } from "./rows";
type Derived = ReturnType<typeof useBotSettingsDerived>;
@@ -63,17 +63,18 @@ export function DetailsTab({ bot, derived, onOpen }: {
<BotConversations bot={bot} />
{derived.botRoutines.length === 0 ? (
- <div data-panel-empty="routines" className="px-3 py-7 text-center text-[13px] leading-[18px] text-ink-tertiary">
- <p>{t("botPanel.routines.empty")}</p>
+ <section data-panel-empty="routines">
+ <CardLabel>{t("botSettings.simple.routines")}</CardLabel>
+ <p className="mx-1 text-[13px] leading-[18px] text-ink-tertiary">{t("botPanel.routines.empty")}</p>
<button
type="button"
data-panel-page="routines"
onClick={() => onOpen("routines")}
- className="mt-1.5 rounded-md px-1.5 py-0.5 text-[13px] font-medium text-ink-secondary hover:bg-ink/[0.04] hover:text-ink"
+ className={cn(buttonCls, "mx-1 mt-2.5")}
>
{t("botPanel.routines.add")}
</button>
- </div>
+ </section>
) : (
<Card label={t("botSettings.simple.routines")} anchor="routines">
<NavRow
diff --git a/src/components/bot-panel/PanelHero.tsx b/src/components/bot-panel/PanelHero.tsx
index b440c9b27b..e14120c4fd 100644
--- a/src/components/bot-panel/PanelHero.tsx
+++ b/src/components/bot-panel/PanelHero.tsx
@@ -78,12 +78,12 @@ export function PanelHero({ bot, activeState, patch, editorOpen, onToggleEditor
aria-label={t("botPanel.avatar.edit")}
aria-expanded={editorOpen}
onClick={onToggleEditor}
- className="group relative rounded-[24px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-border"
+ className="group relative rounded-[18px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-border"
>
- <BotAvatar bot={bot} size={80} state={activeState} />
+ <BotAvatar bot={bot} size={64} state={activeState} />
<span
aria-hidden="true"
- className="absolute inset-0 flex items-center justify-center rounded-[24px] bg-black/0 text-white opacity-0 transition-[opacity,background-color] group-hover:bg-black/40 group-hover:opacity-100 group-focus-visible:bg-black/40 group-focus-visible:opacity-100 group-focus-within:opacity-100 touch:opacity-100 motion-reduce:transition-none"
+ className="absolute inset-0 flex items-center justify-center rounded-[18px] bg-black/0 text-white opacity-0 transition-[opacity,background-color] group-hover:bg-black/40 group-hover:opacity-100 group-focus-visible:bg-black/40 group-focus-visible:opacity-100 group-focus-within:opacity-100 touch:opacity-100 motion-reduce:transition-none"
>
<Pencil size={20} />
</span>
@@ -122,7 +122,7 @@ export function PanelHero({ bot, activeState, patch, editorOpen, onToggleEditor
data-panel-rename
title={t("botPanel.rename")}
onClick={() => name.start(bot.name)}
- className="group/name relative inline-flex max-w-full items-center rounded-[7px] px-1.5 text-[17px] font-medium leading-6 text-ink hover:bg-ink/[0.04]"
+ className="group/name relative inline-flex max-w-full items-center rounded-[8px] px-1.5 text-[17px] font-medium leading-6 text-ink hover:bg-ink/[0.04]"
>
<span className="min-w-0 truncate">{bot.name}</span>
<Pencil size={13} aria-hidden="true" className="absolute -right-4 shrink-0 text-ink-tertiary opacity-0 transition-opacity group-hover/name:opacity-100 group-focus-visible/name:opacity-100 group-focus-within/name:opacity-100 touch:opacity-100" />
diff --git a/src/components/bot-panel/PanelShell.dom.test.ts b/src/components/bot-panel/PanelShell.dom.test.ts
index f03ae7a295..78a78c71a6 100644
--- a/src/components/bot-panel/PanelShell.dom.test.ts
+++ b/src/components/bot-panel/PanelShell.dom.test.ts
@@ -171,8 +171,9 @@ describe("the panel's tabs", () => {
.toEqual([["details", "Details"], ["library", "Library"], ["computer", "Computer"]]);
expect(tab()).toBe("details");
const strip = host.querySelector('[role="tablist"]')!.className.split(" ");
- expect(strip).toEqual(expect.arrayContaining(["sticky", "top-0", "bg-app", "gap-0.5"]));
- expect(host.querySelector('[role="tab"]')!.className.split(" ")).toEqual(expect.arrayContaining(["h-[26px]", "text-[13px]", "bg-ink/[0.07]"]));
+ expect(strip).toEqual(expect.arrayContaining(["sticky", "top-0", "bg-app"]));
+ expect(host.querySelector('[role="tab"]')!.parentElement!.className.split(" ")).toEqual(expect.arrayContaining(["rounded-full", "bg-ink/[0.05]"]));
+ expect(host.querySelector('[role="tab"]')!.className.split(" ")).toEqual(expect.arrayContaining(["h-[26px]", "text-[13px]", "bg-ink/[0.1]", "font-medium"]));
for (const id of ["library", "computer", "details"]) {
click(host.querySelector(`[data-panel-tab="${id}"]`));
expect(tab()).toBe(id);
diff --git a/src/components/bot-panel/PanelShell.tsx b/src/components/bot-panel/PanelShell.tsx
index 636700ab90..3bfb25e238 100644
--- a/src/components/bot-panel/PanelShell.tsx
+++ b/src/components/bot-panel/PanelShell.tsx
@@ -135,8 +135,9 @@ export function BotPanel({ bot, derived, linkedSection, onClose }: {
<div
role="tablist"
aria-label={t("botSettings.simple.tabs")}
- className="sticky top-0 z-[1] -mx-4 mt-[15px] flex justify-center gap-0.5 bg-app px-4 pb-2.5 pt-1 after:pointer-events-none after:absolute after:inset-x-0 after:top-full after:h-3 after:bg-linear-to-b after:from-app after:to-transparent"
+ className="sticky top-0 z-[1] -mx-4 mt-[15px] flex justify-center bg-app px-4 pb-2.5 pt-1 after:pointer-events-none after:absolute after:inset-x-0 after:top-full after:h-3 after:bg-linear-to-b after:from-app after:to-transparent"
>
+ <div className="flex min-w-0 gap-0.5 rounded-full bg-ink/[0.05] p-[3px]">
{PANEL_TABS.map((id) => (
<button
key={id}
@@ -146,13 +147,14 @@ export function BotPanel({ bot, derived, linkedSection, onClose }: {
data-panel-tab={id}
onClick={() => openTab(id)}
className={cn(
- "h-[26px] min-w-0 shrink truncate rounded-full px-2 text-[13px] leading-[18px] transition-colors",
- tab === id ? "bg-ink/[0.07] text-ink" : "text-ink-secondary hover:text-ink",
+ "h-[26px] min-w-0 shrink truncate rounded-full px-3 text-[13px] leading-[18px] transition-colors",
+ tab === id ? "bg-ink/[0.1] font-medium text-ink" : "text-ink-secondary hover:text-ink",
)}
>
{t(TAB_LABEL[id])}
</button>
))}
+ </div>
</div>
<div role="tabpanel">
{tab === "details" && <DetailsTab bot={bot} derived={derived} onOpen={openPage} />}
diff --git a/src/components/bot-panel/rows.tsx b/src/components/bot-panel/rows.tsx
index b960f70bed..1bba347787 100644
--- a/src/components/bot-panel/rows.tsx
+++ b/src/components/bot-panel/rows.tsx
@@ -12,7 +12,7 @@ export const roundButtonCls = `flex size-[34px] shrink-0 items-center justify-ce
const titleCls = "text-[14px] font-medium text-ink";
const hintCls = "mt-px text-[13px] leading-[1.35] text-ink-secondary";
export const buttonCls =
- "inline-flex h-8 shrink-0 items-center justify-center gap-1.5 rounded-[9px] bg-control px-3.5 text-[13px] font-medium text-ink hover:bg-raised-hover disabled:cursor-not-allowed disabled:opacity-50";
+ "inline-flex h-8 shrink-0 items-center justify-center gap-1.5 rounded-[8px] bg-control px-3.5 text-[13px] font-medium text-ink hover:bg-raised-hover disabled:cursor-not-allowed disabled:opacity-50";
export const chipCls = (on: boolean) =>
cn(
"rounded-full px-2.5 py-1 text-[12px] transition-colors disabled:cursor-not-allowed disabled:opacity-50",
@@ -30,7 +30,7 @@ export function CardLabel({ children, action }: { children: ReactNode; action?:
export function LabelAction({ children, onClick, ...rest }: { children: ReactNode; onClick: () => void; "aria-label"?: string; "data-panel-action"?: string }) {
return (
- <button type="button" {...rest} onClick={onClick} className="shrink-0 rounded-[5px] px-1 py-px text-[13px] text-ink-secondary hover:bg-ink/[0.04] hover:text-ink">
+ <button type="button" {...rest} onClick={onClick} className="shrink-0 rounded-[6px] px-1 py-px text-[13px] text-ink-secondary hover:bg-ink/[0.04] hover:text-ink">
{children}
</button>
);
@@ -44,8 +44,8 @@ export function Card({ label, action, anchor, children }: { label?: ReactNode; a
<div
data-panel-card-surface=""
className={cn(
- "divide-y divide-ink/[0.05] overflow-hidden max-md:rounded-[20px] max-md:border-hairline max-md:bg-card",
- advanced ? "rounded-[14px] border border-ink/[0.04] bg-ink/[0.03]" : "rounded-[12px] bg-composer ring-1 ring-inset ring-ink/[0.06] max-md:border max-md:ring-0",
+ "divide-y divide-ink/[0.05] overflow-hidden max-md:rounded-[16px] max-md:border-hairline max-md:bg-card",
+ advanced ? "rounded-[12px] border border-ink/[0.04] bg-ink/[0.03]" : "rounded-[12px] bg-composer ring-1 ring-inset ring-ink/[0.06] max-md:border max-md:ring-0",
)}
>
{children}
@@ -317,7 +317,7 @@ export function PageHeader({ back, title, intro, onBack }: { back: string; title
type="button"
data-panel-back
onClick={onBack}
- className="mt-0.5 inline-flex items-center gap-0.5 rounded-[7px] py-1 pl-0.5 pr-2 text-[13px] text-ink-secondary hover:bg-ink/[0.04] hover:text-ink"
+ className="mt-0.5 inline-flex items-center gap-0.5 rounded-[8px] py-1 pl-0.5 pr-2 text-[13px] text-ink-secondary hover:bg-ink/[0.04] hover:text-ink"
>
<ChevronLeft size={15} aria-hidden="true" />
<span>{back}</span>
diff --git a/src/components/cloud-buy/ChooseScreen.tsx b/src/components/cloud-buy/ChooseScreen.tsx
index e4305bf60e..3ab3144bd6 100644
--- a/src/components/cloud-buy/ChooseScreen.tsx
+++ b/src/components/cloud-buy/ChooseScreen.tsx
@@ -30,7 +30,7 @@ function PlanCard({ card, shown, details, compare, busy, onStart }: {
}) {
const nameId = `cloud-plan-${card.tier}`;
return <li data-plan={card.tier} aria-labelledby={nameId} data-plan-current={card.current ? "" : undefined}
- className={cn("grid min-w-0 grid-rows-subgrid gap-y-3 rounded-[14px] border-[0.5px] bg-menu p-4", compare ? "row-span-5" : "row-span-4",
+ className={cn("grid min-w-0 grid-rows-subgrid gap-y-3 rounded-[12px] border-[0.5px] bg-menu p-4", compare ? "row-span-5" : "row-span-4",
card.popular ? "border-ink/25" : "border-ink/10")}>
<div className="flex min-h-6 flex-wrap items-center justify-between gap-x-2 gap-y-1">
<h4 id={nameId} className="text-[15px] font-medium leading-[22px] text-ink">{card.name}</h4>
@@ -127,7 +127,7 @@ export function ChooseScreen({ offer, current = null, own = null, now, busy, sig
<span className="inline-flex items-center gap-1.5"><Lock size={13} strokeWidth={1.5} aria-hidden="true" />{t("cloudBuy.secure")}</span>
<span role="img" aria-label={t("cloudBuy.wallets")} className="inline-flex gap-1">
{[t("cloudBuy.applePay"), t("cloudBuy.googlePay"), t("cloudBuy.card")].map(mark => <span key={mark} aria-hidden="true"
- className="rounded-[5px] border-[0.5px] border-ink/20 px-1.5 py-px text-[11px] font-medium text-ink-secondary">{mark}</span>)}
+ className="rounded-[6px] border-[0.5px] border-ink/20 px-1.5 py-px text-[11px] font-medium text-ink-secondary">{mark}</span>)}
</span>
<span aria-hidden="true">·</span><span>{t("cloudBuy.cancelEasy")}</span>
</p>
diff --git a/src/components/cloud-buy/SignInScreen.tsx b/src/components/cloud-buy/SignInScreen.tsx
index 4d64d65686..b175f6aafd 100644
--- a/src/components/cloud-buy/SignInScreen.tsx
+++ b/src/components/cloud-buy/SignInScreen.tsx
@@ -116,7 +116,7 @@ export function BrowserSignInScreen({ code, checkout, trial, busy, onReopen, onC
<Heading title={t("cloudAdd.browserTitle")} />
{code ? <ol className="flex list-decimal flex-col gap-1.5 ps-5 text-[14px] leading-5 text-ink marker:text-ink-tertiary">
<li>{t("cloudAdd.signInStep1")}</li>
- <li>{t("cloudAccount.codeCheck")}<code dir="ltr" className="mt-1.5 block w-fit select-all rounded-[10px] bg-ink/[0.05] px-3 py-1.5 font-mono text-[17px] font-medium tracking-[0.12em]">{code}</code></li>
+ <li>{t("cloudAccount.codeCheck")}<code dir="ltr" className="mt-1.5 block w-fit select-all rounded-[8px] bg-ink/[0.05] px-3 py-1.5 font-mono text-[17px] font-medium tracking-[0.12em]">{code}</code></li>
<li>{t(!checkout ? "cloudAdd.signInStep3Connect" : trial ? "cloudAdd.signInStep3Trial" : "cloudAdd.signInStep3")}</li>
</ol> : <p role="status" className="flex items-center gap-2 text-[13px] text-ink-secondary"><Loader2 size={14} className="animate-spin motion-reduce:animate-none" aria-hidden="true" />{t("cloudAdd.opening")}</p>}
<div className={ACTIONS}>
diff --git a/src/components/cloud-buy/parts.tsx b/src/components/cloud-buy/parts.tsx
index f379c429e2..99fb8e88ba 100644
--- a/src/components/cloud-buy/parts.tsx
+++ b/src/components/cloud-buy/parts.tsx
@@ -19,7 +19,7 @@ export const PRIMARY_WIDE = `${PRIMARY} ui-button-lg w-full`;
export const QUIET_WIDE = `${QUIET} ui-button-lg w-full`;
export const ACTIONS = "flex flex-wrap items-center justify-end gap-2";
export const LINK = "rounded-sm text-[13px] font-medium text-ink underline decoration-ink/30 underline-offset-[3px] hover:decoration-ink disabled:opacity-50";
-export const FIELD = "h-9 w-full rounded-[10px] border border-ink/15 bg-transparent px-3 text-[14px] text-ink outline-none transition-[border-color] duration-150 placeholder:text-ink-tertiary disabled:opacity-60 motion-reduce:transition-none";
+export const FIELD = "h-9 w-full rounded-[8px] border border-ink/15 bg-transparent px-3 text-[14px] text-ink outline-none transition-[border-color] duration-150 placeholder:text-ink-tertiary disabled:opacity-60 motion-reduce:transition-none";
const TAG = "inline-flex min-h-5 items-center gap-1 rounded-full bg-ink/[0.06] px-2 text-[12px] font-medium leading-4 text-ink-secondary";
export function Heading({ title, sub }: { title: string; sub?: ReactNode }) {
@@ -71,7 +71,7 @@ export function ProgressBar({ value, label }: { value: number; label: string })
/** A saved server's colour as the switcher draws it: a rounded tile with the Cloud mark. */
export function CloudTile({ color, size = 22 }: { color: unknown; size?: number }) {
return <span aria-hidden="true" style={{ width: size, height: size, background: cloudColorFill(color) }}
- className="grid shrink-0 place-items-center rounded-[7px] text-white"><Cloud size={Math.round(size * 0.62)} strokeWidth={2.2} /></span>;
+ className="grid shrink-0 place-items-center rounded-[8px] text-white"><Cloud size={Math.round(size * 0.62)} strokeWidth={2.2} /></span>;
}
export function Badge({ children }: { children: ReactNode }) {
diff --git a/src/components/cloud-welcome/CloudWelcome.tsx b/src/components/cloud-welcome/CloudWelcome.tsx
index c65bf7f3a4..b693c0e048 100644
--- a/src/components/cloud-welcome/CloudWelcome.tsx
+++ b/src/components/cloud-welcome/CloudWelcome.tsx
@@ -176,7 +176,7 @@ export function CloudWelcome() {
const current = view === step;
return <li key={step} className="min-w-0">
<button type="button" data-welcome-rail={step} data-finished={finished || undefined} data-bringing={bringing || undefined} data-skipped={skipped || undefined} aria-current={current ? "step" : undefined} onClick={() => go(step)}
- className={cn("flex w-full min-w-0 items-center gap-2 rounded-full text-left transition-colors duration-150 motion-reduce:transition-none @2xl/welcome:items-start @2xl/welcome:gap-2.5 @2xl/welcome:rounded-[10px] @2xl/welcome:p-2.5",
+ className={cn("flex w-full min-w-0 items-center gap-2 rounded-full text-left transition-colors duration-150 motion-reduce:transition-none @2xl/welcome:items-start @2xl/welcome:gap-2.5 @2xl/welcome:rounded-[8px] @2xl/welcome:p-2.5",
current ? "bg-raised py-1.5 pl-1.5 pr-3" : "p-1.5 hover:bg-raised/60")}>
<span aria-hidden="true" className={cn("flex size-[22px] shrink-0 items-center justify-center rounded-full border-[1.5px] text-[12px] font-semibold tabular-nums",
finished ? "check-in border-success bg-success" : current ? "border-accent text-accent-text" : "border-ink-secondary/40 text-ink-secondary")}>
diff --git a/src/components/cloud-welcome/parts.tsx b/src/components/cloud-welcome/parts.tsx
index 1c812e0202..7ecc1391c9 100644
--- a/src/components/cloud-welcome/parts.tsx
+++ b/src/components/cloud-welcome/parts.tsx
@@ -20,7 +20,7 @@ export function StepHeading({ title, sub, aside, headingRef }: { title: ReactNod
}
export function CardIcon({ icon: Icon }: { icon: LucideIcon }) {
- return <span aria-hidden="true" className="flex size-[34px] shrink-0 items-center justify-center rounded-[10px] bg-accent/15 text-accent-text">
+ return <span aria-hidden="true" className="flex size-[34px] shrink-0 items-center justify-center rounded-[8px] bg-accent/15 text-accent-text">
<Icon size={18} />
</span>;
}
diff --git a/src/components/inbox/InboxAnswer.tsx b/src/components/inbox/InboxAnswer.tsx
index 5681864041..2e98ab05c7 100644
--- a/src/components/inbox/InboxAnswer.tsx
+++ b/src/components/inbox/InboxAnswer.tsx
@@ -32,7 +32,7 @@ function ApprovalAnswer({ row, threadId, asker }: AnswerProps) {
const approval = threadId ? pendingApprovals([asMessage(row)])[0] : undefined;
if (!approval || !threadId) return null;
return (
- <div className={cn("rounded-[24px]", ELEVATED_CARD)}>
+ <div className={cn("rounded-[18px]", ELEVATED_CARD)}>
<PendingApprovalPanel pending={approval} count={1} index={0} botName={asker?.name ?? row.from.name} asker={asker}
actions={<PendingApprovalActions part="primary" tag="inbox" pending={approval} threadId={threadId} bot={asker} onCancelTurn={() => {}} />} />
</div>
diff --git a/src/components/inbox/InboxCard.tsx b/src/components/inbox/InboxCard.tsx
index c828ac1cae..64c6a7f908 100644
--- a/src/components/inbox/InboxCard.tsx
+++ b/src/components/inbox/InboxCard.tsx
@@ -71,7 +71,7 @@ export function InboxCard({ view }: { view: InboxView }) {
const rows = rowsIn(view, "needs-you").slice(0, CARD_ROWS);
const openRow = (row: InboxRow) => { readInboxRow(row); openInbox({ reading: row.id }); };
const openAll = () => openInbox();
- const shell = cn("my-1 w-full max-w-[560px] rounded-[24px]", ELEVATED_CARD);
+ const shell = cn("my-1 w-full max-w-[560px] rounded-[18px]", ELEVATED_CARD);
if (!rows.length) {
return (
<section data-inbox-card="caught-up" aria-label={t("inbox.card.caughtUp")} className={cn(shell, "flex items-center gap-2 px-4 py-2 text-[13px] text-ink-secondary")}>
diff --git a/src/components/inbox/InboxPanel.tsx b/src/components/inbox/InboxPanel.tsx
index f5b930250a..a72fa7e7e7 100644
--- a/src/components/inbox/InboxPanel.tsx
+++ b/src/components/inbox/InboxPanel.tsx
@@ -82,7 +82,6 @@ export function InboxPanel() {
<InboxReading view={view} row={reading} now={now} position={at >= 0 ? { index: at, count: rows.length } : null} onStep={step} />
) : (
<>
- <h2 className="border-b border-hairline/40 px-3.5 py-2.5 text-[13px] font-medium text-ink">{t("inbox.panel.title")}</h2>
<div className="min-h-0 flex-1 overflow-y-auto">
<label className="m-2.5 flex h-8 items-center gap-2 rounded-lg bg-ink/[0.045] px-2.5 ring-[0.5px] ring-ink/[0.12] focus-within:ring-ink/30">
<Search size={14} aria-hidden="true" className="shrink-0 text-ink-tertiary" />
@@ -91,7 +90,15 @@ export function InboxPanel() {
</label>
<div role="list" data-inbox-list aria-label={t("inbox.panel.title")} className="space-y-0.5 px-1.5 pb-1.5">
{rows.length === 0
- ? <p className="px-4 py-8 text-center text-[13px] text-ink-secondary">{t(query.trim() && listedRows(view).length ? "inbox.noMatch" : "inbox.empty")}</p>
+ ? query.trim() && listedRows(view).length
+ ? <p className="px-4 py-8 text-center text-[13px] text-ink-secondary">{t("inbox.noMatch")}</p>
+ : (
+ <div data-inbox-empty className="mx-auto flex max-w-[16rem] flex-col items-center px-4 py-10 text-center">
+ <Inbox size={22} strokeWidth={1.5} aria-hidden="true" className="text-ink-tertiary" />
+ <p className="mt-3 text-[14px] font-medium text-ink">{t("inbox.empty")}</p>
+ <p className="mt-1 text-[13px] leading-[18px] text-ink-tertiary">{t("inbox.emptyHint")}</p>
+ </div>
+ )
: rows.map((row) => <InboxRowItem key={row.id} row={row} now={now} onOpen={open} onAction={run} />)}
</div>
{!query.trim() && <InboxActive view={view} />}
diff --git a/src/components/inbox/InboxQuestionAnswer.tsx b/src/components/inbox/InboxQuestionAnswer.tsx
index e05bf0d2a9..81cd05a47c 100644
--- a/src/components/inbox/InboxQuestionAnswer.tsx
+++ b/src/components/inbox/InboxQuestionAnswer.tsx
@@ -78,7 +78,7 @@ export function InboxQuestionAnswer({ row, question, asker, onAnswer }: {
onClick={() => toggle(option.label)}
className={cn("flex w-full items-start gap-2.5 rounded-xl px-3 py-2.5 text-start transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus disabled:opacity-60",
on ? "bg-ink/[0.10]" : "bg-ink/[0.045] hover:bg-ink/[0.075]")}>
- <span aria-hidden="true" className={cn("mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-[5px] border",
+ <span aria-hidden="true" className={cn("mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-[6px] border",
on ? "border-ink bg-ink text-app" : "border-ink/35")}>
{on && <Check size={11} strokeWidth={3} />}
</span>
diff --git a/src/components/keys/KeyRow.tsx b/src/components/keys/KeyRow.tsx
index 4b3bf17bb0..253470ad27 100644
--- a/src/components/keys/KeyRow.tsx
+++ b/src/components/keys/KeyRow.tsx
@@ -11,7 +11,7 @@ import { keyEntry, keyForInstance, looksLikeOtherKey, savedState, shownKeyEntry,
import { checkKey, cleanKey, looksLikeKey, saveKey } from "./key-save";
export const KEY_FIELD = "h-8 w-full min-w-0 rounded-lg border border-hairline/60 bg-inset px-3 font-mono text-[13px] leading-8 text-ink placeholder:text-ink-tertiary focus:outline-none focus-visible:ring-2 focus-visible:ring-focus/60 disabled:opacity-60";
-export const KEY_ROW = "group flex scroll-mt-24 flex-col gap-2 rounded-[10px] px-4 py-2.5 transition-[background-color,box-shadow] duration-500 data-[key-highlight]:bg-accent/10 data-[key-highlight]:ring-1 data-[key-highlight]:ring-accent/40 motion-reduce:transition-none";
+export const KEY_ROW = "group flex scroll-mt-24 flex-col gap-2 rounded-[8px] px-4 py-2.5 transition-[background-color,box-shadow] duration-500 data-[key-highlight]:bg-accent/10 data-[key-highlight]:ring-1 data-[key-highlight]:ring-accent/40 motion-reduce:transition-none";
const MASK = "••••••••";
export function KeyMarkIcon({ entry }: { entry: KeyEntry }) {
diff --git a/src/components/widget/WidgetContent.tsx b/src/components/widget/WidgetContent.tsx
index b04c1e3189..fadddd4fcc 100644
--- a/src/components/widget/WidgetContent.tsx
+++ b/src/components/widget/WidgetContent.tsx
@@ -76,7 +76,7 @@ export function WidgetBadge({ node }: { node: WidgetNode }) {
dir="auto"
className={cn(
"inline-flex shrink-0 items-center whitespace-nowrap font-medium", BADGE_SIZE[widgetString(node, "size") ?? "md"] ?? BADGE_SIZE.md,
- node.pill === false ? "rounded-[7px]" : "rounded-full",
+ node.pill === false ? "rounded-[8px]" : "rounded-full",
variant === "solid" ? BADGE_SOLID[color] ?? BADGE_SOLID.secondary : BADGE_INK[color] ?? BADGE_INK.secondary,
variant === "outline" && "shadow-[inset_0_0_0_1px_color-mix(in_srgb,currentColor_45%,transparent)]",
variant !== "solid" && variant !== "outline" && "bg-[color:color-mix(in_srgb,currentColor_13%,transparent)]",
diff --git a/src/components/widget/WidgetNodes.tsx b/src/components/widget/WidgetNodes.tsx
index 4a55d08a3f..5f73cdf28e 100644
--- a/src/components/widget/WidgetNodes.tsx
+++ b/src/components/widget/WidgetNodes.tsx
@@ -57,7 +57,7 @@ export function WidgetNodeView({ node, where }: { node: WidgetNode; where: Widge
const ink = INK[widgetString(node, "color") ?? ""];
if (!(where.item && where.lead)) return <WidgetGlyph name={node.name} size={size} className={ink} />;
return (
- <span className={cn("flex size-10 shrink-0 items-center justify-center rounded-[10px] bg-inset group-hover/row:bg-composer group-aria-checked/row:bg-composer", ink ?? "text-ink-secondary")}>
+ <span className={cn("flex size-10 shrink-0 items-center justify-center rounded-[8px] bg-inset group-hover/row:bg-composer group-aria-checked/row:bg-composer", ink ?? "text-ink-secondary")}>
<WidgetGlyph name={node.name} size={size} />
</span>
);
diff --git a/src/locales/en.json b/src/locales/en.json
index 9731a7eb9f..6cd7a15e18 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -2203,6 +2203,7 @@
"sidebar.people.invite": "Invite someone",
"inbox.panel.title": "Inbox",
"inbox.empty": "Nothing for you yet.",
+ "inbox.emptyHint": "When a bot needs your OK, has a question or finishes something, it shows up here.",
"inbox.row.count": "Inbox, {count} waiting",
"inbox.workingFor": "{name}, working for {other}",
"inbox.askedBy": "{name}, asked by {who}",
@@ -6509,6 +6510,7 @@
"settings.simple.page.billing": "Usage & billing",
"settings.simple.page.updates": "Updates",
"settings.simple.page.looks": "Looks",
+ "settings.simple.group.typing": "Language and typing",
"settings.simple.group.system": "System",
"settings.simple.advanced": "Advanced",
"settings.simple.advancedMode": "Show every control, including tools for builders. Nothing is deleted either way.",
@@ -7489,6 +7491,7 @@
"chat.savedSteps.forgotten": "Forgotten",
"chat.savedSteps.forgetFailed": "Couldn't forget these steps. Try again.",
"chat.setupCard.title": "What should I help you with first?",
+ "chat.setupCard.hint": "Pick one and I'll set myself up for it, or type your own below.",
"chat.setupCard.other": "Something else",
"chat.setupCard.answer": "Your answer",
"chat.setupCard.research": "Research and digging into topics",
diff --git a/src/styles.css b/src/styles.css
index 465967434c..619fb53ea1 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -213,7 +213,7 @@
/* .chat-column: fills a narrow pane, then stops at this width and centers, so wider windows only grow the gutters. */
--chat-column-max: 60rem;
/* Menus; a phone rounds them like its sheets. */
- --radius-menu: 14px;
+ --radius-menu: 12px;
}
:root[data-chat-width="wide"] {
--chat-bubble-max: 64rem;
@@ -297,15 +297,15 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
/* One radius scale, shared with Daylight. What takes which step: buttons
- and pills full; menu rows 6; fields 8; sidebar rows 10; menus 12;
- dialogs 14; a card inside a bubble 16; bubbles 18; the composer 22
- (18 once it wraps); a card in the transcript 24; the window's panes 0. */
+ and pills full; keycaps, chips and menu rows 6; fields, controls and
+ sidebar rows 8; cards and menus 12; dialogs 16; bubbles and the cards in
+ the transcript 18; the composer 22 (18 once it wraps); the window's panes 0. */
--radius-xs: 2px;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--radius-xl: 12px;
- --radius-2xl: 14px;
+ --radius-2xl: 16px;
--radius-3xl: 16px;
--radius-4xl: 18px;
--identity-green: #009957;
@@ -767,7 +767,7 @@
--color-control: #e3e3e3; /* a chip on a card */
/* 24% ink: whole, the firm line; at /50, the 12% line between surfaces. */
--color-hairline: #1c1c1c3d;
- --color-edge: #1c1c1c14;
+ --color-edge: #1c1c1c1f;
--color-ink: #1c1c1c;
--color-ink-secondary: #1c1c1cad;
@@ -801,7 +801,7 @@
--radius-md: 6px;
--radius-lg: 8px;
--radius-xl: 12px;
- --radius-2xl: 14px;
+ --radius-2xl: 16px;
--radius-3xl: 16px;
--radius-4xl: 18px;
--identity-green: #00864c;
@@ -1010,8 +1010,12 @@
.popover-surface {
background-color: var(--color-menu);
}
+/* Lucide draws at 2px by default, heavy beside Geist; one lighter stroke for every icon left at that default. */
+:where(svg.lucide[stroke-width="2"]) {
+ stroke-width: 1.75;
+}
:root[data-skin="midnight"] .popover-surface {
- box-shadow: none;
+ box-shadow: 0 14px 32px -10px rgb(0 0 0 / 0.7), 0 2px 8px rgb(0 0 0 / 0.35);
}
:root[data-skin="daylight"] .popover-surface {
box-shadow: 0 10px 20px -3px rgb(28 28 28 / 0.1), 0 4px 6px -4px rgb(28 28 28 / 0.1);
@@ -1129,6 +1133,26 @@
[data-chat-bubble="simple"] .chat-md > * + * {
margin-top: 10px;
}
+[data-chat-bubble="simple"] .chat-md > * + .md-heading {
+ margin-top: 18px;
+}
+[data-chat-bubble="simple"] .chat-md > .md-heading:first-child {
+ margin-top: 0;
+}
+/* One reply's prose bubbles and table cards stack as one group: where two meet, their start corners tighten to 6px. */
+[data-reply-blocks] > * + * [data-table-card],
+[data-reply-blocks] > * + [data-chat-bubble] {
+ border-start-start-radius: 6px;
+}
+[data-reply-blocks] > :has(+ *) [data-table-card],
+[data-reply-blocks] > [data-chat-bubble]:has(+ *),
+[data-reply-blocks] > :has(+ *) > [data-chat-bubble] {
+ border-end-start-radius: 6px;
+}
+/* A short line keeps the tight chat bubble; a structured reply gets room to breathe. */
+[data-chat-bubble="simple"]:has(.chat-md > :is(.md-heading, ul, ol, blockquote), .chat-md pre) {
+ padding: 12px 16px;
+}
/* A card under its own bot's bubble (and a bubble under its card) sits 12px below it, not the 16px between senders. */
[data-simple-rows] > [data-tuck] > :first-child {
margin-top: -4px;