From 1382694aaa41d29bacc70529c04257e27852dfaa Mon Sep 17 00:00:00 2001 From: duy Date: Thu, 29 Jan 2026 15:49:35 -0800 Subject: [PATCH] chore(boltbot): remove AI-generated comment slop, gitignore specs --- .gitignore | 3 +++ extensions/boltbot/dashboard/src/App.tsx | 2 -- extensions/boltbot/dashboard/src/index.css | 4 ++-- extensions/boltbot/src/dashboard-serve.ts | 4 ---- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 9dc547c9c..d263c91d9 100644 --- a/.gitignore +++ b/.gitignore @@ -69,5 +69,8 @@ IDENTITY.md USER.md .tgz +# specs (generated, not shipped) +docs/specs/ + # local tooling .serena/ diff --git a/extensions/boltbot/dashboard/src/App.tsx b/extensions/boltbot/dashboard/src/App.tsx index b34b917b7..4bbbfd627 100644 --- a/extensions/boltbot/dashboard/src/App.tsx +++ b/extensions/boltbot/dashboard/src/App.tsx @@ -56,7 +56,6 @@ export default function App() { setSearchParams({ anomalies: v ? "1" : "" }); } - // Polling: merge new receipts at the top, do NOT touch loadedCount or hasMore useEffect(() => { if (receipts) { setAllReceipts((prev) => { @@ -68,7 +67,6 @@ export default function App() { } }, [receipts]); - // Initial load: set hasMore and loadedCount once useEffect(() => { if (receipts && !initialLoadDone.current) { initialLoadDone.current = true; diff --git a/extensions/boltbot/dashboard/src/index.css b/extensions/boltbot/dashboard/src/index.css index 0003da816..1f90cb649 100644 --- a/extensions/boltbot/dashboard/src/index.css +++ b/extensions/boltbot/dashboard/src/index.css @@ -1,8 +1,8 @@ @import "tailwindcss"; body { - background-color: #0a0a0a; /* neutral-950 */ - color: #f5f5f5; /* neutral-100 */ + background-color: #0a0a0a; + color: #f5f5f5; font-family: "Space Grotesk", sans-serif; margin: 0; touch-action: manipulation; diff --git a/extensions/boltbot/src/dashboard-serve.ts b/extensions/boltbot/src/dashboard-serve.ts index 445706020..ac3dc3dcd 100644 --- a/extensions/boltbot/src/dashboard-serve.ts +++ b/extensions/boltbot/src/dashboard-serve.ts @@ -33,14 +33,11 @@ export function registerDashboardRoutes(api: PluginApi) { const idx = url.indexOf(basePath); let filePath = idx !== -1 ? url.slice(idx + basePath.length) : "/"; - // Strip query string const qIdx = filePath.indexOf("?"); if (qIdx !== -1) filePath = filePath.slice(0, qIdx); - // Default to index.html if (!filePath || filePath === "/") filePath = "/index.html"; - // Sanitize: prevent directory traversal const decoded = decodeURIComponent(filePath); const absolutePath = join(DIST_DIR, normalize(decoded)); const resolvedDist = resolve(DIST_DIR); @@ -55,7 +52,6 @@ export function registerDashboardRoutes(api: PluginApi) { try { content = readFileSync(absolutePath); } catch { - // SPA catch-all: serve index.html for unknown paths try { content = readFileSync(join(DIST_DIR, "index.html")); servingIndex = true;