TypeScript
fix(pull-requests): distinguish skipped checks with a slash icon (#21498)
Yash Singh6fca698c5909
diff --git a/apps/mobile/src/components/ui/AppSymbol.tsx b/apps/mobile/src/components/ui/AppSymbol.tsxindex 3a930e59f48..7e5e95da3be 100644--- a/apps/mobile/src/components/ui/AppSymbol.tsx+++ b/apps/mobile/src/components/ui/AppSymbol.tsx@@ -23,6 +23,7 @@ import IconArrowUpRightCircle from "@tabler/icons-react-native/IconArrowUpRightCimport IconArrowsLeftRight from "@tabler/icons-react-native/IconArrowsLeftRight";import IconArrowsDiagonal2 from "@tabler/icons-react-native/IconArrowsDiagonal2";import IconArrowsMinimize from "@tabler/icons-react-native/IconArrowsMinimize";+import IconBan from "@tabler/icons-react-native/IconBan";import IconBellRinging from "@tabler/icons-react-native/IconBellRinging";import IconBolt from "@tabler/icons-react-native/IconBolt";import IconBox from "@tabler/icons-react-native/IconBox";@@ -236,6 +237,7 @@ const ANDROID_ICON_BY_SF_SYMBOL = {play: IconPlayerPlay,plus: IconPlus,minus: IconMinus,+ "slash.circle": IconBan,"qrcode.viewfinder": IconQrcode,"point.3.connected.trianglepath.dotted": IconNetwork,"point.topleft.down.curvedto.point.bottomright.up": IconGitMerge,diff --git a/apps/mobile/src/features/pull-requests/pullRequestStatus.ts b/apps/mobile/src/features/pull-requests/pullRequestStatus.tsindex 7e4021adfe2..fa802a43095 100644--- a/apps/mobile/src/features/pull-requests/pullRequestStatus.ts+++ b/apps/mobile/src/features/pull-requests/pullRequestStatus.ts@@ -82,7 +82,7 @@ export function checkStatus(check: PullRequestCheck) {case "cancelled":return { label: "Cancelled", icon: "minus", tint: "accent-icon-muted" } as const;case "skipped":- return { label: "Skipped", icon: "minus", tint: "accent-icon-muted" } as const;+ return { label: "Skipped", icon: "slash.circle", tint: "accent-icon-muted" } as const;case "neutral":return { label: "Neutral", icon: "minus", tint: "accent-icon-muted" } as const;}diff --git a/apps/web/src/components/pullRequest/pullRequestPresentation.tsx b/apps/web/src/components/pullRequest/pullRequestPresentation.tsxindex b5e573f9677..7b21ce4f871 100644--- a/apps/web/src/components/pullRequest/pullRequestPresentation.tsx+++ b/apps/web/src/components/pullRequest/pullRequestPresentation.tsx@@ -14,6 +14,7 @@ import {CircleCheckIcon,CircleDashedIcon,CircleDotIcon,+ CircleSlashIcon,CircleXIcon,UserCheckIcon,UserRoundIcon,@@ -204,7 +205,7 @@ const CHECK_STATUS_PRESENTATION = {},failure: { label: "Failed", Icon: CircleXIcon, toneClassName: "text-destructive" },cancelled: { label: "Cancelled", Icon: CircleXIcon, toneClassName: "text-destructive" },- skipped: { label: "Skipped", Icon: CircleDashedIcon, toneClassName: "text-muted-foreground/70" },+ skipped: { label: "Skipped", Icon: CircleSlashIcon, toneClassName: "text-muted-foreground/70" },neutral: { label: "Neutral", Icon: CircleDashedIcon, toneClassName: "text-muted-foreground/70" },} as const satisfies Record<PullRequestCheckStatus,