mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 01:16:49 +00:00
feat: added last login time
This commit is contained in:
+10
-5
@@ -293,7 +293,13 @@ export const IdentityTable = ({ handlePopUpOpen }: Props) => {
|
||||
{isPending && <TableSkeleton columns={3} innerKey="org-identities" />}
|
||||
{!isPending &&
|
||||
data?.identities?.map(
|
||||
({ identity: { id, name }, role, customRole, lastLoggedInAuthMethod }) => {
|
||||
({
|
||||
identity: { id, name },
|
||||
role,
|
||||
customRole,
|
||||
lastLoginAuthMethod,
|
||||
lastLoginTime
|
||||
}) => {
|
||||
return (
|
||||
<Tr
|
||||
className="h-10 cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700"
|
||||
@@ -309,14 +315,13 @@ export const IdentityTable = ({ handlePopUpOpen }: Props) => {
|
||||
>
|
||||
<Td className="group">
|
||||
{name}
|
||||
{lastLoggedInAuthMethod && (
|
||||
{lastLoginAuthMethod && lastLoginTime && (
|
||||
<Tooltip
|
||||
className="min-w-52 max-w-96"
|
||||
content={
|
||||
<LastLoginSection
|
||||
lastLoggedInAuthMethod={
|
||||
identityAuthToNameMap[lastLoggedInAuthMethod]
|
||||
}
|
||||
lastLoginAuthMethod={identityAuthToNameMap[lastLoginAuthMethod]}
|
||||
lastLoginTime={lastLoginTime}
|
||||
/>
|
||||
}
|
||||
>
|
||||
|
||||
+7
-3
@@ -481,7 +481,8 @@ export const OrgMembersTable = ({
|
||||
id: orgMembershipId,
|
||||
status,
|
||||
isActive,
|
||||
lastLoggedInAuthMethod
|
||||
lastLoginAuthMethod,
|
||||
lastLoginTime
|
||||
}) => {
|
||||
const name =
|
||||
u && u.firstName ? `${u.firstName} ${u.lastName ?? ""}`.trim() : null;
|
||||
@@ -530,11 +531,14 @@ export const OrgMembersTable = ({
|
||||
</Tooltip>
|
||||
</Badge>
|
||||
)}
|
||||
{lastLoggedInAuthMethod && (
|
||||
{lastLoginAuthMethod && lastLoginTime && (
|
||||
<Tooltip
|
||||
className="min-w-52 max-w-96"
|
||||
content={
|
||||
<LastLoginSection lastLoggedInAuthMethod={lastLoggedInAuthMethod} />
|
||||
<LastLoginSection
|
||||
lastLoginAuthMethod={lastLoginAuthMethod}
|
||||
lastLoginTime={lastLoginTime}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<FontAwesomeIcon
|
||||
|
||||
Reference in New Issue
Block a user