Present: a list's slides picked on the setup screen, not the block
- Setup: Overview slide and A slide per item per list (`lists`), its items ticked on and off when either is picked - The block's two fields and 098's columns go (100) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ae06cd2b4f
commit
c4bb685bc0
6 changed files with 70 additions and 68 deletions
|
|
@ -190,9 +190,6 @@ 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: [
|
||||
{
|
||||
|
|
|
|||
10
server/src/migrations/100_present_list_picked.sql
Normal file
10
server/src/migrations/100_present_list_picked.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- ═══════════════════════════════════════════════════════════════
|
||||
-- 100 A LIST'S SLIDES PICKED WHEN PRESENTING
|
||||
--
|
||||
-- A list block's Overview slide and A slide per item (098) are
|
||||
-- picked on the Present setup screen (EventPresent.tsx, `lists` in
|
||||
-- its address) rather than on the block, so 098's columns go.
|
||||
-- ═══════════════════════════════════════════════════════════════
|
||||
|
||||
ALTER TABLE content_blocks DROP COLUMN present_list_overview;
|
||||
ALTER TABLE content_blocks DROP COLUMN present_list_items;
|
||||
|
|
@ -76,8 +76,6 @@ 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;
|
||||
}
|
||||
|
|
@ -91,8 +89,7 @@ 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_show, present_text, present_map_split, present_map_no_list,
|
||||
present_map_no_details, present_places, present_place_keys,
|
||||
present_list_overview, present_list_items
|
||||
present_map_no_details, present_places, present_place_keys
|
||||
FROM content_blocks
|
||||
WHERE owner_kind = ? AND slot IN (?, 'both') AND owner_id IN (${placeholders(ids.length)})
|
||||
ORDER BY owner_id, sort_order`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue