Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Dec 24, 2025

Before opening this PR:

  • I added a Changeset Entry with pnpm changeset:add
  • I referenced issues that this PR addresses

This PR implements event origin badges in the Spotlight UI to differentiate between browser-side, server-side, and mobile events, addressing #654.

Previously, all events from meta-frameworks like Next.js would show "JS" as the platform, making it difficult to quickly identify the true origin.

Changes:

  1. Server-side (processEnvelope.ts): Infers the event's source (browser, server, mobile) and attaches it to the envelope header.
  2. UI Store (envelopesSlice.ts, types.ts): Reads the inferred source from the envelope header and attaches it to the event object in the UI store.
  3. UI Components (OriginBadge.tsx, EventList.tsx, TraceItem.tsx): A new OriginBadge component displays the source type with distinct color coding, integrated into the event list and trace item views.

Open in Cursor Open in Web

Co-authored-by: burak.kaya <burak.kaya@sentry.io>
@cursor
Copy link

cursor bot commented Dec 24, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@BYK BYK deployed to Preview December 24, 2025 00:15 — with GitHub Actions Active
@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 9:56am

@BYK BYK requested a review from betegon December 24, 2025 00:22
Co-authored-by: burak.kaya <burak.kaya@sentry.io>
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.

great feat!

Image Image

@betegon betegon marked this pull request as ready for review December 24, 2025 10:59
@betegon betegon merged commit 9a78b22 into main Dec 24, 2025
20 checks passed
@betegon betegon deleted the cursor/event-origin-badges-ui-2369 branch December 24, 2025 11:28
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