Skip to content

Commit 6152c72

Browse files
authored
feat(seer): Show project platform icon next to short ID on overview card (#122232)
Add a project platform icon (`ProjectAvatar`) beside the group short ID on the Seer autofix overview card. The card rendered the short ID as bare monospace text, unlike nearly every other short-ID surface in the app — issue stream rows, the issue-detail header, and the event drawers all already show a project graphic next to the short ID. This brings the overview card in line so each card indicates at a glance which project/platform the issue belongs to. The project (including `platform`) is already present on the card's run data, so no data threading or API changes were needed. The avatar falls back to a generic icon when `platform` is absent, and the project slug shows on hover. Scope is intentionally limited to this card; the remaining bare short-ID sites (autofix markdown embed, Discover/dashboards field renderers) are left for a follow-up.
1 parent 3424a99 commit 6152c72

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

static/app/views/seerWorkflows/overview/issueCard.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {Fragment} from 'react';
22
import styled from '@emotion/styled';
33

4+
import {ProjectAvatar} from '@sentry/scraps/avatar';
45
import {Tag, type TagProps} from '@sentry/scraps/badge';
56
import {LinkButton} from '@sentry/scraps/button';
67
import {InfoText} from '@sentry/scraps/info';
@@ -470,9 +471,17 @@ export function OverviewCard({
470471
<TitleLink to={issueUrl}>{run.title}</TitleLink>
471472
</Text>
472473
<Flex wrap="wrap" gap="md" align="center">
473-
<Text size="sm" monospace variant="muted">
474-
{run.shortId}
475-
</Text>
474+
<Flex gap="xs" align="center">
475+
<ProjectAvatar
476+
project={run.issue.project}
477+
size={12}
478+
hasTooltip
479+
tooltip={run.issue.project.slug}
480+
/>
481+
<Text size="sm" monospace variant="muted">
482+
{run.shortId}
483+
</Text>
484+
</Flex>
476485
<IssueVitals
477486
run={run}
478487
statsPeriod={statsPeriod}

0 commit comments

Comments
 (0)