Skip to content

Commit f58f315

Browse files
trillvilleroagaItalyPaleAlegetsantry[bot]
authored andcommitted
chore(seer): update seer references (#91642)
rename all autofix refs to seer --------- Co-authored-by: Rohan Agarwal <47861399+roaga@users.noreply.github.com> Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com> Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent f889713 commit f58f315

24 files changed

+101
-90
lines changed

static/app/components/events/autofix/autofixChanges.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe('AutofixChanges', () => {
9191
);
9292

9393
expect(
94-
screen.getByText('Autofix had trouble applying its code changes.')
94+
screen.getByText('Seer had trouble applying its code changes.')
9595
).toBeInTheDocument();
9696
});
9797

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export function AutofixChanges({
231231
<MarkdownAlert
232232
text={
233233
step.termination_reason ||
234-
t('Autofix had trouble applying its code changes.')
234+
t('Seer had trouble applying its code changes.')
235235
}
236236
/>
237237
</Alert.Container>
@@ -344,7 +344,7 @@ export function AutofixChanges({
344344
: null
345345
}
346346
isAgentComment
347-
blockName={t('Autofix is uncertain of the code changes...')}
347+
blockName={t('Seer is uncertain of the code changes...')}
348348
/>
349349
)}
350350
</AnimatePresence>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function AutofixFeedback() {
1818
size="xs"
1919
onClick={() =>
2020
openForm({
21-
messagePlaceholder: t('How can we make Autofix better for you?'),
21+
messagePlaceholder: t('How can we make Seer better for you?'),
2222
tags: {
2323
['feedback.source']: 'issue_details_ai_autofix',
2424
['feedback.owner']: 'ml-ai',

static/app/components/events/autofix/autofixInsightCards.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ describe('AutofixInsightCards', () => {
181181

182182
await waitFor(() => {
183183
expect(addErrorMessage).toHaveBeenCalledWith(
184-
'Something went wrong when sending Autofix your message.'
184+
'Something went wrong when sending Seer your message.'
185185
);
186186
});
187187
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ function useUpdateInsightCard({groupId, runId}: {groupId: string; runId: string}
533533
addSuccessMessage(t('Rethinking this...'));
534534
},
535535
onError: () => {
536-
addErrorMessage(t('Something went wrong when sending Autofix your message.'));
536+
addErrorMessage(t('Something went wrong when sending Seer your message.'));
537537
},
538538
});
539539
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function AutofixInsightSources({sources, title, codeUrls}: AutofixInsightSources
280280
data-overlay="true"
281281
>
282282
<OverlayHeader>
283-
<OverlayTitle>{t("Autofix's Thoughts")}</OverlayTitle>
283+
<OverlayTitle>{t("Seer's Thoughts")}</OverlayTitle>
284284
{title && <InsightTitle>"{title.trim()}"</InsightTitle>}
285285
</OverlayHeader>
286286
<OverlayContent>

static/app/components/events/autofix/autofixOutputStream.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('AutofixOutputStream', () => {
120120

121121
await waitFor(() => {
122122
expect(addErrorMessage).toHaveBeenCalledWith(
123-
'Something went wrong when sending Autofix your message.'
123+
'Something went wrong when sending Seer your message.'
124124
);
125125
});
126126
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export function AutofixOutputStream({
148148
addSuccessMessage('Thanks for the input.');
149149
},
150150
onError: () => {
151-
addErrorMessage(t('Something went wrong when sending Autofix your message.'));
151+
addErrorMessage(t('Something went wrong when sending Seer your message.'));
152152
},
153153
});
154154

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function AutofixRootCauseDisplay({
393393
: null
394394
}
395395
isAgentComment
396-
blockName={t('Autofix is uncertain of the root cause...')}
396+
blockName={t('Seer is uncertain of the root cause...')}
397397
/>
398398
)}
399399
</AnimatePresence>

static/app/components/events/autofix/autofixSetupWriteAccessModal.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('AutofixSetupWriteAccessModal', function () {
5353
expect(screen.getByText('getsentry/seer')).toBeInTheDocument();
5454

5555
expect(
56-
screen.getByRole('button', {name: 'Install the Autofix GitHub App'})
56+
screen.getByRole('button', {name: 'Install the Seer GitHub App'})
5757
).toHaveAttribute('href', 'https://github.com/apps/sentry-autofix/installations/new');
5858
});
5959

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function Content({groupId, closeModal}: {closeModal: () => void; groupId: string
6060
<Fragment>
6161
<p>
6262
{tct(
63-
'In order to create pull requests, install and grant write access to the [link:Sentry Autofix GitHub App] for the following repositories:',
63+
'In order to create pull requests, install and grant write access to the [link:Sentry Seer GitHub App] for the following repositories:',
6464
{
6565
link: (
6666
<ExternalLink
@@ -83,7 +83,7 @@ function Content({groupId, closeModal}: {closeModal: () => void; groupId: string
8383
<Fragment>
8484
<p>
8585
{tct(
86-
'In order to create pull requests, install and grant write access to the [link:Sentry Autofix GitHub App] for the relevant repositories.',
86+
'In order to create pull requests, install and grant write access to the [link:Sentry Seer GitHub App] for the relevant repositories.',
8787
{
8888
link: (
8989
<ExternalLink
@@ -109,7 +109,7 @@ export function AutofixSetupWriteAccessModal({
109109
return (
110110
<div id="autofix-write-access-modal">
111111
<Header closeButton>
112-
<h3>{t('Allow Autofix to Make Pull Requests')}</h3>
112+
<h3>{t('Allow Seer to Make Pull Requests')}</h3>
113113
</Header>
114114
<Body>
115115
<Content groupId={groupId} closeModal={closeModal} />
@@ -123,7 +123,7 @@ export function AutofixSetupWriteAccessModal({
123123
external
124124
priority="primary"
125125
>
126-
{t('Install the Autofix GitHub App')}
126+
{t('Install the Seer GitHub App')}
127127
</LinkButton>
128128
</ButtonBar>
129129
</Footer>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,11 @@ function AutofixSolutionDisplay({
434434
title={
435435
hasNoRepos
436436
? t(
437-
'You need to set up the GitHub integration and configure repository access for Autofix to write code for you.'
437+
'You need to set up the GitHub integration and configure repository access for Seer to write code for you.'
438438
)
439439
: cantReadRepos
440440
? t(
441-
"We can't access any of your repos. Check your GitHub integration and configure repository access for Autofix to write code for you."
441+
"We can't access any of your repos. Check your GitHub integration and configure repository access for Seer to write code for you."
442442
)
443443
: undefined
444444
}
@@ -472,7 +472,7 @@ function AutofixSolutionDisplay({
472472
: null
473473
}
474474
isAgentComment
475-
blockName={t('Autofix is uncertain of the solution...')}
475+
blockName={t('Seer is uncertain of the solution...')}
476476
/>
477477
)}
478478
</AnimatePresence>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function AutofixStartBox({onSend, groupId}: AutofixStartBoxProps) {
9595
}
9696
analyticsParams={{group_id: groupId}}
9797
>
98-
{t('Start Autofix')}
98+
{t('Start Seer')}
9999
</StyledButton>
100100
</InputWrapper>
101101
</Container>

static/app/components/events/autofix/autofixSteps.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('AutofixSteps', () => {
126126
render(<AutofixSteps {...propsWithErroredStep} />);
127127
expect(
128128
await screen.findByText(
129-
'Autofix encountered an error. Restarting step from scratch...'
129+
'Seer encountered an error. Restarting step from scratch...'
130130
)
131131
).toBeInTheDocument();
132132
});

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Step({
7979
<Fragment>
8080
{hasErroredStepBefore && hasStepAbove && (
8181
<StepMessage>
82-
{t('Autofix encountered an error. Restarting step from scratch...')}
82+
{t('Seer encountered an error. Restarting step from scratch...')}
8383
</StepMessage>
8484
)}
8585
{step.type === AutofixStepType.DEFAULT && (
@@ -174,19 +174,19 @@ export function AutofixSteps({data, groupId, runId}: AutofixStepsProps) {
174174
errorMessage.toLowerCase().includes('tokens')
175175
) {
176176
customErrorMessage = t(
177-
"Autofix worked so hard that it couldn't fit all its findings in its own memory. Please try again."
177+
"Seer worked so hard that it couldn't fit all its findings in its own memory. Please try again."
178178
);
179179
} else if (errorMessage.toLowerCase().includes('iterations')) {
180180
customErrorMessage = t(
181-
'Autofix was taking a ton of iterations, so we pulled the plug out of fear it might go rogue. Please try again.'
181+
'Seer was taking a ton of iterations, so we pulled the plug out of fear it might go rogue. Please try again.'
182182
);
183183
} else if (errorMessage.toLowerCase().includes('timeout')) {
184184
customErrorMessage = t(
185-
'Autofix was taking way too long, so we pulled the plug to put it out of its misery. Please try again.'
185+
'Seer was taking way too long, so we pulled the plug to turn it off and on again. Please try again.'
186186
);
187187
} else {
188188
customErrorMessage = t(
189-
"Oops, Autofix went kaput. We've dispatched Autofix to fix Autofix. In the meantime, try again?"
189+
"Oops, Seer went kaput. We've dispatched Seer to fix Seer. In the meantime, try again?"
190190
);
191191
}
192192

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

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ describe('SeerDrawer', () => {
163163

164164
expect(screen.getByText(mockEvent.id)).toBeInTheDocument();
165165

166-
expect(screen.getByText('Autofix')).toBeInTheDocument();
166+
expect(screen.getByRole('heading', {name: 'Seer'})).toBeInTheDocument();
167167

168168
expect(screen.getByTestId('ai-setup-data-consent')).toBeInTheDocument();
169169
});
170170

171-
it('renders initial state with Start Autofix button', async () => {
171+
it('renders initial state with Start Seer button', async () => {
172172
MockApiClient.addMockResponse({
173173
url: `/organizations/${mockProject.organization.slug}/issues/${mockGroup.id}/autofix/`,
174174
body: {autofix: null},
@@ -184,10 +184,10 @@ describe('SeerDrawer', () => {
184184
screen.queryByTestId('ai-setup-loading-indicator')
185185
);
186186

187-
expect(screen.getByText('Autofix')).toBeInTheDocument();
187+
expect(screen.getByRole('heading', {name: 'Seer'})).toBeInTheDocument();
188188

189-
// Verify the Start Autofix button is available
190-
const startButton = screen.getByRole('button', {name: 'Start Autofix'});
189+
// Verify the Start Seer button is available
190+
const startButton = screen.getByRole('button', {name: 'Start Seer'});
191191
expect(startButton).toBeInTheDocument();
192192
});
193193

@@ -219,11 +219,11 @@ describe('SeerDrawer', () => {
219219
expect(screen.getByText('Set Up the GitHub Integration')).toBeInTheDocument();
220220
expect(screen.getByText('Set Up Now')).toBeInTheDocument();
221221

222-
const startButton = screen.getByRole('button', {name: 'Start Autofix'});
222+
const startButton = screen.getByRole('button', {name: 'Start Seer'});
223223
expect(startButton).toBeInTheDocument();
224224
});
225225

226-
it('triggers autofix on clicking the Start button', async () => {
226+
it('triggers Seer on clicking the Start button', async () => {
227227
MockApiClient.addMockResponse({
228228
url: `/organizations/${mockProject.organization.slug}/issues/${mockGroup.id}/autofix/`,
229229
method: 'POST',
@@ -245,7 +245,7 @@ describe('SeerDrawer', () => {
245245
screen.queryByTestId('ai-setup-loading-indicator')
246246
);
247247

248-
const startButton = screen.getByRole('button', {name: 'Start Autofix'});
248+
const startButton = screen.getByRole('button', {name: 'Start Seer'});
249249
await userEvent.click(startButton);
250250

251251
expect(await screen.findByRole('button', {name: 'Start Over'})).toBeInTheDocument();
@@ -318,7 +318,7 @@ describe('SeerDrawer', () => {
318318
);
319319

320320
// The feedback button should be visible, but not the Start Over button
321-
expect(screen.getByTestId('autofix-button-bar')).toBeInTheDocument();
321+
expect(screen.getByTestId('seer-button-bar')).toBeInTheDocument();
322322
expect(screen.queryByRole('button', {name: 'Start Over'})).not.toBeInTheDocument();
323323

324324
// Restore the original implementation
@@ -352,7 +352,7 @@ describe('SeerDrawer', () => {
352352
);
353353

354354
// Both buttons should be visible, but Start Over should be disabled
355-
expect(screen.getByTestId('autofix-button-bar')).toBeInTheDocument();
355+
expect(screen.getByTestId('seer-button-bar')).toBeInTheDocument();
356356
const startOverButton = screen.getByRole('button', {name: 'Start Over'});
357357
expect(startOverButton).toBeInTheDocument();
358358
expect(startOverButton).toBeDisabled();
@@ -385,7 +385,7 @@ describe('SeerDrawer', () => {
385385
);
386386

387387
// Both buttons should be visible, and Start Over should be enabled
388-
expect(screen.getByTestId('autofix-button-bar')).toBeInTheDocument();
388+
expect(screen.getByTestId('seer-button-bar')).toBeInTheDocument();
389389
const startOverButton = screen.getByRole('button', {name: 'Start Over'});
390390
expect(startOverButton).toBeInTheDocument();
391391
expect(startOverButton).toBeEnabled();
@@ -401,6 +401,10 @@ describe('SeerDrawer', () => {
401401
organization,
402402
});
403403

404+
await waitForElementToBeRemoved(() =>
405+
screen.queryByTestId('ai-setup-loading-indicator')
406+
);
407+
404408
expect(await screen.findByRole('button', {name: 'Start Over'})).toBeInTheDocument();
405409
});
406410

@@ -414,10 +418,12 @@ describe('SeerDrawer', () => {
414418
organization,
415419
});
416420

421+
await waitForElementToBeRemoved(() =>
422+
screen.queryByTestId('ai-setup-loading-indicator')
423+
);
424+
417425
expect(await screen.findByRole('button', {name: 'Start Over'})).toBeInTheDocument();
418-
expect(
419-
await screen.findByRole('button', {name: 'Start Autofix'})
420-
).toBeInTheDocument();
426+
expect(await screen.findByRole('button', {name: 'Start Seer'})).toBeInTheDocument();
421427
expect(screen.getByRole('button', {name: 'Start Over'})).toBeDisabled();
422428
});
423429

@@ -431,12 +437,16 @@ describe('SeerDrawer', () => {
431437
organization,
432438
});
433439

440+
await waitForElementToBeRemoved(() =>
441+
screen.queryByTestId('ai-setup-loading-indicator')
442+
);
443+
434444
const startOverButton = await screen.findByRole('button', {name: 'Start Over'});
435445
expect(startOverButton).toBeInTheDocument();
436446
await userEvent.click(startOverButton);
437447

438448
await waitFor(() => {
439-
expect(screen.getByRole('button', {name: 'Start Autofix'})).toBeInTheDocument();
449+
expect(screen.getByRole('button', {name: 'Start Seer'})).toBeInTheDocument();
440450
});
441451
});
442452

@@ -471,7 +481,7 @@ describe('SeerDrawer', () => {
471481
screen.queryByTestId('ai-setup-loading-indicator')
472482
);
473483

474-
expect(screen.getByText('Autofix')).toBeInTheDocument();
484+
expect(screen.getByRole('heading', {name: 'Seer'})).toBeInTheDocument();
475485

476486
// Since "Install the GitHub Integration" text isn't found, let's check for
477487
// the "Set Up the GitHub Integration" text which is what the component is actually showing
@@ -505,7 +515,7 @@ describe('SeerDrawer', () => {
505515
);
506516

507517
// We don't expect to see any notice about repositories since all are readable
508-
expect(screen.queryByText(/Autofix can't access/)).not.toBeInTheDocument();
518+
expect(screen.queryByText(/Seer can't access/)).not.toBeInTheDocument();
509519
});
510520

511521
it('renders warning for unreadable GitHub repository', async () => {
@@ -533,7 +543,7 @@ describe('SeerDrawer', () => {
533543
screen.queryByTestId('ai-setup-loading-indicator')
534544
);
535545

536-
expect(screen.getByText(/Autofix can't access the/)).toBeInTheDocument();
546+
expect(screen.getByText(/Seer can't access the/)).toBeInTheDocument();
537547
expect(screen.getByText('org/repo')).toBeInTheDocument();
538548
expect(screen.getByText(/GitHub integration/)).toBeInTheDocument();
539549
});
@@ -563,7 +573,7 @@ describe('SeerDrawer', () => {
563573
screen.queryByTestId('ai-setup-loading-indicator')
564574
);
565575

566-
expect(screen.getByText(/Autofix can't access the/)).toBeInTheDocument();
576+
expect(screen.getByText(/Seer can't access the/)).toBeInTheDocument();
567577
expect(screen.getByText('org/gitlab-repo')).toBeInTheDocument();
568578
expect(
569579
screen.getByText(/It currently only supports GitHub repositories/)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function SeerDrawer({group, project, event}: SeerDrawerProps) {
186186
</SeerDrawerHeader>
187187
<SeerDrawerNavigator>
188188
<Flex align="center" gap={space(1)}>
189-
<Header>{t('Autofix')}</Header>
189+
<Header>{t('Seer')}</Header>
190190
<FeatureBadge
191191
type="beta"
192192
tooltipProps={{
@@ -229,14 +229,14 @@ export function SeerDrawer({group, project, event}: SeerDrawerProps) {
229229
/>
230230
</Flex>
231231
{!aiConfig.needsGenAiAcknowledgement && (
232-
<ButtonBarWrapper data-test-id="autofix-button-bar">
232+
<ButtonBarWrapper data-test-id="seer-button-bar">
233233
<ButtonBar gap={1}>
234234
<Feature features={['organizations:autofix-seer-preferences']}>
235235
<LinkButton
236236
to={`/settings/${organization.slug}/projects/${project.slug}/seer/`}
237237
size="xs"
238-
title={t('Project Settings for Autofix')}
239-
aria-label={t('Project Settings for Autofix')}
238+
title={t('Project Settings for Seer')}
239+
aria-label={t('Project Settings for Seer')}
240240
icon={<IconSettings />}
241241
/>
242242
</Feature>

0 commit comments

Comments
 (0)