Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Sidebar: the open conversation goes back to a plain grey fill (#6425)
Milind Sonieccc96f7e8f9
diff --git a/src/components/Sidebar.simple-mode.test.ts b/src/components/Sidebar.simple-mode.test.tsindex 01a3d767bb..cfa812bcf4 100644--- a/src/components/Sidebar.simple-mode.test.ts+++ b/src/components/Sidebar.simple-mode.test.ts@@ -243,7 +243,7 @@ describe("bot-first sidebar", () => {fixture.state = { ...fixture.state, selectedId: bot.id, activeView: "chat" };const candidate = { ...bot, tasks: [], projects: [] };const simple = renderToStaticMarkup(createElement(BotListItem, rowProps("comfortable", candidate)));- expect(simple).toContain("[--row:color-mix(in_srgb,var(--color-accent)_15%,var(--color-panel))]");+ expect(simple).toContain("[--row:var(--color-raised)]");expect(simple).toMatch(/data-bot-actions="atlas"[^>]*class="[^"]*\bpointer-events-none opacity-0 group-hover:pointer-events-auto/);expect(simple).toContain('class="flex items-baseline justify-between gap-2 pe-7 group-hover:pe-[3.25rem] group-focus-within:pe-[3.25rem] touch:pe-[3.25rem] max-md:touch:pe-7"');fixture.advanced = true;diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsxindex 9c55fd5ff5..a7f46890a5 100644--- a/src/components/Sidebar.tsx+++ b/src/components/Sidebar.tsx@@ -193,7 +193,7 @@ export const GroupListItem = memo(function GroupListItem({title={density === "icons" ? group.name : undefined}aria-label={density === "icons" ? group.name : undefined}>- <span className={cn("rounded-full", selected && !expanded && "ring-2 ring-accent/70 ring-offset-2 ring-offset-panel")}>{group.dm ? <StackedMauses members={members} density={railTile ? "comfortable" : density} large={simpleRow || railTile} /> : <RoomMark density={railTile ? "comfortable" : density} large={simpleRow || railTile} />}</span>+ {group.dm ? <StackedMauses members={members} density={railTile ? "comfortable" : density} large={simpleRow || railTile} /> : <RoomMark density={railTile ? "comfortable" : density} large={simpleRow || railTile} />}<div className={cn("min-w-0 flex-1", density === "icons" && "hidden")}><div className={cn("flex items-baseline justify-between gap-2", simpleRow && "pr-7")}><span className={cn("truncate text-[14px] text-ink", simpleRow ? "font-medium leading-5" : "font-semibold")}>{group.name}</span>@@ -733,7 +733,7 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {const onLiveCall = liveBadgeFor(bot.id, liveMedia, liveCall);const body = (<>- <span className={cn("relative flex shrink-0", simpleRow && "-m-[3px]", selected && "rounded-full ring-2 ring-accent/70 ring-offset-2 ring-offset-panel")} title={iconOnly || simpleList ? undefined : [bot.name, ...details].join(" · ")}>+ <span className={cn("relative flex shrink-0", simpleRow && "-m-[3px]")} title={iconOnly || simpleList ? undefined : [bot.name, ...details].join(" · ")}><BotAvatarbot={bot}state={stateForBot({ ...bot, messages: visible })}diff --git a/src/components/SidebarRowMarkers.tsx b/src/components/SidebarRowMarkers.tsxindex 459bd85543..50b9ded887 100644--- a/src/components/SidebarRowMarkers.tsx+++ b/src/components/SidebarRowMarkers.tsx@@ -4,13 +4,12 @@ import { t } from "@/lib/i18n";/** The colour behind a Simple row, which the status dot on its avatar is ring-cut against. */export function rowSurface(selected: boolean): string {return selected- ? "[--row:color-mix(in_srgb,var(--color-accent)_15%,var(--color-panel))]"+ ? "[--row:var(--color-raised)]": "[--row:var(--color-panel)] max-md:[--row:var(--color-app)] hover:[--row:color-mix(in_srgb,var(--color-raised)_50%,var(--color-panel))]";}-/** The conversation the chat window has open. A tint, a left accent bar and an inset outline,- * because `raised` sits only a shade away from `panel` on both the dark and the light skins. */-export const rowSelectedSurface = "bg-accent/15 shadow-[inset_3px_0_0_0_var(--color-accent)] ring-1 ring-inset ring-accent/30 hover:bg-accent/20";+/** The conversation the chat window has open: the same plain fill as a selected row. */+export const rowSelectedSurface = "bg-raised";export type RowActivity = "working" | "failed" | "teammate" | "queued";diff --git a/src/components/SidebarTiles.test.ts b/src/components/SidebarTiles.test.tsindex 861aca4e15..6ee17f09b9 100644--- a/src/components/SidebarTiles.test.ts+++ b/src/components/SidebarTiles.test.ts@@ -62,7 +62,7 @@ describe("the sidebar tiles", () => {it("fills the selected tile and marks it current, and shows working, waiting and unread as a dot on the avatar", () => {const selected = renderToStaticMarkup(createElement(SidebarBotTile, { ...props(bot(), true), primary: true }));expect(selected).toContain('aria-current="page"');- expect(selected).toContain("[--tile:color-mix(in_srgb,var(--color-accent)_15%,var(--color-panel))]");+ expect(selected).toContain("[--tile:var(--color-raised)]");expect(renderToStaticMarkup(createElement(SidebarBotTile, props(bot({ busy: true }))))).toContain('data-testid="working-dot"');expect(renderToStaticMarkup(createElement(SidebarBotTile, props(bot({ activity: "waiting-on-you" }))))).toContain('data-testid="waiting-dot"');const unread = renderToStaticMarkup(createElement(SidebarBotTile, props(bot({ unread: true }))));diff --git a/src/components/SidebarTiles.tsx b/src/components/SidebarTiles.tsxindex 02c23db740..3bf2f2aa1f 100644--- a/src/components/SidebarTiles.tsx+++ b/src/components/SidebarTiles.tsx@@ -76,7 +76,7 @@ export const SidebarBotTile = memo(function SidebarBotTile({ primary = false, dronContextMenu={(event) => openBotContextMenu(onMenu, bot.id, event)}className={cn("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:color-mix(in_srgb,var(--color-accent)_15%,var(--color-panel))]" : "[--tile:var(--color-panel)] hover:[--tile:color-mix(in_srgb,var(--color-raised)_50%,var(--color-panel))]",+ 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 }),)}>