feat(releases): Add project picker to releases drawer#91129
Conversation
If URL does not contain a project id (`rdReleaseProjectId`), then show a project picker before showing release details.
| await waitFor(() => { | ||
| expect(screen.queryByTestId('loading-indicator')).not.toBeInTheDocument(); | ||
| }); | ||
|
|
||
| expect(screen.getByText('Details')).toBeInTheDocument(); |
There was a problem hiding this comment.
| await waitFor(() => { | |
| expect(screen.queryByTestId('loading-indicator')).not.toBeInTheDocument(); | |
| }); | |
| expect(screen.getByText('Details')).toBeInTheDocument(); | |
| expect(await screen.findByText('Details')).toBeInTheDocument(); |
does the test work if we await the text instead?
| } | ||
| }} | ||
| isClearable={false} | ||
| styles={{container: (base: any) => ({...base, marginTop: space(2)})}} |
There was a problem hiding this comment.
😭 i don't think we can style it otherwise (+ cursor did this)
| label: ( | ||
| <Link | ||
| to={{ | ||
| query: locationQueryWithoutRelease, |
There was a problem hiding this comment.
Screen.Recording.2025-05-07.at.1.26.50.PM.mov
this crumb breaks for me, coming from the table on session health
There was a problem hiding this comment.
url of broken drawer is https://xxx.sentry.dev/insights/mobile/sessions/?rd=show&statsPeriod=90d
There was a problem hiding this comment.
the crumb works ok if the entrypoint is the release bubbles though!
There was a problem hiding this comment.
Ah good find, it requires start/end dates to show the Releases list
…eases-details-drawer
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
If URL does not contain a project id (`rdReleaseProjectId`), then show a project picker before showing release details (if the release belongs to multiple projects). <img width="958" alt="image" src="https://github.com/user-attachments/assets/e2dbcda9-9e9f-425f-8f97-d4f2ab95e7a8" /> With project selected, we show all projects in the header and allow user to switch projects by clicking on a badge: <img width="958" alt="image" src="https://github.com/user-attachments/assets/b1456c0e-31e7-412e-a5b3-9898dd00d3a5" />

If URL does not contain a project id (
rdReleaseProjectId), then show a project picker before showing release details (if the release belongs to multiple projects).With project selected, we show all projects in the header and allow user to switch projects by clicking on a badge: