Newsletter: every part editable and movable
A draft is one ordered list of parts (migration 060, newsletters.layout as JSON), edited with the content block editor so any part can be moved, copied or removed, each aligned left or center: - header: words, a PNG/JPEG logo, band color or none - title - any email block; dividers take color, thickness and spacing - picked items: events, posts or front page cards picked in order, with the heading, its underline, the card bar and the button label - footer: its lines and the line above Colors come from the palette or none. 057's fixed fields and blocks are dropped; that migration never reached a live database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
222c9e69a2
commit
3194fdbb7d
5 changed files with 561 additions and 397 deletions
|
|
@ -285,6 +285,7 @@ The numbers band's "Number Source" dropdown works the same way:
|
|||
| Organization kind labels ("Region", "Group") | the Kind options in `src/lib/adminSchema/organizations.ts` (admin); `orgListHref` in `src/lib/hrefs.ts` (the public back link, "All regions") | |
|
||||
| Admin account roles | `src/lib/roles.ts` (labels, notes) and `ROLES` in `server/src/auth.js` | Adding a role is also a CHECK change on `admin_users.role`. |
|
||||
| Admin navigation | `src/pages/admin/adminNav.ts` | |
|
||||
| Newsletter parts and their defaults (Tools → Newsletter) | `PARTS_SPEC`, `PART_TYPES` and `STARTER` in `src/pages/admin/AdminNewsletter.tsx`; `PICK_DEFAULTS`, `DEFAULT_TITLE` and `COLOR` in `src/lib/newsletter.ts` | A draft is one JSON list of parts (`newsletters.layout`, 060), so adding a part or a setting needs no migration: a field in `PARTS_SPEC` and its drawing in `newsletter.ts`. The color choices are `PALETTE`; `COLOR` holds the defaults as hex, since an inbox has no theme tokens. `STARTER` is what a new draft starts with. |
|
||||
| The live site's address (used by QR codes) | `SITE_ORIGIN` in `src/lib/site.ts` | |
|
||||
| Version shown on the admin home page | `src/lib/version.ts` | |
|
||||
| Image directories (where logos and photos are looked up) | `src/lib/media.ts` | |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue