From 68c9b5dad97c1e4c483039dedda0b602d107b373 Mon Sep 17 00:00:00 2001 From: Bill Leoutsakos Date: Tue, 22 Sep 2026 13:30:52 -0700 Subject: [PATCH 1/2] improvement(ui): share workflow panel tab buttons --- .../components/panel/components/index.ts | 1 + .../panel/components/panel-tab-button.tsx | 26 ++++++++++++++ .../w/[workflowId]/components/panel/panel.tsx | 35 ++++++------------- 3 files changed, 38 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/index.ts b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts index d942f6fa12e..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,3 +1,4 @@ export { Deploy } from './deploy' export { Editor } from './editor' +export { PanelTabButton } from './panel-tab-button' export { Toolbar } from './toolbar' 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..cef451fe5c8 --- /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 2199bbb91bc716896279d906fc53008c1e2bdb33 Mon Sep 17 00:00:00 2001 From: Bill Leoutsakos <157128530+BillLeoutsakosvl346@users.noreply.github.com> Date: Thu, 24 Sep 2026 15:09:18 -0700 Subject: [PATCH 2/2] improvement(ui): reuse chips for panel selection actions (#8166) Co-authored-by: Bill Leoutsakos --- .../components/panel/components/index.ts | 1 - .../panel/components/panel-tab-button.tsx | 26 ------------------- .../w/[workflowId]/components/panel/panel.tsx | 18 ++++++------- .../components/output-panel/output-panel.tsx | 25 ++++-------------- 4 files changed, 13 insertions(+), 57 deletions(-) delete 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/index.ts b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts index 9ee25badb3a..d942f6fa12e 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,3 @@ export { Deploy } from './deploy' export { Editor } from './editor' -export { PanelTabButton } from './panel-tab-button' export { Toolbar } from './toolbar' 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 deleted file mode 100644 index cef451fe5c8..00000000000 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button.tsx +++ /dev/null @@ -1,26 +0,0 @@ -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) => ( - @@ -803,7 +802,7 @@ export const Panel = memo(function Panel() { + {hasInputData && ( - + )}