From e38128c33f4517c81a435614bdbb6ffbc9d35e0e Mon Sep 17 00:00:00 2001 From: Sam Rolfe Date: Mon, 10 Aug 2026 13:04:43 +1000 Subject: [PATCH] fix per feedback: remove home recent-scans; admin dashboard recent-scans -> tag edit links + item column; inline tag edit gets photo upload; explicit deploy sync (no dir-rsync flakiness) --- frontend/internal/handlers/tag_page.go | 7 +------ frontend/templates/index.html | 17 ----------------- frontend/templates/tag-edit-inline.html | 7 +++++++ 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/frontend/internal/handlers/tag_page.go b/frontend/internal/handlers/tag_page.go index 9a1499c..380db4c 100644 --- a/frontend/internal/handlers/tag_page.go +++ b/frontend/internal/handlers/tag_page.go @@ -29,12 +29,7 @@ func (a *App) Home(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "/t/"+pid, http.StatusFound) return } - recent, err := a.Queries.ListRecentScansWithTag(r.Context(), 8) - if err != nil { - // Non-fatal: home still renders without the recent list. - recent = nil - } - a.render(w, r, "index", "Home", recent, "") + a.render(w, r, "index", "Home", nil, "") } // PublicTag renders the unauthenticated tag page: setup prompt, return details, diff --git a/frontend/templates/index.html b/frontend/templates/index.html index 7ef7d6a..dd29886 100644 --- a/frontend/templates/index.html +++ b/frontend/templates/index.html @@ -26,22 +26,5 @@ What is this? · Get in touch

- - {{if .Data}} -
-

Recently scanned tags

- -
- {{end}} {{end}} diff --git a/frontend/templates/tag-edit-inline.html b/frontend/templates/tag-edit-inline.html index c9f2483..26bf6b7 100644 --- a/frontend/templates/tag-edit-inline.html +++ b/frontend/templates/tag-edit-inline.html @@ -30,6 +30,13 @@
+ {{if .PhotoUrl.Valid}}Photo{{end}} +
+ + + Uploading… +
+