Newsletter: every part editable and movable (v1.11.2-newsletter) #24

Merged
ngu-git-admin merged 4 commits from newsletter-layout into main 2026-10-02 19:50:04 +01:00

Built on audit-ui (PR #23, itself on #22): merge #22 and #23 first and this one shows only its own commits.

A newsletter draft is one ordered list of parts, edited with the content block editor, so every part can be moved, copied, inserted or removed, and each is aligned left or center:

  • Header: words, a PNG/JPEG logo, band color from the palette or none; remove the part to leave it out
  • Title
  • Any email block: dividers take a color (or none), thickness (1 to 8px) and space above (0 to 64px)
  • Picked items: upcoming events, blog posts or front page cards picked one by one in order, with the section heading, its underline color, the card bar color and the button label
  • Footer: its lines and the line above (color or none)

A new draft starts with the parts the email always had. Post as blog post and plain text follow the same parts.

Data

Migration 060 rebuilds newsletters as title + layout (JSON array, CHECKed) and drops 057's intro, footer, picks and the drafts' content blocks. 057 never ran on a live database, so no drafts are lost. Back up the database before deploying as usual.

Checked

pnpm exec tsc passes; the HTML and text output checked by script (defaults, no band or lines, centering, divider limits, a non-hex color refused); migration 060, the boot schema sync and saving a draft checked against an in-memory database. Not checked in a browser or Mailchimp yet (list in TODO.md).

🤖 Generated with Claude Code

Built on `audit-ui` (PR #23, itself on #22): merge #22 and #23 first and this one shows only its own commits. A newsletter draft is one ordered list of parts, edited with the content block editor, so every part can be moved, copied, inserted or removed, and each is aligned left or center: - **Header:** words, a PNG/JPEG logo, band color from the palette or none; remove the part to leave it out - **Title** - **Any email block:** dividers take a color (or none), thickness (1 to 8px) and space above (0 to 64px) - **Picked items:** upcoming events, blog posts or front page cards picked one by one in order, with the section heading, its underline color, the card bar color and the button label - **Footer:** its lines and the line above (color or none) A new draft starts with the parts the email always had. Post as blog post and plain text follow the same parts. ## Data Migration 060 rebuilds `newsletters` as `title` + `layout` (JSON array, CHECKed) and drops 057's intro, footer, picks and the drafts' content blocks. 057 never ran on a live database, so no drafts are lost. Back up the database before deploying as usual. ## Checked `pnpm exec tsc` passes; the HTML and text output checked by script (defaults, no band or lines, centering, divider limits, a non-hex color refused); migration 060, the boot schema sync and saving a draft checked against an in-memory database. Not checked in a browser or Mailchimp yet (list in TODO.md). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ngu-git-admin added 3 commits 2026-10-02 01:41:39 +01:00
- Event cards: lazy -640 photo, only nearby slides drawn, a counter
  past 12 events, past grid paged with Show more
- Community map: search over list and grid, 12 per region then Show
  all, list no longer redrawn on hover
- People tiles: one clip check for the list, Show all past 30
- Person pages: 6 events and posts then Show all; excerpts load only
  the first paragraph
- Admin: filter box on long pickers and the QR select, options sent
  per form, Media thumbnails from the small copy, debounced searches
  that drop stale answers
- Pages show their last data while refreshing after the cache TTL
- Side nav stacks above page content (the carousel arrows)
- No event request button on National Retreats; request buttons take
  their section's accent
- Version v1.11.1-audit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ngu-git-admin added 1 commit 2026-10-02 06:43:35 +01:00
- Social bar: a colored band of the site's platform icons, linked;
  no links added shows the footer's (src/data/socialLinks.ts, shared)
- Icons are white and ink PNGs in public/email/, made from
  PlatformIcon.tsx by scripts/email-icons.mjs (no SVG in Gmail/Outlook)
- Event countdown: a picture drawn by /api/countdown/<id>.png when the
  email is opened (days, hours, minutes to local midnight in
  America/Chicago; then happening now; then over), with a fixed line
  under it as of copying
- The builder takes the whole window (useWideAdminPage('full'))

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ngu-git-admin added 1 commit 2026-10-02 07:07:18 +01:00
Drag it, or focus it and use the arrow keys, Home and End; 320px
(a phone's view of the email) up to all but 360px of the parts list.
Remembered in the browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ngu-git-admin merged commit d067c02d33 into main 2026-10-02 19:50:04 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ngu-git-admin/NGU-Web#24
No description provided.