Commit Graph

321 Commits

Author SHA1 Message Date
Ryderjj89
2ee244a354 Improve ICS calendar generation and email button styling
- Changed default event duration from 2 hours to 4 hours
- Fixed location field escaping issue that was adding unwanted backslashes
- Updated 'Add to Calendar' button styling to remove green background
- Button now uses blue border and text instead of solid green background
- Location field in ICS files now displays properly without escape characters
2025-05-26 18:19:52 -04:00
Ryderjj89
d7ed4d1e85 Add ICS calendar file generation and 'Add to Calendar' button
- Added generateICSContent() function to create RFC-compliant ICS calendar files
- Added /api/events/:slug/calendar.ics endpoint to serve downloadable calendar files
- Updated RSVP confirmation emails to include styled 'Add to Calendar!' button
- ICS files include event title, description, location, date/time, and unique identifiers
- Calendar files are automatically named with event slug for easy identification
- Button links directly to ICS download endpoint for seamless calendar integration
- Supports all major calendar applications (Outlook, Google Calendar, Apple Calendar, etc.)
2025-05-26 18:10:53 -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
edd3903ffb Updated event conclusion message handling to ensure it is saved as null if not filled out, consistent with description field. 2025-05-26 15:53:51 -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
66384d8495 Fixing event conclusion message 2025-05-26 15:21:16 -04:00
Ryderjj89
7f709660b0 Add logging to backend event GET route 2025-05-26 14:44:14 -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
76e6699b67 Fix TypeScript error accessing node-cron ScheduledTask options 2025-05-26 13:06:58 -04:00
Ryderjj89
1a4f88419a Add TZ environment variable to Docker Compose files 2025-05-26 13:03:27 -04:00
Ryderjj89
eb7f77167c Update event conclusion email schedule and add logging 2025-05-26 13:01:21 -04:00
Ryderjj89
1c6be17961 Move Needed Items to Basic Event Details section in EventForm 2025-05-26 12:51:43 -04:00
Ryderjj89
47f6918b02 Implement backend functionality for event conclusion emails 2025-05-26 12:46:25 -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
Joshua Ryder
b5ecb32893 Merge pull request #5 from Ryderjj89/dev
Update README.md
2025-05-25 19:51:58 -04:00
Joshua Ryder
f44683bc92 Update README.md 2025-05-25 19:50:04 -04:00
Joshua Ryder
4d4920a751 Update README.md
More info about email notifications
2025-05-25 19:49:03 -04:00
Joshua Ryder
3521643196 Update README.md 2025-05-24 17:32:04 -04:00
Joshua Ryder
64db6c4c08 Merge pull request #4 from Ryderjj89/dev
Update README.md
2025-05-16 21:59:22 -04:00
Joshua Ryder
2b4b3ecba7 Merge branch 'main' into dev 2025-05-16 21:59:15 -04:00
Joshua Ryder
1b79f7b467 Update README.md 2025-05-16 21:57:02 -04:00
Joshua Ryder
7ce136a126 Merge pull request #3 from Ryderjj89/dev
Email notifications & unique submission links for editing
2025-05-16 21:50:20 -04:00
Joshua Ryder
bdf2be5ddc Update README.md
Added environment variables table
2025-05-16 21:45:59 -04:00
Joshua Ryder
bd2fd004e1 Update README.md
Added environment variable information.
2025-05-16 21:44:26 -04:00
Joshua Ryder
c34549556e Update README.md
Added info about editing rsvps and VS code with Cline
2025-05-16 21:34:13 -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
b4f133b077 Update RSVP confirmation email subject and body 2025-05-16 20:29:57 -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