codersforcauses / codersforcauses/teach-learn-grow
As a volunteer I want to be able to update my profile information
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Available to all users to view and update their profile information
**Tasks**
Frontend
- [ ] Profile page
- Change the profile page that the template currently has
- Display all of the logged-in user's details
- Add an edit button (maybe top right of the page?)
- When the edit button is clicked, turns the information fields into input fields and add a save or cancel button to the page (maybe bottom of the page?)
- Clicking save will use a backend API endpoint to update the profile (see below) and clicking cancel will turn edit mode off with no information change
Backend
- [ ] Retrieve profile endpoint
- GET request, given a user id, return all of the information about this user
- Create a new role (e.g. `read:user`). if the person making the request has this role, allow access to any profile. Otherwise, only allow them to see their own profile
- [ ] Edit profile endpoint
- PATCH request, given a user id and a user profile in the request's body, update the user profiles so that it matches the request
- Create a new role (e.g. `update:user`). if the person making the request has this role, allow access to any profile. Otherwise, only allow them to update their own profile
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.