feat(console): Update request console sdk access modal and button#105612
Conversation
…ons' into alexsohn/feat/add-outbox-generation-for-Identity
…ons' into alexsohn/feat/add-outbox-generation-for-Identity
…alexsohn/feat/add-github-identity-and-provider-factory-for-testing
…ons' into alexsohn/feat/add-outbox-generation-for-Identity
…alexsohn/feat/add-github-identity-and-provider-factory-for-testing
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
…ons' into alexsohn/feat/add-outbox-generation-for-Identity
…alexsohn/feat/add-github-identity-and-provider-factory-for-testing
410a905 to
98bbe7e
Compare
|
🚨 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 |
I like the new update. PR looks good to me! thanks for improving this flow 🚀 |
…ss-button-component
|
sorry hybridcloud peeps, it seems like the commits from the branch that this PR was merging into makes it so it pings yall for this frontend change 🙇 |
The projectId prop is only used for analytics tracking and not all contexts have a project (e.g., org-settings page). This makes it optional and conditionally spreads it in RequestSdkAccessButton.
…l after OAuth When returning from GitHub OAuth flow, the user identities query had stale cached data due to staleTime: Infinity. This caused the modal to incorrectly show the "link GitHub" prompt even after successful auth. Also removes the conditional `enabled` flag from the query and simplifies the modal header text.
|
…ss-button-component
Previously the console sdk access modal looked like this:
This would create a user feedback that will land in a slack channel, and that would need to be manually put into SaC repo.
This PR changes the modal to the following:
When user has no GitHub identity linked to their Sentry account:

When user has a GitHub identity linked to their Sentry account:

After inviting themselves into a repository:

See this video for what it would look like for the user:
https://github.com/user-attachments/assets/4a682e89-452e-446a-817a-8dcf9db6e781