← back to build-pages
ui: fleet search now shows by_project breakdown — '26 hits — AsSeenInMovies 13 · Stars of Design 12 · build-pages 1 (showing 20)'
4287f443a6625fe56af8a6c365570ccf5502568d · 2026-05-13 13:53:39 -0700 · SteveStudio2
Files touched
Diff
commit 4287f443a6625fe56af8a6c365570ccf5502568d
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Wed May 13 13:53:39 2026 -0700
ui: fleet search now shows by_project breakdown — '26 hits — AsSeenInMovies 13 · Stars of Design 12 · build-pages 1 (showing 20)'
---
server.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/server.js b/server.js
index a66dcdf..1b4ddd3 100644
--- a/server.js
+++ b/server.js
@@ -334,7 +334,13 @@ app.get('/', async (_req, res, next) => {
ft.textContent = 'searching…';
const r = await fetch('/api/search?q=' + encodeURIComponent(q) + '&limit=50');
const data = await r.json();
- ft.textContent = data.total + ' hits across the fleet';
+ const breakdown = data.by_project
+ .filter(p => p.count > 0)
+ .map(p => \`\${p.name} \${p.count}\`)
+ .join(' · ');
+ ft.textContent = breakdown
+ ? \`\${data.total} hits — \${breakdown} (showing \${data.shown})\`
+ : 'no hits';
fh.innerHTML = data.results.map(h => \`<li>
<a href="/p/\${h.slug}/c/\${h.hash}"><code>\${h.hash}</code></a>
<span class="bp-d">\${h.date}</span>
← aafba88 api/search: round-robin merge + by_project breakdown (no sin
·
back to build-pages
·
search: fleet search ?q= deep-link — hydrate input + replace e2faa47 →