From 7cb9999451c6c97d0bb4146b54ed6dca87ff5b25 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 17 Apr 2026 13:26:27 -0500 Subject: [PATCH] Rebuild search UI: zero dependencies, plain JS, DOM-only, works MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced complex dashboard with minimal search.html: - No external JS/CSS files, no transpilation, no module imports - Plain JS with .then() chains (no async/await compat issues) - DOM-only rendering via createElement (no innerHTML with data) - 20s AbortController timeout so fetch never hangs - Detects /lakehouse/ proxy prefix automatically - 7KB total, loads in 18ms Calls lakehouse /vectors/hybrid directly — SQL filters always apply, works even when HNSW isn't loaded (brute-force fallback). Co-Authored-By: Claude Opus 4.6 (1M context) --- mcp-server/index.ts | 6 +- mcp-server/search.html | 178 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 mcp-server/search.html diff --git a/mcp-server/index.ts b/mcp-server/index.ts index b454249..a447742 100644 --- a/mcp-server/index.ts +++ b/mcp-server/index.ts @@ -852,9 +852,11 @@ tr:hover{background:#111827} }); } - // Dashboard UI + // Dashboard — calls lakehouse /vectors/hybrid directly (no gateway hop) if (url.pathname === "/" || url.pathname === "/dashboard") { - return new Response(Bun.file(import.meta.dir + "/dashboard.html")); + return new Response(Bun.file(import.meta.dir + "/search.html"), { + headers: { ...cors, "Content-Type": "text/html" }, + }); } if (url.pathname === "/dashboard.css") { return new Response(Bun.file(import.meta.dir + "/dashboard.css"), { headers: { "Content-Type": "text/css" } }); diff --git a/mcp-server/search.html b/mcp-server/search.html new file mode 100644 index 0000000..69078ae --- /dev/null +++ b/mcp-server/search.html @@ -0,0 +1,178 @@ + + + +Lakehouse Search + +

Search 500,000 Workers

Type what you need — AI understands meaning

+
+
+ + +
+
+ + +
+
+ warehouse help + dependable machine operator + safety trained chemical plant + bilingual shipping + experienced welder Ohio +
+
Type a search and click Search
+View Proof of Work +
+ +