From eafade0a12f7a7a797bc8e033537531285d3fe94 Mon Sep 17 00:00:00 2001 From: Jordan Montgomery Date: Fri, 17 Oct 2025 13:57:25 -0400 Subject: [PATCH] Remove Setup Experience preview for iOS/iPadOS (#34458) **Related issue:** Resolves #33711 See Noah comment here for why we are removing: https://github.com/fleetdm/fleet/issues/30890#issuecomment-3411319996 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [x] If paths of existing endpoints are modified without backwards compatibility, checked the frontend/CLI for any necessary changes ## Testing - [x] QA'd all new/changed functionality manually --- .../InstallSoftwarePreview.tsx | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/InstallSoftwarePreview/InstallSoftwarePreview.tsx b/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/InstallSoftwarePreview/InstallSoftwarePreview.tsx index e16c7f525b..2924274e9c 100644 --- a/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/InstallSoftwarePreview/InstallSoftwarePreview.tsx +++ b/frontend/pages/ManageControlsPage/SetupExperience/cards/InstallSoftware/components/InstallSoftwarePreview/InstallSoftwarePreview.tsx @@ -16,7 +16,7 @@ interface IPreviewDisplayConfig { const PREVIEW_DISPLAY_OPTIONS: Record< SetupExperiencePlatform, - IPreviewDisplayConfig + IPreviewDisplayConfig | undefined > = { macos: { description: ( @@ -34,24 +34,8 @@ const PREVIEW_DISPLAY_OPTIONS: Record< ), videoSrc: MacInstallSoftwareEndUserPreview, }, - ios: { - description: ( -

- When an iOS host in Apple Business Manager (ABM) enrolls, the selected - software is installed. -

- ), - videoSrc: MacInstallSoftwareEndUserPreview, // TODO: update with new video when it's available - }, - ipados: { - description: ( -

- When an iPadOS host in Apple Business Manager (ABM) enrolls, the - selected software is installed. -

- ), - videoSrc: MacInstallSoftwareEndUserPreview, // TODO: update with new video when it's available - }, + ios: undefined, + ipados: undefined, linux: { description: ( <> @@ -83,8 +67,8 @@ interface InstallSoftwarePreviewProps { } const InstallSoftwarePreview = ({ platform }: InstallSoftwarePreviewProps) => { - const { description, videoSrc } = PREVIEW_DISPLAY_OPTIONS[platform]; - return ( + const { description, videoSrc } = PREVIEW_DISPLAY_OPTIONS[platform] || {}; + return description && videoSrc ? (

End user experience

{description} @@ -98,7 +82,7 @@ const InstallSoftwarePreview = ({ platform }: InstallSoftwarePreviewProps) => { muted />
- ); + ) : null; }; export default InstallSoftwarePreview;