From 64ce97c74d0c4d1954cf764d2f649d438c0db968 Mon Sep 17 00:00:00 2001 From: Pen Anderson Date: Wed, 4 Mar 2026 14:50:05 -0600 Subject: [PATCH] Updated Participant search and delete. Filtered import. --- frontend/src/pages/Import.svelte | 2 +- frontend/src/pages/Participants.svelte | 17 ++++++++++++++++- frontend/src/pages/Volunteers.svelte | 20 +++++++++++++------- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/frontend/src/pages/Import.svelte b/frontend/src/pages/Import.svelte index a3f9ccc..17bff4d 100644 --- a/frontend/src/pages/Import.svelte +++ b/frontend/src/pages/Import.svelte @@ -53,7 +53,7 @@ Supported formats:
CrowdWork / ticketing platform: columns Patron Name, Patron Email, Tier Name, Order Number
Generic: columns name, email, ticket_id, ticket_type, note
- Duplicate names are skipped. + Duplicate tickets (same source + external ID) are skipped. Participants are matched or created by email. + + diff --git a/frontend/src/pages/Volunteers.svelte b/frontend/src/pages/Volunteers.svelte index 98a0a01..39bc98b 100644 --- a/frontend/src/pages/Volunteers.svelte +++ b/frontend/src/pages/Volunteers.svelte @@ -14,7 +14,6 @@ let adding = $state(false) let newName = $state('') let newEmail = $state('') - let newPhone = $state('') let newDeptID = $state('') let newIsLead = $state(false) let newNote = $state('') @@ -25,6 +24,7 @@ const allVolunteers = liveQuery(() => db.volunteers.filter(v => !v.deleted_at).toArray() ) + const allParticipants = liveQuery(() => db.participants.toArray()) const allDepts = liveQuery(() => db.departments.filter(d => !d.deleted_at).toArray() .then(arr => arr.sort((a, b) => a.name.localeCompare(b.name))) @@ -62,7 +62,6 @@ const data = { name: newName, email: newEmail, - phone: newPhone, is_lead: newIsLead, note: newNote, } @@ -70,7 +69,7 @@ const v = await api.volunteers.create(data) await db.volunteers.put(v) showAdd = false - newName = newEmail = newPhone = newNote = '' + newName = newEmail = newNote = '' newDeptID = '' newIsLead = false } catch (err) { @@ -93,6 +92,10 @@ function deptFor(id) { return ($allDepts ?? []).find(d => d.id === id) } + + function participantFor(id) { + return ($allParticipants ?? []).find(p => p.id === id) ?? null + }
@@ -121,10 +124,6 @@
-
- - -