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

BE: Invitation Dialog (link and email) #40

Open
sina-jamshidi opened this issue May 25, 2020 · 3 comments
Open

BE: Invitation Dialog (link and email) #40

sina-jamshidi opened this issue May 25, 2020 · 3 comments
Assignees
Labels

Comments

@sina-jamshidi
Copy link

  • Invitation link -> unique to user (localhost:3000/join/:unique_id)
  • Email link to person -> (Sendgrid) “ has invited you to connect on World messenger! Here’s the link to it! localhost:3000/join/:unique_id”
@cch5ng
Copy link
Collaborator

cch5ng commented May 26, 2020

should this ticket include this case:

  • to user is already registered?

and handling the referral link route? or would those be separate tickets?

@sina-jamshidi
Copy link
Author

should this ticket include this case:

  • to user is already registered?

and handling the referral link route? or would those be separate tickets?

You should handle that case and the referral route as well. Feel free to do it under this ticket or make your own if you prefer.

@cch5ng
Copy link
Collaborator

cch5ng commented May 27, 2020

appending requirements discussed in slack (for code reviewers)


hi Carol
let's store the email address as to_user and from_user
to answer your questions, an invitation is technically an invitation to connect
There will be two flows that an invitation can get created
When an email is typed in and sent

  • An invitation is created
  • An email is sent

When a referral link is sent and another user visits that link

  • Detect if this is coming from a referral link
    If yes, the moment the user creates an account, or if they are already logged in, if invitation between those two users don’t exist yet, then create an invitation to connect

ok, it seems like there are 3 case scenarios then.
1 to user is already registered so just create the invitation (it will show in their UI)
2 to user is not registered and they will get an automated email through sendgrid, which contains a referral link
3 to user is not registered and they get a manual email with referral link
in cases #2 and 3, hold off creating the invitation until after registration; then automatically set approval to true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants