Skip to content

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

Merge origin/main into train/nov16-u2

milind-soni6354dd223e09
diff --cc src/components/Sidebar.tsx
index e9e4fa5688,70bcad0e74..9c55fd5ff5
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@@ -90,7 -90,7 +90,7 @@@ import { attentionHasRunningWork, atten
import { SidebarNoBots, SidebarTileGrid } from "./SidebarTiles";
import { BotContextMenu } from "./SidebarBotMenu";
export { BotContextMenu };
- import { AvatarActivityDot, RowDot, RowStatusText, rowSelectedSurface, rowSurface } from "./SidebarRowMarkers";
-import { AvatarActivityDot, AvatarCornerDot, RowDot, RowStatusText, rowSurface } from "./SidebarRowMarkers";
++import { AvatarActivityDot, AvatarCornerDot, RowDot, RowStatusText, rowSelectedSurface, rowSurface } from "./SidebarRowMarkers";
import { SidebarAttentionPanel } from "./SidebarAttentionPanel";
@@@ -725,10 -725,10 +725,10 @@@ export const BotListItem = memo(functio
: 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",
+ selected ? rowSelectedSurface : "hover:bg-raised/50",
simpleRow && rowSurface(selected),
);
- const { waiting, working, teammateWait, queued } = sidebarBotStatus(bot, pendingQueued);
+ const { waiting, working, failed, teammateWait, queued } = sidebarBotStatus(bot, pendingQueued, visible);
const { unread, noticing } = useBotUnread(bot);
const onLiveCall = liveBadgeFor(bot.id, liveMedia, liveCall);
const body = (
diff --cc src/components/SidebarRowMarkers.tsx
index d16cbce459,9af8f533cf..459bd85543
--- a/src/components/SidebarRowMarkers.tsx
+++ b/src/components/SidebarRowMarkers.tsx
@@@ -8,11 -8,7 +8,11 @@@ export function rowSurface(selected: bo
: "[--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";
+
- export type RowActivity = "working" | "teammate" | "queued";
+ export type RowActivity = "working" | "failed" | "teammate" | "queued";
const ACTIVITY = {
working: { tone: "bg-success", label: () => t("chat.activity.working"), testId: "working-dot" },