Skip to content

Commit

Permalink
fix: for QA testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pwilson77 committed Sep 18, 2024
1 parent ac95e4e commit 1849535
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
9 changes: 9 additions & 0 deletions src/constants/LinkAndImageConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ const ROUTE_LOCAL_NETWORK_TRAFFIC_LINK = 'https://docs.netmaker.io/'; /// NEED T
const HOW_TO_ADD_USERS_TO_NETWORK = 'https://www.netmaker.io/resources/how-to-add-users-to-netmaker-saas';
const USER_MGMT_DOCS_URL = 'https://docs.netmaker.io/#';
const UI_DOCS_URL = 'https://docs.v2.netmaker.io/guide/references/user-interface';
const USER_MGMT_DOCS_NETWORK_ROLES_URL =
'https://docs.v2.netmaker.io/guide/netmaker-professional/users-in-netmaker-professional#network-roles';
const USER_MGMT_DOCS_USER_GROUPS_URL =
'https://docs.v2.netmaker.io/guide/netmaker-professional/users-in-netmaker-professional#user-groups';
const USER_MGMT_DOCS_INVITES_URL =
'https://docs.v2.netmaker.io/guide/netmaker-professional/users-in-netmaker-professional#adding-users__user-invite';

const EGRESS_IMG = '/egress.webp';
const RAG_IMG = '/rag.webp';
Expand All @@ -29,6 +35,9 @@ export const ExternalLinks = {
HOW_TO_ADD_USERS_TO_NETWORK,
USER_MGMT_DOCS_URL,
UI_DOCS_URL,
USER_MGMT_DOCS_NETWORK_ROLES_URL,
USER_MGMT_DOCS_USER_GROUPS_URL,
USER_MGMT_DOCS_INVITES_URL,
};

export const AppImages = {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/users/GroupsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default function GroupsPage({
title="Go to user management documentation"
size="large"
style={{ marginRight: '1rem' }}
href={ExternalLinks.USER_MGMT_DOCS_URL}
href={ExternalLinks.USER_MGMT_DOCS_USER_GROUPS_URL}
target="_blank"
referrerPolicy="no-referrer"
icon={<QuestionCircleOutlined />}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/users/RolesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export default function RolesPage({
title="Go to user management documentation"
size="large"
style={{ marginRight: '1rem' }}
href={ExternalLinks.USER_MGMT_DOCS_URL}
href={ExternalLinks.USER_MGMT_DOCS_NETWORK_ROLES_URL}
target="_blank"
referrerPolicy="no-referrer"
icon={<QuestionCircleOutlined />}
Expand Down
14 changes: 11 additions & 3 deletions src/pages/users/UsersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import InviteUserModal from '@/components/modals/invite-user-modal/InviteUserMod
import { useNavigate } from 'react-router-dom';
import { AppRoutes } from '@/routes';
import { set } from 'lodash';
import { ExternalLinks } from '@/constants/LinkAndImageConstants';

const USERS_DOCS_URL = 'https://docs.netmaker.io/pro/pro-users.html';

Expand Down Expand Up @@ -111,6 +112,7 @@ export default function UsersPage(props: PageProps) {
const groupsSearchInputRef = useRef(null);
const groupsCreateGroupButtonRef = useRef(null);
const invitesHelpButtonRef = useRef(null);
const invitesReloadButtonRef = useRef(null);
const invitesTableRef = useRef(null);
const invitesSearchInputRef = useRef(null);
const invitesCreateInviteButtonRef = useRef(null);
Expand Down Expand Up @@ -791,7 +793,7 @@ export default function UsersPage(props: PageProps) {
{
title: 'Reload Invites',
description: 'Click here to reload invites',
target: () => reloadUsersButtonRef.current,
target: () => invitesReloadButtonRef.current,
placement: 'bottom',
},
{
Expand Down Expand Up @@ -968,9 +970,10 @@ export default function UsersPage(props: PageProps) {
<Button
title="Go to Users documentation"
size="large"
href={USERS_DOCS_URL}
href={ExternalLinks.USER_MGMT_DOCS_INVITES_URL}
target="_blank"
icon={<QuestionCircleOutlined />}
style={{ marginRight: '0.5em' }}
ref={invitesHelpButtonRef}
/>
<Button
Expand All @@ -982,7 +985,12 @@ export default function UsersPage(props: PageProps) {
>
<InfoCircleOutlined /> Start Tour
</Button>
<Button size="large" onClick={() => loadInvites()} style={{ marginRight: '0.5em' }}>
<Button
size="large"
onClick={() => loadInvites()}
style={{ marginRight: '0.5em' }}
ref={invitesReloadButtonRef}
>
<ReloadOutlined /> Reload invites
</Button>
<Button
Expand Down

0 comments on commit 1849535

Please sign in to comment.