Add React ErrorBoundary with crash recovery UI (Task 1) - #25
Merged
Conversation
- Wraps <App> in an ErrorBoundary component in index.html - On crash: shows error message with Reload and Reset All Data buttons - Uses ES5-compatible prototype pattern (var assignment) so the class is accessible as a global in the headless test runner - Adds React.Component stub to run-tests.js for class-based components - Adds 2 new tests: render-children path and getDerivedStateFromError - Tests: 107/107 passed (up from 105) - Marks Task 1 complete in BACKLOG.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
<App>in anErrorBoundarycomponent so any React crash shows a recoverable UI instead of a blank pagevar ErrorBoundary = (function(){...}())) so it's accessible as a global in the headless Node test runnerReact.Componentstub torun-tests.jsso class-based components work in the test environmentgetDerivedStateFromErrorcorrectnessBACKLOG.mdTest plan
node .claude/hooks/run-tests.js→ 107/107 passedindex.htmlin browser — app loads normally🤖 Generated with Claude Code