Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions static/app/views/prevent/preventAI/onboarding.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import PreventAIOnboarding from './onboarding';

jest.mock('sentry-images/features/prevent-hero.svg', () => 'prevent-hero-mock.svg');
jest.mock(
'sentry-images/features/prevent-pr-comment.png',
() => 'prevent-pr-comment-mock.png'
'sentry-images/features/prevent-pr-comments.png',
() => 'prevent-pr-comments-mock.png'
);

describe('PreventAIOnboarding', () => {
Expand Down Expand Up @@ -131,9 +131,9 @@ describe('PreventAIOnboarding', () => {
const heroImage = screen.getByAltText('Prevent AI Hero');
expect(heroImage).toBeInTheDocument();

const prCommentImage = screen.getByAltText('Prevent PR Comment');
expect(prCommentImage).toBeInTheDocument();
expect(prCommentImage).toHaveAttribute('src', 'prevent-pr-comment-mock.png');
const prCommentsImage = screen.getByAltText('Prevent PR Comments');
expect(prCommentsImage).toBeInTheDocument();
expect(prCommentsImage).toHaveAttribute('src', 'prevent-pr-comments-mock.png');
});

it('renders admin notice text', () => {
Expand Down
17 changes: 13 additions & 4 deletions static/app/views/prevent/preventAI/onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import {useTheme} from '@emotion/react';
import styled from '@emotion/styled';

import preventHero from 'sentry-images/features/prevent-hero.svg';
import preventPrComment from 'sentry-images/features/prevent-pr-comment.png';
import preventPrComments from 'sentry-images/features/prevent-pr-comments.png';

import {Container, Flex} from 'sentry/components/core/layout';
import {ExternalLink} from 'sentry/components/core/link';
import {Text} from 'sentry/components/core/text';
import {Heading} from 'sentry/components/core/text/heading';
import {IconInfo} from 'sentry/icons/iconInfo';
import {t, tct} from 'sentry/locale';
import useOrganization from 'sentry/utils/useOrganization';

Expand Down Expand Up @@ -132,10 +133,10 @@ export default function PreventAIOnboarding() {
background="secondary"
radius="md"
>
<Text variant="primary" size="sm" bold>
<Text variant="primary" size="md" bold>
{t('How to use Prevent AI')}
</Text>
<Text variant="muted" size="sm">
<Text variant="muted" size="md">
{t('Prevent AI helps you ship better code with three features:')}
</Text>
<Container as="ul" style={{margin: 0, fontSize: '12px'}}>
Expand Down Expand Up @@ -193,8 +194,16 @@ export default function PreventAIOnboarding() {
)}
</Text>
</Flex>
<Text variant="muted" size="xs">
<Flex gap="sm" justify="center">
<IconInfo size="xs" />
{t(
`This page will remain visible after the app is installed. Reviewer Configuration and Usage Stats are coming soon.`
)}
</Flex>
</Text>
</Flex>
<StyledImg src={preventPrComment} alt="Prevent PR Comment" />
<StyledImg src={preventPrComments} alt="Prevent PR Comments" />
</Flex>
</Flex>
);
Expand Down
Binary file removed static/images/features/prevent-pr-comment.png
Binary file not shown.
Binary file added static/images/features/prevent-pr-comments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading