Skip to content

fix(storybook): Prevent Slot.Consumer error in investigations stories - #123887

Draft
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/investigations-storybook-slot
Draft

fix(storybook): Prevent Slot.Consumer error in investigations stories#123887
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/investigations-storybook-slot

Conversation

@sentry

@sentry sentry Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
The `InvestigationsPage` component uses ``, which is a `Slot.Consumer` for the "title" slot. In the Storybook stories for `InvestigationsPage` (`static/app/views/investigations/index.stories.tsx`), the component was rendered without the necessary `Slot.Provider` in its ancestor tree.

This PR fixes the issue by importing TopBar and wrapping the InvestigationsPage instances in the Storybook stories with <TopBar.Slot.Provider>. This ensures that the Slot.Consumer has the required context, preventing the "<Slot.Consumer> for slot "title" rendered without a <Slot.Provider>" error.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Fixes JAVASCRIPT-39VW

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Story previews

Preview the stories changed in this PR on the Vercel deployment:

Preview deployment: https://sentry-go16vvrn2.sentry.dev

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.

0 participants