@agentiffai/design 0.1.13 → 0.1.14

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