v1.14.2-present: event schedules, venues and map blocks, Present mode and its phone remote #33

Merged
ngu-git-admin merged 40 commits from event-schedule into main 2026-11-21 23:02:06 +00:00
Showing only changes of commit b30f5f11fe - Show all commits

View file

@ -21,7 +21,7 @@
tag after the days: each of the schedule's tags (087)
and everything it's on, under each day's name
A heading (086) is only a line on the overview; a break gets no
spotlight. "Only entries tagged" (`tag=<key>`) cuts every slide
spotlight. "Only entries tagged" (`only=<key>`) cuts every slide
to what one tag is on, eg. for a screen outside the youth room.
Keys while playing: arrows step, Space pauses, Escape leaves full
@ -97,7 +97,7 @@ function readSettings(params: URLSearchParams, days: Day[]) {
return [kind.key, Number.isFinite(value) && value > 0 ? value : 0]
}),
) as Record<Kind, number>
return { pickedDays: new Set(pickedDays), hidden, seconds, only: params.get('tag') || null }
return { pickedDays: new Set(pickedDays), hidden, seconds, only: params.get('only') || null }
}
type Settings = ReturnType<typeof readSettings>
@ -221,7 +221,8 @@ export default function SchedulePresent() {
if (next.pickedDays.size < days.length) out.set('days', [...next.pickedDays].sort((a, b) => a - b).join(','))
if (next.hidden.size) out.set('hide', [...next.hidden].join(','))
for (const kind of KINDS) out.set(kind.key, String(next.seconds[kind.key]))
if (next.only) out.set('tag', next.only)
// Not 'tag': that's the tag slides' seconds.
if (next.only) out.set('only', next.only)
out.set('play', '1')
setParams(out)
}}