diff --git a/desktop/src/features/workflows/ui/WorkflowCard.tsx b/desktop/src/features/workflows/ui/WorkflowCard.tsx index b42f07797..9d7cda08b 100644 --- a/desktop/src/features/workflows/ui/WorkflowCard.tsx +++ b/desktop/src/features/workflows/ui/WorkflowCard.tsx @@ -41,6 +41,7 @@ import { getWorkflowEnabled, getWorkflowPrimaryAction, getWorkflowPrimaryActionEmoji, + getWorkflowStepCount, getWorkflowTriggerConfig, getWorkflowTriggerSummary, getWorkflowTriggerType, @@ -77,7 +78,7 @@ const ACTION_ICONS: Record = { set_channel_topic: Hash, }; -const TRIGGER_THEMES: Record = { +const TRIGGER_ACCENTS: Record = { diff_posted: "border-violet-400/30 bg-violet-600 text-white", message_posted: "border-blue-400/30 bg-blue-600 text-white", reaction_added: "border-pink-400/30 bg-pink-600 text-white", @@ -89,10 +90,8 @@ function StatusBadge({ status }: { status: Workflow["status"] }) { return ( {status} @@ -100,6 +99,41 @@ function StatusBadge({ status }: { status: Workflow["status"] }) { ); } +function ActionTileStack({ + children, + stackDepth, +}: { + children: React.ReactNode; + stackDepth: number; +}) { + return ( + 1 && "w-12", + )} + > + {stackDepth > 1 ? ( +