Skip to content

Consolidate the shared error state - #114

Merged
jhd3197 merged 2 commits into
devfrom
fix/consolidate-error-state
Aug 21, 2026
Merged

Consolidate the shared error state#114
jhd3197 merged 2 commits into
devfrom
fix/consolidate-error-state

Conversation

@jhd3197

@jhd3197 jhd3197 commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Consolidate the shared error state

Two error-state implementations were one too many, especially on the path meant to rescue the UI from failures. This cleanup makes the existing shared ErrorState component the single presentation used by both the application boundary and extension SDK. The boundary retains its reporting, retry, and route-reset behavior while delegating the rendered fallback to the canonical component. Keeping one implementation avoids import ambiguity and prevents the two versions from drifting apart later.

Technical changes
  • ErrorBoundary now renders components/ErrorState.jsx and removes its duplicate named ErrorState implementation.
  • The extension SDK continues exporting both ErrorBoundary and ErrorState, with ErrorState now sourced from the canonical component module.
  • The review follow-up commit carries [skip version] so merging it into dev does not advance the already-finalized 1.7.125 release number.

@jhd3197
jhd3197 marked this pull request as ready for review August 21, 2026 05:31
Copilot AI lite review requested due to automatic review settings August 21, 2026 05:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR consolidates error UI by removing the duplicate ErrorState implementation from ErrorBoundary and reusing the shared components/ErrorState.jsx for both the app boundary and the extension SDK export surface.

Changes:

  • ErrorBoundary now renders the shared ErrorState component instead of an inline fallback UI.
  • The SDK re-exports ErrorState from the canonical module and ErrorBoundary as its default export.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
frontend/src/plugins/sdk/index.js Switches SDK exports to source ErrorState from the canonical component module.
frontend/src/components/ErrorBoundary.jsx Removes the duplicate ErrorState implementation and delegates fallback rendering to components/ErrorState.jsx.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread frontend/src/components/ErrorBoundary.jsx
Comment thread frontend/src/plugins/sdk/index.js
@jhd3197
jhd3197 merged commit 4959354 into dev Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants