feat(pdf-import): offer Delete and More info on the PDF creator's cards #834
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
project-halkyon/halkyon-learn!834
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/834/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.