feat(manga): link the badge to the copy it says you have #19

Merged
rms merged 1 commit from feat/open-in-library into master 2026-11-29 00:14:00 -06:00
Owner

"in the library" now links to the viewer: bar gets "open ↗" (library verdict only) and the grid ✓ pill becomes an anchor to /item//. VIEW derived from LIB so they cannot drift hosts. Probe asserts the link exists for held and is absent for unheld/queued. Verified /item/ht/4242709 and /item/nh/... return 200 on the live viewer. v2.1.15.

"in the library" now links to the viewer: bar gets "open ↗" (library verdict only) and the grid ✓ pill becomes an anchor to /item/<source>/<id>. VIEW derived from LIB so they cannot drift hosts. Probe asserts the link exists for held and is absent for unheld/queued. Verified /item/ht/4242709 and /item/nh/... return 200 on the live viewer. v2.1.15.
"in the library" was a dead end: it told you the file was on disk and then left you to
find it. The archive viewer keys items by exactly what this script already has - the site
alias and the gallery id - so /item/<source>/<id> is the whole URL.

Gallery page: an "open ↗" link beside the state, on the same line. Grid: the ✓ pill
becomes that link, so a thumbnail is one click from the reading view instead of two. Both
only when the verdict really is library - a gallery that is merely queued offers no copy
to open, and the probe asserts exactly that (one link for the held card, none for the
unheld one, none on the bar until it lands).

The viewer base is derived from LIB rather than written twice, so the queue API and the
viewer cannot end up on different hosts.

Verified the shape against the live viewer: /item/ht/4242709 and /item/nh/... both 200.
v2.1.15.
rms merged commit 3e1d426937 into master 2026-11-29 00:14:00 -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!19
No description provided.