From 7a3fe7569a96b9d77cd0349468d36093638b4b7e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:52:34 -0500 Subject: [PATCH 1/3] Show MDM Policy on app and Fix MDM policy status issue on portal (#1740) * fix(app): show MDM policy for mac User * fix(app): fix status issue of mdm policy * fix(portal): fix status issue of mdm policy --------- Co-authored-by: chasprowebdev --- .../people/devices/components/HostDetails.tsx | 81 ++++++++++++++----- .../[orgId]/people/devices/types/index.ts | 11 ++- .../tasks/DeviceAgentAccordionItem.tsx | 2 +- .../app/(app)/(home)/[orgId]/types/index.ts | 2 +- 4 files changed, 71 insertions(+), 25 deletions(-) diff --git a/apps/app/src/app/(app)/[orgId]/people/devices/components/HostDetails.tsx b/apps/app/src/app/(app)/[orgId]/people/devices/components/HostDetails.tsx index d5fcfca59..d1786cbdf 100644 --- a/apps/app/src/app/(app)/[orgId]/people/devices/components/HostDetails.tsx +++ b/apps/app/src/app/(app)/[orgId]/people/devices/components/HostDetails.tsx @@ -2,9 +2,22 @@ import { Button } from '@comp/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@comp/ui/card'; import { cn } from '@comp/ui/cn'; import { ArrowLeft, CheckCircle2, XCircle } from 'lucide-react'; +import { useMemo } from 'react'; import type { Host } from '../types'; export const HostDetails = ({ host, onClose }: { host: Host; onClose: () => void }) => { + const isMacOS = useMemo(() => { + return host.cpu_type && (host.cpu_type.includes('arm64') || host.cpu_type.includes('intel')); + }, [host]); + + const mdmEnabledStatus = useMemo(() => { + return { + id: 'mdm', + response: host?.mdm.connected_to_fleet ? 'pass' : 'fail', + name: 'MDM Enabled', + }; + }, [host]); + return (