@agentiffai/design 0.1.13 → 1.2.1
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.
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +7 -7
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.js +7 -7
- package/dist/layout/index.js.map +1 -1
- package/package.json +1 -1
package/dist/layout/index.cjs
CHANGED
|
@@ -2098,16 +2098,16 @@ function normalizeCategory(category) {
|
|
|
2098
2098
|
function groupRunsByWorkflow(runs) {
|
|
2099
2099
|
const groups = /* @__PURE__ */ new Map();
|
|
2100
2100
|
for (const run of runs) {
|
|
2101
|
-
const
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
groups.set(
|
|
2105
|
-
workflowId,
|
|
2106
|
-
workflowName,
|
|
2101
|
+
const groupKey = run.workflowId || run.workflowName || "ungrouped";
|
|
2102
|
+
if (!groups.has(groupKey)) {
|
|
2103
|
+
const displayName = run.workflowName || run.name;
|
|
2104
|
+
groups.set(groupKey, {
|
|
2105
|
+
workflowId: groupKey,
|
|
2106
|
+
workflowName: displayName,
|
|
2107
2107
|
runs: []
|
|
2108
2108
|
});
|
|
2109
2109
|
}
|
|
2110
|
-
groups.get(
|
|
2110
|
+
groups.get(groupKey).runs.push(run);
|
|
2111
2111
|
}
|
|
2112
2112
|
return Array.from(groups.values());
|
|
2113
2113
|
}
|