hack4impact-calpoly / ecologistics-web-scraper

https://ecologistics-web-scraper.vercel.app
5 stars 0 forks source link

Connect additional notes update to frontend #146

Closed ryanchansf closed 5 months ago

ryanchansf commented 5 months ago

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.

ryanchansf commented 5 months ago

Resolved in this PR from sanjanachecker@. Closing the issue.