Portal: fix schedule type toggle, daily rendering, overnight spill, and mobile grid

This commit is contained in:
NeilClack
2026-09-29 15:22:02 -05:00
parent cc4aa8717e
commit 220ff92e78
5 changed files with 229 additions and 67 deletions
+6 -2
View File
@@ -69,11 +69,15 @@ function normaliseDay(type: ScheduleType | null, day: string | null | undefined)
return day ?? null;
}
// Schedules only need a Proclamation's identity and the labels the portal
// shows. Selecting explicitly (rather than `include`) avoids pulling every
// Proclamation column — notably the potentially large `content` — on each load.
const blockInclude = {
proclamations: {
orderBy: { sortOrder: 'asc' as const },
include: {
proclamation: { include: { solfeggioFrequency: true } }
select: {
sortOrder: true,
proclamation: { select: { id: true, name: true, categoryId: true, groupId: true } }
}
}
};