Skip to content

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

Merge pull request #5504 from AdityaUmale/fix/mail-1a1ca8df-usage-bot-names

milind-soni122ef4eb99db
diff --cc src/components/UsageSection.tsx
index f018bb55d1,c6e7235d69..c2d7730ca5
--- a/src/components/UsageSection.tsx
+++ b/src/components/UsageSection.tsx
@@@ -93,10 -91,10 +93,10 @@@ export function GroupBars({ groupBy, gr
<li key={group.key} className="grid grid-cols-[minmax(0,9rem)_1fr_auto] items-center gap-3 text-[13px]" title={t("usage.page.turns", { count: String(group.turns) })}>
<span className="flex min-w-0 items-center gap-2 text-ink">
{bot && <BotAvatar bot={bot} state="idle" size={18} animated={false} />}
- <span className="truncate">{groupBy === "model" ? modelName(group.label, state.instances) : usageGroupLabel(groupBy, group)}</span>
+ <span className="truncate">{bot ? bot.name : groupBy === "model" ? modelName(group.label, state.instances) : usageGroupLabel(groupBy, group)}</span>
</span>
- <span className="h-2 overflow-hidden rounded-full bg-raised">
- <span className="block h-full rounded-full bg-accent/70" style={{ width: `${Math.max(2, (headlineTokens(group) / max) * 100)}%` }} />
+ <span className={cn("h-2 overflow-hidden rounded-full", settings ? "bg-ink/[0.08]" : "bg-raised")}>
+ <span className={cn("block h-full rounded-full", settings ? "bg-ink" : "bg-accent/70")} style={{ width: `${Math.max(2, (headlineTokens(group) / max) * 100)}%` }} />
</span>
<span className="min-w-[4.5rem] text-right tabular-nums text-ink-secondary">
{formatTokens(headlineTokens(group))}