When a user makes a decision in the UI (e.g., clicking "Accept"), the backend processes the request and returns a response. If the backend returns a 200 OK status, indicating that the action was successful, the UI should immediately update the state to reflect this decision. Specifically, once the backend confirms the action, the UI should:
Update the state to reflect the new decision.
Hide the action buttons (e.g., "Accept", "Reject") that are no longer applicable.
Acceptance Criteria:
The UI should listen for the backend's response after a user action.
If the response is successful (200 OK), the UI state should update accordingly.
After a successful update, any irrelevant UI actions should be hidden or disabled to prevent further interaction.
Ensure that the UI handles errors gracefully if the backend returns an error (non-200 status), displaying an appropriate message or prompt.
TECH NOTES:
Backend
These endpoints should return the workflow data as a response.
Frontend
Modify resolveAction() to use returned workflow data in AuthorDetailPageContainer.tsx if the action was successful.
When a user makes a decision in the UI (e.g., clicking "Accept"), the backend processes the request and returns a response. If the backend returns a 200 OK status, indicating that the action was successful, the UI should immediately update the state to reflect this decision. Specifically, once the backend confirms the action, the UI should:
Acceptance Criteria:
TECH NOTES: Backend
Frontend