From 61c34699cb4c300b0b68f4af7ebb2e2986daf998 Mon Sep 17 00:00:00 2001 From: "Codex, agent ChatGPT" Date: Thu, 12 Mar 2026 11:37:46 +0100 Subject: [PATCH] Persist dashboard bot filter and sort --- internal/web/handler.go | 79 ++++++++++++++++++++++++++++++++++-- internal/web/handler_test.go | 6 +++ 2 files changed, 81 insertions(+), 4 deletions(-) diff --git a/internal/web/handler.go b/internal/web/handler.go index 952ebce..6b32e23 100644 --- a/internal/web/handler.go +++ b/internal/web/handler.go @@ -357,6 +357,9 @@ const overviewHTML = ` .panel { background: #111827; border: 1px solid #334155; border-radius: .75rem; padding: 1rem; overflow: auto; } .toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; } .toolbar .meta { font-size: .95rem; color: #94a3b8; } + .toolbar-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; } + .toggle { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; color: #cbd5e1; } + .toggle input { margin: 0; } .sort-button { appearance: none; background: transparent; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; } .sort-button[data-active="true"] { color: #dbeafe; } .actions { display: flex; gap: .35rem; flex-wrap: wrap; } @@ -393,7 +396,10 @@ const overviewHTML = `

Recent IPs

-
Last 24 hours · click a column to sort
+
+ +
Last 24 hours · click a column to sort
+
@@ -413,6 +419,11 @@ const overviewHTML = `