src: Remove firstboot flag

Firstboot also seems to be released fully to both stage and prod. The flag is not needed anymore.
This commit is contained in:
regexowl 2025-04-23 11:58:06 +02:00 committed by Klara Simickova
parent f2d11ac3d3
commit 42747a7eeb
4 changed files with 17 additions and 22 deletions

View file

@ -192,7 +192,6 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
const [searchParams] = useSearchParams();
const { isFedoraEnv } = useGetEnvironment();
// Feature flags
const isFirstBootEnabled = useFlag('image-builder.firstboot.enabled');
const complianceEnabled = useFlag('image-builder.compliance.enabled');
const isUsersEnabled = useFlag('image-builder.users.enabled');
const isHostnameEnabled = useFlag('image-builder.hostname.enabled');
@ -662,7 +661,7 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
key="wizard-first-boot"
navItem={customStatusNavItem}
status={firstBootValidation.disabledNext ? 'error' : 'default'}
isHidden={!isFirstBootEnabled}
isHidden={!!process.env.IS_ON_PREMISE || isFedoraEnv}
footer={
<CustomWizardFooter
disableNext={firstBootValidation.disabledNext}

View file

@ -198,7 +198,6 @@ const Review = () => {
);
};
const isFirstBootEnabled = useFlag('image-builder.firstboot.enabled');
const isUsersEnabled = useFlag('image-builder.users.enabled');
const { isFedoraEnv } = useGetEnvironment();
return (
@ -504,23 +503,21 @@ const Review = () => {
<ServicesList />
</ExpandableSection>
)}
{isFirstBootEnabled && (
<ExpandableSection
toggleContent={composeExpandable(
'First boot',
'revisit-first-boot',
'wizard-first-boot'
)}
onToggle={(_event, isExpandableFirstBoot) =>
onToggleFirstBoot(isExpandableFirstBoot)
}
isExpanded={isExpandableFirstBoot}
isIndented
data-testid="firstboot-expandable"
>
<FirstBootList />
</ExpandableSection>
)}
<ExpandableSection
toggleContent={composeExpandable(
'First boot',
'revisit-first-boot',
'wizard-first-boot'
)}
onToggle={(_event, isExpandableFirstBoot) =>
onToggleFirstBoot(isExpandableFirstBoot)
}
isExpanded={isExpandableFirstBoot}
isIndented
data-testid="firstboot-expandable"
>
<FirstBootList />
</ExpandableSection>
{(blueprintName || blueprintDescription) && (
<ExpandableSection
toggleContent={composeExpandable(