mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 08:27:36 +00:00
feat: reptile feedback
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { faEnvelope } from "@fortawesome/free-solid-svg-icons";
|
import { faShield } from "@fortawesome/free-solid-svg-icons";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -6,13 +6,13 @@ type Props = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const LastLoginSection = ({ lastLoggedInAuthMethod }: Props) => (
|
export const LastLoginSection = ({ lastLoggedInAuthMethod }: Props) => (
|
||||||
<div className="">
|
<div>
|
||||||
<div className="mb-2 flex items-center gap-2 border-b border-mineshaft-600 pb-1">
|
<div className="mb-2 flex items-center gap-2 border-b border-mineshaft-600 pb-1">
|
||||||
<div className="font-medium">Last Login Details</div>
|
<div className="font-medium">Last Login Details</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2 text-sm">
|
<div className="flex items-center gap-2 text-sm">
|
||||||
<div className="rounded bg-mineshaft-700 p-1 px-2">
|
<div className="rounded bg-mineshaft-700 p-1 px-2">
|
||||||
<FontAwesomeIcon icon={faEnvelope} />
|
<FontAwesomeIcon icon={faShield} />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<div className="text-sm font-medium">Authentication Method</div>
|
<div className="text-sm font-medium">Authentication Method</div>
|
||||||
|
|||||||
+11
-2
@@ -52,7 +52,12 @@ import {
|
|||||||
setUserTablePreference
|
setUserTablePreference
|
||||||
} from "@app/helpers/userTablePreferences";
|
} from "@app/helpers/userTablePreferences";
|
||||||
import { usePagination, useResetPageHelper } from "@app/hooks";
|
import { usePagination, useResetPageHelper } from "@app/hooks";
|
||||||
import { useGetOrgRoles, useSearchIdentities, useUpdateIdentity } from "@app/hooks/api";
|
import {
|
||||||
|
identityAuthToNameMap,
|
||||||
|
useGetOrgRoles,
|
||||||
|
useSearchIdentities,
|
||||||
|
useUpdateIdentity
|
||||||
|
} from "@app/hooks/api";
|
||||||
import { OrderByDirection } from "@app/hooks/api/generic/types";
|
import { OrderByDirection } from "@app/hooks/api/generic/types";
|
||||||
import { OrgIdentityOrderBy } from "@app/hooks/api/organization/types";
|
import { OrgIdentityOrderBy } from "@app/hooks/api/organization/types";
|
||||||
import { UsePopUpState } from "@app/hooks/usePopUp";
|
import { UsePopUpState } from "@app/hooks/usePopUp";
|
||||||
@@ -308,7 +313,11 @@ export const IdentityTable = ({ handlePopUpOpen }: Props) => {
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
className="min-w-52 max-w-96"
|
className="min-w-52 max-w-96"
|
||||||
content={
|
content={
|
||||||
<LastLoginSection lastLoggedInAuthMethod={lastLoggedInAuthMethod} />
|
<LastLoginSection
|
||||||
|
lastLoggedInAuthMethod={
|
||||||
|
identityAuthToNameMap[lastLoggedInAuthMethod]
|
||||||
|
}
|
||||||
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
|
|||||||
+4
-2
@@ -22,7 +22,7 @@ import {
|
|||||||
} from "@app/components/v2";
|
} from "@app/components/v2";
|
||||||
import { OrgPermissionIdentityActions, OrgPermissionSubjects } from "@app/context";
|
import { OrgPermissionIdentityActions, OrgPermissionSubjects } from "@app/context";
|
||||||
import { useTimedReset } from "@app/hooks";
|
import { useTimedReset } from "@app/hooks";
|
||||||
import { useGetIdentityById } from "@app/hooks/api";
|
import { identityAuthToNameMap, useGetIdentityById } from "@app/hooks/api";
|
||||||
import { UsePopUpState } from "@app/hooks/usePopUp";
|
import { UsePopUpState } from "@app/hooks/usePopUp";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -140,7 +140,9 @@ export const IdentityDetailsSection = ({ identityId, handlePopUpOpen }: Props) =
|
|||||||
</div>
|
</div>
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<p className="text-sm font-semibold text-mineshaft-300">Last Login Auth Method</p>
|
<p className="text-sm font-semibold text-mineshaft-300">Last Login Auth Method</p>
|
||||||
<p className="text-sm text-mineshaft-300">{data.lastLoggedInAuthMethod || "-"}</p>
|
<p className="text-sm text-mineshaft-300">
|
||||||
|
{data.lastLoggedInAuthMethod ? identityAuthToNameMap[data.lastLoggedInAuthMethod] : "-"}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<p className="text-sm font-semibold text-mineshaft-300">Delete Protection</p>
|
<p className="text-sm font-semibold text-mineshaft-300">Delete Protection</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user