feat(ui): deleted-annotation history on the book page

Replace the Notes & Highlights 'coming soon' stub with a real modal:
active counts plus a 'Recently deleted' section listing every tombstoned
highlight, note, and bookmark (type badge, deletion time in the user's
timezone, text preview), each with Restore and Delete-permanently
actions. Restore returns the annotation to every synced device; Delete
permanently is confirmed before purging. The list is server-rendered
from MediaDetail.DeletedAnnotations — no fetch on open.

Alpine handlers in book-detail.ts call the new restore/purge endpoints
and reload on success. style.css picks up the line-clamp utilities used
by the text previews.
This commit is contained in:
2026-08-22 13:16:48 -04:00
parent 1f5c5a28bd
commit f70579b4fc
6 changed files with 763 additions and 421 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long