misc: initial setup for migration of audit logs

This commit is contained in:
Sheen Capadngan
2024-10-02 22:30:07 +08:00
parent e6e1ed7ca9
commit 86cb51364a
16 changed files with 227 additions and 47 deletions
+1 -4
View File
@@ -886,8 +886,5 @@ export type AuditLog = {
userAgentType: UserAgentType;
createdAt: string;
updatedAt: string;
project?: {
name: string;
slug: string;
};
projectName?: string;
};
@@ -573,7 +573,7 @@ export const LogsTableRow = ({ auditLog, isOrgAuditLogs, showActorColumn }: Prop
<Tr className={`log-${auditLog.id} h-10 border-x-0 border-b border-t-0`}>
<Td>{formatDate(auditLog.createdAt)}</Td>
<Td>{`${eventToNameMap[auditLog.event.type]}`}</Td>
{isOrgAuditLogs && <Td>{auditLog?.project?.name ?? "N/A"}</Td>}
{isOrgAuditLogs && <Td>{auditLog?.projectName ?? "N/A"}</Td>}
{showActorColumn && renderActor(auditLog.actor)}
{renderSource()}
{renderMetadata(auditLog.event)}