Add a Schedule content block with day tabs

A schedule block's entries (migration 034) each have a day, time,
title, detail, location, person and link, and fold out for a longer
description, the person's photo and page, a graphic and a Google map
of a place or address. Entries sit in one tab per day, in the order
entered; the tab for today's weekday opens first, and a one-day
schedule draws no tabs.

In the editor, the entry fields show only under a schedule block:
repeater `when` can now look at the parent row (scope "parent"), and
a field's label can depend on the row. The block preview names an
entry's person. The showcase retreat and post each have a schedule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-27 21:12:47 -05:00
parent d6477b6d30
commit 71a470b66f
10 changed files with 556 additions and 29 deletions

View file

@ -34,6 +34,7 @@ export type ContentBlock = {
| 'video'
| 'button'
| 'callout'
| 'schedule'
text?: string | null
media?: string | null
href?: string | null
@ -41,7 +42,22 @@ export type ContentBlock = {
alt?: string | null
/** Who a quote is by. */
cite?: string | null
items?: Array<{ text: string; detail?: string | null; url?: string | null }>
items?: ContentBlockItem[]
}
/** A list, link-row or schedule entry. The schedule fields are
* empty on the other two (034_schedule_block.sql). */
export type ContentBlockItem = {
text: string
detail?: string | null
url?: string | null
day?: string | null
time?: string | null
location?: string | null
description?: string | null
media?: string | null
map?: string | null
person?: { id: string; name: string; photo?: string | null; tagline?: string | null } | null
}
export type Link = {