@industry-theme/principal-view-panels 0.12.47 → 0.12.48
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
|
@@ -99777,6 +99777,31 @@ const StoryboardListPanel = ({
|
|
|
99777
99777
|
});
|
|
99778
99778
|
return coverageMap;
|
|
99779
99779
|
}, [workflows, testTraces, storyboards]);
|
|
99780
|
+
const canvasNodeStatusMap = useMemo(() => {
|
|
99781
|
+
const statusMap = {};
|
|
99782
|
+
for (const storyboard of storyboards) {
|
|
99783
|
+
const canvasWithContent = storyboard.canvas;
|
|
99784
|
+
const canvas = canvasWithContent.content;
|
|
99785
|
+
if (canvas == null ? void 0 : canvas.nodes) {
|
|
99786
|
+
let implemented = 0;
|
|
99787
|
+
let approved = 0;
|
|
99788
|
+
let draft = 0;
|
|
99789
|
+
for (const node2 of canvas.nodes) {
|
|
99790
|
+
const pv = node2.pv;
|
|
99791
|
+
const status = (pv == null ? void 0 : pv.status) ?? "draft";
|
|
99792
|
+
if (status === "implemented") {
|
|
99793
|
+
implemented++;
|
|
99794
|
+
} else if (status === "approved") {
|
|
99795
|
+
approved++;
|
|
99796
|
+
} else {
|
|
99797
|
+
draft++;
|
|
99798
|
+
}
|
|
99799
|
+
}
|
|
99800
|
+
statusMap[storyboard.id] = { implemented, approved, draft };
|
|
99801
|
+
}
|
|
99802
|
+
}
|
|
99803
|
+
return statusMap;
|
|
99804
|
+
}, [storyboards]);
|
|
99780
99805
|
const filteredStoryboards = useMemo(() => {
|
|
99781
99806
|
let filtered = storyboards;
|
|
99782
99807
|
filtered = filtered.filter((storyboard) => storyboard.canvas.type === effectiveCanvasTypeFilter);
|
|
@@ -100365,6 +100390,7 @@ const StoryboardListPanel = ({
|
|
|
100365
100390
|
horizontalNodePadding: "clamp(16px, 4vw, 24px)",
|
|
100366
100391
|
verticalPadding: "10px",
|
|
100367
100392
|
workflowCoverageMap,
|
|
100393
|
+
canvasNodeStatusMap,
|
|
100368
100394
|
gitStatusData,
|
|
100369
100395
|
enablePanelDrag: true
|
|
100370
100396
|
}
|