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

-9
View File
@@ -556,9 +556,6 @@ async function submitAddContactToShift(c: Context, services: AdminServices): Pro
email: parsed.draft.emailNorm,
phone: parsed.draft.phone,
notes: parsed.draft.notes,
isMinor: parsed.draft.isMinor,
guardianName: parsed.draft.guardianName,
guardianEmail: parsed.draft.guardianEmail,
operationId: token.claims.operationId,
now: services.now(),
mail: mailIdentity(services.db, services.config),
@@ -1224,9 +1221,6 @@ async function submitWalkIn(c: Context, services: AdminServices): Promise<Respon
email: parsed.draft.emailNorm,
phone: parsed.draft.phone,
notes: parsed.draft.notes,
isMinor: parsed.draft.isMinor,
guardianName: parsed.draft.guardianName,
guardianEmail: parsed.draft.guardianEmail,
operationId: token.claims.operationId,
now: services.now(),
mail: mailIdentity(services.db, services.config),
@@ -1571,9 +1565,6 @@ function signupValuesFrom(body: Record<string, unknown>): SignupValues {
email: textField(body, 'email'),
phone: textField(body, 'phone'),
notes: textField(body, 'notes'),
under18: textField(body, 'under18') === 'yes',
guardianName: textField(body, 'guardianName'),
guardianEmail: textField(body, 'guardianEmail'),
};
}