favoritter/web/templates/pages
Ole-Morten Duesund 3a3b526a95 test: add comprehensive test suite (44 tests across 3 packages)
Store tests (21 tests):
- Session: create, validate, delete, delete-all, expiry
- Signup requests: create, duplicate, list pending, approve
  (creates user with must-reset), reject, double-approve/reject
- Existing: user CRUD, auth, fave CRUD, tags, pagination

Middleware tests (9 tests):
- Real IP extraction from trusted/untrusted proxies
- Base path stripping (with prefix, empty prefix)
- Rate limiter (per-IP, exhaustion, different IPs)
- Panic recovery (returns 500)
- Security headers (CSP, X-Frame-Options, etc.)
- RequireLogin redirect
- MustResetPasswordGuard (static path passthrough)

Handler integration tests (14 tests):
- Health endpoint
- Login page rendering, successful login, wrong password
- Fave list requires auth, works when authenticated
- Private fave hidden from other users, visible to owner
- Admin panel requires admin role, works for admin
- Tag search endpoint
- Global Atom feed
- Public profile with display name
- Limited profile hides bio

Also fixes template bugs: profile.html and fave_detail.html used
$.IsOwner which fails inside {{with}} blocks ($ = root PageData,
not .Data map). Fixed with $d variable capture pattern.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 16:47:32 +02:00
..
admin_dashboard.html feat: add admin panel with user, tag, and signup management 2026-03-29 16:09:30 +02:00
admin_requests.html feat: add admin panel with user, tag, and signup management 2026-03-29 16:09:30 +02:00
admin_settings.html feat: add admin panel with user, tag, and signup management 2026-03-29 16:09:30 +02:00
admin_tags.html feat: add admin panel with user, tag, and signup management 2026-03-29 16:09:30 +02:00
admin_users.html feat: add admin panel with user, tag, and signup management 2026-03-29 16:09:30 +02:00
error.html feat: add packaging, deployment, error pages, and project docs 2026-03-29 16:34:32 +02:00
export.html feat: add Atom feeds and JSON/CSV import/export 2026-03-29 16:11:44 +02:00
fave_detail.html test: add comprehensive test suite (44 tests across 3 packages) 2026-03-29 16:47:32 +02:00
fave_form.html feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
fave_list.html feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
home.html feat: add profiles, public views, settings, and code quality fixes 2026-03-29 16:01:41 +02:00
import.html feat: add Atom feeds and JSON/CSV import/export 2026-03-29 16:11:44 +02:00
login.html feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
profile.html test: add comprehensive test suite (44 tests across 3 packages) 2026-03-29 16:47:32 +02:00
reset_password.html feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
settings.html feat: add profiles, public views, settings, and code quality fixes 2026-03-29 16:01:41 +02:00
signup.html feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
tag_browse.html feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00