@industry-theme/principal-view-panels 0.12.47 → 0.12.49
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":"StoryboardListPanel.d.ts","sourceRoot":"","sources":["../../src/panels/StoryboardListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"StoryboardListPanel.d.ts","sourceRoot":"","sources":["../../src/panels/StoryboardListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAsE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAooCvE,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -87306,6 +87306,8 @@ function convertToXYFlowEdges(edges, configuration, violations = []) {
|
|
|
87306
87306
|
sourceHandle,
|
|
87307
87307
|
targetHandle,
|
|
87308
87308
|
type: "custom",
|
|
87309
|
+
// Edges should render above groups (zIndex: 1) but below regular nodes (zIndex: 100)
|
|
87310
|
+
zIndex: 50,
|
|
87309
87311
|
animated: (typeDefinition == null ? void 0 : typeDefinition.style) === "animated",
|
|
87310
87312
|
markerEnd,
|
|
87311
87313
|
data: {
|
|
@@ -88320,8 +88322,9 @@ const GraphRendererInner = ({ configuration, nodes: propNodes, edges: propEdges,
|
|
|
88320
88322
|
animationDirection: animation.direction
|
|
88321
88323
|
} : {}
|
|
88322
88324
|
},
|
|
88323
|
-
//
|
|
88324
|
-
|
|
88325
|
+
// Preserve edge zIndex from converter (50 = above groups, below nodes)
|
|
88326
|
+
// Selected edges get elevated to 1000
|
|
88327
|
+
zIndex: isSelected ? 1e3 : edge.zIndex
|
|
88325
88328
|
};
|
|
88326
88329
|
});
|
|
88327
88330
|
return mappedEdges.sort((a, b) => {
|
|
@@ -99702,7 +99705,7 @@ const StoryboardListPanel = ({
|
|
|
99702
99705
|
}, [canvasTypeFilter, otelCount, staticCount]);
|
|
99703
99706
|
const fileTreeSlice = context2.fileTree;
|
|
99704
99707
|
const fileTreeData = fileTreeSlice == null ? void 0 : fileTreeSlice.data;
|
|
99705
|
-
const gitSlice = context2.
|
|
99708
|
+
const gitSlice = context2.gitStatusWithFiles;
|
|
99706
99709
|
const gitStatusData = useMemo(() => {
|
|
99707
99710
|
const gitStatus = gitSlice == null ? void 0 : gitSlice.data;
|
|
99708
99711
|
if (!gitStatus || !fileTreeData) {
|
|
@@ -99777,6 +99780,31 @@ const StoryboardListPanel = ({
|
|
|
99777
99780
|
});
|
|
99778
99781
|
return coverageMap;
|
|
99779
99782
|
}, [workflows, testTraces, storyboards]);
|
|
99783
|
+
const canvasNodeStatusMap = useMemo(() => {
|
|
99784
|
+
const statusMap = {};
|
|
99785
|
+
for (const storyboard of storyboards) {
|
|
99786
|
+
const canvasWithContent = storyboard.canvas;
|
|
99787
|
+
const canvas = canvasWithContent.content;
|
|
99788
|
+
if (canvas == null ? void 0 : canvas.nodes) {
|
|
99789
|
+
let implemented = 0;
|
|
99790
|
+
let approved = 0;
|
|
99791
|
+
let draft = 0;
|
|
99792
|
+
for (const node2 of canvas.nodes) {
|
|
99793
|
+
const pv = node2.pv;
|
|
99794
|
+
const status = (pv == null ? void 0 : pv.status) ?? "draft";
|
|
99795
|
+
if (status === "implemented") {
|
|
99796
|
+
implemented++;
|
|
99797
|
+
} else if (status === "approved") {
|
|
99798
|
+
approved++;
|
|
99799
|
+
} else {
|
|
99800
|
+
draft++;
|
|
99801
|
+
}
|
|
99802
|
+
}
|
|
99803
|
+
statusMap[storyboard.id] = { implemented, approved, draft };
|
|
99804
|
+
}
|
|
99805
|
+
}
|
|
99806
|
+
return statusMap;
|
|
99807
|
+
}, [storyboards]);
|
|
99780
99808
|
const filteredStoryboards = useMemo(() => {
|
|
99781
99809
|
let filtered = storyboards;
|
|
99782
99810
|
filtered = filtered.filter((storyboard) => storyboard.canvas.type === effectiveCanvasTypeFilter);
|
|
@@ -100365,6 +100393,7 @@ const StoryboardListPanel = ({
|
|
|
100365
100393
|
horizontalNodePadding: "clamp(16px, 4vw, 24px)",
|
|
100366
100394
|
verticalPadding: "10px",
|
|
100367
100395
|
workflowCoverageMap,
|
|
100396
|
+
canvasNodeStatusMap,
|
|
100368
100397
|
gitStatusData,
|
|
100369
100398
|
enablePanelDrag: true
|
|
100370
100399
|
}
|