Skip to content

Mini-card thumbnails: renditions and favicon fallback on a broken picture (#2058) - #2060

Merged
larspohlmann merged 3 commits into
developfrom
fix/2058-mini-card-thumb-fallback
Nov 6, 2026
Merged

larspohlmann merged 3 commits into
developfrom
fix/2058-mini-card-thumb-fallback

Conversation

@larspohlmann

Copy link
Copy Markdown
Owner

Stacked on #2057. Merge that first; this PR then retargets to develop.

The 104×68 thumbnail of a Trending story's "more sources" mini card:

  • Renditions: the thumbnail uses RenditionsDirective with a new MINI_CARD_THUMB_SIZES = '104px'. Expanding a story now fetches small renditions, not full-size pictures.
  • Broken pictures: a failed rendition first retries the plain src (fallBackToSrc()). If that also fails, the card shows the favicon box that a source without a picture gets. Only that card changes; the others keep their pictures.

The per-card error state is a linkedSignal set of failed copy ids. It resets when the copies change.

Verified

  • npm run check is green (6364 tests).
  • Three new specs cover the rendition srcset/sizes, the retry of the plain src, and the per-card favicon fallback.
  • Live on :4200 Trending: thumbs that have renditions load a 104px rendition (currentSrc ≠ src). Pointing one picture at a 404 swapped just that card to the favicon box.

Closes #2058

@larspohlmann
larspohlmann deleted the branch feature/2055-richer-source-mini-cards November 6, 2026 11:28
@larspohlmann larspohlmann reopened this Nov 6, 2026
@larspohlmann
larspohlmann changed the base branch from feature/2055-richer-source-mini-cards to develop November 6, 2026 11:29
@larspohlmann larspohlmann reopened this Nov 6, 2026
@larspohlmann
larspohlmann merged commit 25b9254 into develop Nov 6, 2026
28 of 36 checks passed
@larspohlmann
larspohlmann deleted the fix/2058-mini-card-thumb-fallback branch November 6, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mini-card thumbnails: favicon fallback on a broken picture, and renditions

1 participant