feat(pages): feature cards, steps, trust strip, CTA band and section looks #60

Merged
ngqile merged 8 commits from add-page-sections into main 2026-12-03 02:53:34 +00:00
Owner

OpenSpec change add-page-sections: change 1 of the page builder. The design is in docs/superpowers/specs/2026-12-03-page-builder-design.md, approved 2026-12-03, and also covers changes 2 and 3.

What

  • New block types:
    • FEATURES: icon cards from a fixed list of 12 Lucide icons.
    • STEPS: numbered.
    • TRUST: a strip of short items.
    • CTA: a band whose button is required.
    • FEATURES, STEPS and TRUST share one cards list of {icon, title, text}. A field that a type does not use is refused.
  • Looks: any block except Custom HTML takes a look of DEFAULT, MUTED, DARK or ACCENT.
    • A non-default look draws the block as a full-width band. ACCENT uses the company colour, and its button flips so it never matches the band.
    • DEFAULT renders exactly as before, so existing pages do not change.
  • HERO image: now optional. On a band, an image-less hero takes the band's colours.
  • Form editor: new "Add …" buttons; the cards can be added (up to 6), removed (down to 2) and moved; a look picker; card errors show at the card's own field.
  • Labels: 36 new labels in English and Chinese, in sql/01-section-labels.sql and sql/99-rollback.sql. There is no DDL.

Verification

  • services-counter: 367 tests green.
  • Portal: vitest 1905 passed / 1 skipped (exit 0), tsc clean, lint 0 errors (4 old warnings).
  • Live Playwright check on a local portal from this branch, using a disposable INS page with all six kinds of section, deleted afterwards:
    • a CTA with no button is refused at "Button label";
    • the published page at 1280 and 360 px shows the dark hero band, the trust strip, the icon cards, the numbered steps on a light grey band, and the company-colour CTA with its flipped button;
    • no sideways scroll at 360 px;
    • the staff preview shows the same bands.

Notes

  • One existing assertion changed in CmsBlockValidatorTest. A hero with no image is now allowed, as the approved spec says, so the "image required" check now uses an IMAGE_TEXT block, which still needs an image.
  • In dark mode the Dark band shows light, because the page colours invert. This is recorded in docs/deployment.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs

OpenSpec change `add-page-sections`: change 1 of the page builder. The design is in `docs/superpowers/specs/2026-12-03-page-builder-design.md`, approved 2026-12-03, and also covers changes 2 and 3. ## What - **New block types:** - FEATURES: icon cards from a fixed list of 12 Lucide icons. - STEPS: numbered. - TRUST: a strip of short items. - CTA: a band whose button is required. - FEATURES, STEPS and TRUST share one `cards` list of `{icon, title, text}`. A field that a type does not use is refused. - **Looks:** any block except Custom HTML takes a look of `DEFAULT`, `MUTED`, `DARK` or `ACCENT`. - A non-default look draws the block as a full-width band. ACCENT uses the company colour, and its button flips so it never matches the band. - DEFAULT renders exactly as before, so existing pages do not change. - **HERO image:** now optional. On a band, an image-less hero takes the band's colours. - **Form editor:** new "Add …" buttons; the cards can be added (up to 6), removed (down to 2) and moved; a look picker; card errors show at the card's own field. - **Labels:** 36 new labels in English and Chinese, in `sql/01-section-labels.sql` and `sql/99-rollback.sql`. There is no DDL. ## Verification - services-counter: 367 tests green. - Portal: vitest 1905 passed / 1 skipped (exit 0), `tsc` clean, lint 0 errors (4 old warnings). - Live Playwright check on a local portal from this branch, using a disposable INS page with all six kinds of section, deleted afterwards: - a CTA with no button is refused at "Button label"; - the published page at 1280 and 360 px shows the dark hero band, the trust strip, the icon cards, the numbered steps on a light grey band, and the company-colour CTA with its flipped button; - no sideways scroll at 360 px; - the staff preview shows the same bands. ## Notes - One existing assertion changed in `CmsBlockValidatorTest`. A hero with no image is now allowed, as the approved spec says, so the "image required" check now uses an IMAGE_TEXT block, which still needs an image. - In dark mode the Dark band shows light, because the page colours invert. This is recorded in `docs/deployment.md`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile added 8 commits 2026-12-03 02:53:30 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile merged commit d2711a5aa9 into main 2026-12-03 02:53:34 +00:00
ngqile deleted branch add-page-sections 2026-12-03 02:53:34 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ngqile/co-lite#60