website 1.12.0: three layouts for each page that lists something
- PAGE_VARIANTS: ministriesPage alternating/cards/list, leadershipPage grid/featured/list, eventsPage list/cards/months, messagesPage grid/featured/list, contactPage columns/map/cards. Kept in the design's variants beside the homepage sections', so each template recommends some and starts a new site on the first (its suggestion), PUT /design checks them, and a template switch moves an untouched one. - A design saved before has none: cleanDesign gives it LEGACY_PAGE_LAYOUTS (the look until now), and the site draws a snapshot without them the same way, so nothing changes until a church picks one. Contact's map layout without a place on the map draws as two columns. Ministries and messages keep their #slug anchors in every layout. - Admin: the layout at the top of a listing page in Pages, the suggestion marked; Template and style gets an Other pages tab with all five. - Tests: backend (156, five new); e2e page-layouts.spec.ts (every layout in every template, axe at phone and desktop; 60 passed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,26 @@
|
||||
# Changelog — Church Website
|
||||
|
||||
## [1.12.0] — 2026-12-01
|
||||
|
||||
No migration (the layouts live in `SiteDesign.variants`). No new environment settings.
|
||||
|
||||
### Added
|
||||
|
||||
- **Listing page layouts** (`PAGE_VARIANTS` in `src/site/variants.ts`), three per page:
|
||||
`ministriesPage` `alternating` · `cards` · `list`; `leadershipPage` `grid` · `featured` · `list`;
|
||||
`eventsPage` `list` · `cards` · `months`; `messagesPage` `grid` · `featured` · `list`;
|
||||
`contactPage` `columns` · `map` · `cards`. They sit beside the homepage sections' in the design
|
||||
(`PUT /design { variants: { eventsPage: "months" } }`), so each template recommends some, starts
|
||||
a new site on the first (its suggestion), and a template switch moves an untouched one to the
|
||||
new template's suggestion. A design saved before them has none: `cleanDesign` gives it
|
||||
`LEGACY_PAGE_LAYOUTS` (how the pages looked until now), so nothing changes until a church picks
|
||||
one; a snapshot without them is drawn the same way. `contactPage` `map` without a place on the
|
||||
map draws as `columns`.
|
||||
- **Admin:** a listing page's editor (Pages) has its Layout, the template's suggestion marked; and
|
||||
Template and style has an **Other pages** tab with all five.
|
||||
- `e2e/page-layouts.spec.ts`: every page layout in every template answers and passes axe at phone
|
||||
and desktop width (`PAGE_SHOTS=<folder>` saves screenshots).
|
||||
|
||||
## [1.11.0] — 2026-12-01
|
||||
|
||||
**Migration** `20261201000000_block_background` (adds the nullable `Section.background`; nothing
|
||||
|
||||
Reference in New Issue
Block a user