Skip to content

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

Merge pull request #6115 from luishron123/feat/sidebar-hover-threads

milind-soniba7b48b95cf5
diff --cc src/components/Sidebar.simple-mode.test.ts
index a994316bf8,cfa812bcf4..01a3d767bb
--- a/src/components/Sidebar.simple-mode.test.ts
+++ b/src/components/Sidebar.simple-mode.test.ts
@@@ -243,9 -243,9 +243,9 @@@ 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:var(--color-raised)]");
+ expect(simple).toContain("[--row:color-mix(in_srgb,var(--color-accent)_15%,var(--color-panel))]");
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 pr-7"');
+ 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;
expect(renderToStaticMarkup(createElement(BotListItem, rowProps("comfortable", candidate)))).toMatch(/data-bot-actions="atlas"[^>]*class="[^"]*\bpointer-events-auto opacity-100/);
});
diff --cc src/components/Sidebar.tsx
index 983cd430bb,8e77bbcc2b..adbb113d02
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@@ -21,8 -22,8 +21,8 @@@ import { activeLocale, t } from "@/lib/
import { copyText } from "@/lib/copy-text";
import type { LocaleKey } from "@/locales";
import { ConfirmDialog } from "./ConfirmDialog";
-import { BulkSelectFilters, ThreadListFooter, deleteThreadsInBulk, useBulkSelect } from "./BulkSelectBar";
+import { BulkSelectFilters, ThreadListFooter, deleteThreadsInBulk, retitleThreadsInBulk, useBulkSelect } from "./BulkSelectBar";
-
+ import { SidebarBotThreadsPeek } from "./SidebarBotThreadsPeek";
import { RoomMark, StackedMauses } from "./StackedMauses";
import { LocalComputerAutoWarning } from "./LocalComputerAutoWarning";
import { nextRename } from "@/lib/rename";