diff --git a/canvas/src/components/tabs/EventsTab.tsx b/canvas/src/components/tabs/EventsTab.tsx index 266d6389..07c90b09 100644 --- a/canvas/src/components/tabs/EventsTab.tsx +++ b/canvas/src/components/tabs/EventsTab.tsx @@ -15,14 +15,20 @@ interface EventEntry { created_at: string; } +// Use semantic warm-paper tokens so colors flip with theme. Earlier +// the table referenced text-yellow-400 / text-purple-400 (Tailwind +// raw colors, no theme variant), which read fine in dark mode but +// washed out in the warm-paper light theme. text-warm covers the +// "degraded" amber tone in both modes; AGENT_CARD_UPDATED is informational +// metadata, so reuse text-accent for theme-consistency. const EVENT_COLORS: Record = { WORKSPACE_ONLINE: "text-good", WORKSPACE_OFFLINE: "text-ink-mid", - WORKSPACE_DEGRADED: "text-yellow-400", + WORKSPACE_DEGRADED: "text-warm", WORKSPACE_PROVISIONING: "text-accent", WORKSPACE_REMOVED: "text-bad", WORKSPACE_PROVISION_FAILED: "text-bad", - AGENT_CARD_UPDATED: "text-purple-400", + AGENT_CARD_UPDATED: "text-accent", }; export function EventsTab({ workspaceId }: Props) { @@ -64,8 +70,12 @@ export function EventsTab({ workspaceId }: Props) {
{events.length} events @@ -81,39 +91,51 @@ export function EventsTab({ workspaceId }: Props) {

No events yet

) : (
- {events.map((event) => ( -
- + + {event.event_type} + + + {formatTime(event.created_at)} + + + - {expanded === event.id && ( -
-
-                    {JSON.stringify(event.payload, null, 2)}
-                  
-
- ID: {event.id} + {isOpen && ( +
+
+                      {JSON.stringify(event.payload, null, 2)}
+                    
+
+ ID: {event.id} +
-
- )} -
- ))} + )} +
+ ); + })}
)}