Add a Featured Content section to the front page

Front page → Featured cards (migration 030) holds cards of three
kinds: a record on the site, whose title, picture and link fill in
from the record; a link, with a Fetch preview button that reads the
page's title, description and preview image into the media library;
and a video, drawn as a thumbnail that loads the player when pressed.
A 'featured' section draws them.

The cards are shared: featured_cards is owned polymorphically and
FeaturedCards.tsx draws them, ready for the Community blog. Deleting
a record removes its cards; an unpublished record's card is hidden.

The preview fetch only goes to public http(s) addresses on standard
ports, pinned to the vetted IP, with each redirect checked again.

Along the way: repeater fields can show by another field's value (a
hidden one is cleared), a CHECK named as a sentence is shown as the
error, and the timeline's record list is now record_refs for both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-27 15:56:29 -05:00
parent 960c854611
commit d4f65d93b4
17 changed files with 1140 additions and 50 deletions

View file

@ -14,7 +14,8 @@
A band with nothing to show draws nothing: the countdown with no
upcoming event, the numbers with no numbers, the timeline with
nothing featured, the pathfinder with no paths.
nothing featured, the pathfinder with no paths, the featured band
with no cards.
If /front-page fails, the hero still draws (empty) and the error
takes the place of the bands, with a retry. There's deliberately
@ -29,6 +30,7 @@ import NextEventCountdown from './sections/home/NextEventCountdown.tsx'
import RetreatsBand from './sections/home/RetreatsBand.tsx'
import CalendarBand from './sections/home/CalendarBand.tsx'
import StatsBand from './sections/home/StatsBand.tsx'
import FeaturedBand from './sections/home/FeaturedBand.tsx'
import FeaturedTimelineRail from './sections/home/FeaturedTimelineRail.tsx'
import Pathfinder from './sections/home/Pathfinder.tsx'
import {
@ -90,6 +92,13 @@ const SECTIONS: Record<
<Pathfinder id="connect" title={title} blurb={section.blurb} paths={page.paths} />
),
},
featured: {
title: 'Featured',
render: ({ page, section, title }) =>
page.featured.length > 0 && (
<FeaturedBand id="featured" title={title} blurb={section.blurb} cards={page.featured} />
),
},
}
export default function Home() {