A year's leaf eases from green to gold to autumn between this year
and 2000 (leafColor in color.ts); every year before 2000 is fully
turned. Empty-section and form notes use one notice style, a flat
tinted panel with a solid left bar.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The theme defaults (light and dark) come from the 16-color grid,
kept as PALETTE in src/lib/color.ts; every text pair passes the
admin's 4.5:1 check. Nothing is rounded any more except buttons,
which share one btn utility (Poppins Bold, a superellipse corner
where the browser has corner-shape) and true dots.
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>
A From requests tab in every image picker lists photos from the
Request form (they live in Drive), the request being edited from
first. Picking one copies it into the media library, in the field's
folder, once per file, and the field gets that copy.
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 editor's insert, duplicate and remove buttons, the image
library's close button and audio tile, the schedule's fold-out caret,
the admin menu's caret, the history timeline's caret and gap marker,
and the QR page's copied tick.
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>
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>
A "cards" content block: each item is a card with a picture, title and
description that links somewhere, like a link shared in a chat. Fetch
preview fills the card from the link. Migration 044 (not deployed yet)
now allows both table and cards.
Also fixes hidden-field clearing when two fields share a path, and adds
table and card blocks to the showcase post.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Dark mode: the countdown card, timeline section, Giving text, error
text, the Leadership button, skeletons and the admin's dark text all
follow the tokens; logos get a light plate in dark mode
- One BRAND accent (the button token, so the admin palette reaches
every page) and one ACCENTS family in color.ts, replacing 20 local
teal constants and the purple, ochre and rust section colours;
neon green and gold become mint and brand green
- Shadows are tinted with the site's ink; glow shadows are gone
- One giving label, Give, in the nav, footer and Giving page
- Phosphor icons replace the hand-drawn SVGs and the glyph icons;
Pathfinder paths pick a named icon (emoji still shown) and lose the
watermark
- Home keeps two eyebrows; StatsBand's title is a real heading;
section headings step down under the page title
- Nav links switch to the menu below lg, so they never wrap; jump
links land clear of the header; press feedback on buttons
- Empty sections say what's coming and who to ask; loading is a
skeleton; form placeholders and borders are readable; one
corner-radius rule; theme-color for both modes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Panel: changing a role or disabling an account always failed
(db.transaction doesn't exist on node:sqlite); it uses tx() now
- Feeds and link previews are scanned with indexOf, not whole-document
regexes, so a hostile feed or page can't freeze the server; entity
decoding can't throw; escaped-HTML descriptions make clean excerpts
- Feed reads share one fetch per feed and serve the stale copy while
a refresh runs
- Deliberate HTTP errors (the CSRF 403) keep their status instead of
becoming logged 500s; a JSON null body is handled
- url columns read the scheme the way the URL parser does, so
control characters can't hide javascript:
- Google sign-in state cookie is __Host- and its return page is
checked again; more reserved ranges blocked for previews and feeds,
and a 15 s cap on each whole fetch
- Log lines from visitor text are made single-line and short; list
limits can't go negative; entity names can't hit object prototypes
- A clip title can't point the clip tool at another file
- Uploads over 60 MP are refused before decoding; the Keep original
help says a photo's location stays in it
- admin-cli add defaults to the editor role
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Panel -> Site settings -> Colours: any colour token, with a light and a
dark value (migration 041). The server writes the overrides into each
page's head in the same cascade layers as index.css, so a light-only
change leaves dark mode alone. Values must be #rrggbb (a table CHECK),
and saving refuses a palette that puts any text under 4.5:1 in either
mode, through a new descriptor hook, check(db, id), run inside the
save's transaction.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- One mediaUrl in media.ts instead of 12 identical aliases and a
kind map; orgPath builds on hrefs.ts's orgHref
- One Logo component (hides itself or shows a fallback when the file
is missing) for event cards, org lists and chapter marks
- useHistory is a thin wrapper over useRecord
- adminSchema.ts split into adminSchema/, one file per entity plus
shared.ts; the registry is unchanged (checked by loading both)
- JS smooth scrolls respect reduced motion (lib/motion.ts)
- Content-Security-Policy in Report-Only, with /api/csp-report logging
what it would block
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Colour tokens in index.css named by role (ink, body, muted, link,
brand, action, surface, tint, danger), used everywhere instead of hex
- Dark mode: follows the system, a header toggle (site and admin)
overrides it and is remembered; set before first paint in index.html
- Data colours go through src/lib/color.ts: withAlpha for tints,
accentText (lighter on dark) for text in an accent, readableOn for
text on one, so an admin's pale colour still reads
- Migration 040 drops events.gradient: a card is its photo or plain,
with its colour as the border; other decorative gradients are solid
- The countdown and a hero event without a photo mix their colour
toward ink behind white text
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Text contrast: teal text and button fills use #0f7183 (5.7:1), section
accents darkened to pass on white, solid CTA buttons instead of the
gradient, footer and subnav text raised to white/65, event and region
colours kept on borders and swatches with ink text
- Hidden carousel slides and collapsed past events are inert
- Admin list rows carry a real link for keyboard use
- Mobile menu is a modal dialog: focus, Escape, inert background, above
the header
- Skip to content link, one focus-visible ring, reduced-motion rule,
focus rings on the calendar inputs
- Region headings hold their button instead of sitting inside it
- font-700 style classes (not Tailwind v4 utilities) replaced with named
weights, and the 700/800 font files loaded
- Migration 038: alt text for blog covers and schedule graphics; event
logos next to their title are decorative
- Drop the Church Center script from index.html; Giving loads it itself
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tools → Video clips (migration 036, admins and up). Paste a YouTube
or Facebook link and the server downloads it with yt-dlp; then cut
clips: start and end set while watching, a shape (as filmed, 16:9,
square or 9:16 at the sizes the platforms ask for, cropped around a
chosen point shown over the video), and MP4 video or MP3 audio.
Jobs queue and run one at a time with progress. Only YouTube and
Facebook links are accepted, and both tools run with argument lists,
never a shell. A clip's file is deleted once it has been downloaded
in full, unless it's saved to the media library first, which now
holds video and audio (image fields still pick images only).
Everything is swept a day after it's made. Setup is in
docs/video-clips.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A schedule block's entries (migration 034) each have a day, time,
title, detail, location, person and link, and fold out for a longer
description, the person's photo and page, a graphic and a Google map
of a place or address. Entries sit in one tab per day, in the order
entered; the tab for today's weekday opens first, and a one-day
schedule draws no tabs.
In the editor, the entry fields show only under a schedule block:
repeater `when` can now look at the parent row (scope "parent"), and
a field's label can depend on the row. The block preview names an
entry's person. The showcase retreat and post each have a schedule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocks (migration 032): video (click to play, sharing the featured
cards' player), button and callout types; quotes get an attribution
and images alt text separate from the caption. Paragraphs, callouts,
quotes and list items take **bold**, *italic*, [text](url), line
breaks and blank-line paragraphs, parsed into elements (never HTML)
with only safe link schemes. A list item's detail no longer uses an
em-dash.
Editor: each block type shows only its fields, with a named type and
a description, and every open block previews itself with the site's
renderer. Any repeater row can now be duplicated or have a new row
inserted below it; nested collections take `when`, and help text can
depend on the row.
src/seed-showcase.js writes a local test post using every block type
and option. It refuses the production database.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Front page → Featured cards (migration 030) holds cards of three
kinds: a record on the site, whose title, picture and link fill in
from the record; a link, with a Fetch preview button that reads the
page's title, description and preview image into the media library;
and a video, drawn as a thumbnail that loads the player when pressed.
A 'featured' section draws them.
The cards are shared: featured_cards is owned polymorphically and
FeaturedCards.tsx draws them, ready for the Community blog. Deleting
a record removes its cards; an unpublished record's card is hidden.
The preview fetch only goes to public http(s) addresses on standard
ports, pinned to the vetted IP, with each redirect checked again.
Along the way: repeater fields can show by another field's value (a
hidden one is cleared), a CHECK named as a sentence is shown as the
error, and the timeline's record list is now record_refs for both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The nav was sticky inside a wrapper only as tall as itself, so it had
nowhere to travel and scrolled away. The grid cell now sticks instead,
and the mobile "Jump to" bar sits straight in the page for the same
reason.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every record editor gets a sticky "On this page" column listing its
field groups and collections (with row counts), lighting the one in
view and marking any with a save error. Below lg it becomes a sticky
"Jump to" menu. Editor pages widen to fit it through a small layout
context; other admin pages keep their width.
Each collection now sits in its own card, and repeater rows fold to
their title line. Rows start folded, with Expand all and Collapse
all; a new row, or one the server rejected, opens itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uploads (migration 028, server/src/media.js, routes/media.js): editors
and up upload JPEG, PNG, GIF, WebP or SVG. Photos are resized to 2400px
and saved as WebP by default, or kept as uploaded on request. Files
live in UPLOADS_DIR, served by nginx in production and by the API in
dev. Admins and up delete, after seeing what still uses the file.
Every image field in the editor is now an image widget: preview, the
path as text, Upload and Choose from library. A new Media page lists
the library. Org lists and event cards now resolve logos through
media.ts, so uploaded paths work there.
Events get a card_image (migration 029): a photo behind the card under
a light veil so the text stays readable. The card's size is unchanged.
Setup for production is in docs/media-uploads.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Your wording pass on adminSchema.ts and fields.tsx: "Default: ..."
blank options, "eg." examples, "URL ID" for slugs, and relabelled
front page sections, stat sources and hero fields.
On top of it:
- Content block row titles end with an ellipsis when the paragraph
is cut. preview() in src/lib/text.ts does it for anything that
shortens text: it collapses whitespace, cuts on a word and adds
"..." only when it actually shortened.
- No em-dashes in the editor, front end or server: placeholders
("Internal note: ..."), the Organizations blurb, the URL ID help,
empty table cells (now "-"), the Award dropdown ("Torch Award
(NGU)" in OPTION_QUERIES), a boot error message, and every comment
in the admin files. Also cleared from the files added this branch
(QR page, directory route, embeds, hero, migration 024), and the
QR page's team labels read "Board (NGU)".
- A few comments where removing the dash had run two sentences
together get a comma, colon or parentheses back.
- docs/updating-data-in-code.md matches the new labels and gains a
"Writing text in the editor" section with these conventions;
CLAUDE.md lists them under Rules and gotchas.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Renames every .js module under src/ to .ts (api, useResource,
adminSchema, navConfig, adminNav and src/data/*) and points imports,
comments and the seed script's module paths at the new names. Their
types now come from inference; no .d.ts files and no shape
interfaces.
tsc stays strict (noImplicitAny off). The errors inference leaves
behind get the lightest fix that clears them: `any` on empty state,
contexts and list defaults, `: any` on components with optional or
spread props, class fields on ApiError, and option shapes on
get/useResource.
Kept as real types, since they belong to modules that were already
TypeScript and later features import them: PageShell's ShellSection
and props, useContent's corrected record types (website/email/
instagram are bare strings) and EventListItem, and TimelineRef's
orgKind.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reverts 2428f44. The .d.ts files beside the JS modules and the
annotations threaded through src/ to satisfy noImplicitAny go;
tsconfig turns noImplicitAny off instead. The JS modules become
TypeScript in the next commit, so their types come from inference.
Kept from that commit, since they're runtime fixes rather than types:
- OrganizationDetail's website and email pills get an href and label
(they arrive as bare strings, not link objects).
- The chapter map falls back to FALLBACK_COLOR for a region with no
colour instead of painting its tiles black.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Series checkbox under When opens a panel for the schedule:
weekly on chosen weekdays, monthly by date, or monthly by weekday
position, every N weeks or months, with meeting times and an
optional meeting count. starts_on anchors the schedule and ends_on
bounds it, so effective_status needs no change.
Occurrences are derived, not stored. src/lib/eventSeries.ts builds
the schedule label shown on cards and the event page, and the
upcoming dates listed on the event page.
Migration 016 adds the columns; the CRUD engine gains a time type.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds .d.ts declarations beside the untyped JS modules imported from
TS (api.js, navConfig.js, adminSchema.js, adminNav.js, src/data/*),
with shapes taken from the server routes and migrations. get/post/
patch/del now return unknown unless the caller names the response.
Fixes found along the way:
- website/email/instagram are bare strings from splitLinks, not Link
objects; OrganizationDetail's website and email pills rendered with
no href or label and now link correctly.
- The chapter map falls back to FALLBACK_COLOR for a region with no
colour instead of painting its tiles black.
Adds defineSection() so each page manifest entry's props are checked
against its own Component.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>