From de0438fed6cd5b04c12bf270c3f98dbee8d6ab28 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 20 Aug 2026 12:18:59 +0000 Subject: [PATCH] feat(studio): horizontal split for the Workers empty state Rework the empty state into a single card with a horizontal split: the EmptyStatePresentational icon/title/description/CTA stays on the left (its own border/background stripped so the outer wrapper is the only visible card chrome), and the quickstart PromptPanel sits fixed-width on the right. Stacks vertically below lg. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01XQ5b58nwfCGsifA7PCheQb --- .../interfaces/Workers/WorkersEmptyState.tsx | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/apps/studio/components/interfaces/Workers/WorkersEmptyState.tsx b/apps/studio/components/interfaces/Workers/WorkersEmptyState.tsx index 40e703a5a3e..b9976733a2c 100644 --- a/apps/studio/components/interfaces/Workers/WorkersEmptyState.tsx +++ b/apps/studio/components/interfaces/Workers/WorkersEmptyState.tsx @@ -16,33 +16,35 @@ export const WorkersEmptyState = ({ onCreate }: WorkersEmptyStateProps) => { const { can: canDeployWorkers } = useAsyncCheckPermissions(PermissionAction.FUNCTIONS_WRITE, '*') return ( - - } - disabled={!canDeployWorkers} - onClick={onCreate} - tooltip={{ - content: { - side: 'bottom', - text: canDeployWorkers ? undefined : 'You need additional permissions to deploy workers', - }, - }} +
+ {/* Main content + CTA — same EmptyStatePresentational, stripped of its own card chrome so the outer wrapper is the only visible border. */} + - Deploy worker - + } + disabled={!canDeployWorkers} + onClick={onCreate} + tooltip={{ + content: { + side: 'bottom', + text: canDeployWorkers ? undefined : 'You need additional permissions to deploy workers', + }, + }} + > + Deploy worker + + - {/* Capped at 600px and centered regardless of how wide the container grows. */} -
-

Or quickstart a worker with a snippet

+
+

Quickstart with a snippet

- +
) }