Skip to content

Conversation

olestan
Copy link
Member

@olestan olestan commented Oct 12, 2026

Description

Adds a global 404 page for routes that do not match any existing route.

What changed

  • Added NotFoundPage with dedicated 404 layout and styling
  • Added a chef hat illustration
  • Added a catch-all * route in App.tsx
  • Added actions to:
    • return to Explore Recipes
    • go back to the previous page
  • Kept recipe-specific not-found handling separate from the global 404
  • Added Playwright tests for the new 404 behavior

Testing

Added E2E tests to verify that:

  • unknown routes render the global Not Found page
  • Explore Recipes returns the user to the Explore page
  • Go Back returns the user to the previous page
  • invalid recipe routes still use the recipe-specific Recipe not found state instead of the global 404

@olestan olestan requested a review from a team as a code owner October 12, 2026 08:50
Copy link
Member

@hasanmo hasanmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice not found image :)

@olestan olestan requested review from oliveror, oliverdr and a team October 12, 2026 09:11
@olestan olestan merged commit b96ffc4 into dev Oct 12, 2026
2 checks passed
@olestan olestan deleted the not-found-handling branch October 12, 2026 09:12
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants