From 2bf3d709a5b3feeac2728dbda3290b516c1625a8 Mon Sep 17 00:00:00 2001 From: Alejandro Visiedo Date: Sun, 1 Oct 2023 16:13:10 +0200 Subject: [PATCH] HMS-2696 fix: align default page with mock-ups Update the default content page to be aligned with the current state of the mocks-ups. Signed-off-by: Alejandro Visiedo --- src/Routes/DefaultPage/DefaultPage.scss | 4 --- src/Routes/DefaultPage/DefaultPage.tsx | 41 ++++++++++++++++--------- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/src/Routes/DefaultPage/DefaultPage.scss b/src/Routes/DefaultPage/DefaultPage.scss index 5624387..acd9576 100644 --- a/src/Routes/DefaultPage/DefaultPage.scss +++ b/src/Routes/DefaultPage/DefaultPage.scss @@ -1,5 +1 @@ @import '~@redhat-cloud-services/frontend-components-utilities/styles/variables'; - -.empty-state-body-content { - margin-bottom: $ins-margin; -} diff --git a/src/Routes/DefaultPage/DefaultPage.tsx b/src/Routes/DefaultPage/DefaultPage.tsx index bb41404..a818229 100644 --- a/src/Routes/DefaultPage/DefaultPage.tsx +++ b/src/Routes/DefaultPage/DefaultPage.tsx @@ -51,6 +51,8 @@ const Header = () => { }; const EmptyContent = () => { + // FIXME Update this link in the future + const linkLearnMoreAbout = 'https://access.redhat.com/articles/1586893'; const navigate = useNavigate(); const handleOpenWizard = () => { @@ -62,21 +64,34 @@ const EmptyContent = () => {
- - - No domains + <RegistryIcon className="pf-u-color-200" size="xl" /> + <Title headingLevel="h2" size="lg" className="pf-u-pt-sm"> + No directory and domain services registered - - To specify which existing access controls can be -
leveraged for hosts launched through the console, you -
must first register your domain(s). As part of that -
process you will be required to SSO into your server(s) -
and install packages via CLI. + + Use access controls from your existing IdM hosts in your cloud +
environment*. To get started, register a service. +
+ + + + + - - + + *Directory and domain services are currently available only for Red Hat IdM and IPA deployments.
@@ -205,10 +220,6 @@ const DefaultPage = () => { const [perPage] = useState(10); const [offset, setOffset] = useState(0); - useEffect(() => { - insights?.chrome?.appAction?.('default-page'); - }, []); - console.log('INFO:DefaultPage render'); useEffect(() => {