@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.
@@ -2092,16 +2092,16 @@ function normalizeCategory(category) {
2092
2092
  function groupRunsByWorkflow(runs) {
2093
2093
  const groups = /* @__PURE__ */ new Map();
2094
2094
  for (const run of runs) {
2095
- const workflowId = run.workflowId || "unknown";
2096
- const workflowName = run.workflowName || run.name;
2097
- if (!groups.has(workflowId)) {
2098
- groups.set(workflowId, {
2099
- workflowId,
2100
- workflowName,
2095
+ const groupKey = run.workflowId || run.workflowName || "ungrouped";
2096
+ if (!groups.has(groupKey)) {
2097
+ const displayName = run.workflowName || run.name;
2098
+ groups.set(groupKey, {
2099
+ workflowId: groupKey,
2100
+ workflowName: displayName,
2101
2101
  runs: []
2102
2102
  });
2103
2103
  }
2104
- groups.get(workflowId).runs.push(run);
2104
+ groups.get(groupKey).runs.push(run);
2105
2105
  }
2106
2106
  return Array.from(groups.values());
2107
2107
  }