favoritter/internal/store
Ole-Morten Duesund 9c3ca14578 fix: resolve tag autocomplete click bug and display name fallback
Tag autocomplete suggestions were silently broken by CSP (script-src
'self') which blocks inline event handlers. Replaced onclick attributes
with data-tag-name + delegated mousedown/touchend listeners in app.js.
Also changed hx-params="*" to hx-params="none" to avoid sending
unrelated form fields to the search endpoint.

Display name in "av <name>" on fave cards was empty for users without
a custom display name. Changed SQL queries to use
COALESCE(NULLIF(u.display_name, ''), u.username) for automatic fallback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 00:17:38 +02:00
..
fave.go fix: resolve tag autocomplete click bug and display name fallback 2026-04-04 00:17:38 +02:00
fave_test.go feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
session.go feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
session_test.go test: add comprehensive test suite (44 tests across 3 packages) 2026-03-29 16:47:32 +02:00
settings.go feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
signup_request.go fix: address security and quality issues from code review 2026-03-29 16:19:44 +02:00
signup_request_test.go test: add comprehensive test suite (44 tests across 3 packages) 2026-03-29 16:47:32 +02:00
tag.go feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
tag_test.go feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
user.go feat: add admin panel with user, tag, and signup management 2026-03-29 16:09:30 +02:00
user_test.go feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00