Skip to content

Conversation

@cachebag
Copy link
Owner

Closes #8

Adds a settings page accessible via gear icon in the header. Users can change their username, update their password, and clear all account data, currently.

Backend

  • Add three new authenticated endpoints:
    • PUT /api/auth/change-username - Update username with validation
    • PUT /api/auth/change-password - Change password after verifying current password
    • DELETE /api/auth/clear-data - Delete all user data with password confirmation

Frontend

  • New Settings page with three sections:
    • Change username
    • Change password (current + new + confirm)
    • Clear all data
  • Settings gear icon added to header navigation
  • API client methods for all new endpoints
  • AuthContext enhanced with updateUsername function
  • Form validation, loading states, and success/error feedback

@cachebag cachebag self-assigned this Jan 15, 2026
@cachebag cachebag added feature A new feature to the application (backend or frontend). backend Backend changes. frontend Frontend changes. labels Jan 15, 2026
@cachebag cachebag merged commit e4e52fc into master Jan 15, 2026
2 checks passed
cachebag added a commit that referenced this pull request Jan 15, 2026
* feat(backend): add change username, password, and clear data endpoints

* feat(backend): register settings API routes

* feat(frontend): add settings API client methods

* feat(frontend): add updateUsername to AuthContext

* feat(frontend): add Settings page component

* feat(frontend): add settings gear icon to Layout header

* feat(frontend): integrate settings page navigation

* fix: remove unused error variables and empty catch block
cachebag added a commit that referenced this pull request Jan 15, 2026
* feat(backend): add change username, password, and clear data endpoints

* feat(backend): register settings API routes

* feat(frontend): add settings API client methods

* feat(frontend): add updateUsername to AuthContext

* feat(frontend): add Settings page component

* feat(frontend): add settings gear icon to Layout header

* feat(frontend): integrate settings page navigation

* fix: remove unused error variables and empty catch block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend changes. feature A new feature to the application (backend or frontend). frontend Frontend changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request] Add user settings page

1 participant