fny / greenlight

Symptom monitoring for schools for COVID-19
Other
1 stars 0 forks source link

User Should Be Able to Modify Relationships to Locations (2) #98

Closed fny closed 3 years ago

fny commented 3 years ago

As a user, I should be able to add or remove locations from my account.

When the user visits their settings page, and they tap my locations, they currently see a dropdown of all their locations.

image

When they tap the location, they should go to the locations page where they should see information about the location. They should also see a button that says "Leave"

When they click "Leave" they should be prompted with the following:

"This will disconnect you from this location permanently, and they will be notified you are leaving. No one there will have access to your data any longer. If you are sure you want to leave type, 'leave'."

This should be presented in a dialog: https://framework7.io/docs/dialog.html

This should not be case sensitive. Once this form is submitted, the following endpoint should be called in the API.

DELETE /v1/location_accounts/:location_account_id

Calling this endpoint should do the following:

  1. It should delete the location account
  2. It should send an email to the administrators notifying them that the user was removed from their system.