docs: OpenSpec change add-page-sections

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:30:11 +08:00
1 parent 1b5d62403d
commit 2ff117e41d
5 files changed
+180

No files matched your search

@@ -0,0 +1,28 @@
## Why
Marketing staff will build a landing page for every event and are not technical. Today's blocks (hero, text, image with text, FAQ, form, custom HTML) cannot produce a page like the INS design without pasting HTML, which only a developer can maintain. This is change 1 of the page builder: `docs/superpowers/specs/2026-12-03-page-builder-design.md`.
## What Changes
- New section types: FEATURES (icon cards), STEPS (numbered steps), TRUST (a strip of short items) and CTA (a call-to-action band).
- Every section gets a look: Default, Muted, Dark or Accent (the company colour), drawn as a full-width band with readable text. Default keeps today's appearance, so existing pages do not change.
- A HERO image becomes optional.
- The form editor gains the new types, their fields and the look picker; labels in English and Chinese.
## Capabilities
### New Capabilities
None.
### Modified Capabilities
- `landing-pages`: new section types, section looks, optional hero image.
## Impact
- services-counter: `CmsBlock` gains `look` and `cards`; `CmsBlockValidator` rules for the new types. No DDL (blocks are JSON).
- mobile-api: none (blocks pass through).
- Portal: `cmsPages.ts`, `CmsBlocks.tsx`, `BlockFields.tsx`, `PageEditor.tsx` (add buttons), labels.
- SQL: `sql/01-section-labels.sql`, `sql/99-rollback.sql` (labels only).
- Rollback: the previous release refuses the new types and fields when such a page is saved, and renders unknown types as nothing.