Repository navigation
feat: add angled project-thumbnail collage backgrounds on /makers/ cards - #214
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Shaun-approved Variant B (angled project-screenshot collage backgrounds) to
/makers/cards, backed by build-time 200px WebP thumbnails generated bysharp(purely generated into gitignoredstatic/media/<id>/thumbs/<name>.webp, never committed).scripts/build-data.js,sharpdevDependency):buildScreenshotThumbs()(~17 lines) alongside the existingstatic/mediacopy loop.quality: 72,withoutEnlargement: true,pages: 1for first-frame-only GIFs) tostatic/media/<id>/thumbs/<name>.webpand exposesthumbs: [...]next toscreenshots.scripts/makers.js):thumbsautomatically (zero YAML fields): up to 4 projects per maker, 1 lead thumbnail each (entry.thumbs?.[0]), preserving existing project order.src/routes/makers/+page.svelte):-6degcontact-sheet strip behind cards with<img loading="lazy" decoding="async" alt="" aria-hidden="true">and the double-ended linearmask-imagefade protecting both maker names (10.5:1 AAA) and right metrics (7.3–9.0:1 AAA; ≥5.24:1 AA even at worst-case peak over#000)..is-single); 0-screenshot makers stay plain grey. Zero card layout or palette changes.scripts/catalog.test.js: unit-testsbuildScreenshotThumbs(PNG → 200px WebP, real animated GIF → single-frame WebP, corrupt input → warn & skip, empty screenshots →[]).scripts/makers.test.js: verifies makerthumbsordering & 0-screenshot empty array.scripts/seo.test.js: asserts every screenshot across all 128 catalog entries produces a generated thumbnail on disk.Size & Load Measurements
build/before: 37.76 MB (39,592,728 B, 1,114 files)build/after: 38.99 MB (40,881,582 B, 1,422 files) — +1.23 MB (+308 WebP thumbnails totaling 1,109.5 KB, ~3.6 KB avg)/makers/above-the-fold at 1440×900 (no scroll): 237.9 KB across 63 lazy-loaded collage thumbnails (650.5 KB total across 97 image requests including GitHub avatars).Verification
npm test(24 scripts) +npm run build+postbuild: all passed.overflow=falseat 1440 and 390, all collage<img>attributes &naturalWidth <= 200confirmed,hdslave/keremimorender 4 tiles,briwilrenders 1 single tile,inmusic-softwarerenders plain card.artifacts/maker-collage/.