The username field in the /manage/people grid is not editable when the "Edit" button is pressed. This functionality needs to be implemented to allow username updates.
Instructions
Pull the latest updates from the develop branch.
Start the server by running npm run dev (if needed, navigate to the src/ folder and run npm ci), then go to localhost:3000/manage/people.
Implement the following changes:
In manage/people/page.tsx, enable the username field to be editable when the "Edit" button is pressed in the /manage/people grid.
Ensure that the updated username is validated (e.g., no spaces, all lowercase letters or numbers only).
Update the API route in api/people/[id]/route.ts to handle the PATCH request for username updates when changes are saved.
Test the functionality to confirm that username edits are reflected in the grid and saved correctly.
Submit a pull request and tag @dangminhduc1101 for review.
Problem
The username field in the
/manage/people
grid is not editable when the "Edit" button is pressed. This functionality needs to be implemented to allow username updates.Instructions
develop
branch.npm run dev
(if needed, navigate to thesrc/
folder and runnpm ci
), then go tolocalhost:3000/manage/people
./manage/people
grid.