Skip to content

Commit bf6d1b5

Browse files
authored
fix(seer-ux): Remove confusing 'Try Seer' guard (#94768)
Removes the confusing "Try Seer" user-level guard and only rely on the org-level guard. This includes in the drawer & in the settings page Removes: ![CleanShot 2025-07-02 at 14 26 17@2x](https://github.com/user-attachments/assets/e0b774a0-975b-4e53-b3ee-be27c8d67e7d)
1 parent be369ab commit bf6d1b5

File tree

8 files changed

+7
-19
lines changed

8 files changed

+7
-19
lines changed

static/app/components/events/autofix/useAutofixSetup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function useAutofixSetup(
5959
...queryData,
6060
canStartAutofix: Boolean(
6161
queryData.data?.integration.ok &&
62-
queryData.data?.setupAcknowledgement.userHasAcknowledged
62+
queryData.data?.setupAcknowledgement.orgHasAcknowledged
6363
),
6464
canCreatePullRequests: Boolean(queryData.data?.githubWriteIntegration?.ok),
6565
hasAutofixQuota: Boolean(queryData.data?.billing?.hasAutofixQuota),

static/app/components/events/autofix/useOrganizationSeerSetup.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ export function useOrganizationSeerSetup(
4848
orgHasAcknowledged: Boolean(
4949
queryData.data?.setupAcknowledgement?.orgHasAcknowledged
5050
),
51-
userHasAcknowledged: Boolean(
52-
queryData.data?.setupAcknowledgement?.userHasAcknowledged
53-
),
5451
},
5552
};
5653
}

static/app/views/issueDetails/streamline/hooks/useAiConfig.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ interface AiConfigResult {
1313
hasResources: boolean;
1414
hasSummary: boolean;
1515
isAutofixSetupLoading: boolean;
16-
needsGenAiAcknowledgement: boolean;
1716
orgNeedsGenAiAcknowledgement: boolean;
1817
refetchAutofixSetup: () => void;
1918
}
@@ -44,11 +43,6 @@ export const useAiConfig = (group: Group, project: Project): AiConfigResult => {
4443
const hasAutofix = isAutofixEnabled && areAiFeaturesAllowed && !isSampleError;
4544
const hasGithubIntegration = !!autofixSetupData?.integration.ok;
4645

47-
const needsGenAiAcknowledgement =
48-
!autofixSetupData?.setupAcknowledgement.userHasAcknowledged &&
49-
(isSummaryEnabled || isAutofixEnabled) &&
50-
areAiFeaturesAllowed;
51-
5246
const orgNeedsGenAiAcknowledgement =
5347
!autofixSetupData?.setupAcknowledgement.orgHasAcknowledged &&
5448
(isSummaryEnabled || isAutofixEnabled) &&
@@ -57,7 +51,6 @@ export const useAiConfig = (group: Group, project: Project): AiConfigResult => {
5751
return {
5852
hasSummary,
5953
hasAutofix,
60-
needsGenAiAcknowledgement,
6154
orgNeedsGenAiAcknowledgement,
6255
hasResources,
6356
isAutofixSetupLoading,

static/app/views/issueDetails/streamline/sidebar/seerDrawer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export function SeerDrawer({group, project, event}: SeerDrawerProps) {
189189
}
190190

191191
const showWelcomeScreen =
192-
aiConfig.needsGenAiAcknowledgement ||
192+
aiConfig.orgNeedsGenAiAcknowledgement ||
193193
(!aiConfig.hasAutofixQuota && organization.features.includes('seer-billing'));
194194

195195
return (
@@ -245,7 +245,7 @@ export function SeerDrawer({group, project, event}: SeerDrawerProps) {
245245
size="sm"
246246
/>
247247
</Flex>
248-
{!aiConfig.needsGenAiAcknowledgement && (
248+
{!aiConfig.orgNeedsGenAiAcknowledgement && (
249249
<ButtonBarWrapper data-test-id="seer-button-bar">
250250
<ButtonBar gap={1}>
251251
<Feature features={['organizations:autofix-seer-preferences']}>

static/app/views/issueDetails/streamline/sidebar/seerSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ export default function SeerSection({
8787
}
8888

8989
const showCtaButton =
90-
aiConfig.needsGenAiAcknowledgement ||
90+
aiConfig.orgNeedsGenAiAcknowledgement ||
9191
aiConfig.hasAutofix ||
9292
(aiConfig.hasSummary && aiConfig.hasResources);
9393

9494
const onlyHasResources =
9595
issueTypeDoesntHaveSeer ||
96-
(!aiConfig.needsGenAiAcknowledgement &&
96+
(!aiConfig.orgNeedsGenAiAcknowledgement &&
9797
!aiConfig.hasSummary &&
9898
!aiConfig.hasAutofix &&
9999
aiConfig.hasResources);

static/app/views/issueDetails/streamline/sidebar/seerSectionCtaButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function SeerSectionCtaButton({
127127
};
128128

129129
const showCtaButton =
130-
aiConfig.needsGenAiAcknowledgement ||
130+
aiConfig.orgNeedsGenAiAcknowledgement ||
131131
aiConfig.hasAutofix ||
132132
(aiConfig.hasSummary && aiConfig.hasResources);
133133
const isButtonLoading =

static/app/views/settings/projectSeer/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ function ProjectSeer({project}: ProjectSeerProps) {
245245
const {setupAcknowledgement, billing, isLoading} = useOrganizationSeerSetup();
246246

247247
const needsSetup =
248-
!setupAcknowledgement.userHasAcknowledged ||
249248
!setupAcknowledgement.orgHasAcknowledged ||
250249
(!billing.hasAutofixQuota && organization.features.includes('seer-billing'));
251250

static/gsApp/views/seerAutomation/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ function SeerAutomationRoot() {
4747
}
4848

4949
// Check if setup is needed
50-
const needsUserAcknowledgement = !setupAcknowledgement.userHasAcknowledged;
5150
const needsOrgAcknowledgement = !setupAcknowledgement.orgHasAcknowledged;
5251
const needsBilling =
5352
!billing.hasAutofixQuota && organization.features.includes('seer-billing');
5453

55-
const needsSetup = needsUserAcknowledgement || needsOrgAcknowledgement || needsBilling;
54+
const needsSetup = needsOrgAcknowledgement || needsBilling;
5655

5756
// Show setup screen if needed
5857
if (needsSetup) {

0 commit comments

Comments
 (0)