Skip to content

feat: add VersionSupportTable block#506

Open
ncaming wants to merge 2 commits into
payloadcms:mainfrom
ncaming:status-grid
Open

feat: add VersionSupportTable block#506
ncaming wants to merge 2 commits into
payloadcms:mainfrom
ncaming:status-grid

Conversation

@ncaming
Copy link
Copy Markdown
Contributor

@ncaming ncaming commented Jun 2, 2026

What?

Adds a new CMS-editable landing-page block, VersionSupportTable, that renders a
Payload version support/status grid. Each row exposes editable fields for Payload
Version, Release Date, Critical Fixes Until, Security Fixes Until, and a Status
select (stable / beta / eol) rendered as a colored badge.

Why?

There was no reusable, content-managed way to display version support/EOL
information on marketing pages. This lets editors maintain the support matrix
directly from the admin UI without code changes. This can be linked to from Docs as the source of truth.

How?

  • New block definition in src/blocks/VersionSupportTable/index.ts
    (interfaceName: VersionSupportTableType).
  • React component + SCSS module in src/components/blocks/VersionSupportTable/,
    modeled after the existing ComparisonTable block (16-column Gutter grid,
    colgroup with explicit column widths, horizontal-scroll on mobile).
  • Registered the block in payload.config.ts, added 'versionSupportTable' to
    the Pages layout blockReferences, and mapped it in RenderBlocks.
  • Regenerated payload-types.ts.

Fixes #

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants