Files
co-lite/openspec/changes/add-page-sections/tasks.md
T

1.5 KiB

Tasks: add-page-sections

Design: design.md and docs/superpowers/specs/2026-12-03-page-builder-design.md (change 1). Every task is TDD. Work is serial in the main session, with a self-review per task.

1. services-counter

  • 1.1 CmsBlock.look and cards (CmsCard record: icon, title, text); CmsBlockValidator: FEATURES, STEPS, TRUST, CTA rules, the icon list, the look values, HERO image optional.
    • Verify: mvn -T 1C -B -pl solvway-services-counter -am verify

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.
  • 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

3. Release

  • 3.1 docs/deployment.md: SQL row; landing-pages notes (new sections, looks, rebuilding the INS page as sections).
  • 3.2 Live check (Playwright) on a local portal: build a disposable page with every new type and each look; refusals (unknown look is API-only, so check a too-few-cards and a missing CTA button); preview and public page at 1280 and 360 px.