feat(asset): record and display agent provenance on assets and audit logs (#380)

* feat(asset): record and display agent provenance on assets and audit logs

* style(webui): apply 30% translucent frosted glass background to bot badges

* style(webui): match bot icon badge style to thumbnail media overlay (bg-black/60 text-white)

* style(webui): use "AI" text badge with pdf overlay style instead of bot icon
This commit is contained in:
Yiling-J
2026-09-04 11:27:52 +08:00
committed by GitHub
parent 52330869a2
commit dd0ea05a88
39 changed files with 1699 additions and 108 deletions
@@ -19,7 +19,7 @@ import { Input } from '@/ui/components/ui/input'
import { Button } from '@/ui/components/ui/button'
import { Popover, PopoverContent, PopoverTrigger } from '@/ui/components/ui/popover'
import { Checkbox } from '@/ui/components/ui/checkbox'
import { Loader2, Search, Filter, Activity, X } from 'lucide-react'
import { Loader2, Search, Filter, Activity, X, Bot } from 'lucide-react'
import { formatTimeAgo } from '@/ui/lib/time'
const ALL_AUDIT_ACTIONS = Object.values(AuditAction)
@@ -353,9 +353,17 @@ export function AuditLogsDashboard({ teamId }: AuditLogsDashboardProps) {
{userName.slice(0, 2).toUpperCase()}
</AvatarFallback>
</Avatar>
<span className="text-xs font-medium text-foreground truncate max-w-[140px]">
{userName}
<span className="text-xs font-medium text-foreground truncate max-w-[160px]">
{log.agent
? m.user_via_agent({
user: userName,
agent: log.agent.name,
})
: userName}
</span>
{log.agent && (
<Bot className="h-3.5 w-3.5 text-muted-foreground shrink-0" />
)}
</div>
</TableCell>
<TableCell className="py-3 text-xs font-mono text-muted-foreground">