Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge branch 'main' into ENG-4006

x0322054fbe81105da8
diff --cc frontend/src/pages/pam/PamAccountsPage/components/PamAccountRow.tsx
index dde2bb4bc1,9c30bae0d4..f9ce8f33b0
--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountRow.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountRow.tsx
@@@ -5,13 -4,12 +4,13 @@@ import
faCopy,
faEdit,
faEllipsisV,
- faFolder,
faRightToBracket,
+ faRotate,
faTrash
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { formatDistance } from "date-fns";
-import { FolderIcon, PackageOpenIcon, RefreshCwIcon } from "lucide-react";
++import { FolderIcon, PackageOpenIcon } from "lucide-react";
import { twMerge } from "tailwind-merge";
import { createNotification } from "@app/components/notifications";
@@@ -103,23 -101,10 +102,16 @@@ export const PamAccountRow = (
</Badge>
)}
{account.lastRotatedAt && (
- <Badge variant="info">
- <RefreshCwIcon />
- <span>Rotated {formatDistance(new Date(), account.lastRotatedAt)} ago</span>
- </Badge>
+ <Tooltip
+ className="max-w-sm text-center"
+ isDisabled={!account.lastRotationMessage}
+ content={account.lastRotationMessage}
+ >
- <Badge
- className={twMerge(
- "flex h-5 w-min items-center gap-1.5 whitespace-nowrap",
- account.rotationStatus === "failed"
- ? "bg-red/20 text-red"
- : "bg-green/20 text-green"
- )}
- >
++ <Badge variant={account.rotationStatus === "failed" ? "danger" : "success"}>
+ <FontAwesomeIcon icon={faRotate} />
+ <span>Rotated {formatDistance(new Date(), account.lastRotatedAt)} ago</span>
+ </Badge>
+ </Tooltip>
)}
</div>
</div>