@tangle-network/charts 0.21.2 → 0.21.4
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/react/flow-waterfall.css +3 -1
- package/dist/react/index.js +35 -34
- package/package.json +1 -1
|
@@ -185,7 +185,9 @@
|
|
|
185
185
|
.fw-root .fw-view-agents .fw-label { padding-left: 16px; gap: 12px; border-right: 0; }
|
|
186
186
|
.fw-root .fw-view-agents .fw-names { flex-direction: column; align-items: flex-start; gap: 0; }
|
|
187
187
|
.fw-root .fw-view-agents .fw-span-name { font-weight: 600; line-height: 18px; }
|
|
188
|
-
.fw-root .fw-view-agents .fw-subtitle {
|
|
188
|
+
.fw-root .fw-view-agents .fw-subtitle { display: flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; color: var(--fw-muted); font-size: 12px; line-height: 16px; }
|
|
189
|
+
.fw-root .fw-view-agents .fw-subtitle-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
190
|
+
.fw-root .fw-view-agents .fw-detail-icon { flex: none; width: 16px; height: 16px; align-items: center; justify-content: center; overflow: hidden; }
|
|
189
191
|
.fw-root .fw-view-agents .fw-detail { font-size: 12px; line-height: 16px; }
|
|
190
192
|
.fw-root .fw-agent-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--line, var(--fw-muted)); }
|
|
191
193
|
|
package/dist/react/index.js
CHANGED
|
@@ -3394,41 +3394,40 @@ const FlowRow = memo(function FlowRow(props) {
|
|
|
3394
3394
|
/* @__PURE__ */ jsxs("span", {
|
|
3395
3395
|
className: "fw-names",
|
|
3396
3396
|
title: `${row.name}${span.detail ? ` · ${span.detail}` : ""} · ${KIND_LABEL[span.kind]}${running ? " · running" : ""}${row.ok ? "" : " · failed"}`,
|
|
3397
|
-
children: [
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
className: "fw-subtitle",
|
|
3424
|
-
children: span.detail && span.detail !== props.sharedDetail ? `${span.detail} · ${agentSummary(row)}` : agentSummary(row)
|
|
3425
|
-
}),
|
|
3426
|
-
agentView && renderIcon && /* @__PURE__ */ jsx("span", {
|
|
3397
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
3398
|
+
className: `fw-span-name${isAgent || row.hasChildren ? " fw-strong" : ""}`,
|
|
3399
|
+
children: [
|
|
3400
|
+
fillByAgent && isAgent && span.outcome ? /* @__PURE__ */ jsx("span", {
|
|
3401
|
+
className: "fw-agent-dot",
|
|
3402
|
+
"data-tone": "0",
|
|
3403
|
+
"data-outcome": span.outcome.tone,
|
|
3404
|
+
title: span.outcome.label,
|
|
3405
|
+
"aria-hidden": true
|
|
3406
|
+
}) : agentView && !step && /* @__PURE__ */ jsx("span", {
|
|
3407
|
+
className: "fw-agent-dot",
|
|
3408
|
+
"aria-hidden": true
|
|
3409
|
+
}),
|
|
3410
|
+
running && /* @__PURE__ */ jsx("span", {
|
|
3411
|
+
className: "fw-spinner",
|
|
3412
|
+
role: "status",
|
|
3413
|
+
"aria-label": "running"
|
|
3414
|
+
}),
|
|
3415
|
+
/* @__PURE__ */ jsx("span", {
|
|
3416
|
+
className: "fw-name-text",
|
|
3417
|
+
children: row.name
|
|
3418
|
+
})
|
|
3419
|
+
]
|
|
3420
|
+
}), agentView && /* @__PURE__ */ jsxs("span", {
|
|
3421
|
+
className: "fw-subtitle",
|
|
3422
|
+
children: [renderIcon && /* @__PURE__ */ jsx("span", {
|
|
3427
3423
|
className: "fw-detail-icon",
|
|
3428
3424
|
"aria-hidden": true,
|
|
3429
3425
|
children: renderIcon(span)
|
|
3430
|
-
})
|
|
3431
|
-
|
|
3426
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
3427
|
+
className: "fw-subtitle-text",
|
|
3428
|
+
children: span.detail && span.detail !== props.sharedDetail ? `${span.detail} · ${agentSummary(row)}` : agentSummary(row)
|
|
3429
|
+
})]
|
|
3430
|
+
})]
|
|
3432
3431
|
}),
|
|
3433
3432
|
folded && /* @__PURE__ */ jsxs("span", {
|
|
3434
3433
|
className: "fw-count",
|
|
@@ -3707,7 +3706,9 @@ function FlowBody(props) {
|
|
|
3707
3706
|
const [viewport, setViewport] = useState(maxHeight);
|
|
3708
3707
|
const latest = useRef(props);
|
|
3709
3708
|
latest.current = props;
|
|
3710
|
-
const
|
|
3709
|
+
const tallest = useRef(0);
|
|
3710
|
+
if (!props.holdHeight) tallest.current = 0;
|
|
3711
|
+
const height = tallest.current = Math.max(tallest.current, Math.min(maxHeight, Math.max(rows.length, 1) * rowHeight));
|
|
3711
3712
|
const links = useMemo(() => linksFor(rows, props.byId, view), [
|
|
3712
3713
|
rows,
|
|
3713
3714
|
props.byId,
|
|
@@ -4867,7 +4868,7 @@ function FlowWaterfall({ trace, live, startedAt, label = "Trace waterfall", defa
|
|
|
4867
4868
|
cursorLine: moving,
|
|
4868
4869
|
sharedDetail,
|
|
4869
4870
|
expandedIds: view === "agents" ? /* @__PURE__ */ new Set([...openFamilies, ...openSteps]) : void 0,
|
|
4870
|
-
|
|
4871
|
+
holdHeight: isLive,
|
|
4871
4872
|
slowestId: slowest?.id ?? callouts.slowestId,
|
|
4872
4873
|
costliestId: callouts.costliestId,
|
|
4873
4874
|
activeId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/charts",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.4",
|
|
4
4
|
"description": "Static SVG and HTML figures for benchmarks and operational timing. Draws from producer data and refuses what it cannot draw honestly.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|