feat(pdf-import): offer Delete and More info on the PDF creator's cards #834

Merged
raisondetredev merged 1 commit from refs/pull/834/head into main 2026-08-11 14:42:04 +02:00
raisondetredev commented 2026-08-11 14:41:48 +02:00 (Migrated from codeberg.org)

The per-card menu in the PDF creator offered Start in cram mode, Add tags,
Edit and Move, while the same card in the browse list and in a study
session also offered Delete and More info. A card you have just clipped
and can see is wrong — a duplicate from a re-pressed Create, say — is
exactly the card you want to throw away without leaving the PDF to find
it in the studyset.

Both join the menu (and so the long-press sheet, which shares the item
list) in the browse tile's order, with the destructive one in the error
colour, following the sibling PdfSourceTile menu in this feature.

Delete confirms first, then soft-deletes, pushes sync, and offers UNDO.
No list surgery: the list watches a Drift stream, so the row leaves on
the delete and comes back on the undo by itself. It stays quiet when the
write throws, like the study session's delete — a softDelete that failed
wrote nothing, so the row simply stays where it is.

More info opens the sheet with the card as the list already holds it: the
lite stream drops the content documents but keeps every field the sheet
reads, so unlike Edit it needs no re-read.

The per-card menu in the PDF creator offered Start in cram mode, Add tags, Edit and Move, while the same card in the browse list and in a study session also offered Delete and More info. A card you have just clipped and can see is wrong — a duplicate from a re-pressed Create, say — is exactly the card you want to throw away without leaving the PDF to find it in the studyset. Both join the menu (and so the long-press sheet, which shares the item list) in the browse tile's order, with the destructive one in the error colour, following the sibling PdfSourceTile menu in this feature. Delete confirms first, then soft-deletes, pushes sync, and offers UNDO. No list surgery: the list watches a Drift stream, so the row leaves on the delete and comes back on the undo by itself. It stays quiet when the write throws, like the study session's delete — a softDelete that failed wrote nothing, so the row simply stays where it is. More info opens the sheet with the card as the list already holds it: the lite stream drops the content documents but keeps every field the sheet reads, so unlike Edit it needs no re-read.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
project-halkyon/halkyon-learn!834
No description provided.