diff --git a/static/app/views/issueDetails/streamline/sidebar/seerNotices.spec.tsx b/static/app/views/issueDetails/streamline/sidebar/seerNotices.spec.tsx
index e5e3fe6b742e7c..6b4c7c6ecc35aa 100644
--- a/static/app/views/issueDetails/streamline/sidebar/seerNotices.spec.tsx
+++ b/static/app/views/issueDetails/streamline/sidebar/seerNotices.spec.tsx
@@ -81,7 +81,10 @@ describe('SeerNotices', function () {
it('shows fixability view step if automation is allowed and view not starred', () => {
const project = getProjectWithAutomation('high');
render(, {
- organization,
+ organization: {
+ ...organization,
+ features: ['issue-stream-custom-views', 'trigger-autofix-on-issue-summary'],
+ },
});
expect(screen.getByText('Get Some Quick Wins')).toBeInTheDocument();
expect(screen.getByText('Star Recommended View')).toBeInTheDocument();
@@ -99,7 +102,12 @@ describe('SeerNotices', function () {
});
const project = getProjectWithAutomation('medium');
render(, {
- ...{organization: {...organization, features: []}},
+ ...{
+ organization: {
+ ...organization,
+ features: [],
+ },
+ },
});
// Should not find any step titles
expect(screen.queryByText('Set Up the GitHub Integration')).not.toBeInTheDocument();
diff --git a/static/app/views/issueDetails/streamline/sidebar/seerNotices.tsx b/static/app/views/issueDetails/streamline/sidebar/seerNotices.tsx
index d93de1ad432d39..a568cffd1fba27 100644
--- a/static/app/views/issueDetails/streamline/sidebar/seerNotices.tsx
+++ b/static/app/views/issueDetails/streamline/sidebar/seerNotices.tsx
@@ -97,6 +97,9 @@ export function SeerNotices({groupId, hasGithubIntegration, project}: SeerNotice
const isAutomationAllowed = organization.features.includes(
'trigger-autofix-on-issue-summary'
);
+ const isStarredViewAllowed = organization.features.includes(
+ 'issue-stream-custom-views'
+ );
const unreadableRepos = repos.filter(repo => repo.is_readable === false);
const githubRepos = unreadableRepos.filter(repo => repo.provider.includes('github'));
@@ -113,10 +116,13 @@ export function SeerNotices({groupId, hasGithubIntegration, project}: SeerNotice
!codeMappingRepos?.length &&
!isLoadingPreferences;
const needsAutomation =
- project.autofixAutomationTuning === 'off' && isAutomationAllowed;
+ (project.autofixAutomationTuning === 'off' ||
+ project.autofixAutomationTuning === undefined) &&
+ isAutomationAllowed;
const needsFixabilityView =
!views.some(view => view.query.includes(FieldKey.ISSUE_SEER_ACTIONABILITY)) &&
- isAutomationAllowed;
+ isAutomationAllowed &&
+ isStarredViewAllowed;
// Warning conditions
const hasMultipleUnreadableRepos = unreadableRepos.length > 1;
@@ -300,7 +306,7 @@ export function SeerNotices({groupId, hasGithubIntegration, project}: SeerNotice
)}
{/* Step 4: Fixability View */}
- {isAutomationAllowed && (
+ {isAutomationAllowed && isStarredViewAllowed && (