Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: ask organizers to setup the reply to email when they create the event #13621

Merged
merged 7 commits into from
Apr 12, 2024

Conversation

julien51
Copy link
Member

Description

We now require organizers to submit their email address and name when they are preparing a new event.

Issues

Fixes #13188

Checklist:

  • 1 PR, 1 purpose: my Pull Request applies to a single purpose
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the docs to reflect my changes if applicable
  • I have added tests (and stories for frontend components) that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • If my code involves visual changes, I am adding applicable screenshots to this thread

Release Note Draft Snippet

@cla-bot cla-bot bot added the cla-signed label Apr 11, 2024
@@ -1,7 +1,7 @@
import { RequestHandler } from 'express'
import {
getEventBySlug,
getEventDataForLock,
Copy link
Member Author

Choose a reason for hiding this comment

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

renamed for clarity!

@@ -36,7 +37,31 @@ const getEventDate = (
return null
}

export const getEventDataForLock = async (
export const getEventForLock = async (
Copy link
Member Author

Choose a reason for hiding this comment

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

This is extracted so we can re-use.

const res = settings || DEFAULT_LOCK_SETTINGS
const lockSettings = settings || DEFAULT_LOCK_SETTINGS

const eventDetails = await getEventForLock(lockAddress, network)
Copy link
Member Author

Choose a reason for hiding this comment

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

Getting the event's settings for replyTo and emailSender and prioritizing these.

@@ -363,30 +357,6 @@ export const EventDetails = ({
Tools for you, the event organizer
</span>
<div className="grid gap-4">
<Card className="grid grid-cols-1 gap-2 md:items-center md:grid-cols-3">
Copy link
Member Author

Choose a reason for hiding this comment

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

We moved this to the settings.

@julien51
Copy link
Member Author

Screenshot 2024-04-11 at 3 16 35 PM

@julien51 julien51 requested a review from SVell April 12, 2024 12:41
Copy link
Contributor

@SVell SVell left a comment

Choose a reason for hiding this comment

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

Looks good

@julien51 julien51 merged commit 24a431c into master Apr 12, 2024
14 checks passed
@julien51 julien51 deleted the events-emil-rsvp branch April 12, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

email return customization on Events setup page
2 participants