Skip to content

Commit 10fba2b

Browse files
authored
chore(autofix): Warn in onboarding about missing github integration (#94243)
If the user doesn't have a github integration, put a warning before they start a trial or go to checkout. (sorry, screenshot has outdated copy) <img width="721" alt="Screenshot 2025-06-24 at 3 35 48 PM" src="https://github.com/user-attachments/assets/c24baf6b-9de1-44b0-8336-2164de9da056" />
1 parent 90f5cdf commit 10fba2b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

static/gsApp/components/ai/AiSetupDataConsent.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import autofixSetupImg from 'sentry-images/features/autofix-setup.svg';
55

66
import {addSuccessMessage} from 'sentry/actionCreators/indicator';
77
import {promptsUpdate} from 'sentry/actionCreators/prompts';
8+
import {Alert} from 'sentry/components/core/alert';
89
import {Button} from 'sentry/components/core/button';
910
import {Flex} from 'sentry/components/core/layout';
1011
import {useAutofixSetup} from 'sentry/components/events/autofix/useAutofixSetup';
@@ -58,6 +59,12 @@ function AiSetupDataConsent({groupId}: AiSetupDataConsentProps) {
5859

5960
const userHasBillingAccess = organization.access.includes('org:billing');
6061

62+
const warnAboutGithubIntegration =
63+
!autofixSetupData?.integration.ok &&
64+
shouldShowBilling &&
65+
!isTouchCustomer &&
66+
!hasSeerButNeedsPayg;
67+
6168
const autofixAcknowledgeMutation = useMutation({
6269
mutationFn: () => {
6370
return promptsUpdate(api, {
@@ -287,6 +294,13 @@ function AiSetupDataConsent({groupId}: AiSetupDataConsentProps) {
287294
</LegalText>
288295
)}
289296
</SingleCard>
297+
{warnAboutGithubIntegration && (
298+
<Alert type="warning">
299+
{t(
300+
'Seer currently works best with GitHub repositories, but support for other providers is coming soon. Either way, you can still use Seer to triage and dive into issues.'
301+
)}
302+
</Alert>
303+
)}
290304
</ConsentItemsContainer>
291305
);
292306
}

0 commit comments

Comments
 (0)