@industry-theme/principal-view-panels 0.1.53 → 0.1.55
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutionViewerPanel.d.ts","sourceRoot":"","sources":["../../src/panels/ExecutionViewerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAuB/E,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,WAAW,CAAC;AA4B3C;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ExecutionViewerPanel.d.ts","sourceRoot":"","sources":["../../src/panels/ExecutionViewerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAuB/E,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,WAAW,CAAC;AA4B3C;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgkC9D,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -50847,8 +50847,8 @@ const TestEventPanel = ({
|
|
|
50847
50847
|
const timeline = useMemo(() => {
|
|
50848
50848
|
if (!currentSpan) return [];
|
|
50849
50849
|
const items = [
|
|
50850
|
-
// Span events
|
|
50851
|
-
...currentSpan.events.
|
|
50850
|
+
// Span events - show ALL events, not just up to currentEventIndex
|
|
50851
|
+
...currentSpan.events.map((event) => ({
|
|
50852
50852
|
type: "event",
|
|
50853
50853
|
time: event.time,
|
|
50854
50854
|
name: event.name,
|
|
@@ -50865,7 +50865,7 @@ const TestEventPanel = ({
|
|
|
50865
50865
|
}))
|
|
50866
50866
|
].sort((a, b) => a.time - b.time);
|
|
50867
50867
|
return items;
|
|
50868
|
-
}, [currentSpan,
|
|
50868
|
+
}, [currentSpan, logs]);
|
|
50869
50869
|
return /* @__PURE__ */ jsxs(
|
|
50870
50870
|
"div",
|
|
50871
50871
|
{
|
|
@@ -51317,17 +51317,17 @@ const TestEventPanel = ({
|
|
|
51317
51317
|
};
|
|
51318
51318
|
const EXECUTION_FILE_PATTERNS = [
|
|
51319
51319
|
// Packages monorepo pattern: packages/core/__executions__/api-tests.spans.json
|
|
51320
|
-
/^packages\/([^/]+)\/__executions__\/(.+)\.(?:spans|execution|events)\.json$/,
|
|
51320
|
+
/^packages\/([^/]+)\/__executions__\/(.+)\.(?:spans|execution|events|otel)\.json$/,
|
|
51321
51321
|
// Inside .principal-views: .principal-views/__executions__/graph-converter.spans.json
|
|
51322
|
-
/^\.principal-views\/__executions__\/(.+)\.(?:spans|execution|events)\.json$/,
|
|
51322
|
+
/^\.principal-views\/__executions__\/(.+)\.(?:spans|execution|events|otel)\.json$/,
|
|
51323
51323
|
// Direct __executions__ folder: __executions__/test-run.spans.json
|
|
51324
|
-
/^__executions__\/(.+)\.(?:spans|execution|events)\.json$/
|
|
51324
|
+
/^__executions__\/(.+)\.(?:spans|execution|events|otel)\.json$/
|
|
51325
51325
|
];
|
|
51326
51326
|
function getExecutionNameFromFilename(filename) {
|
|
51327
|
-
return filename.replace(/\.(?:spans|execution|events)\.json$/, "").split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
51327
|
+
return filename.replace(/\.(?:spans|execution|events|otel)\.json$/, "").split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
51328
51328
|
}
|
|
51329
51329
|
function getCanvasBasename(filename) {
|
|
51330
|
-
return filename.replace(/\.(?:spans|execution|events)\.json$/, "");
|
|
51330
|
+
return filename.replace(/\.(?:spans|execution|events|otel)\.json$/, "");
|
|
51331
51331
|
}
|
|
51332
51332
|
class ExecutionLoader {
|
|
51333
51333
|
/**
|
|
@@ -52892,10 +52892,10 @@ const ExecutionViewerPanel = ({
|
|
|
52892
52892
|
events.off("custom", handleEvent);
|
|
52893
52893
|
};
|
|
52894
52894
|
}, [events, loadCanvas]);
|
|
52895
|
-
|
|
52895
|
+
useCallback(() => {
|
|
52896
52896
|
setState((prev) => ({ ...prev, isPlaying: !prev.isPlaying }));
|
|
52897
52897
|
}, []);
|
|
52898
|
-
|
|
52898
|
+
useCallback(() => {
|
|
52899
52899
|
setState((prev) => ({
|
|
52900
52900
|
...prev,
|
|
52901
52901
|
isPlaying: false,
|
|
@@ -53026,10 +53026,10 @@ const ExecutionViewerPanel = ({
|
|
|
53026
53026
|
/* @__PURE__ */ jsx("h2", { style: { margin: "0 0 10px 0", fontSize: "18px", fontWeight: 600 }, children: "No Canvas Files Found" }),
|
|
53027
53027
|
/* @__PURE__ */ jsxs("p", { style: { margin: "0 0 20px 0", color: theme.colors.textSecondary, lineHeight: 1.5 }, children: [
|
|
53028
53028
|
"Execution artifacts should be saved to ",
|
|
53029
|
-
/* @__PURE__ */ jsx("code", { children: "__executions__/*.
|
|
53030
|
-
" or",
|
|
53029
|
+
/* @__PURE__ */ jsx("code", { children: "__executions__/*.otel.json" }),
|
|
53030
|
+
" (or *.spans.json, *.execution.json, *.events.json) or",
|
|
53031
53031
|
" ",
|
|
53032
|
-
/* @__PURE__ */ jsx("code", { children: "packages/*/__executions__
|
|
53032
|
+
/* @__PURE__ */ jsx("code", { children: "packages/*/__executions__/" })
|
|
53033
53033
|
] }),
|
|
53034
53034
|
/* @__PURE__ */ jsxs(
|
|
53035
53035
|
"div",
|
|
@@ -53049,7 +53049,7 @@ const ExecutionViewerPanel = ({
|
|
|
53049
53049
|
"exportExecutionArtifact(canvas, spans, ",
|
|
53050
53050
|
"{"
|
|
53051
53051
|
] }),
|
|
53052
|
-
/* @__PURE__ */ jsx("div", { children: " outputPath: '__executions__/my-test.
|
|
53052
|
+
/* @__PURE__ */ jsx("div", { children: " outputPath: '__executions__/my-test.otel.json'" }),
|
|
53053
53053
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
53054
53054
|
"}",
|
|
53055
53055
|
");"
|
|
@@ -53512,49 +53512,6 @@ const ExecutionViewerPanel = ({
|
|
|
53512
53512
|
children: /* @__PURE__ */ jsx(Grid3x3, { size: 14 })
|
|
53513
53513
|
}
|
|
53514
53514
|
),
|
|
53515
|
-
state.execution && /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
53516
|
-
/* @__PURE__ */ jsx(
|
|
53517
|
-
"button",
|
|
53518
|
-
{
|
|
53519
|
-
onClick: handleReset,
|
|
53520
|
-
style: {
|
|
53521
|
-
padding: "6px 10px",
|
|
53522
|
-
background: "#2a2a2a",
|
|
53523
|
-
border: "1px solid #3a3a3a",
|
|
53524
|
-
borderRadius: "4px",
|
|
53525
|
-
color: "#fff",
|
|
53526
|
-
cursor: "pointer",
|
|
53527
|
-
display: "flex",
|
|
53528
|
-
alignItems: "center",
|
|
53529
|
-
gap: "4px"
|
|
53530
|
-
},
|
|
53531
|
-
title: "Reset",
|
|
53532
|
-
children: /* @__PURE__ */ jsx(RotateCcw, { size: 14 })
|
|
53533
|
-
}
|
|
53534
|
-
),
|
|
53535
|
-
/* @__PURE__ */ jsxs(
|
|
53536
|
-
"button",
|
|
53537
|
-
{
|
|
53538
|
-
onClick: handlePlayPause,
|
|
53539
|
-
style: {
|
|
53540
|
-
padding: "6px 10px",
|
|
53541
|
-
background: state.isPlaying ? "#ef4444" : "#10b981",
|
|
53542
|
-
border: "none",
|
|
53543
|
-
borderRadius: "4px",
|
|
53544
|
-
color: "#fff",
|
|
53545
|
-
cursor: "pointer",
|
|
53546
|
-
display: "flex",
|
|
53547
|
-
alignItems: "center",
|
|
53548
|
-
gap: "4px",
|
|
53549
|
-
fontWeight: 600
|
|
53550
|
-
},
|
|
53551
|
-
children: [
|
|
53552
|
-
state.isPlaying ? /* @__PURE__ */ jsx(Pause, { size: 14 }) : /* @__PURE__ */ jsx(Play, { size: 14 }),
|
|
53553
|
-
state.isPlaying ? "Pause" : "Play"
|
|
53554
|
-
]
|
|
53555
|
-
}
|
|
53556
|
-
)
|
|
53557
|
-
] }),
|
|
53558
53515
|
state.canvas && !state.execution && state.availableNarratives.length === 0 && /* @__PURE__ */ jsx("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsxs(
|
|
53559
53516
|
"button",
|
|
53560
53517
|
{
|
|
@@ -53634,8 +53591,9 @@ const ExecutionViewerPanel = ({
|
|
|
53634
53591
|
},
|
|
53635
53592
|
children: [
|
|
53636
53593
|
/* @__PURE__ */ jsx("div", { children: "# Save execution artifacts to:" }),
|
|
53637
|
-
/* @__PURE__ */ jsx("div", { style: { marginTop: "4px" }, children: "__executions__/*.
|
|
53638
|
-
/* @__PURE__ */ jsx("div", { children: "packages/*/__executions__/*.
|
|
53594
|
+
/* @__PURE__ */ jsx("div", { style: { marginTop: "4px" }, children: "__executions__/*.otel.json" }),
|
|
53595
|
+
/* @__PURE__ */ jsx("div", { children: "packages/*/__executions__/*.otel.json" }),
|
|
53596
|
+
/* @__PURE__ */ jsx("div", { style: { color: "#888", fontSize: "10px", marginTop: "4px" }, children: "# Also supports: *.spans.json, *.execution.json, *.events.json" })
|
|
53639
53597
|
]
|
|
53640
53598
|
}
|
|
53641
53599
|
),
|