Skip to content

feat(issues): Simplify shared issue event rendering#111769

Merged
scttcper merged 8 commits intomasterfrom
scttcper/feat-shared-event-content
Mar 30, 2026
Merged

feat(issues): Simplify shared issue event rendering#111769
scttcper merged 8 commits intomasterfrom
scttcper/feat-shared-event-content

Conversation

@scttcper
Copy link
Copy Markdown
Member

@scttcper scttcper commented Mar 28, 2026

The shared/public issue view (/share/issue/:id) used generic event components that were designed for the full issue details page. These components carried dead code paths, rendered sections for data the backend never sends, and pulled in heavy dependencies like the issue details context.

This PR co-locates the rendering logic with the shared view, only renders what SharedEventSerializer actually provides, and aligns the SharedViewOrganization type with the backend response.

Replace the generic EventEntries component with a focused
SharedEventContent component co-located with its only consumer,
the shared issue details page.

The old component had an isShare prop that was always true in
practice, dead code branches for non-share rendering, and rendered
components (EventContexts, EventSdk, EventDevice, etc.) for data
the SharedEventSerializer never sends. The new component only
renders what the backend actually provides: entries, evidence,
packages, and user feedback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 28, 2026
Update SharedViewOrganization to match what SharedProjectSerializer
actually provides: replace id (never sent) with name (always sent).
Keep features optional for OrganizationContext compatibility.

Also narrow SharedEventContent to accept only SharedViewOrganization,
use the type explicitly in index.tsx, cast for OrganizationContext,
and remove the now-unused isNotSharedOrganization utility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EventEntry was only used by the shared issue view. Inline its switch
logic as SharedEventEntry, drop dead branches (DEBUGMETA, SPANS),
replace the heavy InterimSection error boundary fallback with
ErrorBoundary mini, strengthen props by making group required, and
use core layout components for the empty state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@scttcper scttcper changed the title feat(issues): Replace EventEntries with SharedEventContent for shared issue view ref(shared-issues): Simplify shared issue event rendering Mar 30, 2026
@scttcper scttcper changed the title ref(shared-issues): Simplify shared issue event rendering feat(issues): Simplify shared issue event rendering Mar 30, 2026
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@scttcper scttcper marked this pull request as ready for review March 30, 2026 17:00
@scttcper scttcper requested a review from a team as a code owner March 30, 2026 17:00
@scttcper scttcper requested review from a team March 30, 2026 17:00
@scttcper scttcper enabled auto-merge (squash) March 30, 2026 18:34
@scttcper scttcper merged commit ebfe30a into master Mar 30, 2026
64 of 65 checks passed
@scttcper scttcper deleted the scttcper/feat-shared-event-content branch March 30, 2026 18:51
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants