favoritter/internal/handler
Ole-Morten Duesund e379039fe8 refactor: simplify PWA handlers and fix review findings
Address code review findings from reuse, quality, and efficiency agents:

- Cache manifest JSON and service worker JS at init (was rebuilt per
  request with allocations and JSON encoding on every hit)
- Add ImagePathsByUser store method for targeted image cleanup (was
  loading 100k full fave objects just to read image_path)
- Add missing aria-label on privacy toggle in fave_list.html (inline
  copy had drifted from the partial — accessibility bug)
- Fix comment/function name mismatch in pwa.go
- Remove redundant user nil-check in handleShare (requireLogin guards)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 10:47:13 +02:00
..
api feat: add notes field to favorites and enhance OG meta tags 2026-04-04 00:40:08 +02:00
admin.go refactor: simplify PWA handlers and fix review findings 2026-04-07 10:47:13 +02:00
auth.go feat: add profiles, public views, settings, and code quality fixes 2026-03-29 16:01:41 +02:00
fave.go feat: add edit/delete buttons to list views and inline privacy toggle 2026-04-07 10:17:46 +02:00
feed.go feat: add notes field to favorites and enhance OG meta tags 2026-04-04 00:40:08 +02:00
handler.go refactor: simplify PWA handlers and fix review findings 2026-04-07 10:47:13 +02:00
handler_test.go feat: add notes field to favorites and enhance OG meta tags 2026-04-04 00:40:08 +02:00
import_export.go feat: add notes field to favorites and enhance OG meta tags 2026-04-04 00:40:08 +02:00
profile.go fix: address code review findings for Phase 7-8 2026-03-29 16:39:10 +02:00
pwa.go refactor: simplify PWA handlers and fix review findings 2026-04-07 10:47:13 +02:00
web_test.go feat: add edit/delete buttons to list views and inline privacy toggle 2026-04-07 10:17:46 +02:00