Quote
"SIUUUUU" - Cristiano Ronaldo
Description
This PR adds editing functionality to the existing Users.jsx table, allowing a user's email and project to be changed and updated.
Instructions
Task
- Add an "Edit" action to each row in
Users.jsx (e.g. edit icon/button)
- Clicking edit should make that row's email and project fields editable (inline), or open a modal with an editable form (either is fine, but be consistent)
- On save, use the PUT endpoint to
/users/:id with the updated fields
- On cancel, make sure changes are discarded and revert back to the original values
- A clear error should be displayed if the update fails (ex: project doesn't exist)
- Update the table's displayed data after a successful save, without requiring a full page refresh
Acceptance Criteria
Resources
server/routes/users.js (look here for existing endpoints)
client/src/components/Users.jsx (original read only component)
Quote
"SIUUUUU" - Cristiano Ronaldo
Description
This PR adds editing functionality to the existing
Users.jsxtable, allowing a user's email and project to be changed and updated.Instructions
Task
Users.jsx(e.g. edit icon/button)/users/:idwith the updated fieldsAcceptance Criteria
PUT /users/:idand updates the table on successResources
server/routes/users.js(look here for existing endpoints)client/src/components/Users.jsx(original read only component)