feat: require phone and drop under-18 signup

Phone is required on public and coordinator forms, and the under-18
guardian flow, mail copies, and export columns are removed.
This commit is contained in:
blake committed 2026-10-26 13:30:30 -05:00
1 parent 7cfb984d63
commit 58da832bac
27 files changed
+225 -562

No files matched your search

+2 -14
View File
@@ -122,19 +122,13 @@ function insertFakeSignups(db: Database.Database, shiftId: number, createdAt: st
name: 'Fake Volunteer Ada',
email: `ada.fake@${SEED_EMAIL_DOMAIN}`,
phone: '712-555-0101',
isMinor: 0,
guardianName: null,
guardianEmail: null,
notes: 'Fake note for development.',
status: 'confirmed',
},
{
name: 'Fake Volunteer Ben',
email: `ben.fake@${SEED_EMAIL_DOMAIN}`,
phone: null,
isMinor: 1,
guardianName: 'Fake Guardian Pat',
guardianEmail: `pat.fake@${SEED_EMAIL_DOMAIN}`,
phone: '712-555-0102',
notes: null,
status: 'confirmed',
},
@@ -142,9 +136,6 @@ function insertFakeSignups(db: Database.Database, shiftId: number, createdAt: st
name: 'Fake Volunteer Cam',
email: `cam.fake@${SEED_EMAIL_DOMAIN}`,
phone: null,
isMinor: 0,
guardianName: null,
guardianEmail: null,
notes: null,
status: 'cancelled',
},
@@ -154,7 +145,7 @@ function insertFakeSignups(db: Database.Database, shiftId: number, createdAt: st
shift_id, name, email, email_norm, phone, is_minor, guardian_name, guardian_email,
group_size, notes, status, manage_token_hash, token_expires_at, reminders_off,
attended, created_at, updated_at, anonymized_at
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, 1, ?, ?, NULL, NULL, 0, NULL, ?, ?, NULL)`,
) VALUES (?, ?, ?, ?, ?, 0, NULL, NULL, 1, ?, ?, NULL, NULL, 0, NULL, ?, ?, NULL)`,
);
return people.map((person) =>
insertId(
@@ -164,9 +155,6 @@ function insertFakeSignups(db: Database.Database, shiftId: number, createdAt: st
person.email,
normalizeEmail(person.email),
person.phone,
person.isMinor,
person.guardianName,
person.guardianEmail,
person.notes,
person.status,
createdAt,