feat: Enhance task filtering, smart scheduling, audit logs and translations
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-17 14:26:54 +01:00
parent 9819d8db0b
commit 2579df0b89
32 changed files with 2219 additions and 456 deletions
@@ -60,16 +60,18 @@ export function AuditLogsTable() {
{logs?.map((log) => (
<TableRow key={log.id}>
<TableCell className="whitespace-nowrap">
{format(new Date(log.createdAt), "MMM d, HH:mm:ss")}
{new Date(log.createdAt).toLocaleString(undefined, { dateStyle: 'medium', timeStyle: 'medium' })}
</TableCell>
<TableCell>
<Badge variant={log.source === 'AI' ? 'secondary' : 'outline'}>
{log.source}
{t(`audit.source.${log.source}`, { defaultValue: log.source })}
</Badge>
</TableCell>
<TableCell className="font-medium">{log.action}</TableCell>
<TableCell className="font-medium">
{t(`audit.action.${log.action}`, { defaultValue: log.action })}
</TableCell>
<TableCell>
{log.entityType}
{t(`audit.entity.${log.entityType}`, { defaultValue: log.entityType })}
{log.entityId && <span className="text-xs text-muted-foreground block truncate max-w-[100px]">{log.entityId}</span>}
</TableCell>
<TableCell className="text-sm text-muted-foreground w-1/3">