@cadraos/sdk 0.3.14-p102.1 → 0.3.14-p102.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kanban/index.cjs +25 -4
- package/dist/kanban/index.cjs.map +1 -1
- package/dist/kanban/index.d.cts +34 -3
- package/dist/kanban/index.d.ts +34 -3
- package/dist/kanban/index.js +25 -4
- package/dist/kanban/index.js.map +1 -1
- package/package.json +1 -1
package/dist/kanban/index.cjs
CHANGED
|
@@ -2754,11 +2754,17 @@ function KanbanCard({
|
|
|
2754
2754
|
draggable,
|
|
2755
2755
|
onDragStart,
|
|
2756
2756
|
onDragEnd,
|
|
2757
|
+
lead,
|
|
2758
|
+
quietWorking,
|
|
2759
|
+
workingLabel,
|
|
2757
2760
|
className
|
|
2758
2761
|
}) {
|
|
2759
2762
|
const runStatus = card.run?.status;
|
|
2760
2763
|
const isWorking = runStatus === "running";
|
|
2761
2764
|
const failed = runStatus === "failed";
|
|
2765
|
+
const hasLead = lead !== void 0 && lead !== null && lead !== false;
|
|
2766
|
+
const loudWorking = isWorking && !quietWorking;
|
|
2767
|
+
const quietWorkingNow = isWorking && !!quietWorking;
|
|
2762
2768
|
let chip = null;
|
|
2763
2769
|
if (failed) {
|
|
2764
2770
|
chip = { label: "Failed", variant: "destructive" };
|
|
@@ -2797,13 +2803,19 @@ function KanbanCard({
|
|
|
2797
2803
|
"focus:outline-none focus:ring-2 focus:ring-ring/50",
|
|
2798
2804
|
draggable && "cursor-grab active:cursor-grabbing",
|
|
2799
2805
|
// The working card carries the SINGLE focal motion on the board (F11).
|
|
2800
|
-
|
|
2806
|
+
loudWorking ? "border-info/60 ring-2 ring-info/40 animate-pulse" : selected ? "border-primary/60 ring-2 ring-primary/30" : "border-border",
|
|
2801
2807
|
className
|
|
2802
2808
|
),
|
|
2803
2809
|
children: [
|
|
2804
2810
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
2805
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2806
|
-
|
|
2811
|
+
hasLead || quietWorkingNow ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
2812
|
+
hasLead && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", "data-card-lead": "", children: lead }),
|
|
2813
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
2814
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground line-clamp-2", children: card.title }),
|
|
2815
|
+
quietWorkingNow && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-0.5 block text-xs text-muted-foreground", children: workingLabel ?? "Working" })
|
|
2816
|
+
] })
|
|
2817
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground line-clamp-2", children: card.title }),
|
|
2818
|
+
quietWorkingNow ? null : loudWorking ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2807
2819
|
"span",
|
|
2808
2820
|
{
|
|
2809
2821
|
className: cn9(
|
|
@@ -3130,6 +3142,8 @@ function KanbanColumn({
|
|
|
3130
3142
|
canEditHandlers,
|
|
3131
3143
|
agentPickerSlot,
|
|
3132
3144
|
labels,
|
|
3145
|
+
renderCardLead,
|
|
3146
|
+
quietWorking,
|
|
3133
3147
|
draggableCards,
|
|
3134
3148
|
dragActive,
|
|
3135
3149
|
dropAllowed,
|
|
@@ -3235,7 +3249,10 @@ function KanbanColumn({
|
|
|
3235
3249
|
dueState: dueStateFor(card, lane, now),
|
|
3236
3250
|
draggable: draggableCards,
|
|
3237
3251
|
onDragStart: onCardDragStart,
|
|
3238
|
-
onDragEnd: onCardDragEnd
|
|
3252
|
+
onDragEnd: onCardDragEnd,
|
|
3253
|
+
lead: renderCardLead?.(card, lane),
|
|
3254
|
+
quietWorking,
|
|
3255
|
+
workingLabel: labels?.working
|
|
3239
3256
|
},
|
|
3240
3257
|
card.id
|
|
3241
3258
|
)),
|
|
@@ -3396,6 +3413,8 @@ function KanbanBoard({
|
|
|
3396
3413
|
laneAgentPicker,
|
|
3397
3414
|
renderLaneAgentPicker,
|
|
3398
3415
|
labels,
|
|
3416
|
+
renderCardLead,
|
|
3417
|
+
quietWorking,
|
|
3399
3418
|
scheduleStatus,
|
|
3400
3419
|
focusCardId,
|
|
3401
3420
|
renderCardDrawer,
|
|
@@ -3520,6 +3539,8 @@ function KanbanBoard({
|
|
|
3520
3539
|
agentPicker: laneAgentPicker?.(lane),
|
|
3521
3540
|
agentPickerSlot: renderLaneAgentPicker?.(lane),
|
|
3522
3541
|
labels,
|
|
3542
|
+
renderCardLead,
|
|
3543
|
+
quietWorking,
|
|
3523
3544
|
canEditHandlers,
|
|
3524
3545
|
draggableCards: enableDrag && enableAdvance,
|
|
3525
3546
|
dragActive: !!dragging,
|