CrisisCleanup / crisiscleanup-android

Current Crisis Cleanup native Android
2 stars 0 forks source link

Invite Others to Org #78

Open arroyoDev opened 1 year ago

arroyoDev commented 1 year ago

This is the workflow to Invite Teammates to ANY organization

### Starting Point
- [ ] From the Menu Page, this button should be built for you but disabled.   When you are ready, enable this button and point it to your new workflow
- [ ] The base page consist of 2 radio options:   
- [ ] Radio 1 will list the name of the users Organization
- [ ] Radio 2 will have the text "From a different Organization"
- [ ] A drop down box of Organizations seperated by "Affiliates" (which you can find in the My Organization Page) and "Other Organizations"
- [ ] an Email Entry Box
- [ ] A Send Invite Button
- [ ] an --------- Or ----------- Divider
- [ ] A QR Code (which will only appear when applicable

Image

### Inviting to YOUR Organization
- [ ] If this radio is selected, Automatically show a QR Code which links to the Signup page which is in this Separate Issue @@@@@@@@@@@
- [ ] Disable the "Send invite button" until there is a valid email address typed in.
- [ ] Send invite will call the Send Invite code we already do on the web.
- [ ] Show the Success page after successful send event. 
- [ ] Create a Signup page for the user to fill out their user information like we do on the web
- [ ] Make sure that the QR code that you generate leads to the Signup page.

Image Image

### Inviting to AN AFFILIATED Organization
- [ ] on the second radio button, if a user selects an AFFILIATED Organization from the list we treat that similar as if they were from the users organization.  Follow the same flow as above however linking the user to the affiliated Organization when they hit the signup page you created earlier.

Image

### Inviting to a NON Affiliated Organization
- [ ] Same as above, however if the organization they pick is NOT an affiliate we will do the following differently:  
- [ ] Show a message below the organization that says "This user will need to be approved by somebody from the organization."
- [ ] after email address is entered in, enable the "Send Invite" button
- [ ] Generate a QR code that is a link to the form fill out to request access passing in their email address to the form.  See this related task: <Link to that separate task >
- [ ] This should generate an our existing invite request process to someone in that org.  Probably to the primary contact or randomly to one of the top 10 most recent and active users of the org.

Image

### Inviting to a NON EXISTANT Organization
- [ ] IF the organization you searched for does not exist,  take the name that you typed in the search box and do the following
- [ ] add this Text below the Organization box "This organization does not yet have an account. We will create an account and contact this person to finalize the registration."
- [ ] Include a Cell phone number input box.
- [ ] Show the following success message (see image or Figma below)
- [ ] Generate an email linking to the Organization signup form "https://crisiscleanup.org/register" and pass in the email address.

Image