Hero uit het CMS met ingebakken terugval #21

Merged
Sluijsens merged 7 commits from feature/hero-module into master 2026-11-17 10:26:39 +01:00
7 Commits
Author SHA1 Message Date
SluijsensandClaude Sonnet 5.5 358fca0855 Hero module: closing docs (state, build and test summary, assumptions, go-live checklist)
Continuous Integration / check (pull_request) Successful in 2m20s
Continuous Integration / build-test (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 8m55s
Continuous Integration / deploy-production (pull_request) Skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 09:25:45 +01:00
Sluijsens cce4a2b858 Merge remote-tracking branch 'origin/master' into feature/hero-module 2026-11-17 09:01:43 +01:00
SluijsensandClaude Sonnet 5.5 9e45aca7f3 Reveal e2e: retry the two frame-sampling tests (2 on CI, 1 locally)
On the slow CI runner the sampler sometimes had not caught up when the wait ended (0 of 14 hidden elements seen), a false failure that passes on a new run. A real fault still fails every attempt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 20:19:27 +01:00
SluijsensandClaude Sonnet 5.5 3d7bb2d4a6 Hero: keep the plain HTML region after hydration, add the slider around it
Replacing the region at hydration made new nodes (a late LCP candidate). The first photo, the title and the buttons now stay; the other slides, arrows and controls are added on top.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:39:06 +01:00
SluijsensandClaude Sonnet 5.5 1a59fc3125 Hero module: assumptions and deferred questions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:49:07 +01:00
SluijsensandClaude Sonnet 5.5 ad0b114828 Hero from the CMS: markers HERO-HTML and HERO-PRELOAD, hero key in the data block, picture per ratio, baked fallback
The prerendered hero is plain HTML between the markers (first photo, h1, buttons), the slider takes over after hydration with the hero of the host block, the API or the build. The head preload is added to the finished HTML. Hero texts move into nl.json. The stand-in host and the e2e tests cover the hero.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:48:00 +01:00
SluijsensandClaude Sonnet 5.5 13f78c48cd Adds the hero contract: golden files for the picture and the preload links, mapping and seed
Model B (wide 3:2 and tall 4:5 variants, focus point), agreed with the CMS
session. Pure functions mapHero, heroHtml and heroPreloadHtml, golden files in
web/contract/host-injection/hero with a README, and a seed with a first focus
estimate per photo. No site change yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 14:44:30 +01:00