diff --git a/frontend/pages/hosts/ManageHostsPage/components/HostsFilterBlock/HostsFilterBlock.tsx b/frontend/pages/hosts/ManageHostsPage/components/HostsFilterBlock/HostsFilterBlock.tsx index bd14fd3e09..d6250a5810 100644 --- a/frontend/pages/hosts/ManageHostsPage/components/HostsFilterBlock/HostsFilterBlock.tsx +++ b/frontend/pages/hosts/ManageHostsPage/components/HostsFilterBlock/HostsFilterBlock.tsx @@ -13,6 +13,7 @@ import { BootstrapPackageStatus, IMdmSolution, MDM_ENROLLMENT_STATUS_UI_MAP, + MdmEnrollmentStatus, MdmProfileStatus, IMdmProfile, MdmEnrollmentFilterValue, @@ -30,6 +31,7 @@ import { import { ScriptBatchHostCountV1 } from "services/entities/scripts"; import { + MDM_STATUS_TOOLTIP, PLATFORM_LABEL_DISPLAY_NAMES, PLATFORM_TYPE_ICONS, isPlatformLabelNameFromAPI, @@ -402,45 +404,20 @@ const HostsFilterBlock = ({ const renderMDMEnrollmentFilterBlock = () => { if (!mdmEnrollmentStatus) return null; + const matchedStatus = Object.entries(MDM_ENROLLMENT_STATUS_UI_MAP).find( + ([, v]) => v.filterValue === mdmEnrollmentStatus + ); const label = `MDM status: ${ - Object.values(MDM_ENROLLMENT_STATUS_UI_MAP).find( - (status) => status.filterValue === mdmEnrollmentStatus - )?.displayName + matchedStatus?.[1].displayName ?? mdmEnrollmentStatus }`; - - // More narrow tooltip than other MDM tooltip - const MDM_STATUS_PILL_TOOLTIP: Record = { - automatic: ( - - MDM was turned on
- automatically. IT admins
- can block end users
- from turning MDM off. -
- ), - manual: ( - - MDM was turned on
- manually. End users
- can turn MDM off. -
- ), - unenrolled: undefined, // no tooltip specified - pending: ( - - Hosts ordered using Apple
- Business (AB).
- They will automatically enroll
- to Fleet and turn on MDM
- when they're unboxed. -
- ), - }; + const apiStatus = matchedStatus?.[0] as MdmEnrollmentStatus | undefined; return ( handleClearFilter(["mdm_enrollment_status"])} /> ); diff --git a/frontend/utilities/constants.tsx b/frontend/utilities/constants.tsx index 8ea64cf4e3..df2af27e13 100644 --- a/frontend/utilities/constants.tsx +++ b/frontend/utilities/constants.tsx @@ -363,25 +363,31 @@ export const MDM_STATUS_TOOLTIP: Record< > = { "On (automatic)": ( - MDM was turned on automatically. IT admins can block end users from - turning MDM off. + MDM was turned on automatically (Apple ADE, Windows Autopilot, or + fully-managed Android). IT admins can block end users from turning MDM + off. ), "On (manual)": ( - MDM was turned on manually. End users can turn MDM off. + + On Apple hosts, the enrollment profile was installed manually. Windows + hosts were enrolled without Autopilot. End users can turn MDM off. + ), "On (personal)": ( - MDM was turned on by signing in with Managed Apple Account on iOS/iPadOS, - or by creating a work profile on Android. End users can turn MDM off. + MDM was turned on by signing in with a Managed Apple Account on + iOS/iPadOS, or by adding a work profile on Android. End users can turn MDM + off. ), "On (company-owned)": null, Off: undefined, // no tooltip specified Pending: ( - Hosts ordered via Apple Business
(AB). These will automatically - enroll to Fleet
and turn on MDM when they're unboxed. + Hosts ordered via Apple Business (AB). +
These will automatically enroll to Fleet
and turn on MDM + when they're unboxed.
), };