Skip to content

Commit 5fad0dd

Browse files
committed
Introduce create app step
1 parent bda0465 commit 5fad0dd

1 file changed

Lines changed: 122 additions & 1 deletion

File tree

Lines changed: 122 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,126 @@
11
import { type JSX } from 'react';
22

3+
import { Col, descriptors, Heading, Text } from '@/customizables';
4+
import { localizationKeys } from '@/localization';
5+
6+
import { Step } from '../../../elements/Step';
7+
import { useWizard, Wizard } from '../../../elements/Wizard';
8+
import { InnerStepCounter } from '../../../elements/Wizard/InnerStepCounter';
9+
310
export const SamlGoogleConfigureSteps = (): JSX.Element => {
4-
return <div>SamlGoogleConfigureSteps</div>;
11+
return (
12+
<>
13+
<Wizard.Step id='create-app'>
14+
<Step.Header
15+
title={localizationKeys('configureSSO.configureStep.samlGoogle.mainHeaderTitle')}
16+
description={localizationKeys('configureSSO.configureStep.samlGoogle.createAppStep.headerSubtitle')}
17+
>
18+
<InnerStepCounter />
19+
</Step.Header>
20+
<SamlGoogleCreateAppStep />
21+
</Wizard.Step>
22+
23+
<Wizard.Step id='identity-provider-metadata'>
24+
<Step.Header
25+
title={localizationKeys('configureSSO.configureStep.samlGoogle.mainHeaderTitle')}
26+
description={localizationKeys(
27+
'configureSSO.configureStep.samlGoogle.identityProviderMetadataStep.headerSubtitle',
28+
)}
29+
>
30+
<InnerStepCounter />
31+
</Step.Header>
32+
<SamlGoogleIdentityProviderMetadataStep />
33+
</Wizard.Step>
34+
</>
35+
);
36+
};
37+
38+
const SamlGoogleCreateAppStep = (): JSX.Element => {
39+
const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();
40+
41+
return (
42+
<>
43+
<Step.Body>
44+
<Step.Section sx={theme => ({ gap: theme.space.$5 })}>
45+
<Col sx={theme => ({ gap: theme.space.$1x5 })}>
46+
<Heading
47+
elementDescriptor={descriptors.configureSSOInstructionsHeading}
48+
as='h3'
49+
textVariant='subtitle'
50+
localizationKey={localizationKeys(
51+
'configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.title',
52+
)}
53+
/>
54+
55+
<Col
56+
elementDescriptor={descriptors.configureSSOInstructionsList}
57+
as='ul'
58+
sx={theme => ({
59+
gap: theme.space.$1x5,
60+
margin: 0,
61+
paddingInlineStart: theme.space.$5,
62+
listStyleType: 'disc',
63+
})}
64+
>
65+
<Text
66+
elementDescriptor={descriptors.configureSSOInstructionsListItem}
67+
as='li'
68+
colorScheme='secondary'
69+
localizationKey={localizationKeys(
70+
'configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.step1',
71+
)}
72+
/>
73+
<Text
74+
elementDescriptor={descriptors.configureSSOInstructionsListItem}
75+
as='li'
76+
colorScheme='secondary'
77+
localizationKey={localizationKeys(
78+
'configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.step2',
79+
)}
80+
/>
81+
<Text
82+
elementDescriptor={descriptors.configureSSOInstructionsListItem}
83+
as='li'
84+
colorScheme='secondary'
85+
localizationKey={localizationKeys(
86+
'configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.step3',
87+
)}
88+
/>
89+
<Text
90+
elementDescriptor={descriptors.configureSSOInstructionsListItem}
91+
as='li'
92+
colorScheme='secondary'
93+
localizationKey={localizationKeys(
94+
'configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.step4',
95+
)}
96+
/>
97+
<Text
98+
elementDescriptor={descriptors.configureSSOInstructionsListItem}
99+
as='li'
100+
colorScheme='secondary'
101+
localizationKey={localizationKeys(
102+
'configureSSO.configureStep.samlGoogle.createAppStep.createAppInstructions.step5',
103+
)}
104+
/>
105+
</Col>
106+
</Col>
107+
</Step.Section>
108+
</Step.Body>
109+
110+
<Step.Footer>
111+
<Step.Footer.Previous
112+
onClick={() => goPrev()}
113+
isDisabled={isFirstStep}
114+
/>
115+
<Step.Footer.Continue
116+
onClick={() => goNext()}
117+
isDisabled={isLastStep}
118+
/>
119+
</Step.Footer>
120+
</>
121+
);
122+
};
123+
124+
const SamlGoogleIdentityProviderMetadataStep = (): JSX.Element => {
125+
return <div>SamlGoogleIdentityProviderMetadataStep</div>;
5126
};

0 commit comments

Comments
 (0)