Show the shared error page for uncaught render errors - #1326
Merged
Conversation
|
Preview build will be at |
Takes @microbit/ui-patterns 0.6.1 and uses its ErrorBoundary and UnexpectedErrorPage at the root route. The react-router change had put the app's own ErrorBoundary there, whose inline "download your hex file" text assumes the editor is still on screen; full-page it is not. That boundary is unchanged around the sidebar panels, where a documentation tab failing to load (typically a blocked Sanity domain) still shows the inline message beside a working editor. The page shows an error reference so a support request can be matched to the Sentry report. Logging.error now returns that reference (the event id from captureException) when the error was sent, and the root layout passes it through to the page. The support link is the brand's; deployments without one get no support sentence, as with the help menu.
microbit-matt-hillsdon
force-pushed
the
error-page
branch
from
September 11, 2026 19:45
05dd9ad to
20fc929
Compare
Collaborator
Author
|
Evil hack to test: Then change tab. Will merge and re-run on beta which should have the actual Sentry reference. |
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.
Takes @microbit/ui-patterns 0.6.1 and uses its ErrorBoundary and
UnexpectedErrorPage at the root route. The react-router change had put
the app's own ErrorBoundary there, whose inline "download your hex
file" text assumes the editor is still on screen; full-page it is not.
That boundary is unchanged around the sidebar panels, where a
documentation tab failing to load (typically a blocked Sanity domain)
still shows the inline message beside a working editor.
The page shows an error reference so a support request can be matched
to the Sentry report. Logging.error now returns that reference (the
event id from captureException) when the error was sent, and the root
layout passes it through to the page. The support link is the brand's;
deployments without one get no support sentence, as with the help menu.