[ENG-2836] feat: add React ErrorBoundary to InstallIntegration component#1390
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds an error boundary wrapper to the InstallIntegration component to prevent React errors from crashing the parent application. The implementation provides graceful error handling with a fallback UI and optional error callbacks.
Key Changes:
- Created
InstallIntegrationErrorBoundaryclass component with error catching capabilities - Wrapped the
InstallIntegrationcomponent tree with the new error boundary - Exported the error boundary for standalone use in other parts of the application
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/components/Configure/ErrorBoundary.tsx | New error boundary component implementation with fallback UI and error logging |
| src/components/Configure/InstallIntegration.tsx | Wrapped component tree with error boundary to catch rendering and lifecycle errors |
| src/components/Configure/index.ts | Exported error boundary for external use |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
e1b2ba5 to
cba45c8
Compare
Add a proper React Error Boundary component to wrap InstallIntegration, preventing rendering errors or hook errors from crashing the parent application. Changes: - Created InstallIntegrationErrorBoundary class component that catches JavaScript errors - Wrapped InstallIntegration component with error boundary - Error boundary displays ComponentContainerError on failure - Exported InstallIntegrationErrorBoundary for optional standalone use - Added optional onError callback prop for custom error handling Benefits: - Prevents InstallIntegration errors from crashing parent app - Provides graceful fallback UI when errors occur - Logs errors to console for debugging - Works as final safety net alongside the error callback improvements from previous PRs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> lint: fix lint errors feat: add error boundary to install integration / polish
f0437ec to
d25cf09
Compare
RajatPawar
approved these changes
Oct 23, 2025
Contributor
RajatPawar
left a comment
There was a problem hiding this comment.
Will be good to add a couple of test cases for this
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
How Error Boundary Works
Screenshot