feat: save each name on the contact list

A confirmed signup is kept as a contact, and a coordinator can add one person by hand. The same name and email updates that contact. A different name stays separate even when the email matches. Names are capitalized, and a 10-digit phone is stored with dashes.
This commit is contained in:
blake committed 2026-10-16 15:28:39 -05:00
1 parent e8a5f9e352
commit ec259f58b2
11 files changed
+475 -60

No files matched your search

+5
View File
@@ -55,6 +55,11 @@ describe('manage-link cancellation', () => {
expect(html).toContain('Pat Cancel');
expect(html).not.toContain('<form');
expect(db.prepare('SELECT status FROM signups').all()).toEqual([{ status: 'cancelled' }]);
expect(db.prepare('SELECT first_name, last_name, email FROM contacts').get()).toEqual({
first_name: 'Pat',
last_name: 'Cancel',
email: 'pat.cancel@example.invalid',
});
expect(db.prepare("SELECT kind, status FROM outbox ORDER BY id").all()).toEqual([
{ kind: 'confirmation', status: 'cancelled' },
{ kind: 'cancelled', status: 'pending' },