The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
Add dark mode inbox selection color
dotta9684e7bf3080
diff --git a/ui/src/components/SwipeToArchive.test.tsx b/ui/src/components/SwipeToArchive.test.tsxindex 4cdf92db00..8a3c07f329 100644--- a/ui/src/components/SwipeToArchive.test.tsx+++ b/ui/src/components/SwipeToArchive.test.tsx@@ -136,7 +136,10 @@ describe("SwipeToArchive", () => {const surface = container.querySelector("[data-inbox-row-surface]") as HTMLDivElement | null;expect(surface).not.toBeNull();- expect(surface?.style.backgroundColor).toBe("hsl(var(--muted))");+ expect(surface?.className).toContain("bg-zinc-100");+ expect(surface?.className).toContain("dark:bg-zinc-800");+ expect(surface?.className).not.toContain("bg-card");+ expect(surface?.style.backgroundColor).toBe("");expect(surface?.style.boxShadow).toBe("");act(() => {diff --git a/ui/src/components/SwipeToArchive.tsx b/ui/src/components/SwipeToArchive.tsxindex acd1d4672f..639179c349 100644--- a/ui/src/components/SwipeToArchive.tsx+++ b/ui/src/components/SwipeToArchive.tsx@@ -13,7 +13,6 @@ interface SwipeToArchiveProps {const COMMIT_THRESHOLD = 0.32;const MAX_SWIPE = 0.88;const COMMIT_DELAY_MS = 140;-const SELECTED_ROW_BACKGROUND = "hsl(var(--muted))";export function SwipeToArchive({children,@@ -152,11 +151,13 @@ export function SwipeToArchive({</div><divdata-inbox-row-surface- className="relative bg-card will-change-transform"+ className={cn(+ "relative will-change-transform",+ selected ? "bg-zinc-100 dark:bg-zinc-800" : "bg-card",+ )}style={{transform: `translate3d(${offsetX}px, 0, 0)`,transition: isDragging ? "none" : "transform 180ms ease-out",- backgroundColor: selected ? SELECTED_ROW_BACKGROUND : undefined,}}>{children}