From 9376e748464cae68cf860efaa871019db5231ced Mon Sep 17 00:00:00 2001 From: vshnosngh Date: Tue, 27 Oct 2026 16:58:46 +0530 Subject: [PATCH] perf(bulk-api-tester): resolve collections search lag with pre-indexing, debouncing, and token matching --- cmd/bulk-api-tester/main.go | 3 + web/bulk-api-tester/app.js | 520 ++++++++++++++++++++++++++------- web/bulk-api-tester/index.html | 2 +- web/bulk-api-tester/styles.css | 115 ++++++++ 4 files changed, 534 insertions(+), 106 deletions(-) diff --git a/cmd/bulk-api-tester/main.go b/cmd/bulk-api-tester/main.go index a95fc09..2850f3b 100644 --- a/cmd/bulk-api-tester/main.go +++ b/cmd/bulk-api-tester/main.go @@ -40,14 +40,17 @@ func registerRoutes(r chi.Router) { }) r.Get("/styles.css", func(w http.ResponseWriter, req *http.Request) { w.Header().Set("Content-Type", "text/css; charset=utf-8") + w.Header().Set("Cache-Control", "no-cache, must-revalidate") http.ServeFile(w, req, filepath.Join(webDir, "styles.css")) }) r.Get("/style.css", func(w http.ResponseWriter, req *http.Request) { w.Header().Set("Content-Type", "text/css; charset=utf-8") + w.Header().Set("Cache-Control", "no-cache, must-revalidate") http.ServeFile(w, req, filepath.Join(webDir, "styles.css")) }) r.Get("/app.js", func(w http.ResponseWriter, req *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") + w.Header().Set("Cache-Control", "no-cache, must-revalidate") http.ServeFile(w, req, filepath.Join(webDir, "app.js")) }) diff --git a/web/bulk-api-tester/app.js b/web/bulk-api-tester/app.js index 7edcce7..bf477af 100644 --- a/web/bulk-api-tester/app.js +++ b/web/bulk-api-tester/app.js @@ -136,9 +136,9 @@ const App = {