@agentiffai/design 0.1.14 → 1.3.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 CHANGED
@@ -2677,12 +2677,12 @@ function normalizeCategory(category) {
2677
2677
  function groupRunsByWorkflow(runs) {
2678
2678
  const groups = /* @__PURE__ */ new Map();
2679
2679
  for (const run of runs) {
2680
- const workflowName = run.workflowName || run.name;
2681
- const groupKey = run.workflowId || workflowName;
2680
+ const groupKey = run.workflowId || run.workflowName || "ungrouped";
2682
2681
  if (!groups.has(groupKey)) {
2682
+ const displayName = run.workflowName || run.name;
2683
2683
  groups.set(groupKey, {
2684
2684
  workflowId: groupKey,
2685
- workflowName,
2685
+ workflowName: displayName,
2686
2686
  runs: []
2687
2687
  });
2688
2688
  }