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] Add administrator to an event #55

Closed
6 tasks done
HugoGresse opened this issue Jul 25, 2019 · 2 comments
Closed
6 tasks done

[Feature] Add administrator to an event #55

HugoGresse opened this issue Jul 25, 2019 · 2 comments
Labels
admin app Admin app (openfeedback.io/admin) enhancement New feature or request

Comments

@HugoGresse
Copy link
Owner

HugoGresse commented Jul 25, 2019

The event creator or other admin should be able to add other member who will have the same rights as the other on this event.

This feature is ready on Firestore + security (project.members[] is already an array of user id) but need the frontend to be done.

Design: https://www.figma.com/file/EivIdkyPELnGs416ND0C2bWG/Open-feedback?node-id=110%3A1621
TODO:

  • Design + email design
  • Base admin page listing the admin
  • User table with createdAt, updatedAt, displayName, email, photoURL, uid + security rules in order to be able to retrieve it's name, email, photoURL
  • When user sign in, we add it to the user table
  • Email setup
  • Invite system: cloud function + email + UI
@HugoGresse HugoGresse added the enhancement New feature or request label Jul 25, 2019
@HugoGresse HugoGresse added the admin app Admin app (openfeedback.io/admin) label Aug 9, 2019
@HugoGresse
Copy link
Owner Author

HugoGresse commented Nov 8, 2019

Invite process:

  1. Current admin invite user by email.
  2. in a new 'userInvite' collection, we store the invite:
uniqueId: {
   projectId,
   originUserId: currentUserId,
   destinationUserInfo (could be email or phone),
createdAt,
updatedAt
}

Only allow email invite for the moment.
3. From cloud function, when a new value is put here, we send an email with generated link like "https://openfeedback.io/admin/join?id=XXX

  1. a. if the user id already phone in base, add it to the project
  2. b. if not found in user, when he is created, add it to the project
  3. User arrive on admin root (/admin/), we check the invitedId from the queryParams, get the invite, listen in realtime, if the status = completed, redirect it to the project

Progress:

  • store invite in db + security
  • send email when newInvite is created from CF
  • check if present in db to add the rights directly when invite is created
  • when user is created, check is there is pending invite, if so, process the pending invites
  • email redirect + modal open to indicate the process
  • check if already invited + UI
  • add notice for email/pwd login for the email to be verified

@HugoGresse
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin app Admin app (openfeedback.io/admin) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant