Files
mintel.me/apps/web/src/payload/blocks/PremiumComparisonChartBlock.ts
Marc Mintel 4e6f3f29cf
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
fix(blog): add missing mintelP/TLDR renderers, fix iconList, diagram blocks, reduce AI components to 13
- 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
2026-03-05 17:39:57 +01:00

109 lines
2.7 KiB
TypeScript

import { MintelBlock } from "./types";
import type { Block } from "payload";
export const PremiumComparisonChartBlock: MintelBlock = {
slug: "premiumComparisonChart",
labels: {
singular: "Premium Comparison Chart",
plural: "Premium Comparison Charts",
},
admin: {
group: "MDX Components",
},
fields: [
{
name: "title",
type: "text",
admin: {
components: {
afterInput: [
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für title ein.",
},
},
{
name: "subtitle",
type: "text",
admin: {
components: {
afterInput: [
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für subtitle ein.",
},
},
{
name: "datasets",
type: "array",
fields: [
{
name: "label",
type: "text",
required: true,
admin: {
components: {
afterInput: [
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für label ein.",
},
},
{
name: "value",
type: "number",
required: true,
admin: {
description: "Tragen Sie einen numerischen Wert für value ein.",
},
},
{
name: "max",
type: "number",
defaultValue: 100,
admin: {
description: "Tragen Sie einen numerischen Wert für max ein.",
},
},
{
name: "unit",
type: "text",
admin: {
components: {
afterInput: [
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für unit ein.",
},
},
{
name: "color",
type: "text",
admin: {
components: { Field: "@/src/payload/components/ColorPicker" },
description: "Geben Sie den Text für color ein.",
},
},
{
name: "description",
type: "text",
admin: {
components: {
afterInput: [
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für description ein.",
},
},
],
admin: { description: "Fügen Sie Elemente zur Liste datasets hinzu." },
},
],
};