Skip to content

Handle react-error-boundary unknown fallback errors in RunFrame error boundaries and update @tscircuit/3d-viewer to version 0.0.560#3473

Merged
rushabhcodes merged 3 commits into
tscircuit:mainfrom
rushabhcodes:chore/update-3d-viewer
May 24, 2026
Merged

Handle react-error-boundary unknown fallback errors in RunFrame error boundaries and update @tscircuit/3d-viewer to version 0.0.560#3473
rushabhcodes merged 3 commits into
tscircuit:mainfrom
rushabhcodes:chore/update-3d-viewer

Conversation

@rushabhcodes
Copy link
Copy Markdown
Contributor

@rushabhcodes rushabhcodes commented May 21, 2026

This pull request improves error handling and messaging across several components by standardizing how errors are processed and displayed. It also updates some dependencies to their latest versions. The most important changes are as follows:

Error Handling Improvements:

  • Updated all ErrorBoundary usages to use the FallbackProps type from react-error-boundary instead of custom or inline types, ensuring consistency and compatibility. [1] [2] [3]
  • Introduced a getErrorMessage utility in multiple components to robustly extract error messages from unknown error types, improving user-facing error feedback. [1] [2]
  • Refactored error fallback components (ErrorFallback, RunFrameErrorFallback) to handle unknown error types gracefully by normalizing them to Error instances before displaying messages and stack traces. [1] [2] [3] [4]

Component Updates:

  • Updated all error fallback renderers in CircuitJsonPreview and RunFrameStaticBuildViewer to use the new error message extraction logic, ensuring consistent and user-friendly error messages throughout the UI. [1] [2] [3] [4]

Dependency Updates:

  • Upgraded @tscircuit/3d-viewer, schematic-symbols, and tscircuit to their latest versions in package.json for improved stability and new features. [1] [2]

Copilot AI review requested due to automatic review settings May 21, 2026 20:26
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
runframe Ready Ready Preview, Comment May 24, 2026 3:33am

Request Review

Copy link
Copy Markdown

Copilot AI left a comment

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 updates the project’s @tscircuit/3d-viewer dependency, and as a result of the lockfile refresh also changes resolved transitive @tscircuit/* dependencies (notably @tscircuit/core).

Changes:

  • Bump @tscircuit/3d-viewer from 0.0.559 to 0.0.560 in package.json.
  • Update bun.lock to reflect the new resolved @tscircuit/3d-viewer@0.0.560 (and updated transitive resolutions, including @tscircuit/core).

Reviewed changes

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

File Description
package.json Updates the declared @tscircuit/3d-viewer devDependency version.
bun.lock Updates the lockfile for the new @tscircuit/3d-viewer version and updates transitive resolutions (including @tscircuit/core).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rushabhcodes rushabhcodes changed the title chore: update @tscircuit/3d-viewer to version 0.0.560 Handle react-error-boundary unknown fallback errors in RunFrame error boundaries and update @tscircuit/3d-viewer to version 0.0.560 May 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@rushabhcodes rushabhcodes force-pushed the chore/update-3d-viewer branch from 4b4ddc3 to 6dab755 Compare May 24, 2026 03:32
@rushabhcodes rushabhcodes merged commit b4ce9aa into tscircuit:main May 24, 2026
6 checks passed
@rushabhcodes rushabhcodes deleted the chore/update-3d-viewer branch May 24, 2026 03:39
@tscircuitbot
Copy link
Copy Markdown
Collaborator


Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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.

4 participants