With the frontend for the More Info dialog finished and the completion of the update route for the additional notes (/api/projects), we can connect the two. Upon editing the additional notes field in the dialog, we should be able to click the button, which should trigger a PUT request to update the given project (hint: fields can be abstracted from the row).
Requirements:
[ ] Handler invoked after confirming selection in the confirmation Dialog
[ ] Handler takes care of the API call
[ ] The state of the additional notes for the given row is updated after a successful response from the endpoint
Make sure the state is properly updated on success. If you have some extra time, please add error handling using a shadcn toast() to trigger an error for an unsuccessful project update.
With the frontend for the More Info dialog finished and the completion of the update route for the additional notes (
/api/projects
), we can connect the two. Upon editing the additional notes field in the dialog, we should be able to click the button, which should trigger a PUT request to update the given project (hint: fields can be abstracted from the row).Requirements:
Make sure the state is properly updated on success. If you have some extra time, please add error handling using a shadcn
toast()
to trigger an error for an unsuccessful project update.