From 85c350c71639d814777b789b7cefd4b5e29d303a Mon Sep 17 00:00:00 2001 From: Bill Leoutsakos Date: Tue, 22 Sep 2026 15:04:18 -0700 Subject: [PATCH] improvement(ui): reuse chips for panel selection actions --- .../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 && ( - + )}