Skip to content

Commit 5b3f6ad

Browse files
authored
Fixed formatting of Site Replication Helpbox text (#2080)
1 parent 8396c30 commit 5b3f6ad

File tree

1 file changed

+57
-37
lines changed

1 file changed

+57
-37
lines changed

portal-ui/src/screens/Console/Configurations/SiteReplication/SiteReplication.tsx

Lines changed: 57 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import React, { Fragment, useEffect, useState } from "react";
1818
import PageHeader from "../../Common/PageHeader/PageHeader";
1919
import PageLayout from "../../Common/Layout/PageLayout";
20-
import { Box, DialogContentText } from "@mui/material";
20+
import { Box, DialogContentText, Grid } from "@mui/material";
2121
import useApi from "../../Common/Hooks/useApi";
2222
import ReplicationSites from "./ReplicationSites";
2323
import TrashIcon from "../../../../icons/TrashIcon";
@@ -39,6 +39,7 @@ import {
3939
setErrorSnackMessage,
4040
setSnackBarMessage,
4141
} from "../../../../systemSlice";
42+
import AButton from "../../Common/AButton/AButton";
4243

4344
export type ReplicationSite = {
4445
deploymentID: string;
@@ -174,19 +175,46 @@ const SiteReplication = () => {
174175
</Box>
175176
) : null}
176177
{!hasSites && !isSiteInfoLoading ? (
177-
<Box
178-
sx={{
179-
padding: "30px",
180-
border: "1px solid #eaeaea",
181-
marginTop: "15px",
182-
marginBottom: "15px",
183-
height: "calc( 100vh - 450px )",
184-
}}
185-
>
186-
Site Replication is not configured.
187-
</Box>
188-
) : null}
178+
<Grid
179+
container
180+
justifyContent={"center"}
181+
alignContent={"center"}
182+
alignItems={"center"}
183+
>
184+
<Grid item xs={8}>
185+
<HelpBox
186+
title={"Site Replication"}
187+
iconComponent={<ClustersIcon />}
188+
help={
189+
<Fragment>
190+
This feature allows multiple independent MinIO sites (or clusters) that are using the same external
191+
IDentity Provider (IDP) to be configured as replicas.
192+
<br />
193+
<br />
194+
To get started,{" "}
195+
<AButton
196+
onClick={() => {history.push(IAM_PAGES.SITE_REPLICATION_ADD);}}>
197+
Add a Replication Site
198+
</AButton>.
189199

200+
<br/>
201+
You can learn more at our{" "}
202+
<a
203+
href="https://github.com/minio/minio/tree/master/docs/site-replication?ref=con"
204+
target="_blank"
205+
rel="noreferrer"
206+
>
207+
documentation
208+
</a>
209+
.
210+
</Fragment>
211+
}
212+
/>
213+
</Grid>
214+
</Grid>
215+
216+
) : null}
217+
{hasSites && !isSiteInfoLoading ? (
190218
<HelpBox
191219
title={"Site Replication"}
192220
iconComponent={<ClustersIcon />}
@@ -196,30 +224,21 @@ const SiteReplication = () => {
196224
that are using the same external IDentity Provider (IDP) to be
197225
configured as replicas. In this situation the set of replica sites
198226
are referred to as peer sites or just sites.
199-
<br />
200-
<Box>
201-
<ul>
202-
<li>
203-
Initially, only one of the sites added for replication may
204-
have data. After site-replication is successfully
205-
configured, this data is replicated to the other (initially
206-
empty) sites. Subsequently, objects may be written to any of
207-
the sites, and they will be replicated to all other sites.
208-
</li>
209-
<li>
210-
All sites must have the same deployment credentials (i.e.
211-
MINIO_ROOT_USER, MINIO_ROOT_PASSWORD).
212-
</li>
213-
<li>
214-
All sites must be using the same external IDP(s) if any.
215-
</li>
216-
<li>
217-
For SSE-S3 or SSE-KMS encryption via KMS, all sites must
218-
have access to a central KMS deployment. server.
219-
</li>
220-
</ul>
221-
</Box>
222-
<br />
227+
<br /><br />
228+
Initially, only one of the sites added for replication may
229+
have data. After site-replication is successfully
230+
configured, this data is replicated to the other (initially
231+
empty) sites. Subsequently, objects may be written to any of
232+
the sites, and they will be replicated to all other sites.
233+
<br /><br />
234+
All sites must have the same deployment credentials (i.e.
235+
MINIO_ROOT_USER, MINIO_ROOT_PASSWORD).
236+
<br /><br />
237+
All sites must be using the same external IDP(s) if any.
238+
<br /><br />
239+
For SSE-S3 or SSE-KMS encryption via KMS, all sites must
240+
have access to a central KMS deployment server.
241+
<br /><br />
223242
You can learn more at our{" "}
224243
<a
225244
href="https://github.com/minio/minio/tree/master/docs/site-replication?ref=con"
@@ -232,6 +251,7 @@ const SiteReplication = () => {
232251
</Fragment>
233252
}
234253
/>
254+
) : null}
235255

236256
{deleteAll ? (
237257
<ConfirmDialog

0 commit comments

Comments
 (0)