diff --git a/package-lock.json b/package-lock.json
index 73a7b1636..55518f967 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,7 +19,7 @@
"@hookform/resolvers": "^2.8.8",
"@js-temporal/polyfill": "^0.4.3",
"@monaco-editor/react": "^4.4.5",
- "@scality/core-ui": "github:scality/core-ui#0.107.0",
+ "@scality/core-ui": "github:scality/core-ui#0.109.0",
"@scality/module-federation": "github:scality/module-federation#1.1.0",
"@types/react-table": "^7.7.10",
"@types/react-virtualized": "^9.21.20",
@@ -3122,8 +3122,8 @@
"dev": true
},
"node_modules/@scality/core-ui": {
- "version": "0.107.0",
- "resolved": "git+ssh://git@github.com/scality/core-ui.git#875eecfc5e8edeef90b01ebd3973be509bf6ed3d",
+ "version": "0.109.0",
+ "resolved": "git+ssh://git@github.com/scality/core-ui.git#819abbd38ecbc0cb289ee4062dc06568ce6cae87",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@floating-ui/dom": "^0.1.10",
@@ -23664,8 +23664,8 @@
"dev": true
},
"@scality/core-ui": {
- "version": "git+ssh://git@github.com/scality/core-ui.git#875eecfc5e8edeef90b01ebd3973be509bf6ed3d",
- "from": "@scality/core-ui@github:scality/core-ui#0.107.0",
+ "version": "git+ssh://git@github.com/scality/core-ui.git#819abbd38ecbc0cb289ee4062dc06568ce6cae87",
+ "from": "@scality/core-ui@github:scality/core-ui#0.109.0",
"requires": {
"@floating-ui/dom": "^0.1.10",
"@storybook/preview-api": "^7.5.3",
diff --git a/package.json b/package.json
index 9c8120915..bdcb72c07 100644
--- a/package.json
+++ b/package.json
@@ -76,7 +76,7 @@
"@hookform/resolvers": "^2.8.8",
"@js-temporal/polyfill": "^0.4.3",
"@monaco-editor/react": "^4.4.5",
- "@scality/core-ui": "github:scality/core-ui#0.107.0",
+ "@scality/core-ui": "github:scality/core-ui#0.109.0",
"@scality/module-federation": "github:scality/module-federation#1.1.0",
"@types/react-table": "^7.7.10",
"@types/react-virtualized": "^9.21.20",
diff --git a/src/react/ui-elements/Veeam/VeeamSteps.tsx b/src/react/ui-elements/Veeam/VeeamSteps.tsx
index 3cb29632c..861cbc2fc 100644
--- a/src/react/ui-elements/Veeam/VeeamSteps.tsx
+++ b/src/react/ui-elements/Veeam/VeeamSteps.tsx
@@ -1,7 +1,8 @@
import VeeamTable from './VeeamTable';
import VeeamConfiguration from './VeeamConfiguration';
import { VeeamSummary } from './VeeamSummary';
-import { Stepper } from '@scality/core-ui';
+import { Stepper, spacing } from '@scality/core-ui';
+import { useTheme } from 'styled-components';
export const VEEAM_STEPS = [
{
@@ -25,5 +26,16 @@ export enum VeeamStepsIndexes {
}
export default function VeeamSteppers() {
- return ;
+ const theme = useTheme();
+ return (
+
+
+
+ );
}
diff --git a/src/react/ui-elements/Veeam/VeeamSummary.tsx b/src/react/ui-elements/Veeam/VeeamSummary.tsx
index 1b7ad2820..5adbd01b2 100644
--- a/src/react/ui-elements/Veeam/VeeamSummary.tsx
+++ b/src/react/ui-elements/Veeam/VeeamSummary.tsx
@@ -1,16 +1,22 @@
-import { Banner, Form, Icon, InfoMessage, Text } from '@scality/core-ui';
+import {
+ Banner,
+ Form,
+ FormGroup,
+ FormSection,
+ Icon,
+ InfoMessage,
+ Text,
+} from '@scality/core-ui';
import { Button, CopyButton } from '@scality/core-ui/dist/next';
-import { Stack } from '@scality/core-ui/dist/spacing';
-import { spacing } from '@scality/core-ui/dist/style/theme';
+import { Wrap, spacing } from '@scality/core-ui/dist/spacing';
import { useHistory } from 'react-router-dom';
-import { useTheme } from 'styled-components';
+import styled from 'styled-components';
import { CertificateDownloadButton } from '../../next-architecture/ui/CertificateDownloadButton';
import { useAuthGroups } from '../../utils/hooks';
import { Clipboard } from '../Clipboard';
import { HideCredential } from '../Hide';
-import Table, * as T from '../TableKeyValue';
-import { useGetS3ServicePoint } from './useGetS3ServicePoint';
import { VEEAM_DEFAULT_ACCOUNT_NAME } from './VeeamConstants';
+import { useGetS3ServicePoint } from './useGetS3ServicePoint';
type VeeamSummaryProps = {
bucketName: string;
@@ -20,13 +26,38 @@ type VeeamSummaryProps = {
};
export const VEEAM_SUMMARY_TITLE = 'Veeam Repository preparation summary';
-export const ACCOUNT_SECTION_TITLE = 'Information for Veeam Account';
export const CREDENTIALS_SECTION_TITLE = 'Credentials';
export const BUCKET_SECTION_TITLE = 'Bucket';
-export const CERTIFICATE_SECTION_TITLE = 'Certificate';
+export const CERTIFICATE_SECTION_TITLE = '1. Certificates';
+export const ACCOUNT_SECTION_TITLE =
+ '2. Information for the Veeam configuration';
const DEFAULT_REGION = 'us-east-1';
+const WrapperWithWidth = styled(Wrap)`
+ width: 20rem;
+`;
+
+const Level4FormSection = ({
+ children,
+ title,
+}: Parameters[0]) => {
+ const Container = styled.div`
+ background-color: ${(props) => props.theme.brand.backgroundLevel4};
+ padding: ${spacing.r16};
+ `;
+ return (
+
+ {children}
+
+ );
+};
+
+const Separator = styled.div`
+ width: 100%;
+ height: ${spacing.r32};
+`;
+
export const VeeamSummary = ({
bucketName,
enableImmutableBackup,
@@ -34,7 +65,6 @@ export const VeeamSummary = ({
secretKey,
}: VeeamSummaryProps) => {
const history = useHistory();
- const theme = useTheme();
const { isPlatformAdmin } = useAuthGroups();
const { s3ServicePoint } = useGetS3ServicePoint();
@@ -46,37 +76,61 @@ export const VeeamSummary = ({
}}
requireMode="all"
rightActions={
-
-
- }
- onClick={() => {
- history.push(
- `/accounts/${VEEAM_DEFAULT_ACCOUNT_NAME}/buckets/${bucketName}`,
- );
- }}
- />
-
+