@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.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +7 -7
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.js +7 -7
- package/dist/layout/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
groups.set(
|
|
2684
|
-
workflowId,
|
|
2685
|
-
workflowName,
|
|
2680
|
+
const groupKey = run.workflowId || run.workflowName || "ungrouped";
|
|
2681
|
+
if (!groups.has(groupKey)) {
|
|
2682
|
+
const displayName = run.workflowName || run.name;
|
|
2683
|
+
groups.set(groupKey, {
|
|
2684
|
+
workflowId: groupKey,
|
|
2685
|
+
workflowName: displayName,
|
|
2686
2686
|
runs: []
|
|
2687
2687
|
});
|
|
2688
2688
|
}
|
|
2689
|
-
groups.get(
|
|
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" }) }) :
|
|
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" }),
|