From 968d652d05eb7c18ba9edf8c5c80c4dab5516081 Mon Sep 17 00:00:00 2001 From: Bill Leoutsakos Date: Sun, 20 Sep 2026 16:41:08 -0700 Subject: [PATCH 1/3] improvement(ui): share workflow panel tab buttons --- .../panel/components/panel-tab-button.tsx | 26 ++++++++++++++ .../w/[workflowId]/components/panel/panel.tsx | 35 ++++++------------- 2 files changed, 37 insertions(+), 24 deletions(-) create mode 100644 apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button.tsx diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button.tsx new file mode 100644 index 00000000000..77989a0d2b8 --- /dev/null +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button.tsx @@ -0,0 +1,26 @@ +import { type ComponentProps, forwardRef } from 'react' +import { Button, cn } from '@sim/emcn' + +interface PanelTabButtonProps + extends Omit, 'variant' | 'size' | 'iconSize' | 'iconPadding'> { + active: boolean +} + +/** The workflow panel's compact tab treatment, with caller-owned selection. */ +export const PanelTabButton = forwardRef( + ({ active, className, ...props }, ref) => ( + + )} - - + From 531de21fd7ad7ef256e7379cd9c522f8332b7506 Mon Sep 17 00:00:00 2001 From: Bill Leoutsakos Date: Sun, 20 Sep 2026 16:51:09 -0700 Subject: [PATCH 2/3] chore(ui): export panel tab button through barrel --- .../w/[workflowId]/components/panel/components/index.ts | 1 + .../[workspaceId]/w/[workflowId]/components/panel/panel.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts index d942f6fa12e..87847c99c19 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts @@ -1,3 +1,4 @@ +export { PanelTabButton } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button' export { Deploy } from './deploy' export { Editor } from './editor' export { Toolbar } from './toolbar' diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx index 6fac63fef2e..d2a65044cd0 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx @@ -55,9 +55,9 @@ import { createCommands } from '@/app/workspace/[workspaceId]/utils/commands-uti import { Deploy, Editor, + PanelTabButton, Toolbar, } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components' -import { PanelTabButton } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button' import { usePanelResize, useUsageLimits, From 9d873cf5bfa76d617d401fb265bf2138a584b18e Mon Sep 17 00:00:00 2001 From: Bill Leoutsakos Date: Tue, 22 Sep 2026 01:30:55 -0700 Subject: [PATCH 3/3] chore(ui): match panel barrel export conventions --- .../w/[workflowId]/components/panel/components/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts index 87847c99c19..9ee25badb3a 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts @@ -1,4 +1,4 @@ -export { PanelTabButton } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button' export { Deploy } from './deploy' export { Editor } from './editor' +export { PanelTabButton } from './panel-tab-button' export { Toolbar } from './toolbar'