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

Invite users to private communities #36

Open
7 of 10 tasks
trex opened this issue Jan 20, 2020 · 4 comments
Open
7 of 10 tasks

Invite users to private communities #36

trex opened this issue Jan 20, 2020 · 4 comments

Comments

@trex
Copy link
Collaborator

trex commented Jan 20, 2020

Frontend

  • From Group component, a user can invite user by email
  • From the user's account page you can view Groups that you have been invited to
    • A user can accept invitations to Groups they have been invited to

Backend

  • Mutation invites a user to a group
  • Mutation accepts invite
  • Users receive email notification when invited to private community
    • Email is sent to invited existing user, prompting them to login and accept the invite
    • Email is sent to invited non-existing user, prompting them to create an account and join the group
      • User is added to all groups they are invited to upon registration

Design

  • Design email template for community invitations
@trex
Copy link
Collaborator Author

trex commented Feb 16, 2020

@ZacharyRose I pushed some changes to the invite-users branch of the server last night. The inviteUserToGroupByEmail and acceptGroupInvite mutations were returning a boolean rather than Group, which did not match the GraphQL schema. They are both now returning the group related to the groupId parameter passed in.

Can we add a required String parameter, message, to the inviteUserToGroupByEmail mutation, so that a message from the user extending the invitation is passed along in the email to the invited person to build trust in accepting the invite?

@trex
Copy link
Collaborator Author

trex commented Feb 19, 2020

@ZacharyRose I pushed changes to the invite-users branch on hawthorn-server to update the inviteUserToGroupByEmail mutation interface to:
inviteUserToGroupByEmail(groupId: ID!, email: String!, customMessage: String!): Group!

These changes add a new table to the database for modeling the outstanding group invitations. You will need to run prisma deploy from the command line to run the database migrations to add the table and generate an updated javascript prisma client.

@trex
Copy link
Collaborator Author

trex commented Mar 13, 2020

@ZacharyRose I finished up the backend changes for this issue, pushed to the invite-users branch (codefordenver/hawthorn-server#9).

I know we are holding on building more onto the frontend until design is ironed out and the atomic component architecture is in place. However, people have started signing up for accounts and I would like to add these features to the frontend ASAP so that we can have a meaningful user experience in the application. Can we add these components to the frontend now and refactor when the design and architecture is ironed out?

@zacksabbath
Copy link
Contributor

zacksabbath commented Mar 14, 2020 via email

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

No branches or pull requests

2 participants