Skip to content

ref(alerts): drop SystemAlerts from the init queue component map#115223

Merged
evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/ref-alerts-drop-systemalerts-from-the-init-queue-component-map
May 11, 2026
Merged

ref(alerts): drop SystemAlerts from the init queue component map#115223
evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/ref-alerts-drop-systemalerts-from-the-init-queue-component-map

Conversation

@evanpurkhiser
Copy link
Copy Markdown
Member

@evanpurkhiser evanpurkhiser commented May 8, 2026

The Django template partial/alerts.html no longer pushes a SystemAlerts renderReact config onto window.__onSentryInit (see #115222). Drop the corresponding frontend entry from processInitQueue's COMPONENT_MAP, the SentryInitRenderReactComponent enum, and the now-orphaned test.

The standalone <SystemAlerts> mount has been dead plumbing since the React/Reflux era began in 2015 — see the linked backend PR for the full history trek. Every AlertStore producer lives inside the SPA's <App> tree, which renders its own <SystemAlerts>.

SystemAlerts itself stays — only its registration in the init queue is removed. The component continues to be mounted in-tree by appBodyContent.tsx and organizationLayout/index.tsx.

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner May 8, 2026 19:58
@evanpurkhiser evanpurkhiser requested review from JonasBa, billyvg and markstory and removed request for a team May 8, 2026 19:58
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.46%

@JonasBa
Copy link
Copy Markdown
Member

JonasBa commented May 11, 2026

@evanpurkhiser 🧼 thank you!

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-alerts-drop-systemalerts-from-the-init-queue-component-map branch from 328fcee to 3287904 Compare May 11, 2026 16:35
Backend partial/alerts.html no longer pushes a SystemAlerts renderReact
config (see prior commit). Remove the matching frontend entry from
COMPONENT_MAP, the SentryInitRenderReactComponent enum, and the
corresponding test.
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-alerts-drop-systemalerts-from-the-init-queue-component-map branch from 3287904 to 872c5d9 Compare May 11, 2026 17:16
@evanpurkhiser evanpurkhiser enabled auto-merge (squash) May 11, 2026 17:19
@evanpurkhiser evanpurkhiser merged commit 942f6e9 into master May 11, 2026
75 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-alerts-drop-systemalerts-from-the-init-queue-component-map branch May 11, 2026 17:23
dashed pushed a commit that referenced this pull request May 11, 2026
…5223)

The Django template `partial/alerts.html` no longer pushes a
`SystemAlerts` `renderReact` config onto `window.__onSentryInit` (see
#115222). Drop the corresponding frontend entry from
`processInitQueue`'s `COMPONENT_MAP`, the
`SentryInitRenderReactComponent` enum, and the now-orphaned test.

The standalone `<SystemAlerts>` mount has been dead plumbing since the
React/Reflux era began in 2015 — see the linked backend PR for the full
history trek. Every `AlertStore` producer lives inside the SPA's `<App>`
tree, which renders its own `<SystemAlerts>`.

`SystemAlerts` itself stays — only its registration in the init queue is
removed. The component continues to be mounted in-tree by
`appBodyContent.tsx` and `organizationLayout/index.tsx`.
nikkikapadia pushed a commit that referenced this pull request May 12, 2026
…5223)

The Django template `partial/alerts.html` no longer pushes a
`SystemAlerts` `renderReact` config onto `window.__onSentryInit` (see
#115222). Drop the corresponding frontend entry from
`processInitQueue`'s `COMPONENT_MAP`, the
`SentryInitRenderReactComponent` enum, and the now-orphaned test.

The standalone `<SystemAlerts>` mount has been dead plumbing since the
React/Reflux era began in 2015 — see the linked backend PR for the full
history trek. Every `AlertStore` producer lives inside the SPA's `<App>`
tree, which renders its own `<SystemAlerts>`.

`SystemAlerts` itself stays — only its registration in the init queue is
removed. The component continues to be mounted in-tree by
`appBodyContent.tsx` and `organizationLayout/index.tsx`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants