Commit Graph

189 Commits

Author SHA1 Message Date
Ryderjj89
54d0e8aab4 Fixing buttons on the Thank you page 2025-06-04 19:07:52 -04:00
Ryderjj89
becc530c18 Spacing issue with guest names 2025-06-04 18:53:27 -04:00
Ryderjj89
3af12b431b Rearranging event details & more width for view/manage pages 2025-06-04 18:45:50 -04:00
Ryderjj89
7b3f8f74a8 Button spacing and formatting for rsvp form 2025-06-04 18:35:57 -04:00
Ryderjj89
cd845fc116 Button spacing and formatting for rsvp form 2025-06-04 18:29:58 -04:00
Ryderjj89
c3030bafce Adding info to RSVP form and back to events list button 2025-06-04 18:19:35 -04:00
Ryderjj89
c5d6fc3310 Adding info to RSVP form and back to events list button 2025-06-04 18:18:59 -04:00
Ryderjj89
1ce3f9f8ef Changing card actions to grid 2025-06-04 18:07:10 -04:00
Ryderjj89
999d828a29 Flex spacing changes on the event cards for smaller screens 2025-06-04 18:02:26 -04:00
Ryderjj89
5b7ebafe84 Padding and spacing fixes 2025-06-04 17:54:42 -04:00
Ryderjj89
eee0422579 Fixing snackbar issue 2025-06-04 17:26:34 -04:00
Ryderjj89
c019b7bc08 Fixing snackbar issue 2025-06-04 17:20:59 -04:00
Ryderjj89
fd260c9c88 Updating frontend to have a copy link to RSVP and improvements to the needed items list when submitting an RSVP 2025-06-04 17:16:52 -04:00
Ryderjj89
a6709f02c5 Updated send event conclusion to make sure it's set to true by default 2025-06-02 19:25:18 -04:00
Ryderjj89
65d02964dc Fix email field not saving in EventAdmin RSVP edit form
- Changed submission data field from 'email_address' to 'attendee_email'
- Backend expects 'attendee_email' but frontend was sending 'email_address'
- This fixes the issue where email updates wouldn't save to the database
- Email field now properly updates when edited through the admin interface
2025-05-26 17:45:16 -04:00
Ryderjj89
a2f9c58f3f Restore complete EventAdmin.tsx file with email field and snackbar functionality
- Fixed missing hundreds of lines that were accidentally truncated
- Restored complete component with all dialogs, tables, and functionality
- Email field now properly populates in RSVP edit form from attendee_email
- Added snackbar notifications for email sending and link copying actions
- All admin functionality including item management, event updates, and RSVP editing is now complete
2025-05-26 17:37:48 -04:00
Ryderjj89
b6c548f25a Fix email field in EventAdmin RSVP edit form and add snackbar feedback
- Added email_address field to EditFormData interface
- Updated handleEditRsvp to populate email field from rsvp.attendee_email
- Modified handleEditSubmit to include email_address in submission data
- Added snackbar state variables for user feedback notifications
- Enhanced handleSendEmail and handleCopyLink with success/error snackbar messages
- Added handleSnackbarClose function for snackbar management
- Improved user experience with immediate visual feedback for admin actions
- Fixed issue where email field would show [object Object] instead of actual email text
2025-05-26 17:29:44 -04:00
Ryderjj89
7e4baa3388 Add email column and action buttons to EventAdmin RSVP table
- Added email column to display attendee_email in the RSVP management table
- Added email icon button to resend confirmation emails to attendees
- Added clipboard icon button to copy RSVP edit links to clipboard
- Updated RSVP interface to include attendee_email and edit_id fields
- Added backend endpoint /api/rsvps/resend-email/:editId for resending emails
- Email and copy buttons are disabled when email/edit_id are not available
- Improved admin functionality for managing RSVPs and communicating with attendees
2025-05-26 17:15:52 -04:00
Ryderjj89
ed7b7648a1 Fix email field not populating in RSVP edit form
- Changed email_address mapping from rsvpResponse.data.email_address to rsvpResponse.data.attendee_email
- Database stores email as 'attendee_email' but frontend uses 'email_address'
- This fixes the issue where email field would be blank after changing email address
2025-05-26 16:51:27 -04:00
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