Prefer full-res images/GIFs and promote leftover image enclosures in the Reader #38
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
TheAnachronism/tt-rss-viewer#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Parent
Part of #30
Implements
docs/specs/reader-media.md.What to build
In the Reader, prefer a full-resolution image/GIF when a better URL is already present in the article HTML, sibling image links, or image enclosures — no scrapers. Present content images in a table-safe way so Reddit-style feed tables do not hide the picture. Promote leftover
image/*enclosures (includingimage/generic) into inline media after the body, and suppress attachment chips for promoted or preference-consumed enclosures. Keep non-image attachments (including audio) as chips. Failed images show a visible failure state with Open media and Open original. List hub Article thumbnails stay unchanged.Extract a pure Reader media planner as needed (preference + image promotion/dedupe + shared URL helpers) and cover it with fixture-oriented tests from
.scratch/rss-examples/(especially the Reddit example). Feel reference only: branchprototype/reader-media— do not merge the throwaway package.Acceptance criteria
<img>upgrades to the full-resolution GIF/image when a same-basename / size-upgrade candidate is already in HTML, links, or image enclosures<table>markup still appear as full-width Reader mediaflavor_imagebehavior is unchangedBlocked by
None — can start immediately.
Resolution
Implemented on
master(e45580849a):lib/reader/reader_media_plan.dart— full-res image/GIF preference, image enclosure promote/dedupe,extractImgSrcs/stripImgsfor table-safe hoisttest/reader/reader_media_plan_test.dart(Reddit fixture shape + promote + audio chip + hoist helpers)