Guard theme with an error boundary
Description
An unexpected render error in theme currently blanks the page. This issue wraps it in an error boundary with a retry.
Requirements and context
- Repository scope: Talenttrust/Talenttrust-Frontend only.
- Add an error boundary around the theme section that shows an accessible fallback with a retry.
- Log the error via the existing seam; do not swallow it silently.
- Cover the fallback and retry in tests.
Suggested execution
- Fork the repo and create a branch
git checkout -b refactor/theme-11-error-boundary
- Implement changes
- Write code in: the relevant module.
- Write comprehensive tests in: cover the new behaviour and edge cases.
- Test and commit
Test and commit
- Run
npm run lint, npm test, and npm run build.
- Cover edge cases: child throws, retry re-renders, normal render unaffected.
- Include the full test output in the PR description.
Example commit message
refactor(theme): add error boundary with retry
Guidelines
- Minimum 95 percent test coverage for impacted modules.
- Clear, reviewer-focused documentation.
- Timeframe: 96 hours.
Community & contribution rewards
- 💬 Join the TalentTrust community on Discord: https://discord.gg/WqnGpcPx
- ⭐ This is a GrantFox OSS / Official Campaign task and may be rewarded. When your PR is merged you'll be prompted to rate the project — a 5-star rating is much appreciated.
Guard theme with an error boundary
Description
An unexpected render error in theme currently blanks the page. This issue wraps it in an error boundary with a retry.
Requirements and context
Suggested execution
git checkout -b refactor/theme-11-error-boundaryTest and commit
npm run lint,npm test, andnpm run build.Example commit message
refactor(theme): add error boundary with retryGuidelines
Community & contribution rewards