Skip to content

feat: Add RSVP functionality with email integration#1

Open
Aryan-mor wants to merge 6 commits intoomid:masterfrom
Aryan-mor:master
Open

feat: Add RSVP functionality with email integration#1
Aryan-mor wants to merge 6 commits intoomid:masterfrom
Aryan-mor:master

Conversation

@Aryan-mor
Copy link

  • Added optional organizer email field to event creation form
  • Implemented RSVP component with Yes/No/Maybe buttons
  • Created modal for collecting user name before sending RSVP email
  • Integrated mailto functionality to send RSVP responses to organizer
  • Added email validation for organizer email field
  • Separated RSVP functionality into dedicated component for better code organization
  • Updated event form types and URL parameter handling to support creator email

- Added optional organizer email field to event creation form
- Implemented RSVP component with Yes/No/Maybe buttons
- Created modal for collecting user name before sending RSVP email
- Integrated mailto functionality to send RSVP responses to organizer
- Added email validation for organizer email field
- Separated RSVP functionality into dedicated component for better code organization
- Updated event form types and URL parameter handling to support creator email
@omid
Copy link
Owner

omid commented Sep 26, 2025

@Aryan-mor Could you please fix the conflict?

src/RSVP.tsx Outdated
</div>

<div className="flex gap-3">
<Button
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The form is very small, no need for cancel button, I'd say.

And click outside should also cancel!


Response: ${responseText}

Event Details:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this line


Event Details:
${event.description ? `Description: ${event.description}` : ''}
${event.location ? `Location: ${event.location}` : ''}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, each line prints an empty line even if they are not there!

${event.description ? `Description: ${event.description}` : ''}
${event.location ? `Location: ${event.location}` : ''}
${event.sDate ? `Date: ${event.sDate}` : ''}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be good to add the link to the event somewhere in the email.

${event.sDate ? `Date: ${event.sDate}` : ''}

Best regards,
${name}`;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put the poor calf somewhere at the bottom:

Something like this is enough:
❤️ Calf 🐮📅

initiallyOpen={!!form.creatorEmail}
title={
<span className="text-sm">
Organizer email (optional)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or... we can keep this CollapsibleSection and rename it to RSVP.
And put all RSVP related stuff here.

  1. An email address
  2. OR a link to an external page and open it in a new tab
  3. OR an iframe in a modal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants