Skip to content

Commit c5f5573

Browse files
authored
feat(aci): Add tooltip to system created icon (#102047)
1 parent 7799c04 commit c5f5573

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

static/app/components/workflowEngine/gridCell/titleCell.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type TitleCellProps = {
1717
details?: React.ReactNode;
1818
disabled?: boolean;
1919
openInNewTab?: boolean;
20-
systemCreated?: boolean;
20+
systemCreated?: string;
2121
warning?: StatusWarning | null;
2222
};
2323

@@ -35,7 +35,11 @@ export function TitleCell({
3535
<Fragment>
3636
<Name>
3737
<NameText>{name}</NameText>
38-
{systemCreated && <CreatedBySentryIcon size="xs" color="subText" />}
38+
{systemCreated && (
39+
<Tooltip title={systemCreated} skipWrapper>
40+
<CreatedBySentryIcon size="xs" color="subText" />
41+
</Tooltip>
42+
)}
3943
{warning && (
4044
<Fragment>
4145
&mdash;

static/app/views/detectors/components/detectorLink.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@ export function DetectorLink({detector, className, openInNewTab}: DetectorLinkPr
215215
className={className}
216216
name={detector.name}
217217
link={makeMonitorDetailsPathname(org.slug, detector.id, monitorsLinkPrefix)}
218-
systemCreated={!detectorTypeIsUserCreateable(detector.type)}
218+
systemCreated={
219+
detectorTypeIsUserCreateable(detector.type)
220+
? undefined
221+
: t('This monitor is managed by Sentry')
222+
}
219223
disabled={!detector.enabled}
220224
openInNewTab={openInNewTab}
221225
details={

0 commit comments

Comments
 (0)