Commit Graph

170 Commits

Author SHA1 Message Date
Ryderjj89
c13957073d Add email field to RSVP edit form with automatic confirmation
- Added email_address field to RSVPEditForm interface and form
- Email field is required and positioned after name field
- Added helper text explaining new confirmation will be sent if email changes
- Updated form validation to include email as required field
- Backend now detects email changes and sends new confirmation emails
- Email field follows same editing rules as other fields (disabled when event closed)
- Updated backend to use email_address parameter instead of attendee_email for consistency
2025-05-26 16:45:37 -04:00
Ryderjj89
f96a4d161f Make email address required on RSVP form
- Removed email notification toggle - email is now always required
- Moved email field to be required right after name field
- Added helper text explaining users will receive confirmation with edit link
- Simplified form validation and submission logic
- Email confirmations are now sent automatically for all RSVPs
2025-05-26 16:35:53 -04:00
Ryderjj89
d0395abc3a Fix event_conclusion_message being stored as [object Object] in database
- Removed duplicate FormData.append() call for event_conclusion_message
- The field was being appended twice: once in the forEach loop and once explicitly
- This caused the backend to receive malformed data resulting in [object Object]
- Now the field is only appended once through the normal form processing loop
2025-05-26 16:20:56 -04:00
Ryderjj89
7c09fd9d40 Fix event_conclusion_message displaying [object Object] in edit form
- Changed String() conversion to direct assignment in EventAdmin.tsx
- Now properly displays actual text content instead of [object Object]
- Handles null/undefined values by defaulting to empty string
2025-05-26 16:16:26 -04:00
Ryderjj89
cd9e43ee5a Updated event conclusion message handling to ensure consistency with description box in EventForm and EventAdmin components. 2025-05-26 15:43:32 -04:00
Ryderjj89
8f8f19bcfe Ensure event_conclusion_message is string in EventAdmin 2025-05-26 14:26:17 -04:00
Ryderjj89
dd77fe978d Fix thank_you_message prop in EventForm TextField 2025-05-26 14:19:42 -04:00
Ryderjj89
60c414e4ee Fix event conclusion email data submission in EventForm 2025-05-26 14:15:51 -04:00
Ryderjj89
a6ef28beea Add logging to EventAdmin update submit handler 2025-05-26 14:08:20 -04:00
Ryderjj89
58c0eebbba Update Event interface in EventAdmin with email conclusion fields 2025-05-26 13:58:10 -04:00
Ryderjj89
aa106f5196 Update Event interface in EventAdmin with email conclusion fields 2025-05-26 13:50:09 -04:00
Ryderjj89
95ee023e4d Fix frontend build error in EventAdmin related to setUpdateForm 2025-05-26 13:36:08 -04:00
Ryderjj89
c731e41d68 Fix frontend build error in EventAdmin 2025-05-26 13:33:26 -04:00
Ryderjj89
5f08039fd9 Fix TypeScript error in EventAdmin by adding UpdateFormData interface 2025-05-26 13:23:12 -04:00
Ryderjj89
ec747a9761 Update EventAdmin form with title and email conclusion settings, adjust wallpaper preview 2025-05-26 13:20:02 -04:00
Ryderjj89
1c6be17961 Move Needed Items to Basic Event Details section in EventForm 2025-05-26 12:51:43 -04:00
Ryderjj89
ec8a4398e3 Implement separate toggles for email notifications and event conclusion email 2025-05-26 12:39:23 -04:00
Ryderjj89
f686d3ae2b Refactor EventForm into sections and add thank you message field 2025-05-26 12:21:56 -04:00
Ryderjj89
0a06555b1e Add RSVP cutoff date note to RSVP edit form 2025-05-16 21:22:30 -04:00
Ryderjj89
828a8273ee Ensure guest name fields are disabled when event is closed 2025-05-16 21:19:14 -04:00
Ryderjj89
15bb6823b8 Fix form duplication and ensure all fields are disabled when event is closed in RSVPEditForm 2025-05-16 20:57:46 -04:00
Ryderjj89
65367085c4 Implement read-only mode for RSVP edit form after cutoff date 2025-05-16 20:47:27 -04:00
Ryderjj89
1437b8e0ee Update 'Needed Items' chip color in EventAdmin table to green 2025-05-16 20:27:39 -04:00
Ryderjj89
89c0a1128c Fix TypeScript errors in RSVPForm and RSVPEditForm 2025-05-16 20:20:13 -04:00
Ryderjj89
379c846250 Implement RSVP editing via unique link 2025-05-16 20:16:23 -04:00
Ryderjj89
5c34d464c1 Add unique edit ID and email opt-in to RSVP submission 2025-05-16 20:14:00 -04:00
Ryderjj89
1766da9c25 Move email notification settings to bottom of event creation form 2025-05-16 19:08:43 -04:00
Ryderjj89
726338b4c8 Add email notification settings to EventAdmin update modal 2025-05-16 19:00:44 -04:00
Ryderjj89
cedd7b325f Add email notification settings to event creation form 2025-05-16 18:42:55 -04:00
Ryderjj89
efe143ca68 Add max guests per RSVP feature to event creation and RSVP forms 2025-05-16 18:27:09 -04:00
Ryderjj89
8918a8acd7 feat: add toggle pill to hide closed events in EventList 2025-05-04 18:27:14 -04:00
Ryderjj89
90e594850e fix: split 'Other Items' on newlines and commas for RSVP submission and admin edit 2025-05-04 18:01:29 -04:00
Ryderjj89
0f4b83c76d feat: use state-based refresh after RSVP edit/delete in EventAdmin 2025-05-04 17:55:42 -04:00
Ryderjj89
d667092b4f refactor: aggregate and display Other Items in state like Claimed Items 2025-05-04 17:45:43 -04:00
Ryderjj89
09f4ffc328 fix: robustly handle other_items as string, string[], or undefined in Other Items section 2025-05-04 17:31:15 -04:00
Ryderjj89
80e144ab13 fix: RSVP.other_items should be string, not string[] 2025-05-04 17:28:06 -04:00
Ryderjj89
eb65707565 Fix: treat other_items as string not array in Other Items section 2025-05-04 17:26:00 -04:00
Ryderjj89
455dbf7ee6 Fix type guard for filtering 'Other Items' to support string | undefined 2025-05-04 17:17:16 -04:00
Ryderjj89
c87ad79a79 Add 'Other Items' section below Items Claimed in EventView and EventAdmin 2025-05-04 17:13:36 -04:00
Starstrike
e512962c19 feat: Force page reload for protected routes to trigger nginx auth 2025-05-01 18:51:53 -04:00
Starstrike
e50122951a feat: Add other_items field to RSVP edit form 2025-05-01 18:30:18 -04:00
Starstrike
a33d521af3 feat: Add other items feature to RSVP form and update table headers 2025-05-01 18:19:08 -04:00
Starstrike
14848c00f7 Fix spacing consistency between form fields in RSVP form 2025-05-01 18:09:00 -04:00
Starstrike
3df0169ee4 Improve guest names handling in RSVP form: - Fix initial guest name field editing - Properly initialize guest names array - Fix guest names persistence in edit mode - Enhance form behavior for guest count changes - Fix type handling and validation 2025-05-01 18:05:49 -04:00
Starstrike
6b3cf70534 Fix guest names handling in RSVP updates to properly maintain array format 2025-05-01 18:00:10 -04:00
Starstrike
2010c583bd Fix guest name handling in both RSVPForm and EventAdmin components 2025-05-01 17:55:27 -04:00
Starstrike
7c967d9209 Fix TypeScript error: Handle guest_names as both string and array in EventAdmin 2025-05-01 17:50:57 -04:00
Starstrike
023a4cf84f Update EventAdmin to handle guest names as both string and array formats 2025-05-01 17:49:11 -04:00
Starstrike
0dfd6a6f90 Fix guest names display in EventView to handle both string and array formats 2025-05-01 17:47:42 -04:00
Starstrike
244b08aeb8 Implement individual guest name fields and array storage. Updated both frontend and backend to handle guest names as an array of strings instead of a single multiline string. 2025-05-01 17:42:18 -04:00