@agenticmail/enterprise 0.5.255 → 0.5.256
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.
|
@@ -121,15 +121,17 @@ function layoutChains(tasks) {
|
|
|
121
121
|
y += maxH + V_GAP + 8; // space between chains
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
// Layout orphans
|
|
125
|
-
|
|
124
|
+
// Layout orphans horizontally in a single row (with wrap if too many)
|
|
125
|
+
var orphanList = [];
|
|
126
|
+
orphansByAgent.forEach(function(agentTasks) { orphanList = orphanList.concat(agentTasks); });
|
|
127
|
+
if (orphanList.length > 0) {
|
|
126
128
|
var x = PAD;
|
|
127
|
-
|
|
129
|
+
orphanList.forEach(function(t) {
|
|
128
130
|
allNodes.push({ id: t.id, task: t, x: x, y: y, w: NODE_W, h: NODE_H, isAgent: false, chainId: null });
|
|
129
131
|
x += NODE_W + H_GAP;
|
|
130
132
|
});
|
|
131
133
|
y += NODE_H + V_GAP;
|
|
132
|
-
}
|
|
134
|
+
}
|
|
133
135
|
|
|
134
136
|
var maxX = 0;
|
|
135
137
|
allNodes.forEach(function(n) { maxX = Math.max(maxX, n.x + n.w); });
|
|
@@ -707,11 +709,11 @@ export function TaskPipelinePage() {
|
|
|
707
709
|
// Canvas
|
|
708
710
|
h('div', {
|
|
709
711
|
ref: containerRef,
|
|
710
|
-
style: { flex: 1, overflow: '
|
|
712
|
+
style: { flex: 1, overflow: 'auto', cursor: dragging ? 'grabbing' : 'grab', position: 'relative' },
|
|
711
713
|
onMouseDown: handleMouseDown,
|
|
712
714
|
onWheel: handleWheel,
|
|
713
715
|
},
|
|
714
|
-
h('div', { style: { transform: 'translate(' + pan.x + 'px, ' + pan.y + 'px) scale(' + zoom + ')', transformOrigin: '0 0', position: '
|
|
716
|
+
h('div', { style: { transform: 'translate(' + pan.x + 'px, ' + pan.y + 'px) scale(' + zoom + ')', transformOrigin: '0 0', position: 'relative', minWidth: (treeW + PAD * 2) * zoom, minHeight: (treeH + PAD * 2) * zoom } },
|
|
715
717
|
|
|
716
718
|
// Chain labels (left side)
|
|
717
719
|
chainInfos.map(function(ci, i) {
|
package/package.json
CHANGED
|
@@ -121,15 +121,17 @@ function layoutChains(tasks) {
|
|
|
121
121
|
y += maxH + V_GAP + 8; // space between chains
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
// Layout orphans
|
|
125
|
-
|
|
124
|
+
// Layout orphans horizontally in a single row (with wrap if too many)
|
|
125
|
+
var orphanList = [];
|
|
126
|
+
orphansByAgent.forEach(function(agentTasks) { orphanList = orphanList.concat(agentTasks); });
|
|
127
|
+
if (orphanList.length > 0) {
|
|
126
128
|
var x = PAD;
|
|
127
|
-
|
|
129
|
+
orphanList.forEach(function(t) {
|
|
128
130
|
allNodes.push({ id: t.id, task: t, x: x, y: y, w: NODE_W, h: NODE_H, isAgent: false, chainId: null });
|
|
129
131
|
x += NODE_W + H_GAP;
|
|
130
132
|
});
|
|
131
133
|
y += NODE_H + V_GAP;
|
|
132
|
-
}
|
|
134
|
+
}
|
|
133
135
|
|
|
134
136
|
var maxX = 0;
|
|
135
137
|
allNodes.forEach(function(n) { maxX = Math.max(maxX, n.x + n.w); });
|
|
@@ -707,11 +709,11 @@ export function TaskPipelinePage() {
|
|
|
707
709
|
// Canvas
|
|
708
710
|
h('div', {
|
|
709
711
|
ref: containerRef,
|
|
710
|
-
style: { flex: 1, overflow: '
|
|
712
|
+
style: { flex: 1, overflow: 'auto', cursor: dragging ? 'grabbing' : 'grab', position: 'relative' },
|
|
711
713
|
onMouseDown: handleMouseDown,
|
|
712
714
|
onWheel: handleWheel,
|
|
713
715
|
},
|
|
714
|
-
h('div', { style: { transform: 'translate(' + pan.x + 'px, ' + pan.y + 'px) scale(' + zoom + ')', transformOrigin: '0 0', position: '
|
|
716
|
+
h('div', { style: { transform: 'translate(' + pan.x + 'px, ' + pan.y + 'px) scale(' + zoom + ')', transformOrigin: '0 0', position: 'relative', minWidth: (treeW + PAD * 2) * zoom, minHeight: (treeH + PAD * 2) * zoom } },
|
|
715
717
|
|
|
716
718
|
// Chain labels (left side)
|
|
717
719
|
chainInfos.map(function(ci, i) {
|