From 86f92cefa27bab63c326449bc4dee6f1866ba665 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Fri, 29 May 2026 15:04:27 -0400 Subject: [PATCH] fix(cells) Add flag and display name for us2 After orgs are created in us2 we should display similar copy in organization settings to what is shown for US orgs. Fixes PRODENG-1457 --- static/app/utils/regions/index.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/static/app/utils/regions/index.tsx b/static/app/utils/regions/index.tsx index dad2dabdc6bbd2..5bbebea42af318 100644 --- a/static/app/utils/regions/index.tsx +++ b/static/app/utils/regions/index.tsx @@ -5,28 +5,29 @@ import type {Region} from 'sentry/types/system'; const RegionDisplayName: Record = { US: t('United States of America (US)'), + US2: t('United States of America (US2)'), DE: t('European Union (EU)'), }; -enum RegionFlagIndicator { - US = 'πŸ‡ΊπŸ‡Έ', - DE = 'πŸ‡ͺπŸ‡Ί', -} +const RegionFlagIndicator: Record = { + US: 'πŸ‡ΊπŸ‡Έ', + US2: 'πŸ‡ΊπŸ‡Έ', + DE: 'πŸ‡ͺπŸ‡Ί', +}; interface RegionData { displayName: string; name: string; url: string; - flag?: RegionFlagIndicator; + flag?: string; } function getRegionDisplayName(region: Region): string { return RegionDisplayName[region.name.toUpperCase()] ?? region.name; } -function getRegionFlagIndicator(region: Region): RegionFlagIndicator | undefined { +function getRegionFlagIndicator(region: Region): string | undefined { const regionName = region.name.toUpperCase(); - // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message return RegionFlagIndicator[regionName]; }