@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.js CHANGED
@@ -2671,16 +2671,16 @@ function normalizeCategory(category) {
2671
2671
  function groupRunsByWorkflow(runs) {
2672
2672
  const groups = /* @__PURE__ */ new Map();
2673
2673
  for (const run of runs) {
2674
- const workflowId = run.workflowId || "unknown";
2675
- const workflowName = run.workflowName || run.name;
2676
- if (!groups.has(workflowId)) {
2677
- groups.set(workflowId, {
2678
- workflowId,
2679
- workflowName,
2674
+ const groupKey = run.workflowId || run.workflowName || "ungrouped";
2675
+ if (!groups.has(groupKey)) {
2676
+ const displayName = run.workflowName || run.name;
2677
+ groups.set(groupKey, {
2678
+ workflowId: groupKey,
2679
+ workflowName: displayName,
2680
2680
  runs: []
2681
2681
  });
2682
2682
  }
2683
- groups.get(workflowId).runs.push(run);
2683
+ groups.get(groupKey).runs.push(run);
2684
2684
  }
2685
2685
  return Array.from(groups.values());
2686
2686
  }
@@ -8041,7 +8041,7 @@ var PostPreviewCard = ({
8041
8041
  hashtag.replace(/^#/, "")
8042
8042
  ] }, hashtag)) })
8043
8043
  ] }),
8044
- post.imageUrl ? /* @__PURE__ */ jsx(ImagePreviewContainer, { children: /* @__PURE__ */ jsx(ImagePreview, { src: post.imageUrl, alt: "Post image preview" }) }) : post.platform === "instagram" && /* @__PURE__ */ jsxs(ImagePlaceholder, { children: [
8044
+ post.imageUrl ? /* @__PURE__ */ jsx(ImagePreviewContainer, { children: /* @__PURE__ */ jsx(ImagePreview, { src: post.imageUrl, alt: "Post image preview" }) }) : ["instagram", "linkedin", "facebook", "youtube"].includes(post.platform) && /* @__PURE__ */ jsxs(ImagePlaceholder, { children: [
8045
8045
  /* @__PURE__ */ jsx(PlaceholderIcon, { children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
8046
8046
  /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
8047
8047
  /* @__PURE__ */ jsx("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),