feat(pages): render card sections, CTA bands and section looks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-03 10:40:40 +08:00
1 parent cc962ebfcf
commit f2f293ea58
6 files changed
+230 -8

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ Design: `docs/superpowers/specs/2026-12-03-page-builder-design.md`, change 1. Bl
## Risks / Trade-offs
- A Dark or Accent band right after another band of the same look merges visually → acceptable; staff see it in the preview.
- `HTML` blocks with a look: the band surrounds the frame; harmless.
- `HTML` blocks ignore a look: a Custom HTML block is a full design of its own, so the editor does not offer the picker for it and the renderer draws no band.
- Rollback: pages saved with new types must be edited before the previous release saves them; their new sections render as nothing under it.
## Migration Plan
+1 -1
View File
@@ -9,7 +9,7 @@ Design: `design.md` and `docs/superpowers/specs/2026-12-03-page-builder-design.m
## 2. Portal
- [ ] 2.1 Model and renderer: types, `emptyBlock`, `BLOCK_LABELS`, icon map; `CmsBlocks` renders the four new types and the looks (full-width bands, readable text, Accent from the company colour); Default unchanged.
- [x] 2.1 Model and renderer: types, `emptyBlock`, `BLOCK_LABELS`, icon map; `CmsBlocks` renders the four new types and the looks (full-width bands, readable text, Accent from the company colour); Default unchanged.
- [ ] 2.2 Editor: add buttons, fields and card lists (add, remove, move) for the new types, the look select on every block, inline card errors; labels in `defaultMessages.ts` and `zh_CN.seed.json`, `npm run i18n:sql`, `sql/01-section-labels.sql` and `sql/99-rollback.sql`.
- Verify (2.1 to 2.2): `cd solvway-admin-portal && npx vitest run; echo VITEST=$? && npx tsc --noEmit && npm run lint`