Skip to content

Commit 0db7c4c

Browse files
committed
Add configure user access step for Google
1 parent fb591e2 commit 0db7c4c

3 files changed

Lines changed: 89 additions & 5 deletions

File tree

packages/localizations/src/en-US.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,13 +603,13 @@ export const enUS: LocalizationResource = {
603603
},
604604
},
605605
configureUserAccess: {
606-
headerSubtitle: 'Configure users access to the enterprise application',
606+
headerSubtitle: 'Enable your Google Workspace SAML workspace',
607607
assignUsersInstructions: {
608608
paragraph1:
609609
"Once the configuration is complete in Google, you'll be redirected to the app's overview page.",
610-
step1: 'Open the <bold>User access</bold> section',
611-
step2: 'Select <bold>ON</bold> for everyone',
612-
step3: 'Select <bold>Save</bold>',
610+
step1: 'Open the <bold>User access</bold> section.',
611+
step2: 'Select <bold>ON</bold> for everyone.',
612+
step3: 'Select <bold>Save</bold>.',
613613
paragraph2:
614614
'Google may take up to 24 hours to propagate these changes. The connection will remain inactive until they take effect.',
615615
},

packages/shared/src/types/localization.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,6 @@ export type __internal_LocalizationResource = {
16561656
configureUserAccess: {
16571657
headerSubtitle: LocalizationValue;
16581658
assignUsersInstructions: {
1659-
title: LocalizationValue;
16601659
paragraph1: LocalizationValue;
16611660
step1: LocalizationValue;
16621661
step2: LocalizationValue;

packages/ui/src/components/ConfigureSSO/steps/ConfigureStep/saml/SamlGoogleConfigureSteps.tsx

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ export const SamlGoogleConfigureSteps = (): JSX.Element => {
6868
</Step.Header>
6969
<SamlGoogleAttributeMappingStep />
7070
</Wizard.Step>
71+
72+
<Wizard.Step id='configure-user-access'>
73+
<Step.Header
74+
title={localizationKeys('configureSSO.configureStep.samlGoogle.mainHeaderTitle')}
75+
description={localizationKeys('configureSSO.configureStep.samlGoogle.configureUserAccess.headerSubtitle')}
76+
>
77+
<InnerStepCounter />
78+
</Step.Header>
79+
<SamlGoogleConfigureUserAccessStep />
80+
</Wizard.Step>
7181
</>
7282
);
7383
};
@@ -561,3 +571,78 @@ const SamlGoogleAttributeMappingStep = (): JSX.Element => {
561571
</>
562572
);
563573
};
574+
575+
const SamlGoogleConfigureUserAccessStep = (): JSX.Element => {
576+
const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();
577+
578+
return (
579+
<>
580+
<Step.Body>
581+
<Step.Section sx={theme => ({ gap: theme.space.$3 })}>
582+
<Text
583+
as='p'
584+
colorScheme='secondary'
585+
localizationKey={localizationKeys(
586+
'configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.paragraph1',
587+
)}
588+
/>
589+
590+
<Col
591+
elementDescriptor={descriptors.configureSSOInstructionsList}
592+
as='ul'
593+
sx={theme => ({
594+
gap: theme.space.$1x5,
595+
margin: 0,
596+
paddingInlineStart: theme.space.$5,
597+
listStyleType: 'disc',
598+
})}
599+
>
600+
<Text
601+
elementDescriptor={descriptors.configureSSOInstructionsListItem}
602+
as='li'
603+
colorScheme='secondary'
604+
localizationKey={localizationKeys(
605+
'configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.step1',
606+
)}
607+
/>
608+
<Text
609+
elementDescriptor={descriptors.configureSSOInstructionsListItem}
610+
as='li'
611+
colorScheme='secondary'
612+
localizationKey={localizationKeys(
613+
'configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.step2',
614+
)}
615+
/>
616+
<Text
617+
elementDescriptor={descriptors.configureSSOInstructionsListItem}
618+
as='li'
619+
colorScheme='secondary'
620+
localizationKey={localizationKeys(
621+
'configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.step3',
622+
)}
623+
/>
624+
</Col>
625+
626+
<Text
627+
as='p'
628+
colorScheme='secondary'
629+
localizationKey={localizationKeys(
630+
'configureSSO.configureStep.samlGoogle.configureUserAccess.assignUsersInstructions.paragraph2',
631+
)}
632+
/>
633+
</Step.Section>
634+
</Step.Body>
635+
636+
<Step.Footer>
637+
<Step.Footer.Previous
638+
onClick={() => goPrev()}
639+
isDisabled={isFirstStep}
640+
/>
641+
<Step.Footer.Continue
642+
onClick={() => goNext()}
643+
isDisabled={isLastStep}
644+
/>
645+
</Step.Footer>
646+
</>
647+
);
648+
};

0 commit comments

Comments
 (0)