feat(manga): retire a local copy, in two clicks and a dialog that names the file #20

Merged
rms merged 1 commit from feat/retire-button into master 2026-11-29 00:31:48 -06:00
Owner

Two-step retire on the gallery page: click one plans (POST /retire dry_run) and opens a modal dialog naming the file, size, favourite state and undo command; only its confirm posts the catalog token. Cancel posts nothing. New retired verdict (⊘). Probe mode retire asserts planned-vs-applied per call and fails if apply goes without a token or the dialog is skipped. v2.1.16.

Two-step retire on the gallery page: click one plans (POST /retire dry_run) and opens a modal dialog naming the file, size, favourite state and undo command; only its confirm posts the catalog token. Cancel posts nothing. New `retired` verdict (⊘). Probe mode `retire` asserts planned-vs-applied per call and fails if apply goes without a token or the dialog is skipped. v2.1.16.
Deleting a duplicate by hand does not stick: favsync rebuilds its worklist from the
favourites feed, so a deleted favourite is a missing favourite and comes back within a
day. There is no unfavourite from here either - the v2 API has no write endpoint - so
retiring is a local decision with two halves, and the button drives both.

Click one asks the server what it WOULD do and gets a catalog back; the reply carries a
token naming that catalog. Click two opens a modal <dialog> listing the file, its size,
whether it is favourited (and that the site still lists it), and the undo command; only
its confirm posts the token. Cancel posts nothing - the probe asserts the difference
between "planned" and "applied" call-by-call, and fails if apply goes out without a
token or the dialog is skipped.

The `retired` verdict renders as its own glyph (⊘), so a page stops offering a download
for something deliberately moved aside.

Verified in the probe: 4 modes green; removing the token from the apply call, and
applying on the first click, both fail it.

v2.1.16.
rms merged commit 94a83d456c into master 2026-11-29 00:31:48 -06:00
Sign in to join this conversation.
No reviewers
No labels
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
rms/userscripts!20
No description provided.