All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🏗️ Build (push) Successful in 11m52s
Build & Deploy / 🚀 Deploy (push) Successful in 14s
Build & Deploy / 🧪 QA (push) Successful in 1m15s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 6m31s
Build & Deploy / 🔔 Notify (push) Successful in 2s
- Add mintelP renderer with inline markdown link/marker support (228 broken blocks) - Add mintelTldr renderer for summary boxes - Fix iconList to display item.title instead of empty item.description - Rewire all 6 diagram block types to render via Mermaid - Remove ai property from 30 non-essential blocks (46 -> 13) - Tighten MemeCard to 5 verified templates, max 1 per article - Fix PerformanceChartBlock syntax after ai removal
52 lines
1.5 KiB
TypeScript
52 lines
1.5 KiB
TypeScript
import { MintelBlock } from "./types";
|
|
import type { Block } from "payload";
|
|
|
|
export const MemeCardBlock: MintelBlock = {
|
|
slug: "memeCard",
|
|
labels: {
|
|
singular: "Meme Card",
|
|
plural: "Meme Cards",
|
|
},
|
|
admin: {
|
|
group: "MDX Components",
|
|
},
|
|
ai: {
|
|
name: "MemeCard",
|
|
description:
|
|
"Real meme from memegen.link. ONLY use these templates: drake, distracted-bf, change-my-mind, uno-draw-25, always-has-been. Captions MUST be in German, extremely sarcastic, max 6 words per line. Use pipe | to separate caption lines. Use sparingly: MAX 1 meme per article.",
|
|
usageExample: `<div className="my-8">
|
|
<MemeCard template="drake" captions="47 WordPress Plugins installieren|Eine saubere Serverless Architektur" />
|
|
</div>`,
|
|
},
|
|
fields: [
|
|
{
|
|
name: "template",
|
|
type: "text",
|
|
required: true,
|
|
admin: {
|
|
description:
|
|
"The template ID from memegen.link (e.g. 'drake', 'disastergirl')",
|
|
components: {
|
|
afterInput: [
|
|
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "captions",
|
|
type: "textarea",
|
|
required: true,
|
|
admin: {
|
|
description:
|
|
"Pipe-separated captions for the meme (e.g. 'Legacy Code|Mintel Stack'). Maximum 6 words per line.",
|
|
components: {
|
|
afterInput: [
|
|
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
|
],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
};
|