From 07fbfe55557d6a3df0535419c4499ad4cb49b081 Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 1 Mar 2026 17:24:55 +0500 Subject: [PATCH] feat: show in-progress books under 'Continue reading' on home page Reading progress lives in localStorage so sorting is done client-side. On page load, JS reads the reading_progress map, moves any matching book cards into a 'Continue reading' grid above the main grid, and reveals an 'Available' heading for the remainder. Books with no saved progress are unaffected and no server changes are required. --- scraper/internal/server/ui.go | 89 +++++++++++++++++++++++++---------- 1 file changed, 64 insertions(+), 25 deletions(-) diff --git a/scraper/internal/server/ui.go b/scraper/internal/server/ui.go index 403c7e7..e499774 100644 --- a/scraper/internal/server/ui.go +++ b/scraper/internal/server/ui.go @@ -146,34 +146,73 @@ const homeTmpl = `
- -
- {{range .Books}} - - + +` func (s *Server) handleHome(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" {