Frame at (a still from a YouTube or Facebook video at a typed time)
now also fills a video block's still and the front page's new Video
still, which the hero shows before its featured video plays. Tools >
Video thumbnails takes one from any link, to download or copy into a
field. All go through the existing POST /api/admin/video-frame.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A schedule block on an event page has a Present button, opening
/events/<id>/present in a new tab: a setup screen (days, entries,
seconds for each kind of slide) and then an endless full screen
slideshow of day overviews, entry spotlights with their person,
graphics and map images, its settings kept in the address so a
signage screen can bookmark it.
Schedule entries take a Map image (069), shown in the fold-out in place
of the Google map and as a slide in the presentation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- People tags (062): Data → People tags (Musicians seeded); a person's
Directories repeater tags them and their Specialty line shows on
their tile. A People directory section preset shows a tag's first
12 and links to its full page, /directory/<tag>, with page meta and
a sitemap entry. Tiles' details panels show a person's links.
- Ministries (063): a new organization kind. A group picks its
ministry and its page says "Ministry: <name>", linked to the
ministry's website. Ministries have no public page, list, sitemap
or timeline entry, and aren't offered where a record links to its
organization. organizations is rebuilt for the kind CHECK.
- Organization contacts (064): Data → Contact types; a private
Contacts repeater on each organization (editors and up, readRole on
a child collection). Tools → Newsletter → Recipients filters them
by type, kind, region and published and downloads a Mailchimp CSV.
- A trigger refusing a save with a sentence is shown as that message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each page is now a list of sections edited in Admin → Pages: a title
(30 characters at most, for the side nav), URL ID, blurb and accent,
its own content blocks, and an optional preset (Community blog, groups
map, region list, partner cards, events, timeline, NGU's details).
Migration 056 seeds every page as the code drew it and moves the
Organization editor's blocks and volunteering into its sections. The
Community blog's settings move into the Community editor. The header,
footer and side nav read each page's sections from the API.
The admin engine reads and writes nested collections to any depth.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tick upcoming events, published blog posts and the front page's
featured cards, write a title and intro, and copy an email-ready
newsletter (table layout, inline styles, the palette in hex, a
plain-text copy alongside) into Mailchimp, Gmail or Church Center,
or download it. Picked posts are read from their public pages, so
only live posts make it in; links and images point at the live
site. Nothing is sent or stored. The builder is src/lib/newsletter.ts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three sections: Mission, Vision & Values from the national
organization record's own description and content blocks;
Leadership as that record's teams with their people; Details &
Contact with NGU's address, nonprofit status, email and the
record's contact links. /leadership answers with a 301 to
/organization (MOVED in routes/pages.js), and a page title or intro
saved for it in Site settings moves with it (migration 054).
OrganizationDetail's team list and contact buttons are now shared
components (OrgTeams, OrgContact), and NGU's address and email live
once in src/data/organizationDetails.ts for the footer, the page and
ComingSoon.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The organization kind is 'group', its side table is groups, pages
live at /groups/<id> and the Community page's section is #groups.
Migration 052 converts existing databases: the kind and the tables
whose CHECKs name chapters are rebuilt, the front page count and
request category follow, and the site's own /chapters/ and
#chapters links in records are rewritten. Request files now go in
Requests/Groups on the shared drive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One form at /request for blog posts, events, and new or updated
chapters, regions (updates only), partners, teams, awards and people.
?type= opens it on one; buttons on the Community sections, blog posts,
Retreats and the front page calendar do. Files (.docx, PDF, JPEG, PNG)
go to a Google Drive folder through a service account.
Requests are feedback rows of type 'content' (migration 046), in a
third Forms queue: files download from Drive, a .docx can become a
draft blog post, and deleting a request deletes its files. New content
and data requests email the addresses in Site settings through Gmail.
Setup: docs/google-drive-and-mail.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The timeline's ngu-tl classes and keyframes are site-tl; nguLogo is
siteLogo; the event card's ngu grid area is org; window.__NGU_SITE__
is window.__SITE__; QR downloads are qr-<page>.png
- Browser keys (theme, closed banner and privacy notice, chunk reload)
start site-; the page's first script moves any old ngu- values over
once, so nobody loses their theme or sees a closed notice again
- Session and Google sign-in cookies are site_session and site_oauth
(__Host- over https); everyone signs in again once
Record ids, server paths, the service and the database file keep
their names.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Forms now has two queues, Website feedback and Data requests, each
its own card on the admin home and a tab on the page, with what's new
in each. The API takes ?kind=feedback|privacy and counts per queue.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Every page but Home, and the whole admin, loads on first visit: the
main bundle drops from 579 kB to 314 kB (173 to 98 kB gzipped); a
tab on an old build reloads once when a page chunk has gone
- Home asks for events and the timeline alongside its own data, and
the server preloads /api/front-page and the first hero photo
- Hero headline rises in as one piece (it held back the page's
largest paint), sized to stay within two lines; min-h in dvh; first
slide fetched at high priority
- Every raster upload gets a 640px copy (at upload, and at boot for
older files); logos, avatars and card pictures load it and fall
back to the full file
- Login password checks run off the event loop; only admin requests
are logged per request; ffmpeg runs at nice 19 on Linux
- Page HTML is no-cache, so a deploy can't strand a cached page on
missing assets; source maps are no longer linked
- Migration 042: index person_awards by award
- docs/performance.md, and gzip and HTTP/2 for nginx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tools → Video clips (migration 036, admins and up). Paste a YouTube
or Facebook link and the server downloads it with yt-dlp; then cut
clips: start and end set while watching, a shape (as filmed, 16:9,
square or 9:16 at the sizes the platforms ask for, cropped around a
chosen point shown over the video), and MP4 video or MP3 audio.
Jobs queue and run one at a time with progress. Only YouTube and
Facebook links are accepted, and both tools run with argument lists,
never a shell. A clip's file is deleted once it has been downloaded
in full, unless it's saved to the media library first, which now
holds video and audio (image fields still pick images only).
Everything is swept a day after it's made. Setup is in
docs/video-clips.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Admin → Blog → Posts (migration 031): our own posts with a
content-block body, cover image, excerpt, date, tags, and authors
shown as person tiles, either People records or a guest name and
photo. A post is a draft until published; Listed works as it does
elsewhere. Posts are on the QR page too.
Admin → Blog → Community section: the first section of the
Community page, with its heading and blurb from the admin, in two
halves, each pinned first and then newest up to its slots. Our posts
come from blog_posts; community posts are pinned link or video cards
(reusing featured cards and Fetch preview), then the newest items
from a list of RSS or Atom feeds. Feeds are read through the link
preview's guarded fetch and cached for 30 minutes, and a failing feed
keeps its last good items.
content_blocks and featured_cards are rebuilt to accept the new owner
kinds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uploads (migration 028, server/src/media.js, routes/media.js): editors
and up upload JPEG, PNG, GIF, WebP or SVG. Photos are resized to 2400px
and saved as WebP by default, or kept as uploaded on request. Files
live in UPLOADS_DIR, served by nginx in production and by the API in
dev. Admins and up delete, after seeing what still uses the file.
Every image field in the editor is now an image widget: preview, the
path as text, Upload and Choose from library. A new Media page lists
the library. Org lists and event cards now resolve logos through
media.ts, so uploaded paths work there.
Events get a card_image (migration 029): a photo behind the card under
a light veil so the text stays readable. The card's size is unchanged.
Setup for production is in docs/media-uploads.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pick "Main navigation" or a kind of record (events, organizations,
teams, awards, people), then the page or record, and for a main page
optionally one of its #sections. The code, a copy-link button, and
PNG (1024px) and SVG downloads follow. An "NGU dove in the centre"
option puts the dove on a white badge over the code and raises error
correction to H so it still scans.
Codes always point at SITE_ORIGIN (https://nextgenerationofunity.org,
in src/lib/site.ts), so one made on localhost works on a poster.
Main pages come from navConfig.ts and record URLs from hrefs.ts, the
same sources the site links with.
GET /api/directory lists every published record with a page, as id,
name and (for organizations) kind, each filtered by the same rule as
that record's own page: a team also needs its organization
published. /api/people only answers for ids it's given, so there was
no public list to read.
The `qrcode` package does the encoding; QrCode.tsx draws the modules
as one SVG path, so the preview and both downloads are one picture.
The page is lazy-loaded so the encoder isn't in the main bundle.
The page is unlisted: not in navConfig, so not in the header or
footer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GET /api/people/:id returns a published person's profile, public
roles (current and past), published events they were billed at or
hosted, and public awards, each under the same visibility rules its
own page applies. public_phone is never sent.
PersonDetail renders it at /people/:id, the route personHref already
pointed at. PeopleTiles links a tile with a people id to that page;
an expandable tile keeps its details panel and the panel carries a
"View full profile" link instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>