Content blocks: Shown in the page, the card only, or both (migration 071)

A card block also showed on the record's page (the pages printed the
card's paragraphs above the body), which the editor didn't say. Shown
in now offers The page, The card only, and The card and the page.
Every existing card block becomes both, so nothing on the site moves;
the pages no longer print card paragraphs, and a both block comes
with the page's blocks, in its place in the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-06 05:27:33 -05:00
parent b55b088e16
commit 8d6bb8c2b8
10 changed files with 103 additions and 32 deletions

View file

@ -44,7 +44,7 @@ export default function TeamDetail() {
const accent = team.color || BRAND
const hasAbout =
team.description.length > 0 || team.blocks.length > 0 || team.links.length > 0
team.blocks.length > 0 || team.links.length > 0
const sections: any[] = []
@ -57,12 +57,6 @@ export default function TeamDetail() {
<div className="max-w-6xl mx-auto px-6 space-y-8">
<Facts orgId={team.org.id} orgKind={team.org.kind} orgName={team.org.name} accent={accent} />
{team.description.map((paragraph, index) => (
<p key={index} className="leading-relaxed max-w-3xl" style={{ color: BODY }}>
{paragraph}
</p>
))}
<div className="max-w-3xl">
<ContentBlocks blocks={team.blocks} accent={accent} />
</div>