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:
@@ -1336,7 +1336,7 @@ func BookDetail(user User, book handlers.MediaDetail, errorMessage string) templ
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
templ_7745c5c3_Err = NotesHighlightsModal(book).Render(ctx, templ_7745c5c3_Buffer)
|
||||
templ_7745c5c3_Err = NotesHighlightsModal(user, book).Render(ctx, templ_7745c5c3_Buffer)
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user