diff --git a/Dockerfile.saas b/Dockerfile.saas index f2efb461..1be7d948 100644 --- a/Dockerfile.saas +++ b/Dockerfile.saas @@ -31,7 +31,7 @@ ENV VITE_NETMAKER_SUPPORT_EMAIL=help@netmaker.io # Other vars ENV VITE_NETCLIENT_BIN_URL_TEMPLATE=https://fileserver.netmaker.io/releases/download/:version/:fileName -ENV VITE_NETMAKER_TRIAL_PERIOD_DOCS_URL=https://docs.netmaker.io/install.html#after-trial-period-ends +ENV VITE_NETMAKER_TRIAL_PERIOD_DOCS_URL=https://docs.netmaker.io/docs/server-installation/quick-install#after-trial-period-ends RUN npm ci RUN npm audit fix || echo "ATTENTION!!! Failed to automatically patch vulnerabilities" >&2 diff --git a/Dockerfile.standalone b/Dockerfile.standalone index a050495a..beaffe6c 100644 --- a/Dockerfile.standalone +++ b/Dockerfile.standalone @@ -46,7 +46,7 @@ ENV VITE_TENANT_PRIMARY_COLOR= # Other vars ENV VITE_NETCLIENT_BIN_URL_TEMPLATE=https://fileserver.netmaker.io/releases/download/:version/:fileName -ENV VITE_NETMAKER_TRIAL_PERIOD_DOCS_URL=https://docs.netmaker.io/install.html#after-trial-period-ends +ENV VITE_NETMAKER_TRIAL_PERIOD_DOCS_URL=https://docs.netmaker.io/docs/server-installation/quick-install#after-trial-period-ends RUN npm ci RUN npm audit fix || echo "ATTENTION!!! Failed to automatically patch vulnerabilities" >&2 diff --git a/src/App.scss b/src/App.scss index 78c6730b..5c501005 100644 --- a/src/App.scss +++ b/src/App.scss @@ -186,4 +186,17 @@ td.ant-table-column-sort { background-color: transparent; } +} + +.bottom-sidebar-menu-open { + border-right: none; + position: absolute; + bottom: 0; +} + +.bottom-sidebar-menu-close { + border-right: none; + position: absolute; + bottom: 0; + width: 80px !important; } \ No newline at end of file diff --git a/src/components/RacDownloadBanner.tsx b/src/components/RacDownloadBanner.tsx index 0cb6c14b..0951c651 100644 --- a/src/components/RacDownloadBanner.tsx +++ b/src/components/RacDownloadBanner.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react'; +import { useState, useEffect } from 'react'; import { ExternalLinks } from '@/constants/LinkAndImageConstants'; import { CloseCircleFilled, DownloadOutlined } from '@ant-design/icons'; import { Button } from 'antd'; diff --git a/src/components/modals/add-user-modal/AddUserModal.tsx b/src/components/modals/add-user-modal/AddUserModal.tsx index b6425235..6d2c1a3b 100644 --- a/src/components/modals/add-user-modal/AddUserModal.tsx +++ b/src/components/modals/add-user-modal/AddUserModal.tsx @@ -76,7 +76,7 @@ export default function AddUserModal({ const [activeTab, setActiveTab] = useState(defaultTabKey); const [isLoadingPlatformRoles, setIsLoadingPlatformRoles] = useState(true); - const palVal = Form.useWatch('platform_role_id', form); + const palVal: UserRoleId = Form.useWatch('platform_role_id', form); const networkRolesTableData = useMemo(() => { const roles = networkRoles @@ -287,6 +287,31 @@ export default function AddUserModal({ [getGroupsContent, getCustomRolesContent], ); + const getPalDesc = useCallback((pal: UserRoleId) => { + switch (pal) { + case 'admin': + return Admins can access all features and manage all users.; + case 'platform-user': + return ( + + Platform users can log into the dashboard and access the networks they are assigned to. + + ); + case 'service-user': + return ( + + Service users cannot log into the dashboard; they use{' '} + + RAC + {' '} + to access their assigned networks. + + ); + default: + return ''; + } + }, []); + return ( Create a User} @@ -352,17 +377,7 @@ export default function AddUserModal({ tooltip="This specifies the server-wide permissions this user will have" rules={[{ required: true }]} initialValue={isServerEE ? undefined : 'admin'} - extra={ - - Admins can access all features and manage all users. Platform users can log into the dashboard - and access the networks they are assigned to. Service users cannot log into the dashboard; - they use{' '} - - RAC - {' '} - to access their assigned networks. - - } + extra={getPalDesc(palVal)} > {platformRoles.map((role) => ( diff --git a/src/components/modals/invite-user-modal/InviteUserModal.tsx b/src/components/modals/invite-user-modal/InviteUserModal.tsx index de3b3360..f72807d7 100644 --- a/src/components/modals/invite-user-modal/InviteUserModal.tsx +++ b/src/components/modals/invite-user-modal/InviteUserModal.tsx @@ -355,6 +355,31 @@ export default function InviteUserModal({ [getGroupsContent, getCustomRolesContent], ); + const getPalDesc = useCallback((pal: UserRoleId) => { + switch (pal) { + case 'admin': + return Admins can access all features and manage all users.; + case 'platform-user': + return ( + + Platform users can log into the dashboard and access the networks they are assigned to. + + ); + case 'service-user': + return ( + + Service users cannot log into the dashboard; they use{' '} + + RAC + {' '} + to access their assigned networks. + + ); + default: + return ''; + } + }, []); + return ( Invite users} @@ -405,17 +430,7 @@ export default function InviteUserModal({ tooltip="This specifies the server-wide permissions this user will have" rules={[{ required: true }]} initialValue={isServerEE ? undefined : 'admin'} - extra={ - - Admins can access all features and manage all users. Platform users can log into the - dashboard and access the networks they are assigned to. Service users cannot log into the - dashboard; they use{' '} - - RAC - {' '} - to access their assigned networks. - - } + extra={getPalDesc(palVal)} > {platformRoles.map((role) => ( diff --git a/src/components/modals/new-host-modal/NewHostModal.tsx b/src/components/modals/new-host-modal/NewHostModal.tsx index d2f4c39d..83e6cb1f 100644 --- a/src/components/modals/new-host-modal/NewHostModal.tsx +++ b/src/components/modals/new-host-modal/NewHostModal.tsx @@ -444,7 +444,11 @@ export default function NewHostModal({ <> We recommend using the remote access client for Windows. Go to remote access tab and you can follow the instructions for setup - + {' '} here. @@ -482,7 +486,11 @@ export default function NewHostModal({ <> We recommend using the remote access client for Mac. Go to remote access tab and you can follow the instructions for setup - + {' '} here. @@ -552,7 +560,7 @@ export default function NewHostModal({