@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.
@@ -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 workflowId = run.workflowId || "unknown";
2102
- const workflowName = run.workflowName || run.name;
2103
- if (!groups.has(workflowId)) {
2104
- groups.set(workflowId, {
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(workflowId).runs.push(run);
2110
+ groups.get(groupKey).runs.push(run);
2111
2111
  }
2112
2112
  return Array.from(groups.values());
2113
2113
  }