Present: list slides, centered people

- A list block's Overview slide and A slide per item (098): its
  items' text on one slide, and each item with its detail, centered
- Setup ticks a list's overview and items on and off; List overview
  and List items seconds
- A presented people row is centered

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-12 04:57:08 -06:00
parent 584340b0ee
commit 2282bee23c
7 changed files with 152 additions and 8 deletions

View file

@ -189,6 +189,9 @@ export const blocksChild = (ownerKind) => ({
bool("present_map_no_details"),
enumeration("present_places", ["picked", "none"]),
text("present_place_keys"),
// A list's own slides (098).
bool("present_list_overview"),
bool("present_list_items"),
],
children: [
{

View file

@ -0,0 +1,18 @@
-- ═══════════════════════════════════════════════════════════════
-- 098 A LIST BLOCK'S PRESENTATION SLIDES
--
-- A list block presented (EventPresent.tsx) is a section's text,
-- unless it has slides of its own:
--
-- present_list_overview one slide of every item's text, without
-- the detail, centered
-- present_list_items a slide per item: its text the heading,
-- its detail under it, centered
--
-- Either or both. Other block types ignore them.
-- ═══════════════════════════════════════════════════════════════
ALTER TABLE content_blocks ADD COLUMN present_list_overview INTEGER NOT NULL DEFAULT 0
CHECK (present_list_overview IN (0, 1));
ALTER TABLE content_blocks ADD COLUMN present_list_items INTEGER NOT NULL DEFAULT 0
CHECK (present_list_items IN (0, 1));

View file

@ -74,6 +74,8 @@ function presentOf(row) {
map_no_details: row.present_map_no_details === 1,
places: row.present_places,
place_keys: row.present_place_keys ? row.present_place_keys.split(",").filter(Boolean) : [],
list_overview: row.present_list_overview === 1,
list_items: row.present_list_items === 1,
};
return Object.values(present).some((value) => (Array.isArray(value) ? value.length : value)) ? present : null;
}
@ -87,7 +89,8 @@ export function loadBlocks(db, ownerKind, ids, slot = "body", depth = 0) {
`SELECT id, owner_id, type, text, media, href, alt, cite, captions, team_id, venue_id,
word_motion, word_direction, word_seconds, list_style, org_kind,
present_hide, present_text, present_map_split, present_map_no_list,
present_map_no_details, present_places, present_place_keys
present_map_no_details, present_places, present_place_keys,
present_list_overview, present_list_items
FROM content_blocks
WHERE owner_kind = ? AND slot IN (?, 'both') AND owner_id IN (${placeholders(ids.length)})
ORDER BY owner_id, sort_order`,