Skip to content

fix: handle UI auth, routing and not-found error states - #54

Merged
ame180 merged 8 commits into
mainfrom
fix/ui-error-states
Nov 26, 2026
Merged

ame180 merged 8 commits into
mainfrom
fix/ui-error-states

Conversation

@ame180

@ame180 ame180 commented Nov 25, 2026

Copy link
Copy Markdown
Owner
  • Show a full-screen retryable LoadError in RequireAuth when /api/me fails with a non-401 error instead of redirecting to /login, while keeping 401 redirecting to /login.
  • Preserve pathname, search, and hash in RequireAuth's login redirect from state so LoginPage returns to the exact URL.
  • Add a catch-all not-found route inside RequireAuth + AppShell and a root errorElement so React Router's developer error screen never appears.
  • Give contact not-found (and contact load-error) headers a title (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.
  • Extract and translate the new English/Polish Lingui copy.

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/me 500 + retry recovery, and login redirect with query string and hash.

@ame180
ame180 merged commit 50937a4 into main Nov 26, 2026
4 checks passed
@ame180
ame180 deleted the fix/ui-error-states branch November 26, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant