NGU-Web/TODO.md
Aidan Dona 54fc319d33 TODO: page management is part of v1.14.0-profiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 17:49:31 -05:00

380 lines
79 KiB
Markdown

# TODO
- Instructions for this document: update it as things are completed, moving items from TODO to Done under the same category. Develop content here based on conversations. Leave the categories blank in Part 1: TODO when you are moving items out of them to Done.
- Status: everything up to v1.8.3-video-mgmt is tested and deployed. PR #14 (branch `audit`, v1.9.0 to v1.9.4-audit) was merged into main on 2026-09-29 (adc88e5). Branch `content-display` was merged as PR #15 (v1.9.5 to v1.9.11, 2026-09-29) and PR #16 (v1.9.12 to v1.9.14, 2026-09-30, c76df02). All of it is deployed and checked in a browser (2026-09-30). The design overhaul (PR #18, v1.10.0 to v1.10.2) and the revised palette (PR #19, branch `palette-test`) were merged into main on 2026-09-30 (6f86a11); not deployed yet. Branch `page-updates` (v1.10.3 to v1.10.6) was merged into main as PR #20 on 2026-10-01 (3e4a725); not deployed yet. Branch `page-fixes` (v1.10.7 to v1.10.10) was merged as PR #21 on 2026-10-01 (0bb4b86); not deployed yet. Back up the database before deploying (migrations 056 to 059: 056 and 057 rebuild content_blocks, 058 page_sections, 059 recreates v_events). Branch `audit-3` (v1.11.0-audit) is open as PR #22; branch `audit-ui` (v1.11.1-audit, on top of it) as PR #23; branch `newsletter-layout` (v1.11.2-newsletter, on top of that, migration 060) as PR #24.
---
# Part 1: TODO
- Items from notes.txt (2026-10-16). Each has questions under it: tick one when it's settled, or write the answer after "Answer:".
## Pages
- [ ] **Resources page by audience**: frame the page as For Young Adults, For Ministries, For All.
- [ ] Are these three tabs, three sections (each in the side nav), or a filter over one list? Answer:
- [ ] Does each resource belong to exactly one audience, or can it be in several (eg. a tag per audience)? Answer:
- [ ] What happens to the page's current sections: move under an audience, or replaced? Answer:
- [ ] **Library**: a library for NGUers.
- [ ] What goes in it: links out, uploaded files (Drive "Media"), books, videos, our own articles? Answer:
- [ ] Public, or only for NGUers? If only NGUers, how do they sign in (there are only admin accounts today)? Answer:
- [ ] Is the metaphysics dictionary / Metaphysical Bible Dictionary part of it (see Future: Poetry Builder needs the same import)? Answer:
- [ ] Is the Metaphysical Bible Dictionary free to republish (public domain edition), or only linked? Answer:
- [ ] **The Acronym Dictionary**: a page of acronyms (Unity, New Thought, NGU).
- [ ] A page of its own, or a part of the Library? Answer:
- [ ] Each entry: acronym, meaning, a short description, a link? Anything else (category, related org)? Answer:
- [ ] Who adds entries: admins in Data, or anyone through the request form? Answer:
- [ ] Do you have a starting list to import? Answer:
- [ ] **Retreat content index**: ideas and content from retreats, which event each was featured at, tabs for the major pillars, a table of contents to fill out (borrowed from YOU history). Also retreat templates.
- [ ] What are the major pillars (the tab names)? Answer:
- [ ] What is one entry: a talk, an activity, a theme, a workshop? Its fields (title, description, files, presenter, event)? Answer:
- [ ] Where does the YOU history version live, so I can see what to borrow? Answer:
- [ ] Public, or for retreat teams only? Answer:
- [ ] How does the feedback form fit: a form per retreat linked to its entries, or feedback shown on entries? Answer:
- [ ] Retreat templates: documents to download (Drive files), or a "start a new retreat from this one" copy in the admin? Answer:
- [ ] **Centralized scholarship and donor giving page**: one page for scholarships and giving.
- [ ] Does giving stay on Church Center (embeds), with this page gathering them, or something else? Answer:
- [ ] What is "etc.": scholarships, the Catalyst Fund, general giving, per-event giving? Answer:
- [ ] Do scholarships need an application (a form like /request), or only a description and a link? Answer:
- [ ] Show donors or totals (eg. a goal bar), or none? Answer:
- [ ] **Website changelog**: the site's construction as an evolving blog post, tabs marking each update.
- [ ] One blog post with a tab per version, or a blog post per version under a "Website updates" tag? Answer:
- [ ] Written by hand, or started from the tags and TODO.md Done list (then edited)? Answer:
- [ ] Does it go back to v1.0, or start from now? Answer:
- [ ] Linked from the footer next to the version, or only in the blog? Answer:
## Sections
## Page Features
- [ ] **Full profiles**: people get full profile pages. Profile accounts, claiming and visibility are done (Part 2, Accounts); what's left is the page itself.
- [ ] What is missing from a person's page today that makes it "full": bio, more photos, links, events they spoke at, groups, blog posts they wrote? Answer:
- [ ] Ties to Planning Center sync (Data) and the gamification below? Answer:
- [ ] **Page preview images per page**: the event's banner on event pages, the person's photo on theirs, the org's logo on org pages.
- Already done in `server/src/pageMeta.js`: events use the event photo, then the event logo, then its org's logo; people their photo; orgs, teams and awards their logo; blog posts their cover. SVG logos are skipped (social sites don't show them).
- [ ] Which page showed the wrong picture, and where (Discord, iMessage, Facebook)? Answer:
- [ ] Is it production (not deployed yet?) or the SVG skip? Should an SVG logo get a PNG copy made at upload for previews? Answer:
- [ ] Should event pages prefer the card background ("banner") over the event photo? Answer:
- [ ] **Gamification synced to Discord**: points, badges or levels on the site, synced to Discord. Linking a profile to Discord is done (Part 2, Accounts); the bot, points and badges are next.
- [ ] What earns points: going to events, writing for the blog, volunteering, Discord activity? Answer: all of the above, we could create badges on profiles.
- [ ] Where are they shown: on full profiles, a leaderboard, only in Discord? Answer: shown on profiles when logged in, no leaderboard for now, and when using a command in discord. this content would not show on the public bio section of a user when viewing from a people tile.
- [ ] Which way does it sync: site → Discord roles, Discord → site, or both? Is there a Discord bot already (or only the reports webhook)? Answer: would like a bot built, for if things in discord update or affect gamification shown on the website. most things will be assigned to users by moderators.
- [ ] How do we match a person to their Discord account (they link it themselves)? Answer: they can link it, admins can overwrite and update/set
- [ ] **Site version names**: in the footers now (Part 2, Page features); still to show them in the changelog once it's built (Pages: Website changelog).
## Accessibility Features
- [ ] Check the mobile fixes on a real phone (or the browser's phone view at 320, 375 and 430px), light and dark: every page, the menu, the hero, the retreat carousel, people tiles and their details, the community map, schedule blocks, the banner.
- [ ] **Listen to a page**: a screen reader or compiled audio for certain pages.
- [ ] The browser's own voice (free, reads the Reading mode text, sounds robotic), or recorded/generated audio files (better voice, has to be made for each page and kept current)? Answer:
- [ ] Which pages: blog posts, History, Organization, all? Answer:
- [ ] A Listen button in the Accessibility panel, or on each page by its title? Answer:
## Mobile
## Page Editing
- [ ] **Page management revamp**, in steps (answers from 2026-10-16: disabled means out of the menus, sitemap and search with the address still working; admins can make new pages; the front page, the Community blog's settings, the form and embed pages and Privacy/Terms all become pages of sections; section types like the hero, stats, featured cards, calendar and countdown can go on any page, each with its own content).
- [x] Step 1, the page registry (Done, below).
- [x] Step 2, the core pages as sections (Done, below).
- [x] Step 3, section types with their own settings and the front page as sections (Done, below).
## Admin
## Data
- [ ] **New Thought young adult directory**: the tabs are built (Part 2, Page features). Content: make the People tags (eg. Authors, Creators), tag people, and set Community's Directories section to them.
## Navigation
## Tools
## Content
- [ ] **Newsletter: featured partners and new partnerships**, maybe as a blog post.
- [ ] A newsletter part of its own (picks organizations, shows logos), or a blog post the newsletter links to? Answer:
- [ ] **Blog posts to write** (content, not code):
- [ ] The Catalyst Fund.
- [ ] How churches can engage with young people, through social media: what tools they use.
- [ ] Aidan's ultimate guide: church management systems, donor engagement platforms, free tools for nonprofits, nonprofit technology, AI (its benefits, and using tools ethically).
- [ ] Should any of these come out as a series (a tag), or one at a time? Answer:
## Production cleanup
## Audits
## Future
- Timeline vine/tree SVG (you'll provide it); until then the timeline is solid teal dots on a teal rail, one color throughout.
- Legal check of the Privacy Policy and Terms for NGU's state and nonprofit status (wording read 2026-09-28, fine for now).
- Enforce the Content-Security-Policy after watching its reports on the server (`journalctl -u ngu-api | grep csp`, `docs/security-headers.md`).
- Potentially make new vertical nav circle a sun svg later on.
- Poetry Builder, need to import the metaphysical bible dictionary and virtue list.
---
# Part 2: Done
## v1.14.0-profiles: page management (branch `page-management`, on top of `page-features`, no PR yet; migrations 080 to 085, back up the database before deploying)
- [x] **Planning Center sync** (Data, migration 085, `docs/planning-center.md`): Data → Planning Center (admins and up) fetches one Planning Center People list (Site settings → Planning Center) and compares each member with the site: linked, or suggested by the same email, else the same name, with the fields that would change (name, sort name, private email and phone) side by side. For each: link (and update; Planning Center wins), link to someone else, make a new unpublished person, or skip; Apply writes it all at once. One way, by hand. Off until `PCO_APP_ID` and `PCO_SECRET` are on the service. Tested against a stand-in for Planning Center's API only.
- [ ] Check with the real list: the token, a list number, a compare, an apply.
- [x] **Rotating words** (Sections, migration 084): text typed as `{Next|Now|Rising}` cycles through its choices, in the hero's headline, section titles (bands' too), headings, paragraphs, callouts and quotes, eg. `{Next|Now} Generation of {Unity|New Thought}`. Five motions (slide, flip like a card, fade, type letter by letter, mirror turning round), from the top or the bottom, a number of seconds per word: defaults in Site settings → Animated words, and a hero or a block can set its own. Each word's space is the longest's, so the line doesn't jump. Less motion (the system's setting, or reading mode) shows the first word, still, and screen readers always get the first; menus, tab titles, search descriptions and newsletters use the first word too (`src/components/RotatingWords.tsx`, `src/lib/words.ts`).
- [ ] Check in a browser: each motion and direction, a group in a section title and a paragraph, the space it keeps on a phone, reduced motion.
- [x] **Section types with their own settings, and the front page as sections** (migration 083): the front page is Home in Page management, a page of sections like the others: its hero first, then its bands in their old order (hidden ones stay hidden), each a section type that can go on any page with content of its own: Hero (words, buttons, photos, video, livestream or event), Event countdown, Event calendar, Numbers, Featured cards, Connect nav, and a Timeline shown as the rail of featured moments. The Community blog's slots, pinned posts and feeds moved into its section, so it can go on any page too. Any section can be Hidden. The Front page editor is gone (its fields are each section's), and so are its tables and the Community page's. On the front page the bands look as they did and any other section is a band in the same style; on other pages a band brings its own heading. The National Retreats band became an Events section with an All retreats button. The newsletter's "featured cards" come from the front page's featured card sections. Admin engine: a child collection can have its own side tables and gated nested collections.
- [ ] Check in a browser: the front page (every band, the countdown overlapping the hero, reading mode, the menu's Home dropdown), editing the hero and a band in Page management, a Hero and a Numbers section put on another page, hiding a section, the Community blog (pinned posts, feeds), a draft preview of the front page, the newsletter's featured cards.
- [x] **Core pages as sections** (migrations 081, 082): Feedback, Request, QR codes, Give, Privacy and Terms are pages of sections now, edited in Page management like any other. Their forms and embeds are section types any page can use (Website feedback form, Request form, Data request form, Giving button, QR code maker); Give's words, and all of Privacy and Terms, are blocks (headings, paragraphs, lists), with "Last updated" in the section's blurb. The privacy contact email was written into the policy's text and its Site settings field is gone. These pages keep their address (the site's code links to them) and can't be deleted. The privacy notice's link now goes to #cookies-and-browser-storage.
- [ ] Check in a browser: each of the six pages (reading width of Privacy and Terms, the giving modal opening), editing a Privacy paragraph, a Request form section put on another page.
- [x] **Page registry** (migration 080): every page of the site is a row in Pages → Page management (admins and up): its address, title, intro, Hidden (Not found below viewer) and Disabled (out of the menus, the sitemap and search; the address still works), and the order of its admin card. New pages are made there, as pages of sections at the address given (any address but the admin's, the API's, the records' and the account pages'). The admin home's Pages group opens with a Page management banner (New page, Menus), then a card per page. The six page editors (Retreats, Community...) are one editor now; site.json's `pages` and Navigation's page list moved into the registry and are gone. The fixed pages (Feedback, Request, Give, QR codes, Privacy, Terms, the front page) take their words from it too and can't be deleted.
- [ ] Check in a browser: the admin home's banner and page cards, making a page (address, sections) and opening it, hiding and disabling one (menus, the page signed out), renaming Feedback, the Under page select in Navigation.
## v1.14.0-profiles: page features (branch `page-features`, with `nav-access` under it, no PR yet; migrations 078 and 079, back up the database before deploying)
- [x] **Featured event label** (Mobile): the "Featured event" badge left the headline; from lg up it sits above the event's card it names, and on a phone (the card under the words) it's left out.
- [x] **Site version names**: the tag's words after the number are the version's name, `v1.13.2-region-cards` → "The Region Cards Update" (`src/lib/version.ts`), shown with the number in the site's footer and beside the version in the admin's footer and home.
- [x] **Image converter** (Tools → Image converter): pictures to JPG, PNG or WebP in the browser (nothing uploaded): pick or drop several, a quality slider for JPG and WebP, download each or all. JPG fills transparency white. Media's images each have a Download as… (JPG, PNG, WebP) doing the same (`src/lib/convertImage.ts`).
- [x] **Directory tabs** (migration 078): the People directory preset takes several People tags, a tab each in the order picked (Directory: tags under the section); one tag shows without tabs, reading mode lists every tag. Each section's old single tag became its first.
- [x] **Blog post tabs** (migration 079): a Tab block in a post (its text the tab's title) starts a tab holding the blocks after it; blocks before the first Tab are the intro above the tabs. The contents list follows the open tab, a link to a heading in another tab opens it, and Download PDF and reading mode show every tab under its title. Outside a post a Tab block reads as a heading.
- [x] **Featured event card height** (Sections): from lg up the event's photo sits beside its words instead of above them, with tighter type and buttons, so the card is about as tall as the hero's text beside it; stacked as before on a phone. The photo stays whole (16:9).
- [x] **Word import, more of it** (Page Features): a line starting `Tab:` (any style) starts a tab; the Quote style becomes a Quote (a dash and a name at the end is who said it), Intense Quote a Callout, a line of `---` a Divider, a YouTube, Vimeo or Facebook link alone on its line a Video, and `Button: Register` with Register linked a Button. Blog posts → What becomes what (beside Import from Word) shows the whole mapping; `docs/importing.md` too. The note after an import counts tabs and the rest.
- [x] **Side nav sun into the footer** (Navigation): the sun is far bigger than the sticky layer that carries it, so once the last section went up past the list it hung over the footer. It now fades out as the list leaves with the last section, and back in on the way up.
- [ ] Check in a browser: the featured event card beside a two-line headline at 1024, 1280 and 1536px; What becomes what and a real Word document with Tab: lines, a quote and a video link; the side nav sun fading at the end of a long page (2xl screen) and with a tall footer; the featured event hero at phone and desktop width, the footers' version line, converting a PNG with transparency to JPG and a JPG to WebP (and Download as in Media), a Directories section with two tags and with one, a post with an intro and three tabs (contents, keyboard arrows, PDF, reading mode).
## Page Editing (branch `nav-access`, no PR yet; migration 077)
- [x] **Drafts of every record** (migration 077, `docs/drafts.md`): an existing record of any kind (events, people, organizations, blog posts, the front page, the site pages, Navigation, Site settings...) can be saved as a draft instead of going live. One draft per record; anyone who can edit it can save, preview, publish or discard it. Opening a record with a draft opens the draft, saying who saved it and when, and warning when the live record was saved since. Lists mark records with a draft.
- [x] **Preview on the real page**: Preview saves the draft and opens the record's page in a new tab with it applied, under an amber "Previewing a draft" bar, for signed-in admin accounts only; anyone else sees the live page. The server answers that tab's reads from a second connection holding the draft in a transaction it rolls back, so no page needed code of its own.
- [ ] Check in a browser: save a draft of an event, a site page (a section's title) and Navigation (a link), preview each, publish one, discard one; open the same address signed out.
## Accounts (branch `nav-access`, no PR yet; migration 076, back up the database before deploying)
- [x] **Profile accounts** (migration 076, `docs/profile-accounts.md`): a member role below viewer, signed in to the site and their own profile, never the admin (`/api/admin` now refuses anything under viewer). By invite only: Data → Profile accounts (admins and up) adds an email and shows its link once; Email invite sends a fresh one through Gmail. The link (`/account/welcome`) sets a password, or they sign in with Google under that email, any Google account. A New sign-in link on the account doubles as a password reset.
- [x] **Claiming a People record**: on `/account` (Your profile; the footer's Sign in link) they ask to be a record; admins approve or decline it under Claims, or set it directly on the account.
- [x] **Editing it and choosing what shows**: with a record, they edit its pronouns, tagline, location, public email and phone, bio and photo, and hide any of photo, pronouns, tagline, bio, email, phone, location, links. Hidden parts stay in the record (the People editor shows the same switches) and are left out everywhere on the site: every public read of people goes through the new `v_people_public` view, and the views that read people were rebuilt over it.
- [x] **Discord linking**: a profile links its Discord account (identify scope: id and name) from `/account`; an admin can set or clear it on the account. Off until `DISCORD_CLIENT_ID` and `DISCORD_CLIENT_SECRET` are set on the service.
- [ ] Check in a browser: invite (copy link and Email invite), the welcome page with a password and with a non-org Google account, a claim and its approval, editing and hiding (then the person's page, a team page and a people tile signed out), Discord linking once it's set up, a member opening /admin.
## Navigation (branch `nav-access`, no PR yet; migration 075, back up the database before deploying)
- [x] **Pages → Navigation** (migration 075): the header's pages and buttons, the footer's Get in Touch and bottom row, edited in the admin (admins and up): place, order, label, link (a page, a #section or an address elsewhere), a header page set under another page's menu (after its sections), a filled button (Give's style, also beside the footer's logo), new tab. `navConfig.ts` is now only the defaults the app starts from before the nav loads. Page titles and intros moved here from Site settings (the old rows came along).
- [x] **Hidden pages**: a page ticked Hidden in Navigation answers Not found (404, noindex) to everyone below viewer, server and app both, and is out of the menus, the sitemap and the not-found page's suggestions; links to it are only sent to viewers and up. Signed in, it shows with a bar saying it's hidden. Its sections aren't cached (`server/src/siteNav.js`, `GET /api/nav`).
- [x] **Shop**: a Shop page of sections at `/shop` (Pages → Shop, empty for now), starting hidden, with a Shop button in the header (beside Contact Us and Give, and in the phone menu's list with them). Unhide it in Navigation once it has content; its sections can link out to the Bonfire store.
- [ ] Check in a browser: the header and phone menu, a page set under another's menu, the footer, signed out and signed in (the hidden bar, Shop showing), light and dark.
## Feature updates (branch `feature-updates`, v1.13.x, no PR yet; migrations 069 to 071, back up the database before deploying)
- [x] **Partner cards, logo first**: the organization cards (Partners, Ministries) lead with the logo, large and centered, the name under it as a small line (still the heading); with no logo, its initials. Cards sit raised with a shadow and an accent top edge.
- [x] **Frame a photo on upload**: photo fields (people, event photo and card background, blog cover and guest photo, hero photos, link card pictures, block images, schedule graphics and map images; not logos) open Frame the photo for a JPEG, PNG or WebP: drag (or arrow keys) to place, zoom slider, a shape menu (the field's own first; As uploaded keeps the photo's). The framed part is what uploads; Upload as is skips. Nothing stored beside the picture, so re-framing is uploading again.
- [ ] Check in a browser: the partner cards with and without logos (light, dark); framing a portrait into a square and a wide photo into 16:9, Upload as is, Cancel, and a PNG keeping its transparency.
- [x] **Content blocks: Shown in** (migration 071): The page, The card only, or The card and the page. A card block used to show on the page too without saying so; every existing card block became "both", so nothing moved. Pages no longer print card paragraphs separately; a "both" block comes with the page's blocks, in its place in the list.
- [ ] Check in a browser: an event with a "both" paragraph (on its card and page) and one with "card only" (card, not page); an organization, team and person page still show their text.
- [x] **Group pages**: the facts at the top sit in a framed card (City, Part of <name> Region, Ministry, Meets, Since, tags); email buttons go to the link's URL, not its label (`splitLinks` took the label); every website and email row is listed with its own label, not only the first.
- [x] **Tags** (migration 070): Data → Tags (Online and In-Person to start) replace the Online checkbox on organizations and events. Records ticked Online got the Online tag (nothing got In-Person). The tag with URL ID `online` still makes an event online (calendar filter, place line, search data) through `v_events`. 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.
- [ ] Check in a browser: a group page's facts card (light, dark, reading mode), two emails and two websites, tags on a group and an event, the Tags list in Data, and the calendar's Online filter still working.
- [x] **Schedule presentation** (digital signage): an event page's schedule block has a Present button (everyone) opening `/events/<id>/present` in a new tab. A setup screen picks the days and entries and the seconds for each kind of slide (day overview, entry spotlight with the person's photo and name beside the entry, graphics, map images; 0 leaves one out); Play goes full screen and loops, the parts of each slide animating in, a bar showing the time left. The settings are in the address (bookmark it on a signage screen; `play=1` skips setup). Arrows step, Space pauses, S returns to setup; the screen is kept awake where the browser allows. Not by the clock: it loops what was picked.
- [x] **Map image on schedule entries** (migration 069): an entry's own map picture, shown in its fold-out in place of the Google map (the "Open in Google Maps" link stays when a place is set) and as a slide in the presentation.
- [ ] Check in a browser: the Present button, setup, each slide kind (light and dark, a long day of 9+ entries in two columns), full screen on the signage device, and a map image in the fold-out.
- [x] **Group map** (Community): hovering a state outlines it in ink while its region stays lit; the list puts each region's groups under their state's subheading, each entry a raised card; the region's list of states is gone from the list (its map note stays); the list no longer scrolls on hover, only on click (a state goes to its subheading, or its region when it has no groups; a legend region to that region).
- [x] **Side nav pill** too tall when the window narrows (Community): the pill (straight sides, round ends) was sized as an ellipse, about three times the list's height; it's sized as the pill now.
- [x] The "Hide past events" button was clipped at the bottom when it grew on hover: the event cards' root wrapper was `overflow-hidden`; it is `overflow-x-clip` now (the carousel still can't spill sideways).
## v1.13.1-data (branch `data`, merged as PR #28, 2026-10-06, 970730d; migrations 065 and 066, the consolidated baseline, then 067 and 068, back up the database before deploying; not checked in a browser yet)
- [x] Newsletter: a new draft's Coming Up "Pick from" showed "events no longer exists". Events is that select's blank choice, so new drafts now leave the source blank and older drafts' `events` loads as blank.
- [x] **Frame from a video**: a video featured card's Image field has "Frame at" (a typed time, prefilled from the link's `t=`); the server takes that one frame with yt-dlp and ffmpeg and saves it to `/uploads/thumbnails/` as the card's picture (`POST /api/admin/video-frame`, editors and up). Choosing any other picture already worked through the same field. Not tested end to end yet: needs yt-dlp, which is on the VPS but not the dev machine.
- [x] **Plausible reports to Discord** (migration 065): daily (yesterday) and weekly (Mondays, last 7 days with the change from the week before), each switched on in Panel → Site settings → Reports; sent at 8:00 America/Chicago. Needs `PLAUSIBLE_API_KEY` and `DISCORD_WEBHOOK_URL` on the ngu-api service (`PLAUSIBLE_URL` if Plausible isn't on 127.0.0.1:8000). Try it with `node src/analyticsReport.js daily`. Tested with a stubbed Plausible only.
- [x] **Captions for uploaded videos** (migration 066): video blocks have a Captions field and the hero a Video captions field, each taking a WebVTT (.vtt) upload (kept as is, in `/uploads/captions/`), drawn as `<track kind="captions" default>` on a video file (WCAG 1.2.2). Embeds bring their own. Needs `text/vtt vtt;` in nginx's mime.types if it isn't there (`docs/media-uploads.md`, step 5).
- [x] **Migrations consolidated** into `066_schema.sql` (generated from the live v66 schema, checked identical: 136 objects, every table's columns) and `066_seed.sql` (single rows, event scopes, home sections, the five site pages and their sections, the Musicians tag; the hero words, paths, stats and the Organization address and tax ID are no longer seeded). A database at v66 skips both; one below v66 is refused. **Deploy order:** production is below v66, so deploy 33be618 (the last commit with the old files) first, let it migrate to v66, then deploy this.
- [x] **Partners section picks its organizations** (migration 067): the organization cards preset (Community → Partners) has "Cards: list" (Partners by default, Ministries, or both, every published, listed one by name) and an optional hand-picked "Cards: organizations" list (partners or ministries, in order, published ones, listed or not) that replaces it. Ministry cards link to their website only (no page). `/organizations` now takes `kind=ministry` and `ids=`.
- [x] **Links/redirects** (migration 068): Data → Links/redirects makes short links, `/go/<URL ID>`, for the newsletter. Each click is counted (Clicks, Last click on the list), sent to Plausible as a pageview of `/go/<URL ID>`, and redirected with the link's optional UTM tags added. Editors and up. `docs/redirects.md`.
- [x] Newsletter: Save as a new draft beside Save draft; a Title color; every part color is a color picker (any hex, or none) instead of the palette dropdown.
- [x] Region pages no longer show the raw domestic/international scope.
- [x] Keywords question (2026-10-04): Google has ignored `<meta name="keywords">` since 2009, so nothing to add. What counts is the words on the page: titles, headings and descriptions, which `pageMeta.js` already fills per page. The Google side is Search Console, which shows the searches the pages appear for.
## Pages and Data (branch `data`, merged as PR #27, v1.13.0-data, 2026-10-04, 3b45944; migrations 062 to 064, back up the database before deploying; not checked in a browser yet)
- [x] **Musician directory, as people tags** (migration 062): Data → People tags lists what people can be tagged as (Musicians seeded); a person's Directories repeater tags them, and their new Specialty line ("Vocals, piano · Gospel, folk") shows on their tile in a directory, with their links in the details panel. A People directory section preset (Community, Resources, Organization) shows a tag's first 12 and links to its full page, `/directory/<tag>` (eg. `/directory/musician`), titled and indexed like any page. Another directory (Speakers) is a new tag, no code.
- [x] **Ministry organizations** (migration 063): a new organization kind for Unity ministries. A group picks its ministry (Group → Ministry), and its page says "Ministry: <name>", linked to the ministry's website link when it has one. Ministries have no page, list, sitemap entry, timeline entry or 404 suggestion on the public site, and aren't offered where a record links to its organization (event hosts, teams, awards, roles, home organization, featured cards, timeline).
- [x] **Organization contacts and the recipient export** (migration 064): Data → Contact types holds the roles you make (none seeded); each organization has a private Contacts repeater (type, name, email, phone; editors and up only). Tools → Newsletter → Recipients filters them by contact type, organization kind, region (the region and its groups) and published, previews the matches and downloads a CSV for Mailchimp (Email, First Name, Last Name, Phone, Organization, Kind, Region, Contact type). A type still in use can't be deleted.
- [ ] Check in a browser: tag a person, the directory section and page (light, dark, reading mode), a group's ministry line, contacts on an organization (as a viewer too), the export and its CSV.
## Accessibility, second round (branch `accessibility`, merged as PR #26, v1.12.1-accessibility, 2026-10-03, 07e56bf; not checked in a browser yet)
- [x] **Reading mode rebuilt** (`src/components/ReaderView.tsx`): the page as text only, headings, paragraphs, links and pictures with a description, in one column, with a line of links to the site's pages at the top. No header, footer, backdrop, buttons, cards or forms; the accessibility button stays, to turn it off. The real page still renders, hidden, and the reader writes out what it drew, again whenever it changes, so every page works without a version of its own. A card that is one link gives its heading the link; a button that opens something (a person's tile, a schedule row) keeps its words as a line; carousel copies and decorative pictures (empty alt) are left out.
- [x] **Color blind modes cover the whole site**: each mode now replaces all three color families (teal, green, amber), not just green, with sets picked by simulation (each family's darkness can differ, since a red-green color blind eye sees one blue to yellow line plus light and dark). The closest pair goes from 11.4 to 27.9 (protanopia), 19.5 to 24.7 (deuteranopia) and 6.4 to 21.1 (tritanopia); every theme token still meets 4.5:1 in light and dark mode. The theme tokens, the backdrop circles, the side nav circle, the header and menu, the hero, the stats band and data colors all follow (`--pal-*` variables in index.css, `SWAPS` in color.ts).
- [x] **Reading mode spacing and width**: words from parts the page draws on their own lines (a name above a title, a flex row's items) no longer run together; the column is 60rem (was 42rem) and headings are bold, in the display face.
- [x] **Front page in reading mode**: bands the reader can't read well draw a text version of their own (`useReadingMode()`): the numbers, one line each ("1,200+ Members"), no longer stuck at 0 (the count waited for the band to scroll into view, which the hidden page never does; reduced motion now shows them at once too); the calendar, the next six weeks from today as a list (date, linked title, time, type, place) on any page that has one; the featured cards, each a linked heading with its words, a video card linking to its video. The countdown is left out, since the retreats band shows that event.
- [x] **Reading mode, every page and section** (audited section by section): the reader itself now reads an icon-only link's aria-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 link buttons its own line, keeps line breaks, skips what CSS hides (a blog post's print-only footer), turns a form into one line saying it can't be used there, shows empty table cells as "-", and keeps section and heading ids so #links land (side nav, a post's contents). What it can't read draws its own text version (`useReadingMode()`): the hero (its words, buttons, every slide's caption, livestream and video links), the pathfinder (every path and its actions), the front page history (linked entries), event lists (every event, past ones too, no carousel), the org lists and groups map (every region and all its groups, linked), the history timeline (every year open, upcoming too), schedules (every day, fold-outs included), people tiles (everyone, with their details) and videos (a link). Heading levels fixed where cards repeated their section's level; org names are linked headings; Team pages lose their doubled "Members"; Giving links the treasurer's email.
- [x] **Local groups map fits a phone**: it scales to the column's width instead of holding 34rem and scrolling sideways.
## Navigation (branch `accessibility`)
- [x] **No fixed back links on record pages**: a group, region or partner page no longer ends its facts line with "All groups" (and so on), and a team page no longer says "Back to <org>" (its "A team of" link stays); records are reached from many pages, so the browser's back is the right way back. Not-found pages keep their link, having nowhere else to send a visitor.
- [x] **Side nav label on its circle, dark mode**: the lit label was its accent mixed halfway to white, which for the deep teal (Unity Regions) left 4.2:1 on a circle of the same teal. Labels now use `--nav-text-mix` (30% in dark mode): 6.8:1 or better for every accent.
## Accessibility (branch `accessibility`, merged as PR #25, v1.12.0-accessibility, 2026-10-03; not checked in a browser yet)
- [x] **Plausible analytics**, self-hosted behind nginx at `/pa/`: the API adds its script to every page (`analyticsTag`, `server/src/pageMeta.js`), counting under site.json's url hostname, so dev and live report separately.
- [x] **Accessibility panel:** the switches' knob stays in its track (an absolute child of a `<button>` with no `left` started from the centered content). The panel comes after its button in the page, so Tab goes into it, and opens on its first switch; each switch reads its help line.
- [x] **Reading mode** is now the page as plain text: one 42rem column, ink on white (or white on near-black in dark mode), every color, background, border, shadow, picture, video, map and decoration gone, controls outlined, links underlined, no motion (JS scrolls, the hero slideshow and the stats count-up too, `src/lib/motion.ts`). A picture or video with a description leaves "Image: ..." in its place (`data-reading-alt`, set by the panel).
- [x] **Color blind mode** (Protanopia, Deuteranopia, Tritanopia, Monochrome), a select in the panel that reloads the page. Simulated with the Machado (2009) matrices, green and amber blur together for protanopia and tritanopia, so there the green family becomes violet (same contrasts; the closest pair of families goes from 11.4 to 17.4 and from 6.4 to 21.6 in CIELAB). For deuteranopia the palette already stays apart and is kept. In all three, a color picked off the palette snaps to the nearest palette shade. Colors from the database are swapped as they arrive (api.ts, never under /admin), colors from code through `visionColor` (color.ts), CSS through the `--green-*` variables (index.css). Monochrome is a grayscale filter on the root.
- [x] **Audit fixes:** the fixed header no longer covers what's focused or jumped to (`scroll-padding-top` from `--header-h`, now on the root; the per-section offsets it replaces are gone). A new page moves focus to its content; closing the phone menu returns focus to its button; Escape closes a desktop dropdown. In-page jumps (section nav, a post's contents, #links) move focus with the scroll (`jumpTo`, `src/lib/focus.ts`). Carousel arrows stay focusable at the ends. Calendar: canceled bars say so to screen readers; a day's list takes focus and gives it back to the day on Close. Thank-you messages, a started video, the livestream and a schedule map take focus (`focusOnMount`); closing a person's details returns to their tile. The countdown's ticking digits are out of its link name, and its title wraps instead of being cut. Wide tables scroll from the keyboard. Map tiles with groups are buttons for the keyboard. Request form radio errors and required fields are tied to their inputs. Admin: field errors, help and required marks reach screen readers; search boxes, the role select, the color picker and the two picker dialogs have names; the section nav's error dot says "needs attention".
- [x] **Calendar window** (from the third audit): the calendar asks `/events` for only the six weeks on screen (`?from=&to=`, undated events and open-ended series included), keeps the last month up while the next loads, and fetches from the month's end on only when a month is empty, to offer the jump to the next event. Carousels ask for only their 12 most recent past events (`?past=12`); the grid's past list still pages through them all.
- [x] **Event photo** (migration 061): events have two pictures. **Event photo** (16:9, with a description for screen readers) is shown whole at the top of the event's page, as the front page's featured event (its box is 16:9 now, was 16:7), on featured cards, in newsletter picks and as the share preview. **Card background** is only the faded background of the event's card again. Each event's photo starts as its card background, so nothing changes on screen until one is replaced. Sizes for both are in `Data Requirements.md`.
- [ ] Check in a browser, light and dark: the panel (Tab order, knobs, Escape), reading mode on the home page, a blog post and an event, each color blind mode (backdrop circles, side nav, footer links, event colors), the calendar paging months, the jump to the next event and the filters, a carousel's past events, keyboard focus after page changes and section jumps, the phone menu.
## Page fixes (branch `page-fixes`)
- [x] **Details & Contact is plain blocks** (migration 058): the address, tax ID and email preset is gone; Organization's Details & Contact section holds them as blocks (the address, the nonprofit line with the tax ID, an email button), edited like any section.
- [x] **Header dropdowns close after a click**: they opened on hover or on any focus inside, and a click leaves focus on the link, so the menu stayed open after the pointer left. Now only keyboard focus (:focus-visible) opens them besides hover.
- [x] **A circle behind the side nav**: a solid circle with a slight drop shadow in the light shade of the section being read (teal, green or amber; their darkest in dark mode), easing from one to the next as you scroll; each entry also takes its section's color when hovered or lit, centered on the list, which the nav's text reads on in both modes. It sticks with the nav as the page scrolls or grows, stays centered on the list however wide the screen, sits a little left of the list's center but never left of the "On this page" heading's center (centered on the whole list once its titles reach further right), shows above and below the list (clipped sideways only), keeps its right edge inside the nav column so it never covers content (a narrower window slides it off the screen's left edge instead), and, with the whole nav, sits in front of the section lines; "On this page" starts level with the first section's title (lower if the circle needs room to start a few pixels below the first line), and once scrolling the nav sticks just under the header, while its circle grows into a sun in the corner: centered on the header's bottom left, so a quarter of it shows, big enough to reach past the list (never wider than the nav column), easing between the two. Held narrower than that by the window, it stays centered on the header's edge (so below the header it only curves inward) and becomes a quarter ellipse, as tall as it takes to cover the list. At rest it keeps 16px clear of the section's edge and becomes an ellipse too for a tall list. Both cover the longest list a page may have, 10 sections of two-line titles; for that, the side nav now shows from 1536px (2xl) up instead of 1408px (narrower, the list is as wide as its column and nothing inside it can cover it).
- [x] **Side nav no longer shifts the sections**: it sits in the left margin beside the content instead of taking a column, so sections stay centered where they'd be without it. It shows on screens 1536px (2xl) wide and up, where the margin fits it and its circle (titles wrap onto a second line); narrower, the header's dropdowns list the sections.
## Page editors, navigation and tools (branch `page-updates`, after v1.10.5)
- [x] **Page editors with sections** (9daf7b1, migration 056): Pages → Retreats, Community, Resources, Organization, History. Each page is a list of sections, each with a title (30 characters at most, so it fits the side nav; the editor says so), URL ID, blurb, accent, its own content blocks, and an optional preset drawn under the blocks: Community blog, local groups map, Unity Regions list, partner cards (Community); event carousel or grid with scope, type and first view (Retreats); timeline (History); address, tax ID and email (Organization). Every page was seeded as it looked. Organization's Details & Contact is its third section; Volunteering became a heading, paragraph and link buttons at the end of Leadership. The Community blog's settings (slots, pinned posts, feeds) are in the Community editor; its heading and blurb are its section's. The header dropdowns, footer site map and side nav follow each page's sections. The admin engine now saves nested collections to any depth (page, sections, blocks, items).
- [x] **Timeline entries under Data** (4a1d6fd).
- [x] **Navigation** (4a1d6fd and this branch): the footer site map spans the full width; section divider lines run behind the side nav; the side nav fits 30-character titles; front page section headings fit about 60 (noted in its editor); Home has no dropdown in the header.
- [x] **Newsletter drafts** (migration 057): Tools → Newsletter saves drafts (title, intro, blocks, picks, footer) to open again later, adds content blocks written for the issue (those an email can show), an editable footer (blank: the site's name and address; no unsubscribe link, Mailchimp adds one), and Post as blog post, which makes an unpublished post (intro, blocks, then each section's picks as link cards) and opens it in the post editor.
## Entity pages and pages (branch `page-updates`)
- [x] **Cleanup** (43797f3): removed the old-data fixes, since nothing before them was public: the /leadership redirect, the "ngu-" browser key move, the boot-time image sorter, and emoji path icons (migration 055 turns the seeded emoji into named icons). Kept on purpose: OrganizationDetail's redirect from a wrong-kind URL (/groups/x for a region) to the right one, and the migrations' own data rewrites (they already ran).
- [x] **Organization page editor** (43797f3): Pages → Organization page. Mission blocks; Leadership heading, blurb and blocks (eg. a People block for the Board of Trustees, then one for the Retreat Team, in that order); Volunteering title, blurb and links under the leadership. The page reads only from this editor now (not the NGU organization record).
- [x] **Navigation** (ed0f120): the second strip is gone; each top link drops down its sections on hover or focus. Retreats, Community, Resources, Organization and History have a sticky "On this page" column from lg up (the admin editors' SectionNav). Home's sections everywhere follow the front page's visible bands, in order, under their headings. Resources now comes before Organization in the nav and footer.
- [x] **Mobile** (a907a47, 8d319bc): surveyed every public page at 320 to 430px and fixed what was cut off or hard to use. Menu scrolls to its top when tall; page titles and the hero headline size down and wrap; hero buttons stack, slide controls are 40px; the retreat carousel has phone-sized cards, arrows beside the dots, 40px dots and swipe; the narrow event card's logo row restored; people tile details stay on screen and tiles keep 60% of their width; the community map scrolls sideways at a readable size; group and org cards, schedule rows, stats numbers, timeline rail cards and the banner fit; long emails wrap; tap targets 40px; the accessibility panel sits above the privacy notice.
- [x] **Accessibility button** (177a650): a button at the bottom right of every public page opens two switches. Dyslexia-friendly font (OpenDyslexic, self-hosted, downloaded only when chosen); Reading mode (no background circles, motion or shadows, one column, larger text, underlined links). Remembered in the browser, applied before the first paint.
- [x] **Newsletter builder** (2a92697): Tools → Newsletter. Pick upcoming events, published blog posts and featured cards, add a title and intro, and copy email-ready HTML or plain text (or download it) for Mailchimp, Gmail or Church Center. Nothing is sent or stored. The header is the site name in type, since email clients don't show the SVG logo; a PNG logo could go there later.
- [x] **People tiles, one row** (01de627): a whole list (leads and members) shares one row when it fits with tiles at three quarters of full width or more, 10 at most; a board of 7 is one row at normal width.
- [x] **Privacy** (this branch): Giving links ngu.churchcenteronline.com (the address the site uses; the TODO said ngu.churchcenter.org) and says Church Center's script loads with the Giving page and may use Google Analytics in its form; Cookies says the site uses self-hosted, cookieless Plausible and not Google Analytics. Last updated September 30, 2026.
- [x] **People blocks** (7c7cdaa, migration 054): a "People" content block shows a team's members as people tiles, people picked one by one (each with a title), or both.
- [x] **Host teams** (7c7cdaa): an organization host can name a team (any organization's) to show in its place; the event page reads "Hosted by" the team, linked to its page.
- [x] **Organization page** (499662b): Leadership is now Organization, at /organization (/leadership 301s there). Mission, Vision & Values come from the NGU organization record's description and content blocks (Data → Organizations → NGU); Leadership is that record's teams with their people; Details & Contact has the address, nonprofit status, email and the record's contact links. Add the mission text and the teams (Board of Trustees, Retreat Team, Committees & Volunteers) on that record.
- [x] **404 page** (79c4b24): suggests the closest pages and records to the address (typos, old /chapters/ links), then the main pages.
- [x] **Request form wording** (this branch): short field titles with a help line; "Short description" for a post's card; the Files note says why to send a .docx.
- [x] **Cross-browser** (design): the backdrop parallax checked in Firefox and Chrome/Safari.
## Design (branch `design-overhaul`)
- [x] **Revised palette** (PR #19, 79f1d09): teal, green, amber and ink, four shades each (main, darkest, light, lightest), as the theme defaults in both modes; the old grid's literals mapped over, the hero's filled button amber. Every text pair passes 4.5:1.
- [x] **Overhaul fixes, third batch** (a397f3e to 2df908f, not yet tagged):
- Admin: header, strip and footer as wide as the content; white (surface) background in light mode, the page ink in dark; home cards alternate teal and green, with a shadow.
- `tint-soft` is a faint teal again (#e8fcfe / #00252b), not green; it's the hover and faint-panel color everywhere.
- Cards sit on a new raised surface (`bg-raised`: white, or a touch of tint in dark mode) with a shadow: featured cards, the connect block, people tile captions, the timeline's featured entries.
- Buttons: a small plain radius everywhere (superellipse removed).
- Video stills: YouTube's 16:9 frame (no black bars; the 4:3 one cropped as a fallback), small rounded corners, a round centered play button shown on hover or keyboard focus (always on touch screens).
- People tiles: rows balanced between 2 and 10 across, avoiding a lone tile on the last row where the width allows.
- Map tiles and region tags are solid, dimmed by color instead of transparency; map tiles are square.
- Backdrop: 16 circles in four parallax layers, all slower than the page, the back ones visibly moving on long pages; a different seeded arrangement per page; tone changes only at a new top-level section, easing over 2.4s. Text passes 4.5:1 however many overlap.
- Timeline: the rail is brown wood; decade numbers are tags off the rail on a short slanted branch, colored like their decade's leaves; featured entries and rosters are solid, not see-through.
- Cross-browser findings: the site needs Chrome/Edge 111+, Safari 16.4+, Firefox 128+ (Tailwind v4's own floor: color-mix, cascade layers). Everything else used (container queries, dialog, inert, line-clamp, ResizeObserver) is supported there. One gap: the backdrop's parallax uses scroll-driven animations, which Firefox doesn't have yet (Chrome/Edge 115+, Safari 26+); in Firefox the circles stay still, which is fine but flat. Done: option 2, a Firefox fallback (a passive scroll handler writing --pb-y once a frame, same motion as the scroll-driven version). Still possible: a dev-only Playwright check that screenshots key pages in Chromium, Firefox and WebKit, light and dark (a new dev dependency), for a repeatable browser pass.
- [x] **Overhaul fixes** (v1.10.1, f37c093):
- Backdrop: two slow circles fixed to the window drift up as you scroll (CSS scroll-driven animation, still in browsers without it and under reduced motion); three sit down the page and move with their sections. No sideways movement. Text stays 4.5:1 or better even where three circles overlap.
- Featured cards and the connect section: 4px rules; video frames inset from the card edge.
- Calendar: the weekday row is a solid dark bar with white Poppins labels.
- History: decade numerals are dark tags on the rail instead of a white box.
- Notices: two thick corner brackets (top left, bottom right), no box or fill.
- People tiles: the frame is around the whole list; details open right under the tile (flipping to the tile's right edge near the screen edge) and close on Escape or a click elsewhere.
- Community: "Request a region update" and "Request a partner listing"; the region list no longer shows a group count.
- Palette suggestion (not applied): the current grid has three near-duplicate pairs (#5ce7ff/#5cf4ff, #c2f6ff/#c2fbff, #004552/#004c52) and no mid-tone for secondary text or warm accent. Suggested grid, darkest to lightest per family, every 600 step usable as text and under white text: Teal #003a45 #00748a #5cd3e6 #d6f5fa; Green #23361a #4a7431 #9cc47c #e6f0dd; Amber #4a2e00 #8f5b00 #f0bd4f #fdf1d6; Ink #001011 #3b5456 #a3b8b9 #f5f9f8.
- [x] **Overhaul** (d81f7bd to dd33ee2), following design-taste-frontend with your notes first:
- **Palette:** the 16-color grid is the site's default colors, light and dark (`themeDefaults.js`, `index.css`, `PALETTE` in `src/lib/color.ts`); every text pair passes the admin's 4.5:1 check. #008fa8 is for borders and decoration (3.8:1 as text), text and buttons use the grid's dark shades.
- **Corners:** none anywhere; buttons share one `btn` utility (Poppins Bold, superellipse corners where the browser has `corner-shape`, a small radius elsewhere). Dots stay round.
- **Fonts:** Poppins Bold for titles, headings and buttons, subheadings Poppins regular, body Montserrat. The stat numbers keep their weight.
- **Front page:** hero buttons are one cell split by a slash (filled left, clear right); the brand backdrop is flat teal with the dove (no rings, blobs or glow); the countdown straddles the hero and the next band; featured cards and the connect section are one continuous block with a teal rule between cells, the first featured card large with the next two beside it; the calendar is square; stats unchanged except its blurred glow.
- **Page background:** `PageBackdrop` draws flat overlapping palette circles behind every public page, shifting tone as each section reaches the middle of the window; sections no longer paint their own bands.
- **Footer:** Give sits right of the logo.
- **People tiles:** square photos, a 2px frame, even heights (two lines of name and title, then an ellipsis and the down arrow, whose details show it whole); no photo shows the initials on a palette color picked by the name.
- **Notices:** empty sections and form notes use the `notice` style (tinted panel, solid left bar) instead of dashed borders.
- **Timeline:** each year is a leaf, green now and turning gold then autumn going back, fully turned before 2000 (History page and the front page rail).
- **Admin home:** each group of cards has its own palette color.
- **No glow** anywhere: blobs, rings, the live-dot pulse and the stats glow are gone.
- [ ] Check in a browser, light and dark: every page, the backdrop's tone shifts, the split hero buttons (and on a phone), featured cards with 1, 2 and 3+ cards, the connect tabs, people tiles with long titles, the timeline leaves, the admin home. Superellipse corners show in Chrome and Edge; other browsers get a small radius.
- [ ] Production: any colors saved in Panel → Site settings → Colors still override the new defaults; clear them to get the palette.
## Deployed and checked (2026-09-30)
- [x] **Groups and US spelling (PR #17, v1.9.15-groups):** database backed up; migrations 052 and 053 ran; Drive folder renamed Requests/Groups; old links, admin text and the showcase records handled.
- [x] **Main (PR #14):** Node 22.13+ on the VPS; production nginx has HSTS, gzip and HTTP/2; migrations 037 to 043 ran; 640px copies made; Connect Nav emoji icons replaced with named ones.
- [x] **Content display (PRs #15 and #16):** database and uploads backed up; migrations 044 to 051 ran; nginx blocks for `/api/requests`, `/api/admin/files` and `/api/admin/import/docx`; Google service account, shared drive, Gmail and access groups set up.
- [x] **After deploying:** request emails set in Notices and tested; a test request made into a post; a PDF uploaded to Files and used in a link card; groups checked in the Panel; privacy contact email set in Site settings.
- [x] **Browser checks** in light and dark mode: every page, logos on dark, the new icons, the nav between 768 and 1024px, anchors, the hero headline, empty sections, the loading skeleton, Privacy and Terms, the data request form, the privacy notice, click-to-load embeds, Site settings → Colours, the Panel, the Request buttons and form.
## Front-end pages
- [x] **Chapters are groups** (38aff34, migration 052): kind `group`, table `groups`, pages at `/groups/<id>`, Community `#groups`, the front page count, the Request form type and `Requests/Groups`; the site's own chapter links in records rewritten. Names and prose written in the admin left as written.
- [x] **US English** (2ad65cd, migration 053): color, center, canceled, labeled and the rest, in UI text, help, comments, docs and names. Kept: the stored event status `'cancelled'` (shown as canceled), `aria-labelledby`, schema.org's `EventCancelled`, old migrations.
- [x] **Front page: Featured Content section** (d4f65d9, migration 030): add it under Front page → Sections; draws Front page → Featured cards.
- Three card types: a record on the site (title, picture and link fill themselves, anything typed overrides), a link ("Fetch preview" reads the page's title, description and preview image into the library), and a video (thumbnail with a play button; the player loads only when pressed).
- Cards are shared: `featured_cards` is owned polymorphically and `FeaturedCards.tsx` draws them, so the Community blog reuses both.
- [x] **Front page: featured event hero** (migration 033): Front page → Feature → "Featured event". The event's card beside the headline (photo or colour, title, theme, dates or schedule, place, tagline, action buttons, "Event details") under a "Featured event" badge. Front page → Featured event picks one; blank uses the countdown's event, and a pinned event that's over falls back the same way.
- [x] **Community page: Community blog section** (d374f9a, migration 031): first on the Community page, heading and blurb from the admin. Two halves, each pinned first then newest up to its slots: our posts, and community posts (pinned link/video cards, then the newest items from RSS/Atom feeds, read about every 30 minutes).
- [x] **Blog posts:** pages at /blog/<id> (no index page), content-block body, cover image, excerpt, date, tags, authors as person tiles (People records and/or a guest name and photo). Drafts until published; Listed works as everywhere else. Also on the QR page.
- [x] **Blog post PDF** (5dceeb5): print layout with author information, cover as a banner, the post's link and a QR code.
- [x] **Request form** (migration 046): one form at `/request` (footer link too), a tile per kind: blog post (new only), event, chapter, region (update only), partner, team, award, person; then new or update, a name, details, up to 3 files (.docx, PDF, JPEG, PNG, 10 MB each) and an email. `?type=chapter` opens it on one.
- Buttons: Community blog section and the end of every blog post ("Write for the blog"), Retreats (first band) and the front page calendar ("Add or update an event"), Local Chapters, Unity Regions ("Update a region"), Partner Organizations. None for people, teams or awards.
- Each type asks for its main details (4b249c9, migration 049, `fields` in `src/data/requestTypes.ts`), stored as one JSON column.
- The message (and a request's name) is marked Required on the Request, feedback and data request forms, with a countdown of characters still needed (110b655).
- [x] **Privacy Policy and Terms** (ee61568): written from what the code does. Covers collected data, no data on minors displayed, AI use (builds the site's structure, no database access, data not ingested), third parties, cookie policy. Data deletion requests have their own form. Privacy contact email in Site settings (migration 039).
- [x] **Cookie notice:** a dismissible notice linking to the privacy page, since nothing third-party loads before a click. The hero video and the schedule map are click-to-load (ee61568).
- [x] **Community links** (c62dc84): nav and the org pages' "All regions" / "All chapters" pointed at #local and #virtual, which don't exist; now #chapters and #regions. "Virtual Community" renamed "Unity Regions".
## Content blocks and editing
- [x] **Showcase seed:** `DB_PATH=./dev.db node src/seed-showcase.js` (in server/) writes a fully filled record of every kind, ids starting `showcase-`: /regions/showcase-region, /chapters/showcase-chapter, /teams/showcase-team, /awards/showcase-award, /people/showcase-person, /events/showcase-event (upcoming retreat), /events/showcase-series (weekly), /events/showcase-past-event, /blog/content-block-showcase (every block type).
- Published but unlisted by default. `--listed` puts them in lists, the map, counts and History; rerun without it to take them out. Refuses /var/lib/ngu unless `--production` (back up first, leave `--listed` off on a live site).
- [x] **Block editor** (migration 032): each block type shows only its own fields, with a plain-English name and description; a live preview under each open block; insert-below and duplicate on every repeater row.
- Text formatting in paragraphs, callouts, quotes and list items: **bold**, *italic*, [text](url), line breaks, blank line for a new paragraph.
- Types added: video (click to play), button, callout. Quotes get an attribution, images alt text separate from the caption.
- [x] **Schedule block** (migration 034): entries have a day (the tab), time, title, detail, location, person and link, and fold out for a description, the person's photo and page link, a graphic, and a Google map. One tab per day in entry order; the tab for today's weekday opens first; entries with no day get their own tab; arrow keys, Home and End move between tabs.
- [x] **Table of contents** (92e7938, migration 043): Blog posts → Show contents (off by default). With two or more headings, a sticky "On this page" column, the heading being read lit; a fold-out on phones. Content-block headings carry anchor ids everywhere. Sticky fix merged with PR #14.
- [x] **Link cards block** (4e9b4e3, migration 045): link, title, description, picture; "Fetch preview" fills the rest. Smaller cards, a grid of up to three in a row (9ff1cd6). "Choose a file" picks from Media → Files, taking the file's name and Drive's first-page picture.
- [x] **Table block** (migration 044): a row per line, cells split by |; any page can use it.
- [x] **Import from Word** (7f12824): Blog posts → Import from Word turns a .docx into an unpublished post (title, date, headings, paragraphs, lists, tables, bold, italic, links; images don't come over, the editor says how many). PDFs: save as .docx first. `docs/importing.md`. Tested with the Church Management Systems comparison doc (untracked, not committed); imported, authored and published after deploying.
## Entities and data
- [x] **Listed flag** (cd393e4, migration 027): separate from Published (which stays the hard gate). Unlisted: own page works; left out of list routes, a region's chapters, an org's events/teams/awards, the QR page, front page counts and countdown. Still shown where attached by hand: rosters, hosts, billed people, award recipients, timeline, a pinned countdown.
- [x] **People pages list their blog posts** (7876e06): published and listed posts they're an author of, as Community blog cards.
- [x] **Event card background image** (eaff238, migration 029): Events → Appearance → "Card background", under a light veil (`CARD_IMAGE_VEIL` in `EventList-Cards.tsx`); card size unchanged. Gradients dropped (migration 040), colour borders kept.
- [x] **Create or update records from a request** (4b249c9): Forms → Content requests shows the requested details; "Create <type> from this" opens the New editor filled in (URL ID, links, a description paragraph); an update picks the record (closest name first) and shows each requested value beside the current one ("Use this" / "Add it"). Nothing saves until Save. Decided 2026-09-29.
- [x] **Every record image is an upload** (a67ca98): a bare filename resolves to `/uploads/<file>`; only the nav/footer/admin NGU logos are bundled from `src/assets/logos`. Missing files (eg. `ngu-logo-white-bg.svg`, old public/org-logos) copied to the server.
## Admin page
- [x] **Admin home three cards across** (175a189): the home asks for the wide admin column.
- [x] **Editor side nav:** sticky "On this page" left of every editor (field groups, then collections with row counts, current one lit, red dot on a section with a save error); "Jump to" dropdown below lg. Editor pages widen to fit (`src/lib/adminWidth.tsx`). Each collection has its own card; repeater rows start folded, with Expand all / Collapse all. Stays in view while scrolling (960c854).
- [x] **Nav groups:** header menus Data (Events, Organizations, Teams, Awards, People, Blog posts), Pages (Front page, Timeline, Community blog section), Forms, Tools (Media, QR code generator, Video clips), Panel. Hover or focus drops the group down; the strip under the header lists it (the touch path). The admin home shows the same groups as cards. One list: `adminNav.ts`. Tools on the admin home (99c3a87); blog posts moved to Data (c03914a).
- [x] **Forms split** (99d83eb): Website feedback and Data requests, a card each on the admin home and tabs with what's new in each. Content requests: same triage (status, notes, delete), files downloadable, "Make a blog post from it" on a .docx; deleting a request deletes its Drive files.
- [x] **Pickers:** both centred (Tailwind's reset had removed the dialog's auto margin). The image picker has folder tabs (All, Logos, Images, Previews) opening on the field's folder, and a From requests tab (6ccbc03: photos sent with requests, the one being edited first; picking one copies it into the library once). The file picker has a tab per Drive folder.
## Server (settings, auth, file management)
- [x] **Media uploads** (eaff238, migration 028): files in `/var/lib/ngu/uploads` served by nginx; editors and up upload, admins and up delete; resized and converted to WebP unless "Keep original". Every image field has Upload and "Choose from library"; Tools → Media. Production setup done (`docs/media-uploads.md`); `server/pnpm-lock.yaml` committed (be07bc1).
- [x] **Image folders:** `/uploads/logos/`, `/uploads/images/`, `/uploads/thumbnails/` (link and Drive previews); existing images sorted once at boot, records rewritten (`docs/media-uploads.md`, Folders).
- [x] **Google Drive and Gmail:** a service account (`server/src/googleService.js`, no library) uploads to, downloads from and trashes in a shared drive, a folder per use found or made by name; the same account sends mail as a Workspace user. `docs/google-drive-and-mail.md`.
- Request files go in `Requests/<type>` (migration 050). Tools → Media → Requests (by type folder, linked to its request) and Forms → Content requests mark files Drive no longer has as Missing from Drive; Remove (admins) trashes it and takes it off the request.
- **Files for pages** (migration 048): Tools → Media → Files uploads PDF, Office, MP3, M4A and zip (50 MB) to "Media", shared as anyone with the link (Drive's own sharing, decided 2026-09-29). Folders three deep, New folder, Rename, Delete when empty (admins), a Folder dropdown to move a file. Delete checks what links to a file first. Files and folders added in Drive by hand are picked up.
- [x] **Email notices** (v1.9.5 to v1.9.7): Site settings → Notices, "Email new requests to" (content and data requests), with a test button.
- [x] **Site settings** (migration 035): Panel → Site settings, superadmins only. Site name, description, preview image, favicon, home-screen icon, each static page's title and intro, search indexing on/off. A setting wins, a blank falls back to site.json. Colours (migration 041) and Access (migration 047) live here too.
- [x] **SEO and page previews:** the API fills in each page's title, description, preview image, canonical URL and structured data (Organization, Event, BlogPosting); serves /sitemap.xml and /robots.txt. Unlisted records are noindex; missing ones 404. site.json holds the site's name, address, default description and preview image. Deploy steps done (`docs/seo.md`), sitemap submitted.
- [x] **Google sign-in:** "Sign in with Google" above email and password. Server-side OAuth code flow with PKCE; checks issuer, audience, expiry, verified email and the Workspace domain. The first sign-in links an admin-cli account by email. OAuth client set up (`docs/google-sign-in.md`).
- [x] **Access groups** (migration 047): Site settings → Access names a group per role. Someone in one gets a Google-only account with their highest group's role, rechecked at sign-in, hourly and on Panel → Re-sync now. Out of every group: disabled and signed out, back on when they return. Superadmins and admin-cli accounts are untouched. Panel → Check their groups tests an email. Decided 2026-09-29.
- [x] **Security:** server-side auth, field allowlists, cookies, scrypt hashing, parameterized SQL, upload checks, escaping and trimmed responses were already right. Added: rate limits on the real client IP, CSRF check on /api writes, security headers (HSTS from nginx), 90-day session cap, `__Host-` session cookie, five wrong passwords lock an email for 15 minutes, CSP in Report-Only with /api/csp-report. Row-level security isn't a SQLite feature; route role checks, descriptor allowlists and published/listed filters do that job.
- [x] **Organization-agnostic names:** ngu-tl → site-tl, nguLogo → siteLogo, __NGU_SITE__ → __SITE__, browser keys ngu- → site-, cookies site_session / site_oauth, QR files qr-<page>. Kept on purpose: record ids (ngu-board), /var/lib/ngu, ngu.db, the ngu-api service, the logo file, NGU as the organization's name in text.
## Tools
- [x] **Video clips** (migration 036, admins and up): paste a YouTube or Facebook link; yt-dlp downloads it (up to 4 h / 4 GB). Cut clips by start and end, shaped as filmed, 16:9, square or 9:16 with a movable crop; MP4 or MP3. One job at a time with progress; everything swept after a day. VPS setup done (`docs/video-clips.md`).
- Save to library or Save to Drive (migration 051), with a folder picker (Videos or Audio chosen first), streamed with a resumable upload.
- A finished download can be saved whole (06a0e07); it stays on the server to cut from either way.
- [x] **QR code generator** (/qr): "In the centre" (nothing, NGU dove, or any SVG in `src/assets/qr`, embedded so SVG and PNG downloads carry it); "A link I type" (site path, full http(s) address, or bare domain); code, background and dove colours with a reset, warning under 4:1 contrast or when inverted.
## Design and accessibility
- [x] **Design system** (c74ad74): colour tokens in index.css, gradients gone (migration 040), data colours through `src/lib/color.ts`, one BRAND accent and ACCENTS family. One source for colour defaults with a build check (f934b1d).
- [x] **Dark mode:** follows the system with a header toggle. Fixed: the Church Center popup (7c1723b), the featured timeline background (048c759), a light plate behind every logo (048c759, f59ab31). Palette for both modes in Panel → Site settings → Colours; saving refuses text under 4.5:1 in either mode (`server/src/theme.js`).
- [x] **Accessibility** (185f983): contrast fixes, inert hidden carousel and past cards, keyboard links on admin rows, modal mobile menu, skip link, focus ring, reduced motion (JS smooth scrolls too), alt text for blog covers and schedule graphics (migration 038). Admin-chosen colours as text go through `accentText`/`readableOn`.
- [x] **Icons:** Phosphor everywhere; platform links show their brand icon (3c02eb8: `PLATFORMS` in `src/lib/platforms.ts`, icons in `PlatformIcon.tsx`, shared with the footer and event cards).
## Newsletter (branch `newsletter-layout`)
- [x] **Every part editable and movable** (migration 060): a draft is one list of parts, top to bottom, each moved, copied or removed like content blocks, and each aligned left or center: the header (words, a PNG or JPEG logo, its band color or no band; remove the part to leave it out), the title, any email block, picked items (upcoming events, blog posts or front page cards, picked one by one in order, with the section's heading, its underline, the cards' left bar and the button label), and the footer (its lines and the line above). Dividers take a color, thickness and space above. Colors are the palette or none. A new draft starts with the parts the email always had. 057's drafts (title, intro, picks, footer, blocks) are dropped: that migration never reached a live database.
- [x] **More parts and room** (this branch, after v1.11.2): the builder takes the whole window (the editor beside a 42rem preview; `useWideAdminPage('full')`). A **Social bar** part: a colored band (or none) of the site's platform icons, each linked; no links added shows the footer's (`src/data/socialLinks.ts`). Icons are white or ink PNGs in `public/email/` (made by `scripts/email-icons.mjs`), picked to read on the band. An **Event countdown** part: pick an upcoming dated event (not a series); the email shows a picture the API draws when it's opened (`/api/countdown/<id>.png`: days, hours and minutes to local midnight in America/Chicago on its start date, then "Happening now", then "Thanks for joining us"), with a fixed "10 days to go" line under it as of copying, for clients that block pictures. Gmail keeps the picture from its first open.
- [x] **Resizable builder**: a handle between the parts and the preview (from lg up) sets the preview's width, from 320px (as a phone shows the email) to all but 360px of the parts list; drag it, or focus it and use the arrow keys, Home and End. Remembered in the browser.
- [ ] Production: install Poppins on the VPS for the countdown picture (CLAUDE.md, Deployment), or it uses a plain sans.
- [ ] Check in a browser: build an issue with every part, move them, center some, turn off the band and the lines, pick items and reorder them, save and reopen the draft, Post as blog post, paste the HTML into Mailchimp and a Gmail test send.
## Navigation (branch `audit-ui`)
- [x] **Side nav over everything**: its column had no z-index, so later layers (the Retreats carousel arrows) drew over its circle; it's z-20 now, and its empty area lets clicks through.
- [x] **Request button**: the National Retreats band no longer shows "Add or update an event" (`NO_EVENT_REQUEST_SCOPES` in `src/lib/sections.tsx`); where a request button stays, it takes its section's accent (border, text, hover tint).
## Audits
- [x] **Third audit, UI half** (branch `audit-ui`, v1.11.1-audit, not checked in a browser yet):
- Event cards: the photo is a lazy `<img>` of the -640 copy under the veil (was a full-size CSS background); the carousel draws only slides within 2 of the current one; past 12 events the dots become a "7 / 200" counter; the past grid shows one row collapsed, then 12 at a time with Show more, newest first (was oldest first).
- Community map: a search box over the list and grid (name and place); each region's grid shows 12, then Show all; below lg the list scrolls in its own 36rem box; hovering a tile no longer redraws the list.
- People tiles: one clip check for the whole list (was an observer per tile); 30 tiles, then Show all.
- Person pages: 6 events and 6 posts, then Show all; blog excerpts load only each post's first paragraph.
- Admin: pickers and the QR page's record select get a filter box past 50 options (`src/components/OptionFilter.tsx`); `/admin/options?only=` sends only the lists a form uses; Media library thumbnails use the -640 copy, videos don't preload, search waits 250 ms and drops stale answers (Drive files too), and says when the newest 500 are shown.
- Coming back to a page after the 60 s cache shows its last data while it refreshes (api.ts `peek`), instead of the skeleton.
- [ ] Check in a browser, light and dark: the Retreats carousel with many events (counter, swipe, height between cards), the past grid, the side nav over the carousel arrow, request buttons' colors, Community search and Show all (and the phone list box), people tiles Show all and cut-off titles, a person page, admin pickers' filter, an editor's dropdowns all filled, the Media library.
- [x] **Third audit** (2026-10-01, branch `audit-3`): security after the Drive integration and in general, and scalability at hundreds of records. Fixed: a zip bomb through the request form's .docx (each part unpacked once); request files must be named for what they are (a PDF named .html is refused); a team's roster hidden with its unpublished organization; `/people?ids=` no longer names a draft organization, and takes 200 ids (was 50, which dropped people from big people blocks); v_events takes the first published host (a draft partner's name and logo leaked into an event's preview) and reads event_hosts directly, about 18 times faster per lookup (migration 059, with an index on person_awards.event_id); group accounts can't sign in while access groups are off, and a sync can't undo a superadmin's disable; 64 KB body limit on login, feedback and csp-report; Drive pick-up races no longer 500; random upload boundary. Scalability: /events filters by scope, host, status and type on the server (each band fetches only its own; Home no longer prefetches every event); /organizations leaves out bodies and leadership (the map's group panel fetches its group); admin lists page with "Show more" and a real count; Content requests "find the record" searches by name; the newsletter asks for published posts only. Kept: viewers see Forms (decided 2026-09-28).
- [x] **First audit** (v1.9.0-audit, 2026-09-28): security (4066e9e), bugs (693dd84), cleanup (5274e09: no em-dashes, import extensions, dead code, shared helpers, hooks moved to src/lib), accessibility (185f983), leftovers (e4a9c96: one mediaUrl, orgPath on orgHref, one Logo component, adminSchema split per entity), more cleanup (d1a6332: url column type refusing unsafe schemes).
- [x] **Second audit** (2026-09-29, after v1.9.3-audit): bugs and security (be7e924: Panel role changes, hostile feed markup, SSRF ranges, prototype keys), speed (f72a960: lazy pages, preloads, 640px copies, gzip and HTTP/2), dark mode and design (048c759), structure (f934b1d).
## Decided / left as they are
- `noImplicitAny` stays off (about 480 errors); decided 2026-09-29, noted in CLAUDE.md.
- Viewers may see feedback emails, including data requests (2026-09-28).
- Left alone: the two date-range formatters and the two findOr404 helpers (different, not duplicates); content.js as one file; the chapter grid in OrgList-Map; unused `export` keywords on internal helpers; RetreatsBand's name.