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

@ -650,6 +650,26 @@ export const blocksChild = {
{ path: "no_tab", label: "No tab", widget: "checkbox", help: "Leave it out of the tabs (it still shows on entries)" },
],
},
{
key: "map_sections",
label: "Sections",
addLabel: "Add section",
note: "Optional: group the venue's locations for this page, eg. Main spaces, Small group spaces. Visitors can pick one to see only its places on the map. With sections, only the locations they hold are shown. The venue itself is unchanged.",
when: { path: "type", value: "map" },
title: (row) => row.name || "New section",
blank: { name: "" },
fields: [
{ path: "name", label: "Name", required: true, help: "eg. Main spaces" },
{
path: "location_keys",
label: "Locations",
widget: "checklist",
optionsFrom: "mapLocations",
full: true,
emptyNote: "No locations yet: pick the block's Venue, and give it locations under Data → Venues.",
},
],
},
{
key: "items",
label: "Items",