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

Enable Super Admin users to update the status of Partner Admin users from active to inactive #639

Open
8 tasks
eleanorreem opened this issue Oct 13, 2023 · 0 comments
Labels
complexity: advanced Time needed to do this ticket will be large e.g. 2-3+ days feature/enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@eleanorreem
Copy link
Contributor

eleanorreem commented Oct 13, 2023

Overview

Enable Super Admin users to update the status of Partner Admin users from active to inactive. This will happen on the /admin/dashboard page.

Action Items

  • Ensure you have a few super admin and partner admin users created in Bloom-backend.

Initial State on page load

  • Additional Card has been added with Title, Autocomplete Input and Button. The form field should require more than 3 letters before displaying options.
  • Get Autocomplete Options from the backend. See the implementation of UpdateTherapyAdminForm. I would like the autocomplete form to work like that form with a debounced asynchronously populated options list. To populate the options field, you will need to send a request to GET /users like the UpdateTherapyAdminForm with the searchQuery that includes the "partner-admin" relation and with partnerAdmin.partnerAdminId field as "IS NOT NULL" (See UpdateTherapyAdminForm if this is not clear).
Screenshot 2023-10-13 at 14 11 47

Once the user email is selected

  • Render a checkbox, prefilled with the current state of the partner admin user. I.e. if they are active currently, the checkbox would be filled.
  • Once the user checks or unchecks the box and presses the submit button. Send the relevant request to PATCH /partner-admin/:id
  • Create some sensible error messages. We aren't too prescriptive about error states. If you loosely follow that pattern of UpdateTherapyAdminForm, that should be enough.
Screenshot 2023-10-13 at 14 11 54

Once the request has been successful

  • Display Success Text
  • Ensure user can reset the form with the "Update another partner admin" form
Screenshot 2023-10-13 at 14 12 00

Please note this ticket is dependent on this ticket in the backend to be completed.

@eleanorreem eleanorreem added feature/enhancement New feature or request complexity: advanced Time needed to do this ticket will be large e.g. 2-3+ days hacktoberfest Hacktoberfest issues labels Oct 13, 2023
@kyleecodes kyleecodes added this to the 02. Roadmaps milestone Oct 19, 2023
@kyleecodes kyleecodes removed the hacktoberfest Hacktoberfest issues label Nov 3, 2023
@kyleecodes kyleecodes added the help wanted Extra attention is needed label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: advanced Time needed to do this ticket will be large e.g. 2-3+ days feature/enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants