Hero-module: ASF golden files verwerkt in het ontwerp (preload als regio-paar, alleen WebP in LCP)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,7 @@ Details: [components.md](components.md), [component-methods.md](component-method
|
||||
| D5 | `#cms-data` is composed by a Core `CmsDataBlockTransform` from `ICmsDataBlockContributor`s; Offerings becomes a contributor with byte-identical output; the Hero adds `hero` | Design Q3 = A |
|
||||
| D6 | Crop model B: the host cuts `wide` (3:2) and `tall` (4:5) variants around the focus point and zoom. The focus defaults to the centre for all ratios; a separate focus (and zoom) per ratio is optional and falls back on the general one | Design Q6, contract |
|
||||
| D7 | The admin focus editor is an own light component (draggable point, zoom, live `wide` and `tall` previews using a TypeScript twin of `FocusMath` with shared test vectors) | Design Q5 = A |
|
||||
| D8 | Public contract: `GET /api/v1/hero` (204 = none), the same shape under `hero` in `#cms-data`; markers `CMS:HERO-HTML` (region with the first slide as `<picture>`) and `CMS:HERO-PRELOAD` (one or two preload links with `media`, byte-equal to the `<source>`/`<img>` attributes); addresses `/media/hero/<setHash>/<ratio>-<width>.<ext>`, immutable | Contract with ASF |
|
||||
| D8 | Public contract: `GET /api/v1/hero` (204 = none), the same shape under `hero` in `#cms-data`; region pairs `<!--CMS:HERO-HTML-->…<!--/CMS:HERO-HTML-->` (first slide as `<picture>`) and `<!--CMS:HERO-PRELOAD-->…<!--/CMS:HERO-PRELOAD-->` in the head (one or two preload links with `media`, byte-equal to the `<source>`/`<img>` attributes); only WebP in the LCP picture and the preload; addresses `/media/hero/<setHash>/<ratio>-<width>.<ext>`, immutable | Contract with ASF |
|
||||
| D9 | One renderer (`HeroPictureRenderer`) produces both the region attributes and the preload attributes; one read model (`PublicHeroService`) feeds the API, the region, the preload and the data block | LCP requirement |
|
||||
| D10 | Fail-open for page injection, fail-closed for uploads | Requirements, SECURITY-15 |
|
||||
| D11 | Language: the hero row carries a `Language` (default `nl`, unique), so adding a language needs no migration of existing rows; only one is exposed and edited now | Q9 |
|
||||
|
||||
Reference in New Issue
Block a user