From dbc88b6054202343c4cf8c7fa02b9de893000965 Mon Sep 17 00:00:00 2001 From: Kiet Ho Date: Thu, 7 May 2026 19:43:10 -0700 Subject: [PATCH] refactor(desktop): align automations tab with Linear design language - Compact h-11 top bar with inline Mine/Team Tabs (matches TasksTopBar) - Replace shadcn Table with grid-based rows (matches V2WorkspacesList): sticky uppercase column header, py-2.5 rows, hover-only row actions - Detail header: compact h-11 px-4 with icon-sm ghost buttons - Sidebar: tighter padding (px-5, gap-6), narrowed to 360px - Empty-scope state uses shared Empty component --- .../AutomationBody/AutomationBody.tsx | 2 +- .../AutomationDetailHeader.tsx | 25 +- .../AutomationDetailSidebar.tsx | 6 +- .../AutomationsEmptyState.tsx | 16 +- .../_dashboard/automations/page.tsx | 556 ++++++++++-------- 5 files changed, 344 insertions(+), 261 deletions(-) diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/AutomationBody/AutomationBody.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/AutomationBody/AutomationBody.tsx index 3f62298d02d..284ea3d9322 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/AutomationBody/AutomationBody.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/AutomationBody/AutomationBody.tsx @@ -47,7 +47,7 @@ export function AutomationBody({ }); return ( -
+
+
- + Automations @@ -46,17 +46,17 @@ export function AutomationDetailHeader({ - {name} + {name} -
+
diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/AutomationDetailSidebar/AutomationDetailSidebar.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/AutomationDetailSidebar/AutomationDetailSidebar.tsx index d704665d6a0..10216d01d55 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/AutomationDetailSidebar/AutomationDetailSidebar.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/AutomationDetailSidebar/AutomationDetailSidebar.tsx @@ -54,8 +54,8 @@ export function AutomationDetailSidebar({ .sort((a, b) => b.getTime() - a.getTime())[0]; return ( -