Skip to content

feat: add proper 404 Not Found page (Closes #468) - #596

Open
waterWang wants to merge 1 commit into
Protocol-Guild:mainfrom
waterWang:fix/468-404-not-found-page
Open

feat: add proper 404 Not Found page (Closes #468)#596
waterWang wants to merge 1 commit into
Protocol-Guild:mainfrom
waterWang:fix/468-404-not-found-page

Conversation

@waterWang

@waterWang waterWang commented Aug 22, 2026

Copy link
Copy Markdown

Summary

Replaces the silent catch-all redirect (<Navigate to="/" replace />) with a dedicated 404 Not Found page that helps users understand what went wrong and navigate to useful destinations.

Changes

  • New frontend/src/pages/NotFound.tsx: A dedicated 404 page styled with the existing card glass noise design system, showing a 404 badge, message, and navigation links.
  • Updated frontend/src/App.tsx: Changed the catch-all route path="*" from a silent redirect to render <NotFound />.
  • i18n: Added notFound translation keys to both en and es locale files (Spanish: "Página no encontrada").

Navigation Links

Link Route
Go Home /
Payroll /payroll
Employees /employee
Help Center /help

Why

Users previously got silently redirected to the home page on invalid URLs, which is confusing and makes routing bugs hard to debug. A proper 404 page improves UX and gives users clear recovery paths.

Verification

  • tsc --noEmit passes with no errors.
  • All page imports are consistent with existing page patterns.

Closes #468

- Replace silent redirect-to-home with a dedicated 404 page
- Add NotFound.tsx page component with links to Home, Payroll,
  Employees, and Help Center
- Add i18n translations for both English and Spanish
- Use existing card glass noise styling for visual consistency

Closes Protocol-Guild#468
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.

Add proper 404 Not Found page

1 participant