From cb4443a8c19bbaf1311390c995c15f54a2d678d4 Mon Sep 17 00:00:00 2001 From: "Jakub A. W" Date: Fri, 17 Apr 2026 14:14:49 +0200 Subject: [PATCH] fix(audit): improve failover and timeout visibility --- .../js/modules/dashboard-layout.test.js | 2 + .../js/modules/workflows-layout.test.js | 4 +- .../dashboard/static/js/modules/workflows.js | 122 +++++++++++++-- .../static/js/modules/workflows.test.js | 141 ++++++++++++++++++ internal/admin/dashboard/templates/index.html | 2 + .../dashboard/templates/workflow-chart.html | 10 ++ internal/admin/handler.go | 2 +- internal/auditlog/auditlog.go | 11 ++ internal/auditlog/auditlog_test.go | 18 +++ internal/auditlog/middleware.go | 38 +++++ internal/auditlog/reader_postgresql.go | 2 +- internal/auditlog/reader_sqlite.go | 4 +- .../auditlog/reader_sqlite_boundary_test.go | 59 ++++++++ internal/auditlog/stream_wrapper.go | 4 + internal/llmclient/client.go | 31 +++- internal/llmclient/client_test.go | 70 +++++++++ internal/server/fallback_test.go | 17 +++ .../internal_chat_completion_executor.go | 38 ++--- .../server/translated_inference_service.go | 64 ++++---- 19 files changed, 575 insertions(+), 64 deletions(-) diff --git a/internal/admin/dashboard/static/js/modules/dashboard-layout.test.js b/internal/admin/dashboard/static/js/modules/dashboard-layout.test.js index 4334a986..ec87d64a 100644 --- a/internal/admin/dashboard/static/js/modules/dashboard-layout.test.js +++ b/internal/admin/dashboard/static/js/modules/dashboard-layout.test.js @@ -366,6 +366,7 @@ test('audit toolbar uses a full-width search row above the select row with a rig indexTemplate, /id="audit-filter-search"[^>]*placeholder="Search by request ID, model, provider, path, user path, or error\.\.\."/ ); + assert.match(indexTemplate, /id="audit-filter-status"[\s\S]*