@industry-theme/principal-view-panels 0.12.85 → 0.12.86
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;AAEjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AA2K9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"StoryboardListPanel.d.ts","sourceRoot":"","sources":["../../src/panels/StoryboardListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AA2K9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA0wDvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCanvasData.d.ts","sourceRoot":"","sources":["../../../../src/panels/canvas-list/hooks/useCanvasData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EACL,eAAe,EACf,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAErE,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;CACtC;AAED,UAAU,mBAAmB;IAC3B,OAAO,EAAE,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,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,oEAAoE;IACpE,SAAS,EAAE,eAAe,CAAC;CAC5B;AAQD;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,uBAG3B,mBAAmB,KAAG,mBAsGxB,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -195408,7 +195408,6 @@ const useCanvasData = ({
|
|
|
195408
195408
|
const lastLoadedSha = useRef(void 0);
|
|
195409
195409
|
const discovery = useRef(new CanvasDiscovery());
|
|
195410
195410
|
const loadCanvases = useCallback(async () => {
|
|
195411
|
-
var _a2;
|
|
195412
195411
|
if (fileTreeSha === lastLoadedSha.current) {
|
|
195413
195412
|
return;
|
|
195414
195413
|
}
|
|
@@ -195423,11 +195422,6 @@ const useCanvasData = ({
|
|
|
195423
195422
|
lastLoadedSha.current = fileTreeSha;
|
|
195424
195423
|
return;
|
|
195425
195424
|
}
|
|
195426
|
-
console.log("[useCanvasData] Starting discovery with fileTree:", {
|
|
195427
|
-
hasFileTree: !!fileTreeData,
|
|
195428
|
-
fileCount: (_a2 = fileTreeData == null ? void 0 : fileTreeData.allFiles) == null ? void 0 : _a2.length,
|
|
195429
|
-
sha: fileTreeData == null ? void 0 : fileTreeData.sha
|
|
195430
|
-
});
|
|
195431
195425
|
const result = await discovery.current.discover(fileTreeData, {
|
|
195432
195426
|
// Include content to extract markdown paths from pv.markdown field
|
|
195433
195427
|
includeContent: true,
|
|
@@ -195438,13 +195432,6 @@ const useCanvasData = ({
|
|
|
195438
195432
|
return await readFile(path2);
|
|
195439
195433
|
}
|
|
195440
195434
|
});
|
|
195441
|
-
console.log("[useCanvasData] Discovery result:", {
|
|
195442
|
-
canvasCount: result.canvases.length,
|
|
195443
|
-
storyboardCount: result.storyboards.length,
|
|
195444
|
-
dashboardCount: result.dashboards.length,
|
|
195445
|
-
testTraceCount: result.testTraces.length,
|
|
195446
|
-
errorCount: result.errors.length
|
|
195447
|
-
});
|
|
195448
195435
|
if (result.errors.length > 0) {
|
|
195449
195436
|
console.warn("[useCanvasData] Discovery errors:", result.errors);
|
|
195450
195437
|
}
|
|
@@ -195455,7 +195442,6 @@ const useCanvasData = ({
|
|
|
195455
195442
|
setStoryboards(result.storyboards);
|
|
195456
195443
|
setTestTraces(result.testTraces);
|
|
195457
195444
|
setDashboards(result.dashboards);
|
|
195458
|
-
console.log("[useCanvasData] Discovered dashboards:", result.dashboards.length, result.dashboards.map((d) => ({ id: d.id, name: d.name, path: d.path })));
|
|
195459
195445
|
lastLoadedSha.current = fileTreeSha;
|
|
195460
195446
|
} catch (err) {
|
|
195461
195447
|
const errorMessage = err instanceof Error ? err.message : "Failed to load canvases";
|
|
@@ -196314,23 +196300,15 @@ const StoryboardListPanel = ({
|
|
|
196314
196300
|
return filteredStoryboards.map((storyboard) => storyboard.canvas);
|
|
196315
196301
|
}, [filteredStoryboards]);
|
|
196316
196302
|
const handleTreeNodeClick = useCallback((node2, event) => {
|
|
196317
|
-
var _a3, _b3, _c, _d, _e4, _f, _g, _h
|
|
196303
|
+
var _a3, _b3, _c, _d, _e4, _f, _g, _h;
|
|
196318
196304
|
const asCanvasListNode = node2;
|
|
196319
|
-
console.log("[StoryboardListPanel] Tree node clicked:", {
|
|
196320
|
-
nodeType: node2.type,
|
|
196321
|
-
nodeId: node2.id,
|
|
196322
|
-
nodeName: node2.name,
|
|
196323
|
-
hasDashboard: !!asCanvasListNode.dashboard,
|
|
196324
|
-
dashboardId: (_a3 = asCanvasListNode.dashboard) == null ? void 0 : _a3.id,
|
|
196325
|
-
hasCanvas: !!node2.canvas
|
|
196326
|
-
});
|
|
196327
196305
|
if ((event == null ? void 0 : event.metaKey) || (event == null ? void 0 : event.ctrlKey)) {
|
|
196328
196306
|
let filePath;
|
|
196329
|
-
if (node2.type === "canvas" && ((
|
|
196307
|
+
if (node2.type === "canvas" && ((_a3 = asCanvasListNode.dashboard) == null ? void 0 : _a3.path)) {
|
|
196330
196308
|
filePath = asCanvasListNode.dashboard.path;
|
|
196331
|
-
} else if (node2.type === "canvas" && ((
|
|
196309
|
+
} else if (node2.type === "canvas" && ((_b3 = node2.canvas) == null ? void 0 : _b3.path)) {
|
|
196332
196310
|
filePath = node2.canvas.path;
|
|
196333
|
-
} else if (node2.type === "workflow" && "workflow" in node2 && ((
|
|
196311
|
+
} else if (node2.type === "workflow" && "workflow" in node2 && ((_c = node2.workflow) == null ? void 0 : _c.path)) {
|
|
196334
196312
|
filePath = node2.workflow.path;
|
|
196335
196313
|
} else if (node2.markdownPath) {
|
|
196336
196314
|
filePath = node2.markdownPath;
|
|
@@ -196346,7 +196324,7 @@ const StoryboardListPanel = ({
|
|
|
196346
196324
|
}
|
|
196347
196325
|
}
|
|
196348
196326
|
if (node2.type === "overview" && node2.markdownPath) {
|
|
196349
|
-
const canvasId = ((
|
|
196327
|
+
const canvasId = ((_d = node2.canvas) == null ? void 0 : _d.id) || "storyboard" in node2 && ((_f = (_e4 = node2.storyboard) == null ? void 0 : _e4.canvas) == null ? void 0 : _f.id) || "unknown";
|
|
196350
196328
|
setSelectedNodeId(`overview:${canvasId}`);
|
|
196351
196329
|
if (events) {
|
|
196352
196330
|
events.emit({
|
|
@@ -196357,11 +196335,6 @@ const StoryboardListPanel = ({
|
|
|
196357
196335
|
});
|
|
196358
196336
|
}
|
|
196359
196337
|
} else if (node2.type === "canvas" && asCanvasListNode.dashboard) {
|
|
196360
|
-
console.log("[StoryboardListPanel] Dashboard click - emitting openDashboard event:", {
|
|
196361
|
-
dashboardId: asCanvasListNode.dashboard.id,
|
|
196362
|
-
dashboardName: asCanvasListNode.dashboard.name,
|
|
196363
|
-
hasEvents: !!events
|
|
196364
|
-
});
|
|
196365
196338
|
setSelectedNodeId(`dashboard:${asCanvasListNode.dashboard.id}`);
|
|
196366
196339
|
if (events) {
|
|
196367
196340
|
events.emit({
|
|
@@ -196410,7 +196383,7 @@ const StoryboardListPanel = ({
|
|
|
196410
196383
|
return wf.file.path === ((_a4 = node2.workflow) == null ? void 0 : _a4.path);
|
|
196411
196384
|
});
|
|
196412
196385
|
if (!fullWorkflow) {
|
|
196413
|
-
console.warn("[StoryboardListPanel] Workflow template not loaded for:", (
|
|
196386
|
+
console.warn("[StoryboardListPanel] Workflow template not loaded for:", (_g = node2.workflow) == null ? void 0 : _g.path);
|
|
196414
196387
|
return;
|
|
196415
196388
|
}
|
|
196416
196389
|
telemetry.emitWorkflowSelected(
|
|
@@ -196418,7 +196391,7 @@ const StoryboardListPanel = ({
|
|
|
196418
196391
|
node2.workflow.name,
|
|
196419
196392
|
node2.workflow.path,
|
|
196420
196393
|
node2.storyboard.canvas.id,
|
|
196421
|
-
((
|
|
196394
|
+
((_h = fullWorkflow.template.scenarios) == null ? void 0 : _h.length) ?? 0
|
|
196422
196395
|
);
|
|
196423
196396
|
events.emit({
|
|
196424
196397
|
type: "custom",
|