Skip to content

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Dec 11, 2025

Purpose

Add a custom error page to handle unexpected errors gracefully. This page provides users with options to navigate back to the home page or refresh the current page, enhancing the overall user experience during error scenarios.

⚠️ It is quite hard to test this page, it cannot be trigger in development mode, we have to build the app and have a real error in production to see it.

Proposal

  • add error boundary page
  • send sentry informations about the problem

Demo

image

@AntoLC AntoLC self-assigned this Dec 11, 2025
@AntoLC AntoLC added enhancement improve an existing feature frontend labels Dec 11, 2025
@github-actions
Copy link

github-actions bot commented Dec 11, 2025

Size Change: +2.32 kB (+0.06%)

Total Size: 4.15 MB

Filename Size Change
apps/impress/out/_next/static/782d7046/_buildManifest.js 0 B -885 B (removed) 🏆
apps/impress/out/_next/static/chunks/pages/_error.js 2.14 kB +1.96 kB (+1065.22%) 🆘
apps/impress/out/_next/static/db96a76b/_buildManifest.js 885 B +885 B (new file) 🆕

compressed-size-action

@AntoLC AntoLC force-pushed the feat/error-boundary-page branch 2 times, most recently from e22dcda to 709b2da Compare December 11, 2025 16:08
@AntoLC AntoLC linked an issue Dec 11, 2025 that may be closed by this pull request
@AntoLC AntoLC requested a review from rl-83 December 11, 2025 16:12
@rl-83
Copy link
Collaborator

rl-83 commented Dec 12, 2025

Here is my proposal with a custom illustration

@rl-83 rl-83 added the designed A UX/UI design has been proposed label Dec 12, 2025
@AntoLC AntoLC requested review from Ovgodd and removed request for rl-83 December 12, 2025 14:47
@AntoLC AntoLC force-pushed the feat/error-boundary-page branch 2 times, most recently from 7b92242 to cc94bbf Compare December 12, 2025 14:50
Copy link
Collaborator

@Ovgodd Ovgodd left a comment

Choose a reason for hiding this comment

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

I like it this is a very nice improvement

@AntoLC AntoLC force-pushed the feat/error-boundary-page branch from cc94bbf to 740ff6e Compare December 15, 2025 16:15
@AntoLC AntoLC added the preview label Dec 15, 2025
@github-actions
Copy link

🚀 Preview will be available at https://1728-docs.ppr-docs.beta.numerique.gouv.fr/

You can use the existing account with these credentials:

  • username: docs
  • password: docs

You can also create a new account if you want to.

Once this Pull Request is merged, the preview will be destroyed.

@AntoLC AntoLC force-pushed the feat/error-boundary-page branch 7 times, most recently from 0204cda to c94894d Compare December 17, 2025 08:17
Add a custom error page to handle unexpected errors
gracefully. This page provides users with options
to navigate back to the home page or refresh
the current page, enhancing the overall user
experience during error scenarios.
It is quite hard to test this page, it cannot
be trigger in development mode, we have to build
the app and have a real error in production to
see it.
@AntoLC AntoLC force-pushed the feat/error-boundary-page branch 2 times, most recently from 5d3337a to 344e9a8 Compare December 17, 2025 08:26
@AntoLC AntoLC merged commit 344e9a8 into main Dec 17, 2025
27 of 28 checks passed
@AntoLC AntoLC deleted the feat/error-boundary-page branch December 17, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

designed A UX/UI design has been proposed enhancement improve an existing feature frontend preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a boundary error page

3 participants