fix: complete CHRNX responsive edge states

This commit is contained in:
chrnx committed 2026-08-12 09:02:34 -05:00
1 parent 5073178492
commit 1e9386ac13
15 files changed
+384 -35

No files matched your search

+16
View File
@@ -45,6 +45,17 @@ The script accepts only `localhost` or `127.0.0.1`. It updates records marked
with `_chrnx_fixture_key` and leaves unrelated local content alone. Repeated
runs reuse the same pages and posts.
Use an allowlisted local edge scenario, then restore the default dataset:
```sh
./scripts/seed-test-content.sh featured-1
./scripts/seed-test-content.sh featured-2
./scripts/seed-test-content.sh featured-3
./scripts/seed-test-content.sh subscribe-unpublished
./scripts/seed-test-content.sh subscribe-unavailable
./scripts/seed-test-content.sh default
```
Rebuild the responsive portrait derivatives on macOS with `sips`, `cwebp`, and
`avifenc`:
@@ -52,6 +63,11 @@ Rebuild the responsive portrait derivatives on macOS with `sips`, `cwebp`, and
./scripts/build-responsive-images.sh
```
For a non-destructive reproducibility check, pass an explicit absolute temporary
directory: `./scripts/build-responsive-images.sh "$(mktemp -d)"`. The automated
smoke test byte-compares all 35 outputs, validates their formats and dimensions,
and enforces 160 KiB per derivative and 1.7 MiB total payload bounds.
The PNG masters remain unchanged. WordPress serves 384 px and 768 px AVIF or
WebP sources, with the PNG as a fallback.