Schedule presentation and map images for schedule entries (migration 069)

A schedule block on an event page has a Present button, opening
/events/<id>/present in a new tab: a setup screen (days, entries,
seconds for each kind of slide) and then an endless full screen
slideshow of day overviews, entry spotlights with their person,
graphics and map images, its settings kept in the address so a
signage screen can bookmark it.

Schedule entries take a Map image (069), shown in the fold-out in place
of the Google map and as a slide in the presentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-06 04:47:25 -05:00
parent 96b96c3e6c
commit 07c15ce96d
13 changed files with 710 additions and 22 deletions

View file

@ -62,10 +62,14 @@ export default function ContentBlocks({
blocks,
accent = BRAND,
className = '',
presentAt,
}: {
blocks?: ContentBlock[] | null
accent?: string
className?: string
/** An event page's presentation route: each schedule gets a Present
* button to it, `?block=<n>` naming which schedule (from 0). */
presentAt?: string
}) {
if (!blocks?.length) return null
// Headings get ids so a post's contents (PostContents) and a shared
@ -81,10 +85,22 @@ export default function ContentBlocks({
return level
})
let schedules = 0
const presentHrefs = blocks.map((block) =>
presentAt && block.type === 'schedule' ? `${presentAt}?block=${schedules++}` : undefined,
)
return (
<div className={`space-y-6 ${className}`}>
{blocks.map((block, index) => (
<Block key={block.id ?? index} block={block} accent={accent} anchor={idAt.get(index)} level={levels[index]} />
<Block
key={block.id ?? index}
block={block}
accent={accent}
anchor={idAt.get(index)}
level={levels[index]}
presentHref={presentHrefs[index]}
/>
))}
</div>
)
@ -154,11 +170,13 @@ function Block({
accent,
anchor,
level,
presentHref,
}: {
block: ContentBlock
accent: string
anchor?: string
level: 3 | 4 | 5
presentHref?: string
}) {
const text = block.text ?? ''
const reading = useReadingMode()
@ -359,7 +377,7 @@ function Block({
case 'schedule':
if (!block.items?.length) return null
return <ScheduleBlock items={block.items} intro={block.text} accent={accent} />
return <ScheduleBlock items={block.items} intro={block.text} accent={accent} presentHref={presentHref} />
case 'people': {
const picked = (block.items ?? [])