From 4cd8a641b1b0f652ecf228bf8b02fc64b1d49f45 Mon Sep 17 00:00:00 2001 From: x032205 Date: Wed, 10 Dec 2025 20:19:36 -0500 Subject: [PATCH] tweaks --- .../components/PamAccountCard.tsx | 38 ++++++++++--------- .../components/PamAccountsTable.tsx | 6 +-- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountCard.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountCard.tsx index 235607e9b5..032483a636 100644 --- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountCard.tsx +++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountCard.tsx @@ -1,6 +1,6 @@ -import { LogInIcon } from "lucide-react"; - +import { Badge, UnstableButton } from "@app/components/v3"; import { PAM_RESOURCE_TYPE_MAP, TPamAccount } from "@app/hooks/api/pam"; +import { LogInIcon, PackageOpenIcon } from "lucide-react"; type Props = { account: TPamAccount; @@ -9,39 +9,43 @@ type Props = { }; export const PamAccountCard = ({ account, onAccess, accountPath }: Props) => { - const { name, description } = account; + const { name, description, resource } = account; const { image, name: resourceTypeName } = PAM_RESOURCE_TYPE_MAP[account.resource.resourceType]; return ( ); }; diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx index 153680775e..7c44a4fa91 100644 --- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx +++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx @@ -262,7 +262,7 @@ export const PamAccountsTable = ({ projectId }: Props) => { setAccountView(e); // Reset perPage to appropriate default for the view - const newPerPage = e === PamAccountView.Flat ? 16 : 10; + const newPerPage = e === PamAccountView.Flat ? 12 : 10; setPerPage(newPerPage); setUserTablePreference("pamAccountsTable", PreferenceKey.PerPage, newPerPage); @@ -417,7 +417,7 @@ export const PamAccountsTable = ({ projectId }: Props) => { {accountView === PamAccountView.Nested && } {accountView === PamAccountView.Flat ? ( <> -
+
{filteredAccounts.map((account) => ( { perPage={perPage} onChangePage={(newPage) => setPage(newPage)} onChangePerPage={handlePerPageChange} - perPageList={[8, 12, 16, 20, 40]} + perPageList={[9, 12, 15, 18, 27]} /> ) : (