Expose typed content fields for first home blocks

This commit is contained in:
dcconstructions
2026-06-25 22:03:35 +03:00
parent aaae2da433
commit 69678a441e
10 changed files with 672 additions and 9 deletions
+3 -1
View File
@@ -178,6 +178,8 @@ Implemented:
- `tools/render-home.mjs` renders `index.html` from the JSON model and templates.
- `tools/extract-home-blocks.mjs` can regenerate the first template split from the current `index.html`.
- `tools/admin-server.mjs` and `admin/` provide a local block editor.
- `heroWaitlist` and `featureVideo` expose typed content fields in JSON and the local admin.
- Block templates support `{{text:path}}`, `{{html:path}}`, and `{{attr:path}}` tokens rendered by `tools/render-home.mjs`.
Current guarantee:
@@ -185,7 +187,7 @@ Current guarantee:
Current limitation:
- Blocks are still HTML-template blocks. The admin can manage order, enabled state, duplication, copy/paste, IDs, labels, anchors, and raw block JSON. The next pass must extract text/media fields from each block template into typed JSON fields.
- Only the first two home blocks have typed fields so far. The remaining blocks are still HTML-template blocks. The admin can manage order, enabled state, duplication, copy/paste, IDs, labels, anchors, typed fields where available, and raw block JSON.
- The `c-viz` wrapper is preserved as a region boundary because it is coupled to WebGL/color-flip behavior. Blocks inside that region should stay inside it until the runtime is better understood.
## Optimization Passes