feat: show query params in audit log details

This commit is contained in:
Fringg
2026-02-25 05:24:25 +03:00
parent 5d0e3539e2
commit 66f7fcb3dc
5 changed files with 19 additions and 1 deletions

View File

@@ -363,6 +363,20 @@ function LogEntryCard({ entry, isExpanded, onToggle }: LogEntryCardProps) {
</div>
)}
{/* Query params */}
{entry.details &&
'query_params' in entry.details &&
entry.details.query_params != null && (
<div className="sm:col-span-2">
<p className="mb-1 text-xs font-medium uppercase text-dark-500">
{t('admin.auditLog.details.queryParams')}
</p>
<pre className="max-h-40 overflow-auto rounded-lg bg-dark-900 p-2 text-xs text-dark-300">
{JSON.stringify(entry.details.query_params, null, 2)}
</pre>
</div>
)}
{/* Request body */}
{entry.details &&
'request_body' in entry.details &&