From a6b3be72a9582082e4b24195387c309a2372c3d5 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Thu, 8 May 2025 14:02:25 -0700 Subject: [PATCH] Make minor PR adjustments --- .../components/SshHostGroupModal.tsx | 4 +- .../components/SshHostGroupsSection.tsx | 50 ++++++++++++------- .../components/SshHostsSection.tsx | 2 +- 3 files changed, 36 insertions(+), 20 deletions(-) diff --git a/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupModal.tsx b/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupModal.tsx index 081af4cbf..84be5a96d 100644 --- a/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupModal.tsx +++ b/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupModal.tsx @@ -57,8 +57,8 @@ export type FormData = z.infer; export const SshHostGroupModal = ({ popUp, handlePopUpToggle }: Props) => { const { currentWorkspace } = useWorkspace(); - const projectId = currentWorkspace?.id || ""; - const { data: sshHostGroups } = useListWorkspaceSshHostGroups(currentWorkspace.id); + const projectId = currentWorkspace.id; + const { data: sshHostGroups } = useListWorkspaceSshHostGroups(projectId); const { data: members = [] } = useGetWorkspaceUsers(projectId); const { data: groups = [] } = useListWorkspaceGroups(projectId); const [expandedMappings, setExpandedMappings] = useState>({}); diff --git a/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupsSection.tsx b/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupsSection.tsx index 70036d88a..e2c731f97 100644 --- a/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupsSection.tsx +++ b/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupsSection.tsx @@ -1,4 +1,4 @@ -import { faPlus } from "@fortawesome/free-solid-svg-icons"; +import { faArrowUpRightFromSquare, faPlus } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal"; @@ -56,22 +56,38 @@ export const SshHostGroupsSection = () => {

Host Groups

- - {(isAllowed) => ( - - )} - +
+ + + Documentation{" "} + + + + + {(isAllowed) => ( + + )} + +
diff --git a/frontend/src/pages/ssh/SshHostsPage/components/SshHostsSection.tsx b/frontend/src/pages/ssh/SshHostsPage/components/SshHostsSection.tsx index a3f9917ba..ed190db21 100644 --- a/frontend/src/pages/ssh/SshHostsPage/components/SshHostsSection.tsx +++ b/frontend/src/pages/ssh/SshHostsPage/components/SshHostsSection.tsx @@ -42,7 +42,7 @@ export const SshHostsSection = () => {

Hosts

-
+