feat: add user profile and settings module - #40
Merged
akargi merged 1 commit intoAug 26, 2026
Conversation
Add ProfileView, ProfileEdit, and AvatarUpload components with form validation, client-side avatar preview, and localStorage persistence. Extend User type with avatar field, create profile service layer and useProfile hook, add /profile route, and update settings page with profile quick-link. Includes 28 new tests (all passing). Closes Chulilee#29 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Feature — User Profile and Settings Module
Closes #29
Summary
Adds a full User Profile & Settings module so authenticated users can view their profile, edit their information (display name, avatar, notification preferences), and persist those changes client-side.
What's Included
Types ( src/types/ )
Service layer ( src/services/ )
Components ( src/components/ )
Pages ( src/app/ )
Hooks ( src/hooks/ )
Settings integration
Tests ( src/components/tests/ and src/tests/ )
Changes at a Glance
┌────────────────┬────────────────────────────────────────────────────────────────────────────────────┐
│ Area │ Files │
├────────────────┼────────────────────────────────────────────────────────────────────────────────────┤
│ New types │ src/types/profile.ts │
│ New service │ src/services/profileService.ts │
│ New components │ ProfileView.tsx, ProfileEdit.tsx, AvatarUpload.tsx │
│ New page │ src/app/profile/page.tsx, src/app/profile/ProfileClient.tsx │
│ New hook │ src/hooks/useProfile.ts │
│ Modified │ src/types/index.ts, src/app/settings/SettingsClient.tsx, src/components/Navbar.tsx │
│ Tests │ ProfileView.test.tsx, ProfileEdit.test.tsx, profileService.test.ts │
└────────────────┴────────────────────────────────────────────────────────────────────────────────────┘
Acceptance Criteria Checklist
[x] Users can view their current profile and update fields successfully.
[x] Avatar uploads show client preview and persist after save.
[x] Preferences are saved and used by the app (notification toggles affect behavior via the existing NotificationPreferences integration).
[x] Validation and error handling present; unit tests cover the profile save flow.
Testing
// bash
npm run type-check # passes
npm test # all new + existing tests green
npm run build # builds without errors
Notes for Reviewers