Skip to content

Commit

Permalink
HMS-2696 fix: align default page with mock-ups
Browse files Browse the repository at this point in the history
Update the default content page to be aligned with the current state of
the mocks-ups.

Signed-off-by: Alejandro Visiedo <[email protected]>
  • Loading branch information
avisiedo committed Oct 2, 2023
1 parent 70aa13a commit 2bf3d70
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
4 changes: 0 additions & 4 deletions src/Routes/DefaultPage/DefaultPage.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
@import '~@redhat-cloud-services/frontend-components-utilities/styles/variables';

.empty-state-body-content {
margin-bottom: $ins-margin;
}
41 changes: 26 additions & 15 deletions src/Routes/DefaultPage/DefaultPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand All @@ -62,21 +64,34 @@ const EmptyContent = () => {
<Section>
<Bullseye>
<EmptyState variant={EmptyStateVariant.full}>
<RegistryIcon size="xl" />
<Title headingLevel="h2" size="lg">
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
</Title>
<EmptyStateBody>
<Stack>
<StackItem className="empty-state-body-content">
To specify which existing access controls can be
<br /> leveraged for hosts launched through the console, you
<br /> must first register your domain(s). As part of that
<br /> process you will be required to SSO into your server(s)
<br /> and install packages via CLI.
<StackItem className="pf-u-pt-sm">
Use access controls from your existing IdM hosts in your cloud
<br /> environment*. To get started, register a service.
</StackItem>
<StackItem className="pf-u-pt-md">
<Button onClick={handleOpenWizard}>Register a service</Button>
</StackItem>
<StackItem className="pf-u-pt-md">
<Button
component="a"
target="_blank"
variant="link"
isInline
icon={<ExternalLinkAltIcon />}
iconPosition="right"
href={linkLearnMoreAbout}
>
Learn more about directory and domain services{' '}
</Button>
</StackItem>
<StackItem>
<Button onClick={handleOpenWizard}>Add domain</Button>
<StackItem className="pf-u-pt-lg pf-u-color-100">
*Directory and domain services are currently available only for Red Hat IdM and IPA deployments.
</StackItem>
</Stack>
</EmptyStateBody>
Expand Down Expand Up @@ -205,10 +220,6 @@ const DefaultPage = () => {
const [perPage] = useState<number>(10);
const [offset, setOffset] = useState<number>(0);

useEffect(() => {
insights?.chrome?.appAction?.('default-page');
}, []);

console.log('INFO:DefaultPage render');

useEffect(() => {
Expand Down

0 comments on commit 2bf3d70

Please sign in to comment.