feat: add settings page with user info and logout#11
Merged
Conversation
Degalax
approved these changes
Feb 5, 2026
GARATONCODE
approved these changes
Feb 5, 2026
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.
This pull request introduces a new user account settings page and improves authentication flow and user navigation. The main updates include adding a protected route for the homepage, implementing a settings page with user info and sign-out functionality, and updating navigation logic after login and signup. Additionally, UI enhancements have been made for the header and settings page.
Authentication & Routing Improvements
ProtectedRoutecomponent to restrict access to the homepage (/) for authenticated users only. Unauthenticated users are redirected to the login page. (src/components/ProtectedRoute.tsx,src/App.tsx) [1] [2]/settingsroute and page, displaying user info and providing a sign-out button. The page handles loading and unauthenticated states gracefully. (src/pages/Settings/page.tsx,src/App.tsx) [1] [2]window.location.hrefinstead of React Router'snavigate, ensuring a full page reload and session update. (src/pages/Login/page.tsx,src/pages/Signup/page.tsx) [1] [2]UI Enhancements
src/components/Header.tsx,src/components/Header.css) [1] [2]src/pages/Settings/Settings.css)Other Updates
src/lib/auth-client.ts)src/pages/Login/page.tsx,src/pages/Signup/page.tsx) [1] [2] [3] [4]