Repository navigation
fix: handle UI auth, routing and not-found error states - #54
Merged
Merged
Conversation
… and hash on login redirect
# Conflicts: # frontend/src/app/router.tsx # frontend/src/features/auth/LoginPage.test.tsx
…ric edit contact ids
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.
LoadErrorinRequireAuthwhen/api/mefails with a non-401 error instead of redirecting to/login, while keeping 401 redirecting to/login.pathname,search, andhashinRequireAuth's login redirectfromstate soLoginPagereturns to the exact URL.RequireAuth+AppShelland a rooterrorElementso React Router's developer error screen never appears.Contact/Edit contact) so the header bar is no longer blank, and add missing test coverage for edit-expense/edit-transfer not-found and malformed-id states.Proved with all frontend gates (
lint,format:check,typecheck,i18n:check, 39 vitest files / 351 tests,build) plus before/after 390px Playwright screenshots of/nope,/expenses/abc,/expenses/999999/edit,/contacts/999999,/contacts/999999/edit,/api/me500 + retry recovery, and login redirect with query string and hash.