add audit log labels
This commit is contained in:
parent
54cefc8360
commit
32340e444b
|
@ -9,7 +9,7 @@ import { sha256sum } from "@/lib/util";
|
|||
import { Avatar, Card, Code, Flex, Grid, Heading, IconButton, Text } from "@radix-ui/themes";
|
||||
import dayjs from "dayjs";
|
||||
import relativeTime from "dayjs/plugin/relativeTime";
|
||||
import { ArrowLeftIcon, ArrowRightIcon, AsteriskSquareIcon, GhostIcon, LogInIcon, UserCheckIcon, UserPlusIcon, UsersIcon, UsersRoundIcon, XIcon } from "lucide-react";
|
||||
import { ArrowLeftIcon, ArrowRightIcon, AsteriskSquareIcon, GhostIcon, KeyRoundIcon, LogInIcon, UserCheckIcon, UserPlusIcon, UsersIcon, UsersRoundIcon, XIcon } from "lucide-react";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
dayjs.extend(relativeTime);
|
||||
|
@ -23,6 +23,8 @@ const LOG_ACTION_HUMAN_READABLE: { [key in AuditLogAction]?: string } = {
|
|||
login: "Logged in",
|
||||
changeOwnPassword: "Changed their own password",
|
||||
createUser: "Created a new user",
|
||||
createApiKey: "Created an API key",
|
||||
deleteApiKey: "Deleted an API key",
|
||||
};
|
||||
|
||||
export default function Audit() {
|
||||
|
@ -50,6 +52,8 @@ export default function Audit() {
|
|||
login: <LogInIcon />,
|
||||
changeOwnPassword: <AsteriskSquareIcon />,
|
||||
createUser: <UserPlusIcon />,
|
||||
createApiKey: <KeyRoundIcon />,
|
||||
deleteApiKey: <KeyRoundIcon />,
|
||||
};
|
||||
|
||||
function NavigationButtons() {
|
||||
|
|
Loading…
Reference in a new issue