@industry-theme/principal-view-panels 0.12.105 → 0.12.106
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":"EventCarousel.d.ts","sourceRoot":"","sources":["../../../src/panels/execution-viewer/EventCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAmB,MAAM,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"EventCarousel.d.ts","sourceRoot":"","sources":["../../../src/panels/execution-viewer/EventCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAmB,MAAM,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAwE9H,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,oCAAoC;IACpC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wCAAwC;IACxC,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,iEAAiE;IACjE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,mCAAmC;IACnC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,oCAAoC;IACpC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;IACrD,sDAAsD;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wCAAwC;IACxC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,sEAAsE;IACtE,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC;IAC1B,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAAC;CACzC;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8dtD,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -190054,15 +190054,19 @@ const TemplateText = ({ segments, className }) => {
|
|
|
190054
190054
|
}) });
|
|
190055
190055
|
};
|
|
190056
190056
|
function convertWorkflowToSequence$1(scenario, canvas) {
|
|
190057
|
+
var _a2, _b, _c;
|
|
190057
190058
|
const templateEvents = scenario.template.events ?? {};
|
|
190058
190059
|
const eventNames = Object.keys(templateEvents);
|
|
190059
190060
|
const eventToScopeMap = /* @__PURE__ */ new Map();
|
|
190061
|
+
const eventToLabelMap = /* @__PURE__ */ new Map();
|
|
190060
190062
|
if (canvas == null ? void 0 : canvas.nodes) {
|
|
190061
190063
|
for (const node2 of canvas.nodes) {
|
|
190062
|
-
const
|
|
190063
|
-
|
|
190064
|
-
|
|
190065
|
-
|
|
190064
|
+
const otelNode = node2;
|
|
190065
|
+
if (otelNode.type === "otel-event" && ((_a2 = otelNode.otel) == null ? void 0 : _a2.scope) && ((_b = otelNode.event) == null ? void 0 : _b.name)) {
|
|
190066
|
+
eventToScopeMap.set(otelNode.event.name, otelNode.otel.scope);
|
|
190067
|
+
}
|
|
190068
|
+
if (otelNode.type === "otel-event" && ((_c = otelNode.event) == null ? void 0 : _c.name) && otelNode.label) {
|
|
190069
|
+
eventToLabelMap.set(otelNode.event.name, otelNode.label);
|
|
190066
190070
|
}
|
|
190067
190071
|
}
|
|
190068
190072
|
}
|
|
@@ -190072,8 +190076,8 @@ function convertWorkflowToSequence$1(scenario, canvas) {
|
|
|
190072
190076
|
id: `event-${index2}`,
|
|
190073
190077
|
// Use scope as namespace prefix so lanes are created per scope
|
|
190074
190078
|
name: `${scope}.${name2}`,
|
|
190075
|
-
//
|
|
190076
|
-
label: name2.split(".").pop()
|
|
190079
|
+
// Use canvas node label if available, otherwise fall back to last segment of event name
|
|
190080
|
+
label: eventToLabelMap.get(name2) || name2.split(".").pop() || name2
|
|
190077
190081
|
};
|
|
190078
190082
|
});
|
|
190079
190083
|
const edges = [];
|