fix(timetable): mechanical-layer stabilization — seeder Model A, Zod decimal drift, freeze-panes layout, ?day URL flicker #19

Merged
bert.hausmans merged 9 commits from fix/timetable-stabilization into main 2026-05-10 01:16:21 +02:00
Showing only changes of commit 8b678c0626 - Show all commits

View File

@@ -51,7 +51,12 @@ const eventIdRef = eventId
const { data: eventDetail } = useEventDetail(orgId, eventId)
const { data: subEvents } = useEventChildren(orgId, eventId)
const isFlatEvent = computed(() => !subEvents.value || subEvents.value.length === 0)
// Authoritative once eventDetail loads (single-row endpoint, fast).
// Pre-load it returns `false`, which keeps dayOptions empty until we
// actually know whether this is a flat event or a festival — avoids the
// `?day={festival_id}` URL flicker that occurred when subEvents was
// still pending (it was being read as "no children → flat event").
const isFlatEvent = computed(() => eventDetail.value?.event_type === 'event')
const dayOptions = computed(() => {
if (isFlatEvent.value && eventDetail.value)