-
Notifications
You must be signed in to change notification settings - Fork 1
Edit a donor workflow
Goal: To modify the contact information or other editable details associated with an existing donor record.
User Role(s): Main Admin, Admin, Editor
Users with these roles should be able to edit donor records. Viewer roles should not have access to this functionality.
-
/donorsβ Donors List page - "Edit Donor" Modal β launched from the
/donorspage
-
Navigate to Donors:
User navigates to the Donors tab, loading the/donorspage. -
Locate Donor:
User finds the donor record they wish to edit in the table. -
Click Edit:
User clicks the Edit button next to the desired donor. -
Load Edit Modal:
Modal opens with donor's existing contact and note fields pre-filled. -
Modify Donor Details:
Editable fields include:-
firstName,lastName -
organizationName,email,phoneNumber -
address,contactNotes -
lastContacted,donorNotes
-
-
Submit Update:
User clicks Update or Save Changes. -
Data Processing:
- Client-side validation ensures proper input formatting (e.g., valid email)
-
updateDonorinuseDonorssends aPUTrequest to/api/donors/[id] - Backend updates
contactInfoand editable donor fields -
lastEditorIDis set automatically based on the user
-
On Success:
- Modal closes
- Donors list refreshes
- Optional success notification may appear
-
On Failure:
- Validation or backend error (e.g., duplicate email) returns an error
- Error message appears inside modal
- User remains in modal to fix and resubmit
Editable Fields:
-
firstName,lastName,organizationName -
email,phoneNumber,address,contactNotes -
lastContacted,donorNotes
Read-Only/System Fields:
-
donorID,contactInfoID -
firstDonationDate,lastDonationDate -
numDonations,lifetimeDonations
-
lastEditorIDis updated automatically on the backend - Donation-related aggregates (
lifetimeDonations,numDonations,lastDonationDate) are managed automatically when donations change - Updating contact information may impact other entities using the same
contactInfoID(though current API logic scopes changes to donor edits only)
-
π Setup
-
π§ Data Model
-
βοΈ Workflows
-
π Access & Support