From 68170b249945acf7721cb63d18a9df8332025650 Mon Sep 17 00:00:00 2001 From: Alejandro Visiedo Date: Thu, 4 Jul 2024 11:17:06 +0200 Subject: [PATCH] fix(HMS-4377): no display links This change remove links that will exist in the future, to avoid confusion for the end user. Specifically: - It removes the 'learning more ...' link at the header of the empty page and wizard. - It removes the 'pre-requisites' link in the first page of the wizard. Signed-off-by: Alejandro Visiedo --- src/Routes/DefaultPage/DefaultPage.tsx | 36 ++----------------- .../PagePreparation/PagePreparation.tsx | 17 --------- src/Routes/WizardPage/WizardPage.tsx | 17 +-------- 3 files changed, 3 insertions(+), 67 deletions(-) diff --git a/src/Routes/DefaultPage/DefaultPage.tsx b/src/Routes/DefaultPage/DefaultPage.tsx index 6b648bb..2651756 100644 --- a/src/Routes/DefaultPage/DefaultPage.tsx +++ b/src/Routes/DefaultPage/DefaultPage.tsx @@ -1,6 +1,5 @@ import { useNavigate } from 'react-router-dom'; import React, { useContext, useEffect, useState } from 'react'; -import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon'; import { RegistryIcon } from '@patternfly/react-icons/dist/esm/icons/registry-icon'; import { @@ -37,27 +36,12 @@ import useIdmPermissions from '../../Hooks/useIdmPermissions'; import NoPermissions from '../../Components/NoPermissions/NoPermissions'; const Header = () => { - const linkLearnMoreAbout = 'https://access.redhat.com/articles/1586893'; const title = 'Directory and Domain Services'; return ( -

- Register identity and access management systems to enable machines to automatically join a domain.{' '} - -

+

Register identity and access management systems to enable machines to automatically join a domain.

); }; @@ -84,9 +68,6 @@ const RegisterDomainButton = () => { }; const EmptyContent = () => { - // FIXME Update this link in the future - const linkLearnMoreAbout = 'https://access.redhat.com/articles/1586893'; - return ( <>
@@ -102,20 +83,7 @@ const EmptyContent = () => { - - - + *Only currently available for Red Hat Identity Management (IdM) deployments. diff --git a/src/Routes/WizardPage/Components/PagePreparation/PagePreparation.tsx b/src/Routes/WizardPage/Components/PagePreparation/PagePreparation.tsx index b6586bd..c4e0fb6 100644 --- a/src/Routes/WizardPage/Components/PagePreparation/PagePreparation.tsx +++ b/src/Routes/WizardPage/Components/PagePreparation/PagePreparation.tsx @@ -26,8 +26,6 @@ interface PagePreparationProps { const PagePreparation = (props: PagePreparationProps) => { // FIXME Update the target link when it is known const installServerPackagesLink = 'https://duckduckgo.com/?q=freeipa+prerequisites'; - // FIXME Update the target link when it is known - const prerequisitesLink = 'https://www.google.com?q=rhel-idm+pre-requisites'; // States const appContext = useContext(AppContext); @@ -93,21 +91,6 @@ const PagePreparation = (props: PagePreparationProps) => {
    -
  1. - Complete the{' '} - -
  2. Verify whether or not the package is present on your Red Hat IdM server(s) by running the following command in a terminal on your Red diff --git a/src/Routes/WizardPage/WizardPage.tsx b/src/Routes/WizardPage/WizardPage.tsx index 84852e7..a6316e5 100644 --- a/src/Routes/WizardPage/WizardPage.tsx +++ b/src/Routes/WizardPage/WizardPage.tsx @@ -45,7 +45,6 @@ const WizardPage = () => { const hasPermissions = !rbac.isLoading && rbac.permissions.hasTokenCreate && rbac.permissions.hasDomainsUpdate; // FIXME Update the URL with the location for docs - const linkLearnMoreAbout = 'https://access.redhat.com/articles/1586893'; const linkLearnMoreAboutRemovingDirectoryAndDomainServices = 'https://access.redhat.com/articles/1586893'; const notifyNotCompleted = () => { @@ -246,21 +245,7 @@ const WizardPage = () => { -

    - Add an identity domain to the registry.{' '} - -

    +

    Add an identity domain to the registry.