Remove Setup Experience preview for iOS/iPadOS (#34458)

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**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
This commit is contained in:
Jordan Montgomery 2025-10-17 13:57:25 -04:00 committed by GitHub
parent e11ddc9866
commit eafade0a12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: (
<p>
When an iOS host in Apple Business Manager (ABM) enrolls, the selected
software is installed.
</p>
),
videoSrc: MacInstallSoftwareEndUserPreview, // TODO: update with new video when it's available
},
ipados: {
description: (
<p>
When an iPadOS host in Apple Business Manager (ABM) enrolls, the
selected software is installed.
</p>
),
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 ? (
<Card color="grey" paddingSize="xxlarge" className={baseClass}>
<h3>End user experience</h3>
{description}
@ -98,7 +82,7 @@ const InstallSoftwarePreview = ({ platform }: InstallSoftwarePreviewProps) => {
muted
/>
</Card>
);
) : null;
};
export default InstallSoftwarePreview;