@agentiffai/design 0.1.14 → 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,12 +2092,12 @@ function normalizeCategory(category) {
2092
2092
  function groupRunsByWorkflow(runs) {
2093
2093
  const groups = /* @__PURE__ */ new Map();
2094
2094
  for (const run of runs) {
2095
- const workflowName = run.workflowName || run.name;
2096
- const groupKey = run.workflowId || workflowName;
2095
+ const groupKey = run.workflowId || run.workflowName || "ungrouped";
2097
2096
  if (!groups.has(groupKey)) {
2097
+ const displayName = run.workflowName || run.name;
2098
2098
  groups.set(groupKey, {
2099
2099
  workflowId: groupKey,
2100
- workflowName,
2100
+ workflowName: displayName,
2101
2101
  runs: []
2102
2102
  });
2103
2103
  }