Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix(web): make running bots cards opaque (#882)
Gustavo Ye226135f02713
diff --git a/src/web/src/components/community/shell/shell-frame-view.tsx b/src/web/src/components/community/shell/shell-frame-view.tsxindex 1e0aa02f4..ca9e4bda8 100644--- a/src/web/src/components/community/shell/shell-frame-view.tsx+++ b/src/web/src/components/community/shell/shell-frame-view.tsx@@ -87,7 +87,6 @@ export function ShellFrameView({const profileCompanionElement = profileInExtension && runningBots.length > 0 ? (<ProfileRunningBotsCardonOpenBotAudit={profile.openBotAudit}- useBackdropEffect={breakpoint !== "mobile"}showShadow={breakpoint !== "mobile"}/>) : nulldiff --git a/src/web/src/components/community/social/profile-card.tsx b/src/web/src/components/community/social/profile-card.tsxindex a02328eb1..b2d5a7809 100644--- a/src/web/src/components/community/social/profile-card.tsx+++ b/src/web/src/components/community/social/profile-card.tsx@@ -337,7 +337,6 @@ function ProfileCardContent({ data, x, y, bp, onClose, onMessage, isSelf, onUpdaconst secondaryCards = showSelfRunningBots ? (<ProfileRunningBotsCardonOpenBotAudit={onOpenBotAudit}- useBackdropEffect={!mobile}/>) : showOwnedBotCard && data.userId ? (<BotMarkStickerdiff --git a/src/web/src/components/community/social/profile-running-bots-card.dom.test.ts b/src/web/src/components/community/social/profile-running-bots-card.dom.test.tsindex a3b84c4d5..68c942fe0 100644--- a/src/web/src/components/community/social/profile-running-bots-card.dom.test.ts+++ b/src/web/src/components/community/social/profile-running-bots-card.dom.test.ts@@ -142,7 +142,7 @@ describe("ProfileRunningBotsCard", () => {expect(renderToStaticMarkup(createElement(ProfileRunningBotsCard))).toBe("")})- it("keeps the liquid-glass and bounded-scroll surface contracts", () => {+ it("keeps an opaque surface and bounded scrolling", () => {mocks.bots = [bot("one"), bot("two")]mocks.profiles = new Map([["one", { id: "one", statusEmoji: "⚡", statusText: "Working on it" }],@@ -150,12 +150,12 @@ describe("ProfileRunningBotsCard", () => {])const html = renderToStaticMarkup(createElement(ProfileRunningBotsCard))- expect(html).toContain("bg-popover/70")- expect(html).toContain("backdrop-blur-2xl")- expect(html).toContain("backdrop-saturate-150")+ expect(html).toContain("bg-popover")+ expect(html).not.toMatch(/bg-popover\/\d+/)+ expect(html).not.toContain("backdrop-")expect(html).toContain("border-foreground/10")- expect(html).toContain("after:bg-linear-to-br")- expect(html).toContain("before:via-white/60")+ expect(html).not.toContain("after:bg-linear")+ expect(html).not.toContain("before:via-white")expect(html).not.toContain("status-online")expect(html).not.toContain("Online ·")expect(html).not.toContain('presence="online"')@@ -170,7 +170,7 @@ describe("ProfileRunningBotsCard", () => {expect(html).toContain('<span class="truncate">')})- it("uses a stable translucent surface when nested mobile backdrop composition is unavailable", () => {+ it("keeps the mobile shadowless companion opaque", () => {mocks.bots = [bot("runner")]mocks.profiles = new Map([["runner", {id: "runner",@@ -178,11 +178,11 @@ describe("ProfileRunningBotsCard", () => {statusText: "Working on it",}]])const html = renderToStaticMarkup(createElement(ProfileRunningBotsCard, {- useBackdropEffect: false,showShadow: false,}))- expect(html).toContain("bg-popover/95")+ expect(html).toContain("bg-popover")+ expect(html).not.toMatch(/bg-popover\/\d+/)expect(html).toContain("shadow-none")expect(html).not.toContain("shadow-2xl")expect(html).not.toContain("backdrop-blur-2xl")diff --git a/src/web/src/components/community/social/profile-running-bots-card.tsx b/src/web/src/components/community/social/profile-running-bots-card.tsxindex 1a4f88c17..b34b0c065 100644--- a/src/web/src/components/community/social/profile-running-bots-card.tsx+++ b/src/web/src/components/community/social/profile-running-bots-card.tsx@@ -54,16 +54,15 @@ function BotRow({ bot, onOpenBotAudit }: {data-testid={tid.profileRunningBotRow(bot.id)}onClick={() => onOpenBotAudit(bot.id)}aria-label={`Open ${bot.name} activity`}- className="flex min-h-11 w-full items-center gap-3 rounded-lg px-1 py-2 text-left transition-colors duration-150 hover:bg-accent/70 active:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"+ className="flex min-h-11 w-full items-center gap-3 rounded-lg px-1 py-2 text-left transition-colors duration-150 hover:bg-accent active:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none">{content}</button>)}-export function ProfileRunningBotsCard({ onOpenBotAudit, useBackdropEffect = true, showShadow = true }: {+export function ProfileRunningBotsCard({ onOpenBotAudit, showShadow = true }: {onOpenBotAudit?: (botId: string) => void- useBackdropEffect?: booleanshowShadow?: boolean}) {const titleId = useId()@@ -76,11 +75,8 @@ export function ProfileRunningBotsCard({ onOpenBotAudit, useBackdropEffect = trudata-testid={tid.profileRunningBotsCard}aria-labelledby={titleId}className={[- "relative isolate flex h-full min-h-0 w-full flex-col overflow-hidden rounded-2xl border border-foreground/10 px-4 py-2 text-popover-foreground before:pointer-events-none before:absolute before:inset-x-5 before:top-0 before:z-20 before:h-px before:bg-linear-to-r before:from-transparent before:via-white/60 before:to-transparent before:content-[''] after:pointer-events-none after:absolute after:inset-0 after:z-0 after:bg-linear-to-br after:from-white/15 after:via-white/5 after:to-transparent after:content-['']",+ "relative isolate flex h-full min-h-0 w-full flex-col overflow-hidden rounded-2xl border border-foreground/10 px-4 py-2 bg-popover text-popover-foreground",showShadow ? "shadow-2xl shadow-black/20" : "shadow-none",- useBackdropEffect- ? "bg-popover/70 backdrop-blur-2xl backdrop-saturate-150"- : "bg-popover/95",].join(" ")}><div className="relative z-10 flex h-6 shrink-0 items-center gap-2">