Give the ability for an admin or a provider admin to manage new pid provider entries. A provider admin can only add a new entry and wait until it is approved. Admin can add/edit/delete and also approve entries or return them to pending status
🏗️ Implementation
[x] Remove add / edit / delete buttons from supported pids view. This view now becomes read only
[x] Create a new managed pids view that allows admins and provider admins to manage pid entries. This view calls the /admin/providers api path in order to display available pid provider entries. An admin will see all available entries. A provider admin will see only the entries that has created.
[x] Add StatusModal component to be able to change status of a pid provider entry from Approved to Pending and vice versa
[x] Change Auth methods to call /users/profile in order to grab user id and user roles
[x] Update the AddEdit Component with a new mode that allows to view the provider details by disabling the form fields
[x] Configure routes and navigation items for the new views
[x] Login now leads to the managed pids view.
[x] A user without any role assigned (admin, provider_admin) automatically logs out
🎯 Goal
Give the ability for an admin or a provider admin to manage new pid provider entries. A provider admin can only add a new entry and wait until it is approved. Admin can add/edit/delete and also approve entries or return them to pending status
🏗️ Implementation
/admin/providers
api path in order to display available pid provider entries. An admin will see all available entries. A provider admin will see only the entries that has created./users/profile
in order to grab user id and user roles