Venues, map blocks and event blocks; schedule entries link to them

Data → Venues: a map picture with its locations marked as pins or
boxes (088). A Map block draws a venue with its locations listed;
a schedule names a venue and its entries pick a location, linking to
the map on the page with it lit up. Entries and sub-items can name
an event (a workshop) and take what they leave blank from it, and an
Events block shows event cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-09 03:21:18 -06:00
parent 3d087da005
commit 818d648e91
18 changed files with 964 additions and 35 deletions

View file

@ -64,6 +64,7 @@ import { tags } from "./admin-schema/tags.js";
import { contactTypes } from "./admin-schema/contactTypes.js";
import { redirects } from "./admin-schema/redirects.js";
import { pages } from "./admin-schema/sitePages.js";
import { venues } from "./admin-schema/venues.js";
export const ENTITIES = {
organizations,
@ -73,6 +74,7 @@ export const ENTITIES = {
tags,
contact_types: contactTypes,
redirects,
venues,
teams,
awards,
timeline,
@ -106,6 +108,15 @@ export const OPTION_QUERIES = {
contact_types: "SELECT id, name AS label FROM contact_types ORDER BY sort_order, name",
// Link fields with `redirects: true` pick from these (068).
redirects: "SELECT id, id || ' (' || target_url || ')' AS label FROM redirects ORDER BY id",
// A map block's venue; its locations ride along (as JSON) for a
// schedule's entries to pick from and for the block's preview.
venues: `
SELECT v.id, v.name AS label, v.map_image, v.map_alt,
(SELECT json_group_array(json_object('key', l.location_key, 'name', l.name, 'detail', l.detail,
'x', l.x, 'y', l.y, 'w', l.w, 'h', l.h))
FROM (SELECT * FROM venue_locations WHERE venue_id = v.id ORDER BY sort_order) l) AS locations
FROM venues v
ORDER BY v.name`,
blog_posts: "SELECT id, title AS label FROM blog_posts ORDER BY published_on DESC, title",
// Navigation's Under page: a page by its address (080).
site_pages: "SELECT path AS id, title || ' (' || path || ')' AS label FROM site_pages ORDER BY sort_order, title",