From a7c9148f297295bf81bcec13b0e3293b143585f3 Mon Sep 17 00:00:00 2001 From: Randy Bruno Piverger <21374229+Randy424@users.noreply.github.com> Date: Wed, 22 Apr 2026 19:41:40 -0700 Subject: [PATCH] [ACM-33148] Add placement preview to standalone placement wizard Wire the enhancedPlacement feature flag into the standalone placement wizard so it shows the matched clusters preview UI (footer status, modal, and review step alert), achieving feature parity with the policy and application wizards. Signed-off-by: Randy Bruno Piverger <21374229+Randy424@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 --- .../Clusters/Placements/CreatePlacement/PlacementWizard.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/routes/Infrastructure/Clusters/Placements/CreatePlacement/PlacementWizard.tsx b/frontend/src/routes/Infrastructure/Clusters/Placements/CreatePlacement/PlacementWizard.tsx index bf4728a045b..0b2e9f54378 100644 --- a/frontend/src/routes/Infrastructure/Clusters/Placements/CreatePlacement/PlacementWizard.tsx +++ b/frontend/src/routes/Infrastructure/Clusters/Placements/CreatePlacement/PlacementWizard.tsx @@ -16,6 +16,7 @@ import { useItem, } from '@patternfly-labs/react-form-wizard' import { useValidation } from '~/hooks/useValidation' +import { useRecoilValue, useSharedAtoms } from '~/shared-recoil' import { IClusterSetBinding } from '~/wizards/common/resources/IClusterSetBinding' import { IPlacement, PlacementKind, PlacementType } from '~/wizards/common/resources/IPlacement' import { NavigationPath } from '~/NavigationPath' @@ -123,6 +124,8 @@ function PlacementStepContent(props: { clusters: IResource[] }) { const { t } = useTranslation() + const { settingsState } = useSharedAtoms() + const settings = useRecoilValue(settingsState) const placement = useItem() as IPlacement const namespace = placement?.metadata?.namespace @@ -143,6 +146,7 @@ function PlacementStepContent(props: { 'ClusterSets failed to load. Verify that there is at least one ClusterSet bound to your selected namespace.' )} hideName + showPlacementPreview={settings.enhancedPlacement === 'enabled'} alertContent={