Skip to content

Conversation

@MathurAditya724
Copy link
Member

@MathurAditya724 MathurAditya724 commented Dec 24, 2025

Preview of how this will look, this will be shown on both web and electron app

Screen.Recording.2025-12-24.at.4.50.34.PM.mov

@vercel
Copy link

vercel bot commented Dec 24, 2025

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

1 Skipped Deployment
Project Deployment Review Updated (UTC)
spotlightjs Skipped Skipped Dec 24, 2025 10:01am

Copy link
Contributor

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 refactors the error message display mechanism from a JavaScript DOM manipulation approach to a React-based ErrorBoundary component, improving code maintainability and consistency.

Key Changes:

  • Replaced DOM injection error handling with React ErrorBoundary from @sentry/react
  • Created a new ErrorFallback component to display user-friendly error messages
  • Moved gradient background styling from TelemetryView to App component for consistent error screen appearance

Reviewed changes

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

Show a summary per file
File Description
packages/spotlight/src/ui/App.tsx Added ErrorBoundary with ErrorFallback component and moved gradient background wrapper to encompass error states
packages/spotlight/src/ui/telemetry/components/TelemetryView.tsx Removed gradient background div wrapper (moved to App) and replaced with React Fragment
packages/spotlight/src/electron/main/index.ts Removed JavaScript-based error screen DOM injection logic and showErrorMessage function
packages/spotlight/index.html Removed CSS styles previously used for JavaScript-injected error screen
.changeset/orange-hands-smile.md Added changeset documenting the error message display update

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Member

@betegon betegon left a comment

Choose a reason for hiding this comment

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

this looks good, could you pls attach an image of how it looks like to de description?

@MathurAditya724
Copy link
Member Author

Updated the PR description with the video

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.

3 participants