favoritter/web/templates
Ole-Morten Duesund b186fb4bc5 feat: add edit/delete buttons to list views and inline privacy toggle
Fave cards in the list and profile views now show edit, delete, and
privacy toggle buttons directly — no need to open the detail page first.

- New POST /faves/{id}/privacy route with HTMX privacy toggle partial
- New UpdatePrivacy store method for single-column update
- fave_list.html: edit link, HTMX delete, privacy toggle on every card
- profile.html: edit/delete for owner's own cards
- privacy_toggle.html: new HTMX partial that swaps inline on toggle
- CSS: compact .fave-card-actions styles

The existing handleFaveDelete already returns empty 200 for HTMX
requests, so hx-target="closest article" hx-swap="outerHTML" removes
the card from DOM seamlessly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 10:17:46 +02:00
..
layouts feat: add PWA support with Android share intent 2026-04-07 10:06:18 +02:00
pages feat: add edit/delete buttons to list views and inline privacy toggle 2026-04-07 10:17:46 +02:00
partials feat: add edit/delete buttons to list views and inline privacy toggle 2026-04-07 10:17:46 +02:00