Skip to content

Commit 715477c

Browse files
authored
feat(ai-consent): Add tooltip to issue summary (#103107)
1 parent 08aa2d8 commit 715477c

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

static/app/components/group/groupSummary.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import {isValidElement, useEffect, useLayoutEffect, useState} from 'react';
22
import styled from '@emotion/styled';
33
import {motion} from 'framer-motion';
44

5+
import {ExternalLink} from '@sentry/scraps/link';
6+
import {Tooltip} from '@sentry/scraps/tooltip';
7+
58
import {Button} from 'sentry/components/core/button';
69
import {Flex} from 'sentry/components/core/layout';
710
import {Text} from 'sentry/components/core/text';
@@ -15,7 +18,7 @@ import {
1518
IconRefresh,
1619
IconSpan,
1720
} from 'sentry/icons';
18-
import {t} from 'sentry/locale';
21+
import {t, tct} from 'sentry/locale';
1922
import {space} from 'sentry/styles/space';
2023
import type {Event} from 'sentry/types/event';
2124
import type {Group} from 'sentry/types/group';
@@ -214,7 +217,20 @@ function GroupSummaryPreview({
214217
<InsightCard key={card.id}>
215218
<CardTitle>
216219
<CardTitleIcon>{card.icon}</CardTitleIcon>
217-
<CardTitleText>{card.title}</CardTitleText>
220+
<Tooltip
221+
title={tct(
222+
'Powered by generative AI. Learn more about our [link:AI privacy principles].',
223+
{
224+
link: (
225+
<ExternalLink href="https://docs.sentry.io/product/ai-in-sentry/ai-privacy-and-security/" />
226+
),
227+
}
228+
)}
229+
showUnderline
230+
isHoverable
231+
>
232+
<CardTitleText>{card.title}</CardTitleText>
233+
</Tooltip>
218234
</CardTitle>
219235
<CardContentContainer>
220236
<CardLineDecorationWrapper>

0 commit comments

Comments
 (0)