From b92e9efdb519f7f8489f9aa99fef4d3e49e660cc Mon Sep 17 00:00:00 2001 From: Gabriel Hernandez Date: Wed, 4 Mar 2026 13:12:33 +0000 Subject: [PATCH] show apns expiration banner in UI for free tier (#40936) **Related issue:** Resolves #39184 show apns expiration banner for the free tier in the UI. Before it was limited to show only for premium tier. - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. - [x] QA'd all new/changed functionality manually --------- Co-authored-by: Nico <32375741+nulmete@users.noreply.github.com> --- changes/issue-39184-apns-banner-fix | 1 + frontend/components/MainContent/MainContent.tsx | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 changes/issue-39184-apns-banner-fix diff --git a/changes/issue-39184-apns-banner-fix b/changes/issue-39184-apns-banner-fix new file mode 100644 index 0000000000..05ea0e0635 --- /dev/null +++ b/changes/issue-39184-apns-banner-fix @@ -0,0 +1 @@ +- Added APNs expiry banner in the UI for fleet free tier. diff --git a/frontend/components/MainContent/MainContent.tsx b/frontend/components/MainContent/MainContent.tsx index 3d92952eb1..66aea31397 100644 --- a/frontend/components/MainContent/MainContent.tsx +++ b/frontend/components/MainContent/MainContent.tsx @@ -57,10 +57,12 @@ const MainContent = ({ // the order of these checks is important. This is the priority order // for showing banners and only one banner is shown at a time. - if (isPremiumTier) { - if (isApplePnsExpired || willApplePnsExpire) { - banner = ; - } else if (isAndroidEnterpriseDeleted) { + if (isApplePnsExpired || willApplePnsExpire) { + // APNs expiration banner will show for either premium or free tiers + // but all other banners are only for premium tiers + banner = ; + } else if (isPremiumTier) { + if (isAndroidEnterpriseDeleted) { banner = ; } else if (isAppleBmExpired || willAppleBmExpire) { banner = ;