Skip to content

Commit d27deb8

Browse files
authored
chore: Move Seer icons into the main list (#93555)
The icons have little animations, and look like this: https://github.com/user-attachments/assets/388bae67-536a-496e-9c9f-a85025fd4ac8
1 parent 307e4e4 commit d27deb8

File tree

15 files changed

+343
-383
lines changed

15 files changed

+343
-383
lines changed

static/app/components/ai/SeerIcon.tsx

Lines changed: 0 additions & 322 deletions
This file was deleted.

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {useMutation, useQueryClient} from '@tanstack/react-query';
1313
import {motion} from 'framer-motion';
1414

1515
import {addErrorMessage} from 'sentry/actionCreators/indicator';
16-
import {SeerIcon} from 'sentry/components/ai/SeerIcon';
1716
import {UserAvatar} from 'sentry/components/core/avatar/userAvatar';
1817
import {Button} from 'sentry/components/core/button';
1918
import {TextArea} from 'sentry/components/core/textarea';
@@ -22,7 +21,7 @@ import {
2221
useAutofixData,
2322
} from 'sentry/components/events/autofix/useAutofix';
2423
import LoadingIndicator from 'sentry/components/loadingIndicator';
25-
import {IconClose} from 'sentry/icons';
24+
import {IconClose, IconSeer} from 'sentry/icons';
2625
import {t} from 'sentry/locale';
2726
import {space} from 'sentry/styles/space';
2827
import {trackAnalytics} from 'sentry/utils/analytics';
@@ -334,7 +333,7 @@ function AutofixHighlightPopupContent({
334333
<Message key={i} role={message.role}>
335334
{message.role === 'assistant' ? (
336335
<CircularSeerIcon>
337-
<SeerIcon />
336+
<IconSeer />
338337
</CircularSeerIcon>
339338
) : (
340339
<UserAvatar user={currentUser} size={24} />

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import styled from '@emotion/styled';
44
import {AnimatePresence, motion} from 'framer-motion';
55

66
import {addErrorMessage, addSuccessMessage} from 'sentry/actionCreators/indicator';
7-
import {SeerLoadingIcon, SeerWaitingIcon} from 'sentry/components/ai/SeerIcon';
87
import {Button} from 'sentry/components/core/button';
98
import {TextArea} from 'sentry/components/core/textarea';
109
import {Tooltip} from 'sentry/components/core/tooltip';
@@ -16,7 +15,7 @@ import {AutofixStepType} from 'sentry/components/events/autofix/types';
1615
import {makeAutofixQueryKey} from 'sentry/components/events/autofix/useAutofix';
1716
import {useTypingAnimation} from 'sentry/components/events/autofix/useTypingAnimation';
1817
import {getAutofixRunErrorMessage} from 'sentry/components/events/autofix/utils';
19-
import {IconRefresh} from 'sentry/icons';
18+
import {IconRefresh, IconSeer} from 'sentry/icons';
2019
import {t} from 'sentry/locale';
2120
import {space} from 'sentry/styles/space';
2221
import {singleLineRenderer} from 'sentry/utils/marked/marked';
@@ -155,7 +154,7 @@ function ActiveLogDisplay({
155154
return (
156155
<ActiveLogWrapper>
157156
<SeerIconContainer>
158-
<SeerWaitingIcon size="lg" />
157+
<IconSeer variant="waiting" size="lg" />
159158
</SeerIconContainer>
160159
<ActiveLog>{errorMessage}</ActiveLog>
161160
<Button
@@ -187,7 +186,7 @@ function ActiveLogDisplay({
187186
)}
188187
>
189188
<SeerIconContainer ref={seerIconRef}>
190-
<StyledAnimatedSeerIcon size="lg" />
189+
<StyledAnimatedSeerIcon variant="loading" size="lg" />
191190
{seerIconRef?.current && isInitializingRun && (
192191
<FlyingLinesEffect targetElement={seerIconRef.current} />
193192
)}
@@ -462,7 +461,7 @@ const SeerIconContainer = styled('div')`
462461
flex-shrink: 0;
463462
`;
464463

465-
const StyledAnimatedSeerIcon = styled(SeerLoadingIcon)`
464+
const StyledAnimatedSeerIcon = styled(IconSeer)`
466465
position: relative;
467466
transition: opacity 0.2s ease;
468467
top: 0;

0 commit comments

Comments
 (0)