Skip to content

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

UI polish: the + menu's conversation entry uses the menu separator

aivsomkareb90190b4996
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index c53d222c94..86b4a6b3b0 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -76,7 +76,7 @@ import { useCloudOwner } from "./CloudOwner";
import { SidebarSectionHeader } from "./SidebarSectionHeader";
import { NeedsYouButton, OwnerPickerHost, pickOwnerOf } from "./TeamOwner"; import { SidebarPeople } from "./SidebarPeople"; import { SidebarInboxRow } from "./SidebarInboxRow"; import { SidebarActiveThreads } from "./SidebarActiveThreads"; import { setAttentionPinned, useAttentionPinned } from "./inbox/attention-pinned"; import { useInboxSupport } from "@/state/inbox";
import { showWhoReportsToWhom, TeamMenuItems } from "./SidebarTeamMenu";
-import { MENU_ITEM, MENU_SHEET } from "./menu-recipe";
+import { MENU_ITEM, MENU_ITEM_SEPARATOR, MENU_SHEET } from "./menu-recipe";
import { ELEVATED_CONTROL } from "./elevated";
import { useTeamPeople } from "@/state/team-people";
export { TeamMenuItems };
@@ -1177,7 +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>}
+ {!advanced && plusBot && <><button role="menuitem" className={plusItem} onClick={() => { setPlusOpen(false); dispatch({ type: "newTask", botId: plusBot.id }); }}><SquarePen size={16} className="text-ink-secondary" />{t("sidebar.newConversationWith", { name: plusBot.name })}</button><div role="separator" className={MENU_ITEM_SEPARATOR} /></>}
{teamSettingsAllowed !== false && <button
onClick={() => { setPlusOpen(false); dispatch({ type: "newBot" }); }}
role="menuitem"