The admin user should be able to have a distinct tab or panel to see only accepted/rejected incident.
The accepted incidents should have a "Reject" button that switches the state of the object in the database.
The rejected incidents should have an "Accept" button that switches the state of the object in the database.
API endpoints for retrieving the information:
GET /v1/incidents/types
POST /v1/incidents/{incidentId}/approve
POST /v1/incidents/{incidentId}/reject
The admin user should be able to have a distinct tab or panel to see only accepted/rejected incident.
The accepted incidents should have a "Reject" button that switches the state of the object in the database. The rejected incidents should have an "Accept" button that switches the state of the object in the database.
API endpoints for retrieving the information: GET /v1/incidents/types POST /v1/incidents/{incidentId}/approve POST /v1/incidents/{incidentId}/reject
Please check the UX for additional information: https://www.figma.com/proto/DD5l64FEG0VYIcsGzPrN0CzJ/MV---platforma-publica---admin?redirected=1&scaling=min-zoom&node-id=3%3A59