2

Persist dashboard bot filter and sort

This commit is contained in:
2026-03-12 11:37:46 +01:00
parent d31a7b2f60
commit 61c34699cb
2 changed files with 81 additions and 4 deletions

View File

@@ -77,6 +77,12 @@ func TestHandlerServesOverviewAndManualActions(t *testing.T) {
if strings.Contains(recorder.Body.String(), "Recent events") {
t.Fatalf("overview page should no longer render recent events block")
}
if !strings.Contains(recorder.Body.String(), "Show known bots") {
t.Fatalf("overview page should expose the known bots toggle")
}
if !strings.Contains(recorder.Body.String(), "localStorage") {
t.Fatalf("overview page should persist preferences in localStorage")
}
recorder = httptest.NewRecorder()
request = httptest.NewRequest(http.MethodGet, "/ips/203.0.113.10", nil)