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

@@ -2844,6 +2844,7 @@
"timestamp": "Timestamp",
"before": "Before",
"after": "After",
"queryParams": "Query Parameters",
"requestBody": "Request Body",
"fullDetails": "Full Details"
},

View File

@@ -2629,6 +2629,7 @@
"timestamp": "زمان",
"before": "قبل",
"after": "بعد",
"queryParams": "پارامترهای درخواست",
"requestBody": "داده‌های درخواست",
"fullDetails": "جزئیات کامل"
},

View File

@@ -3396,7 +3396,8 @@
"timestamp": "Время",
"before": "До",
"after": "После",
"requestBody": "Данные запроса",
"queryParams": "Параметры запроса",
"requestBody": "Тело запроса",
"fullDetails": "Полные данные"
},
"time": {

View File

@@ -2628,6 +2628,7 @@
"timestamp": "时间戳",
"before": "之前",
"after": "之后",
"queryParams": "请求参数",
"requestBody": "请求数据",
"fullDetails": "完整详情"
},

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 &&