Migration 077 keeps one draft per record of any entity. Saving a draft
checks it by applying it in a transaction that is rolled back; Preview
opens the record's page in a tab that sends X-Draft-Preview, and the
server answers those reads from a second connection holding the applied
draft, then rolls back, so nobody else sees it. Publish is the ordinary
save, which drops the draft. tx() now nests as a savepoint.
Also commits TODO.md: the answered questions, and parts 1 to 3 moved to
Done.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Migration 076 adds a member role below viewer (the site and its own
profile, never the admin: /api/admin now needs viewer), invites, person
claims, a Discord link on accounts and people.hide_* switches. Public reads
of people go through v_people_public, which nulls hidden fields, and the
views that read people are rebuilt over it.
Admins invite an email from Data -> Profile accounts (link shown once,
emailed on request). The invitee sets a password or signs in with any
Google account under that email, asks to claim their People record, and
once approved edits it and chooses what shows at /account.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pages -> Navigation (migration 075) edits the header's pages and buttons
and the footer's links; navConfig.ts is now only the defaults. Page titles
and intros move there from Site settings. A hidden page answers Not found
below viewer (server and app) and is out of the menus and sitemap; signed
in, it shows with a bar. Adds a /shop page of sections, hidden, with its
header button.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every upload and save (Upload, Frame at, Video thumbnails, a clip's
Save to library) has a prefilled Name box; the name is also the
readable part of the file's name, plus a short random ending. Fetch
preview names its picture after the page. Rename on the Media page
changes both, moving the file and its small copy and pointing every
record that names it at the new path in one transaction.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Front page editor: Featured Content > Columns (2, 3 or 4 across on a
wide screen) and a Size on each card (normal, wide, tall, large).
Blank keeps today's layout: 3 across, the first of three or more
large. Regions and the Community blog stay automatic.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A photo field with a shape (crop: square for people, 16:9 for event
photos, covers and hero photos, the photo's own for block images and
schedule graphics) opens Frame the photo when a JPEG, PNG or WebP is
uploaded: drag or arrow keys to place it, a zoom slider, and a shape
menu. The framed part is drawn on a canvas and uploaded in place of
the original; Upload as is skips it. Logos, SVGs and GIFs go as they
are. No new dependency and nothing stored beside the picture.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Email buttons went to the link's label, not its URL (splitLinks took
the label); they use the URL now, with or without mailto:.
- Every website and email row is listed, each with its own label,
instead of only the first.
- The facts at the top of an organization page sit in a framed card:
City, Part of <name> Region, Ministry, Meets, Since, and its tags.
- Tags (070): Data -> Tags (Online, In-Person to start) replace the
Online checkbox on organizations and events. Ticked records get the
Online tag; v_events reads the "online" tag as is_online, so the
calendar filter and place lines are unchanged. Tags show on the
record's page and on group entries in the Community map list and
grid. The map no longer keeps online groups off their state's tile.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Data > Links/redirects (editors and up) makes short links on our
domain. GET /go/<id> counts the click, reports it to Plausible as a
pageview of /go/<id> (the visitor's browser and address, no key
needed), and redirects (302, no-store) with the link's UTM tags added
to the destination. Unknown ids fall through to the not-found page.
The editor can show a fixed lead-in in the URL ID box (idPrefix).
Vite proxies /go in dev. docs/redirects.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Partners section's preset gets "Cards: list" (partners by default,
ministries, or both) and an optional hand-picked list
(page_section_orgs, partners or ministries only, enforced by trigger)
that replaces it in its own order. /organizations takes kind=ministry
and ids=; the plain list still leaves ministries out. Ministry cards
link to their website only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
066_schema.sql is generated from the live v66 schema (checked identical
to the old migrations' result: every object, every table's columns);
066_seed.sql holds only what pages need: the single rows, event scopes,
home sections, site pages and their sections, the Musicians tag. Sample
content (hero words, paths, stats, the Organization address) is no
longer seeded. Both share version 66, so a database at v66 skips them;
one below v66 is refused and has to be brought up by 33be618 first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Video blocks get a Captions field and the hero a Video captions field,
each a WebVTT upload drawn as <track kind="captions" default> on a
video file. The media library takes .vtt (sniffed by its WEBVTT
header, kept as is, always in /uploads/captions/) with its own tab.
Newsletter parts leave the field out. nginx needs text/vtt in
mime.types: docs/media-uploads.md, step 5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Image fields take frameFrom/frameWhen: "Frame at" saves a still from
the row's YouTube or Facebook link to /uploads/thumbnails/
(POST /api/admin/video-frame, grabFrame in clips.js). Used on video
featured cards.
- clock/parseClock moved to src/lib/clock.ts, shared with Video clips.
- Newsletter: new drafts no longer store source 'events' (the Pick from
select's blank choice), which showed as "events no longer exists";
older drafts load it as blank.
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>
The reader (ReaderView.tsx) now reads an icon-only link's label, puts
a card's link on its first line or picture when it has no heading,
gives each item of a row of facts or links its own line, keeps line
breaks, skips what CSS hides, turns a form into one line saying it
can't be used there, shows empty table cells as "-", keeps section and
heading ids so #links land, and opens file links as files.
What it can't read draws its own text version (useReadingMode()):
the hero, pathfinder, front page history, event lists (every event,
past ones too), org lists and groups map (every region and group,
linked), history timeline (every year open), schedules (every day,
fold-outs included), people tiles (everyone, with details) and videos.
Also: org names are linked headings, heading levels fixed where cards
repeated their section's, Team pages lose the doubled "Members",
Giving links the treasurer's email and names Church Center.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Stats: one line per number, no longer stuck at 0 (the count waited
for the band to scroll into view, which the hidden page never
does); reduced motion shows the numbers at once too.
- Calendar: the next six weeks from today as a list (date, linked
title, time, type, place), wherever a calendar is drawn.
- Featured cards: a linked heading and its words each; a video card
links to its video.
- Countdown: left out, the retreats band shows the same event.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reading mode: parts the page draws on their own lines get a space
between them, so words no longer run together; the column is 60rem
(was 42rem) and headings are bold in the display face.
- Local groups map scales to its column on a phone instead of holding
34rem and scrolling sideways.
- Group, region, partner and team pages drop their fixed back link
(records are reached from many pages); orgListHref is gone.
Not-found pages keep theirs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Reading mode is now a reader view (ReaderView.tsx): the page renders
hidden and its headings, paragraphs, links and described pictures
are written out in one column, with no header, backdrop or footer.
- Color blind modes swap all three color families (teal, green,
amber); palette hexes in components and CSS are now
var(--pal-<family>-<shade>) so the modes reach them.
- CLAUDE.md and docs/updating-data-in-code.md describe both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Accessibility panel: the switch knob stays in its track; the panel
follows its button in the Tab order and opens on its first switch.
- Reading mode is the page as plain text: one column, no colors,
pictures, cards or motion; descriptions stay in place.
- Color blind mode (protanopia, deuteranopia, tritanopia, monochrome):
palette swaps chosen by simulation, applied to code, data and CSS
colors on public pages only. The newsletter uses the stored palette.
- Audit fixes: focus not hidden by the header, focus on page change
and in-page jumps, focus return for the menu, day list and people
details, labelled admin fields and dialogs, keyboard map tiles,
scrollable tables, and more.
- Calendar asks /events for its six weeks only (?from=&to=); carousels
take their 12 most recent past events (?past=12).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
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>
Migration 058 turns the organization_details preset into the
section's own blocks and drops it from page_sections' CHECK. The side
nav is placed in the left margin beside the 72rem content, from 88rem
screens up, so sections stay where they'd be without it.
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>
- The header's second strip is gone: each top link drops down its
page's sections on hover or keyboard focus.
- Retreats, Community, Resources, Organization and History get the
admin editors' "On this page" column (SectionNav), sticky at the
left from lg up, with the section being read lit.
- Home's sections in the dropdown, mobile menu, footer site map, the
feedback form and the QR maker are the bands the front page is
showing, in its order and under its headings (navSections.ts,
frontPageBands.ts, which Home.tsx now draws from too).
- Resources comes before Organization in the nav and footer.
- The Organization page draws from its own editor's content.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nothing before these changes was ever public, so the fixes kept for
older data go: the /leadership redirect (MOVED in routes/pages.js),
index.html's move of "ngu-" browser keys to "site-", the boot-time
sorting of images from before folders (media.js), and emoji path
icons (a path with no named icon shows a dot; migration 055 turns
the baseline's seeded emoji into their names).
Pages → Organization page (migration 055): a singleton with the
Mission, Vision & Values blocks, the Leadership blocks (a People
block per team, in order) with a heading and blurb, and Volunteering
(title, blurb, links). content_blocks gains the two owner kinds;
GET /organization-page serves it.
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>
- A still that fails or comes back as YouTube's 120 x 90 "no
thumbnail" image gives way to the next; with none left the player
is a flat teal panel with the play button showing.
- Timeline: solid teal dots, a solid teal rail and teal decade tags
(still on their branch), one color throughout, until a vine or
tree drawing replaces them. The leaf colors are gone.
- People tiles fill each row with as many as fit (2 to 10), one
fewer only when the last row would be a single tile, instead of
evening rows out (8 where 6 fit had come out 4 and 4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sixteen circles in four layers, big and slow at the back to small
and quicker at the front, each rising by its share of the page's
scroll (none at the page's own speed); how far is measured from the
page's height, so the back layer visibly moves on a long page. Each
path gets its own seeded arrangement. The tone moves on only when a
new top-level section arrives, and eases over 2.4s. Dark shades are
chosen so text passes 4.5:1 however many circles overlap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
color, center, canceled, labeled, recognize and the rest, in UI
text, help text, comments, docs and names (ColorInput, QrCenter).
Migration 053 renames the two Site settings color CHECKs, whose
names are the messages the admin shows. Kept: events.status's
stored value 'cancelled' (shown as canceled), aria-labelledby,
schema.org's EventCancelled, and old migrations as they ran.
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>
Save to library and Save to Drive on a finished download, not only on
clips. The download stays on the server to cut clips from either way;
a clip's library save still clears its working file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Save to Drive, beside Save to library, puts a finished clip in a folder
under Media (Videos or Audio chosen first to match it) as a Files
entry, shared by link, so pages can link to it (migration 051). The
clip streams from disk through a resumable upload, so a long one
isn't read into memory. A clip can be in both the library and Drive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Forms → Content requests and a new Tools → Media → Requests tab (by
type folder, each linked to its request) mark a file Drive no longer
has under Requests as Missing from Drive. Remove (admins and up)
trashes a file and takes it off its request. Drive is asked at most
every 30 seconds, and folder lookups now cache every level walked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One grid whatever the count, so a lone card takes a column rather than
the width. Also the Blog Posts request folder's name, as it is in Drive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Request files go in Requests/<type> (Chapters, Events...). Media →
Files shows a tab per folder under Media, up to three deep, and can
make, rename (files follow) and delete empty folders, move a file with
its Folder dropdown, and upload into the folder showing; Choose a file
has the same tabs. A folder made, or a file moved, in Drive by hand is
followed on the next look (migration 050 records each file's folder).
Deletes now move to Drive's trash: a shared drive's Content manager,
the service account's role, can't delete outright, so request and file
deletes would have failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
logos/ for logo and icon fields, thumbnails/ for previews the site
saves (link previews, Drive first pages), images/ for everything else;
each small copy beside its image. Images from before folders are
sorted once at boot by their uses, and every record naming them is
rewritten in one transaction after the files move.
The Media page and image pickers get a tab per folder; a picker opens
on its field's folder and uploads there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Request form asks each type for its main details (a chapter's
city, meeting time, website and email; an event's dates, venue and
registration link...), stored as one JSON column (migration 049). The
server only checks the shape; the fields are src/data/requestTypes.ts.
Forms → Content requests shows them, and for a new record opens the
New editor filled in (URL ID from the name, links and a description
paragraph added); for an update, picks the record (closest name
first) and opens it with each requested value beside the current one
to use or skip. Nothing is saved until Save.
Also centres the image and file pickers, which Tailwind's reset had
pinned to the top left.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The folder isn't only for blog posts. A Blog folder made before this
can be renamed to Media in Drive; its files keep working.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Opening Tools → Media → Files (or a Choose a file picker) now looks in
the shared drive's Blog folder, at most every 30 seconds, and adds
anything put there in Drive itself: shared as anyone with the link,
previewed, Google Docs, Sheets and Slides included, folders and
shortcuts left out. A file Drive won't share is named in a note and
tried again every ten minutes.
A reply that isn't the API's (nginx's own error page) now says what it
was: a 413 names nginx's upload limit, a 502 the service, a 504 the
timeout, instead of "Server did not return JSON".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tools → Media → Files uploads PDF, Office (.docx, .xlsx, .pptx), MP3,
M4A and zip files, up to 50 MB, to the shared drive's Blog folder and
shares each as anyone with the link can view (migration 048). A file's
name and contents must agree.
Content block links get "Choose a file" (paragraph, button and image
links, list and link items, link cards). A link card also takes the
file's name and Drive's picture of its first page, fetched after
upload and saved into the image library; cards to Drive say "Google
Drive". Deleting a file says first what still links to it.
Setup and the nginx block: docs/google-drive-and-mail.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Site settings → Access names a group for each of admin, editor and
viewer (migration 047). Someone in one who signs in with Google gets a
Google-only account with their highest group's role, and the role
follows the groups: at every sign-in, hourly while signed in, and on
Panel → Google groups → Re-sync now. Out of every group, the account
is disabled and signed out until they're back in one.
Group accounts' roles are locked in the Panel; a superadmin's Disable
sticks. Superadmins and admin-cli accounts are never changed. If
Google can't be asked, sign-ins are refused but the hourly check
leaves accounts alone. Panel → Check their groups tests an email.
Lookups use the service account through the Directory API as
GOOGLE_DIRECTORY_AS. Setup: docs/google-sign-in.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Panel → Site settings → Notices → Send a test notice emails the
addresses in the box now and shows where it came from, or Google's
reason for refusing, so the Gmail setup can be checked without the
journal. Superadmins only (POST /api/admin/panel/test-notice).
The docs now say the sender must be a Workspace user: a group can't
be acted as through delegation, though it can receive notices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GOOGLE_SHARED_DRIVE (the shared drive's bare id) replaces
GOOGLE_DRIVE_FOLDER. driveUpload takes a folder path, found by name in
the shared drive or made the first time, so each use gets its own
folder: "Requests" for the Request form now, others later. The docs
say plainly that the setting is the id only, not the address.
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>
- Table content blocks (migration 044): a grid of text, a row per
line, cells split by |, the first row the header; cells take the
same formatting as a paragraph; wide tables scroll on a phone
- Blog posts -> Import from Word: the server reads the .docx (zip and
XML read without a library, sizes capped) and creates an unpublished
post through the CRUD engine: title, date, headings, paragraphs,
lists, tables, bold, italic and links; the editor opens with a note
of what came over and what didn't (images)
- docs/importing.md, and an nginx block for the upload
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>