Merged
Conversation
Introduces avatar upload and preview features in the user settings page. Users can now select and upload a new profile photo, with immediate preview and feedback on upload status. Updates are integrated with the authentication context to reflect changes.
AuthContext now verifies the stored token with the server and logs out if invalid. SettingsPage improves user update logic and handles validation errors more consistently for both profile and password updates.
Refines ProtectedRoute to check for stored tokens and redirects unauthenticated users to the home page instead of login. Updates AuthContext to avoid logging out on token validation failure and to reduce UI flicker by setting user/token immediately. Removes the Profile link from Sidebar and ensures LoginPage always navigates to home after successful login.
Introduces SpaPathRewrite middleware to serve the React SPA for /settings routes, updates web.php to explicitly handle /settings and nested settings paths, and moves previous settings controllers and React components to backup directories. This change prepares for a new SPA-based settings implementation while preserving the old code for reference.
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.
New Updates