From 084624d0c1e294825e97f15fc7753b85b53e5235 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 22 Feb 2026 21:30:08 -0500 Subject: [PATCH] Show IP address in audit log table and expanded detail row - Add IP column to the logs table (hidden on mobile) - Fix expanded detail row condition: also expands when ip_address is set even if there is no JSON details blob (login/logout events have ip_address but null details, so they previously could not be expanded at all) - Show ip_address as a plain line above the JSON blob in the detail row - Update colspan from 6 to 7 for the new column Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/views/LogsView.vue | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/LogsView.vue b/frontend/src/views/LogsView.vue index e8b1b31..f11b3d8 100644 --- a/frontend/src/views/LogsView.vue +++ b/frontend/src/views/LogsView.vue @@ -198,6 +198,7 @@ function clearFilters() { Category User Action / Endpoint + IP Status Duration @@ -220,6 +221,7 @@ function clearFilters() { {{ entry.method }} {{ displayLabel(entry) }} + {{ entry.ip_address || "—" }} {{ entry.status_code }} @@ -230,9 +232,10 @@ function clearFilters() { {{ entry.duration_ms != null ? entry.duration_ms + "ms" : "—" }} - - -
{{ formatDetails(entry.details) }}
+ + +
IP: {{ entry.ip_address }}
+
{{ formatDetails(entry.details) }}
@@ -406,11 +409,23 @@ function clearFilters() { font-family: monospace; font-size: 0.85rem; } +.cell-ip { + font-family: monospace; + font-size: 0.8rem; + color: var(--color-text-muted); + white-space: nowrap; +} .cell-duration { color: var(--color-text-muted); font-size: 0.8rem; white-space: nowrap; } +.detail-ip { + font-family: monospace; + font-size: 0.8rem; + color: var(--color-text-muted); + margin-bottom: 0.4rem; +} .text-error { color: var(--color-danger); }