Kids check-in: families, pickup codes, rooms, check-in/out, offline sync (backend)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 00:46:41 +02:00
co-authored by Claude Opus 5.5
parent b28434f2e2
commit 115dbb177f
13 changed files with 2021 additions and 5 deletions
@@ -79,6 +79,10 @@ async function readiness(now = new Date(), db = prisma) {
add('whatsapp_stop', 'WhatsApp STOP replies reach the site', seen && now - seen < 30 * DAY,
seen ? `Last message from WAWP ${seen.toLocaleString('en-ZA')}${now - seen >= 30 * DAY ? ' — over a month ago, check the webhook' : ''}` : 'Paste the webhook URL from Site settings → WhatsApp into WAWP (events: message, session.status).',
'/dashboard/admin/settings?tab=whatsapp', whatsappConfigured);
const kidsEvents = await db.event.count({ where: { kidsCheckIn: true } });
add('kids_retention', 'Children\'s kids check-in details expire', policies.policies.kids_profiles?.enabled,
policies.policies.kids_profiles?.enabled ? `Deleted after ${retention.describeMonths(policies.policies.kids_profiles.months)} without a check-in` : 'Switch on the "Children at kids check-in" retention rule — it holds children\'s medical and custody notes.',
'/dashboard/admin/privacy?tab=retention', kidsEvents > 0);
const twoFactorOn = String(process.env.TWO_FACTOR_REQUIRED_ROLES || 'true').toLowerCase() !== 'false';
add('two_factor', 'Two-factor login required for admins and supervisors', twoFactorOn,
twoFactorOn ? 'Required' : 'TWO_FACTOR_REQUIRED_ROLES=false on the server — only for emergencies.', null);