Map block: sections of its own, shown one at a time

Migration 094 adds content_block_map_sections: a map block groups its
venue's locations for its page, eg. Main spaces, without changing the
venue. With sections the API cuts the block's venue to the locations
they hold, in their order; the list groups under their names, and
buttons (All, then each section) show one section's marks and rows.
A schedule's place links only when a map on the page shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-11 03:42:50 -06:00
parent 06bf033448
commit 56a6e11655
8 changed files with 200 additions and 43 deletions

View file

@ -67,8 +67,13 @@ export type ContentBlock = {
/** A map or schedule block's venue (088). */
venue_id?: string | null
venue?: Venue | null
/** A map block's own sections of its venue's locations, by key
* (094). With any, `venue` holds only the locations they name. */
map_sections?: MapSection[]
}
export type MapSection = { name: string; keys: string[] }
/** A venue (088): its map picture and the locations marked on it,
* each a pin (x, y) or a box (x, y, w, h), in percent. */
export type Venue = {