Skip to content

Commit d5fc594

Browse files
committed
3262 - make workflow node handles visible
1 parent 93ab165 commit d5fc594

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

client/src/pages/platform/workflow-editor/edges/WorkflowEdge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default function WorkflowEdge({
151151
'flex cursor-pointer items-center justify-center rounded transition-all',
152152
isDropzoneActive
153153
? 'size-16 border-2 border-blue-100 bg-blue-100'
154-
: 'size-6 border-2 border-gray-300 bg-white hover:scale-110 hover:border-gray-400'
154+
: 'size-6 border-2 border-stroke-neutral-tertiary bg-white hover:scale-110 hover:border-stroke-brand-secondary-hover'
155155
)}
156156
id={`${id}-button`}
157157
onDragEnter={() => setDropzoneActive(true)}

client/src/pages/platform/workflow-editor/nodes/NodeTypes.module.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@
55
.handle {
66
@apply invisible;
77
}
8+
9+
.handleVisible {
10+
@apply left-node-handle-placement;
11+
@apply -z-10;
12+
@apply h-2;
13+
@apply w-2;
14+
@apply border-0;
15+
@apply bg-stroke-neutral-tertiary;
16+
}

client/src/pages/platform/workflow-editor/nodes/WorkflowNode.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ const WorkflowNode = ({data, id}: {data: NodeDataType; id: string}) => {
280280
<Button
281281
aria-label={`${data.workflowNodeName} node`}
282282
className={twMerge(
283-
'size-18 rounded-md border-2 border-stroke-neutral-tertiary bg-surface-neutral-primary p-4 text-primary shadow hover:border-stroke-brand-secondary-hover hover:bg-surface-neutral-primary hover:shadow-none focus-visible:ring-stroke-brand-focus active:bg-surface-neutral-primary [&_svg]:size-9',
283+
'size-18 rounded-md border-2 border-stroke-neutral-tertiary bg-surface-neutral-primary p-4 text-primary hover:border-stroke-brand-secondary-hover hover:bg-surface-neutral-primary focus-visible:ring-stroke-brand-focus active:bg-surface-neutral-primary [&_svg]:size-9',
284284
isSelected &&
285285
workflowNodeDetailsPanelOpen &&
286286
!isMainRootClusterElement &&
@@ -366,7 +366,7 @@ const WorkflowNode = ({data, id}: {data: NodeDataType; id: string}) => {
366366
{!isMainRootClusterElement && (
367367
<Handle
368368
className={twMerge(`left-${nodeWidth / 2}px`, styles.handle)}
369-
isConnectable={false}
369+
// isConnectable={false}
370370
position={Position.Top}
371371
type="target"
372372
/>
@@ -394,14 +394,18 @@ const WorkflowNode = ({data, id}: {data: NodeDataType; id: string}) => {
394394
) : (
395395
<>
396396
<Handle
397-
className={twMerge('left-node-handle-placement', styles.handle)}
397+
className={twMerge(
398+
'-top-[1px] rounded-b-none rounded-t-xs',
399+
styles.handleVisible,
400+
data.trigger && 'hidden'
401+
)}
398402
isConnectable={false}
399403
position={Position.Top}
400404
type="target"
401405
/>
402406

403407
<Handle
404-
className={twMerge('left-node-handle-placement', styles.handle)}
408+
className={twMerge('rounded-b-xs rounded-t-none', styles.handleVisible)}
405409
isConnectable={false}
406410
position={Position.Bottom}
407411
type="source"

0 commit comments

Comments
 (0)