mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05:00
Merge pull request #4986 from Infisical/improvement-unknown-user-tooltip
improvement(frontend): add tooltip explaining unknown user actor in audit logs
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { faCaretDown, faCaretRight } from "@fortawesome/free-solid-svg-icons";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { InfoIcon } from "lucide-react";
|
||||
|
||||
import { Td, Tr } from "@app/components/v2";
|
||||
import { Td, Tooltip, Tr } from "@app/components/v2";
|
||||
import { formatDateTime, Timezone } from "@app/helpers/datetime";
|
||||
import { useToggle } from "@app/hooks";
|
||||
import { ActorType } from "@app/hooks/api/auditLogs/enums";
|
||||
@@ -24,6 +25,15 @@ const Tag = ({ label, value }: TagProps) => {
|
||||
<div className="flex items-center space-x-1.5">
|
||||
<div className="rounded-sm bg-mineshaft-600 p-0.5 pl-1 font-mono">{label}:</div>
|
||||
<div>{value}</div>
|
||||
{value === "unknownUser" && (
|
||||
<Tooltip
|
||||
side="right"
|
||||
className="max-w-sm"
|
||||
content="This action doesn't require authentication, so the requesting actor cannot be identified."
|
||||
>
|
||||
<InfoIcon size={14} className="text-mineshaft-300" />
|
||||
</Tooltip>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user