Commit graph

301 commits

Author SHA1 Message Date
Zaldimmar
048c7599ce Fix dark mode and bring the public design in line with the taste audit
- 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>
2026-09-29 02:54:03 -05:00
Zaldimmar
f72a9604d2 Make the site faster to load and lighter on the server
- Every page but Home, and the whole admin, loads on first visit: the
  main bundle drops from 579 kB to 314 kB (173 to 98 kB gzipped); a
  tab on an old build reloads once when a page chunk has gone
- Home asks for events and the timeline alongside its own data, and
  the server preloads /api/front-page and the first hero photo
- Hero headline rises in as one piece (it held back the page's
  largest paint), sized to stay within two lines; min-h in dvh; first
  slide fetched at high priority
- Every raster upload gets a 640px copy (at upload, and at boot for
  older files); logos, avatars and card pictures load it and fall
  back to the full file
- Login password checks run off the event loop; only admin requests
  are logged per request; ffmpeg runs at nice 19 on Linux
- Page HTML is no-cache, so a deploy can't strand a cached page on
  missing assets; source maps are no longer linked
- Migration 042: index person_awards by award
- docs/performance.md, and gzip and HTTP/2 for nginx

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 02:41:45 -05:00
Zaldimmar
be7e92417e Fix the Panel account bug and harden what the second audit found
- 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>
2026-09-29 02:34:26 -05:00
Zaldimmar
fd40907ed6 Bump SITE_VERSION to v1.9.3-audit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 02:12:56 -05:00
Zaldimmar
b165e612c2 Harden sign-in: __Host- session cookie and a per-email login lock
- The session cookie is __Host-ngu_session when Secure (production),
  so a sibling subdomain can't set or overwrite it; plain ngu_session
  over local http. Every admin signs in again once after deploying.
- Five wrong passwords for one email lock that email for 15 minutes,
  from any address; a correct password clears it. On top of the
  per-IP limit.
- CLAUDE.md: noImplicitAny stays off on purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 02:11:57 -05:00
Zaldimmar
d1a6332a45 More audit cleanup: shared route cache helper, url columns, tab keys
- One CACHE and json() in shape.js for the seven public route files
- A url column type: link fields (13 of them) refuse javascript:, data:
  and any other scheme on save, not only when drawn
- The chapter map's logo uses the shared Logo component
- Schedule tabs take Home and End as well as the arrows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 02:02:24 -05:00
Zaldimmar
1c94ffb281 Point the Vite dev proxy at the API's default port, 3001
It pointed at 5173, Vite's own port, so a plain pnpm dev in both
directories never reached the API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 23:41:12 -05:00
Zaldimmar
8958737b63 Bump SITE_VERSION to v1.9.2-audit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 23:34:11 -05:00
Zaldimmar
f1edaaf92a Let superadmins change the whole colour palette
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>
2026-09-28 23:26:35 -05:00
Zaldimmar
a225e84408 Bump SITE_VERSION to v1.9.1-audit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:54:16 -05:00
Zaldimmar
f94f1a6584 Point the docs at the split admin schema files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:49:36 -05:00
Zaldimmar
e4a9c96f7e Finish the audit leftovers
- 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>
2026-09-28 22:49:07 -05:00
Zaldimmar
c74ad746f5 Add colour tokens, dark mode and drop gradients
- 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>
2026-09-28 22:42:59 -05:00
Zaldimmar
ee61568911 Add the Privacy and Terms pages, data requests and click-to-load embeds
- Privacy Policy (with cookies and storage) and Terms of Service, from
  what the code actually stores and loads; shared LegalText layout
- Data requests: a 'privacy' feedback type sent from the Privacy page's
  form, email required, triaged in Admin -> Feedback
- Migration 039: Panel -> Site settings -> Privacy contact email (over
  site.json's privacyEmail), shown on the Privacy page
- The hero livestream, the hero featured video and schedule maps load
  only when pressed, so no third party sets anything before a click
- A small dismissible privacy notice instead of a consent banner

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:34:46 -05:00
Zaldimmar
bff082652a Send HSTS from nginx, not the API
nginx serves /assets, /uploads and the fallback index.html itself, so
the API's HSTS header never reached them. nginx now sends it on
everything and the API stops, so proxied pages don't get it twice.
docs/security-headers.md says who sends which header and what nginx
must pass (Host, X-Forwarded-For) for the CSRF check and rate limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:20:53 -05:00
Zaldimmar
c0a5e3ceeb Bump SITE_VERSION to v1.9.0-audit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:14:10 -05:00
Zaldimmar
0b34e6cf9e Bring CLAUDE.md in line with the code
Correct the admin-crud and admin-schema paths, the logo note, where data
hooks live and the Node version; add the graphify section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:14:10 -05:00
Zaldimmar
185f9831e2 Fix accessibility found in the audit
- 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>
2026-09-28 22:07:56 -05:00
Zaldimmar
5274e09571 Clean up code found in the audit
- Replace every em-dash in src and server/src with a colon, comma or hyphen
- Give every relative import its file extension (.jsx imports of .tsx fixed)
- Delete old-historyMock.ts, unused exports, unused CSS utilities, the
  unused @ alias and the fallback option nothing passed
- One copy each of initials, capitalize, byName and the server's marks()
- Move the organization, chapter and event hooks from src/data to src/lib
- Schema sync always throws on a mismatch (strict was never turned off)
- Replace the placeholder README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:02:03 -05:00
Zaldimmar
4066e9ec61 Harden security found in the audit
- Rate limits and IP hashes use the X-Forwarded-For entry nginx adds,
  not the client-supplied first one
- Link preview and feed fetches block IPv4-mapped and other embedded
  IPv6 forms of private addresses (net.BlockList)
- CSRF check on /api writes; security headers and HSTS on every response
- Viewers no longer receive a person's private details (readRole)
- Sessions end 90 days after sign-in however active
- yt-dlp ignores config files and takes the link after --
- Meta tag insert no longer expands $ patterns from record text
- Links with an unsafe scheme draw as text
- Migration 037: leadership lists name published home orgs only
- Ignore *.db-wal, *.db-shm and *.txt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 21:56:49 -05:00
Zaldimmar
693dd84b6e Fix bugs found in the audit
- People tiles resolve a bare photo filename to /uploads, via personPhoto
- api.ts keeps the Accept header when a request sets its own headers
- Feedback hashes IPs with auth.js's salt and client IP helper
- Drop the better-sqlite3 fallback (not installed); require Node 22.13+

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 21:53:46 -05:00
9d8de0176e Merge pull request 'Video clip tool (v1.8.3-video-mgmt)' (#13) from feature-tools into main 2026-09-29 03:38:39 +01:00
Zaldimmar
9186ba9a1f Bump SITE_VERSION to v1.8.3-video-mgmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 21:36:55 -05:00
Zaldimmar
3fde7d4a20 Say why saving a clip to the library failed
Save to library could only answer "Something went wrong". Each step
(making the uploads folder, copying the clip in, reading its size,
adding its media row) now names itself and the cause when it fails,
and a half-finished save removes the copied file so the uploads
folder never holds a file without its row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 04:01:15 -05:00
Zaldimmar
09294eb7ce Say why a cookies file or the clips folder can't be used
"Couldn't read the cookies file" covered both a file the service
can't read and a clips folder it can't write its copy into. Each now
has its own message naming the setting (YTDLP_COOKIES or CLIPS_DIR)
and the cause: missing, or not allowed for the service's user.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 03:51:31 -05:00
Zaldimmar
7e501a3aca Bump SITE_VERSION to v1.8.2-video-mgmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 03:21:07 -05:00
Zaldimmar
a393bde2da Let yt-dlp sign in with cookies when YouTube asks
When YouTube answers the server with "sign in to confirm you're not a
bot", yt-dlp needs a signed-in account's cookies. YTDLP_COOKIES points
at an exported cookies.txt, copied per download so the original is
never rewritten; YTDLP_COOKIES_FROM_BROWSER passes yt-dlp's
--cookies-from-browser for a browser on the server. Setup, and the
advice to use a separate account, is in docs/video-clips.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 03:03:48 -05:00
Zaldimmar
f1ac690abe Bump SITE_VERSION to v1.8.1-video-mgmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 02:45:48 -05:00
Zaldimmar
beca01c351 Add a video clip tool: download our videos, cut, reshape, export
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>
2026-09-28 02:43:05 -05:00
8f3f907311 Merge pull request 'Feature fixes: admin nav, hero event, schedule block, SEO, site settings, Google sign-in, QR tool' (#12) from feature-fixes into main
Reviewed-on: #12
2026-09-28 08:12:28 +01:00
Zaldimmar
3887869ac5 Bump SITE_VERSION to v1.8.0-feature-fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 02:11:05 -05:00
Zaldimmar
47df7b1fe0 Add Site settings: name, description, icons, page titles, indexing
Panel → Site settings (migration 035, superadmins only) edits the
site's name, description, preview image, favicon and home-screen
icon, each static page's title and intro, and whether search engines
may list the site. Every value overrides site.json; a blank one falls
back to it. The indexing switch is per database, so the dev server
can be off while production is on from one build.

The server merges the two (siteFor in pageMeta.js) for page metadata,
the sitemap and a new /robots.txt route, and writes the merged
wording into each page as window.__NGU_SITE__, which site.ts reads so
headings match with no extra request. Entities can now require a
higher role to save (writeRole), checked on both sides. Panel is a
menu group with Accounts and server, and Site settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 00:36:58 -05:00
Zaldimmar
8ec34ea185 List files copied into the uploads folder by hand in the media library
The library only knew files uploaded through the admin. Listing it
now registers any image in the uploads folder that has no media row,
under its own name and unprocessed, at most every 30 seconds.
Non-images, dotfiles and temporary names are skipped. The delete
check also counts records that name a file by its bare filename, and
a hand-copied name is escaped in its URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 23:53:09 -05:00
Zaldimmar
dad3803ccc Resolve every record image from the uploads folder
A bare image filename, whatever it belongs to (organization and event
logos, people photos, team and award logos, backgrounds, hero photos,
block images), now resolves to /uploads/<file>, in media.ts and for
link previews in pageMeta.js. The per-kind public/ folders were
guesses that don't exist. Only the site's own chosen assets, the NGU
logos in the nav, footer and admin, stay bundled from
src/assets/logos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 23:29:54 -05:00
Zaldimmar
9eeb13c5ec QR tool: choose the centre, type any link, pick the colours
The centre can be nothing, the NGU dove, or any SVG dropped into
src/assets/qr, embedded in the code so downloads carry it. "A link I
type" takes a site path (sent to the live site), a full http(s)
address, or a bare domain. The code, background and dove colours can
be changed, with a warning under 4:1 contrast or for an inverted
code, which many scanners can't read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 23:20:55 -05:00
Zaldimmar
9075cfb908 Show schedule maps in satellite view
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 23:18:32 -05:00
Zaldimmar
a67ca98394 Move the NGU logos to src/assets/logos and load event logos from uploads
The site's own logos now live in src/assets/logos. Event logos are no
longer bundled: the event cards resolve them through media.ts like
every other image, and a bare event-logo filename now means one in
the uploads directory (fall-retreat-logo.svg has been moved there by
hand). Organization logos on the cards resolve from org-logos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 23:18:32 -05:00
Zaldimmar
84e4e2acae Serve pages even when their metadata can't be built
With no site.json on the server, every page request threw and came
back as the API's JSON 500, so the site didn't load. The page route
now serves index.html as built, with the default tags, and logs the
cause once; the sitemap answers 503. The nginx snippet in docs/seo.md
also falls back to the plain page on a 500, sends the home page
through the API, and gives uploads their own body-size limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 22:15:38 -05:00
Zaldimmar
e932ee3007 Show Google sign-in even when site.json isn't deployed
/api/auth/providers read site.json to build Google's return address,
and the deploy copies server/ into /srv/ngu-api without site.json, so
it threw and the login page hid the button. Whether Google is on now
depends only on the client id and secret; a missing return address is
logged when a sign-in starts, naming GOOGLE_REDIRECT_URI and
SITE_CONFIG. The docs say how the server is actually deployed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 21:51:40 -05:00
Zaldimmar
d4b39251d9 Add Google sign-in for @nextgenerationofunity.org admin accounts
The login page offers "Sign in with Google" above email and password,
once GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET are set on the service.
It's the server-side authorization-code flow with PKCE; the ID token
comes straight from Google's token endpoint and is checked for
issuer, audience, expiry, a verified email and the Workspace domain
(Google's hd claim).

Only accounts admin-cli has made get in. The first Google sign-in
links the account with the same email; later ones match by the link.
A disabled account, one linked to another Google account, or a
missing account is refused, with a message on the login page, and a
refused sign-in never changes the account. admin-cli list shows which
accounts are linked. Setup is in docs/google-sign-in.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 21:27:12 -05:00
Zaldimmar
64cb2ec56a Add per-page search metadata, link previews and a sitemap
Page requests now go through the API (routes/pages.js), which fills
the built index.html in for that path before the app loads: title,
description, preview image, canonical URL, and structured data
(Organization, Event, BlogPosting). Shared links preview the page
itself. Unlisted records are noindex; missing ones return 404.
/sitemap.xml lists every public, listed page.

site.json is the one place for the site's name, address, default
description and preview image, and each static page's title and
intro, which the pages now read too. Indexing is switched on:
robots.txt allows all but /admin and /api and names the sitemap. The
browser tab title follows the page.

nginx setup, with a fallback to the plain page if the API is down,
is in docs/seo.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 21:21:10 -05:00
Zaldimmar
71a470b66f Add a Schedule content block with day tabs
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>
2026-09-27 21:12:47 -05:00
Zaldimmar
d6477b6d30 Add a featured event as a hero option
Front page → Feature gains "Featured event" (migration 033): the
event's card beside the headline, with its photo or colour, dates or
schedule, place, tagline, action buttons and a link to its page,
under a "Featured event" badge, over either backdrop.

Front page → Featured event pins one. Blank uses the countdown's
event, and a pinned event that's over or unpublished falls back to
it, so the hero and the countdown never disagree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 20:58:37 -05:00
Zaldimmar
29202f2eb1 Group the admin nav into Data, Pages, Forms, Tools and Panel
The header now has one menu per group: its name opens the first
item, and hovering or tabbing into it drops down the rest. The strip
under the header lists the open group's items, which is also the way
around on a touch screen. The admin home shows the same groups as
card blocks, from the same list in adminNav.ts.

Data holds the record types, Pages the front page, timeline, blog
posts and the Community blog section, Tools the media library and QR
codes. Docs and comments name the new menu paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 20:56:16 -05:00
06e443ba23 Merge pull request 'Feature updates v1.7.4: media, blog, featured content, editor nav, content blocks' (#11) from feature/new-features into main
Reviewed-on: #11
2026-09-27 23:37:02 +01:00
Zaldimmar
eaa9b7589b Bump SITE_VERSION to v1.7.4-feature-updates
It still read v1.5-history, behind every v1.7 tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 17:31:11 -05:00
Zaldimmar
be07bc1810 Commit the server lockfile
Pins the server's dependencies, sharp included, so the VPS installs
the same versions that were tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 17:31:10 -05:00
Zaldimmar
9b6d9b9aff Let the showcase seed write a deployed database with --production
A database under /var/lib/ngu is still refused by default; adding
--production allows it, for a server that exists to be tested, and
the script says which database it is writing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 17:05:22 -05:00
Zaldimmar
422e521394 Extend the showcase seed to every record kind
seed-showcase.js now writes a fully filled region (with map areas),
chapter, team with a lead and members, award with recipients, person
(bio, private details, links, current and past roles), an upcoming
retreat with hosts, billed people, links and a card background, a
weekly series, a past event where the award was given, and the
content block showcase post with a real author and a guest. All test
data with showcase- ids.

Published but unlisted by default; --listed also puts it in the
site's lists, map, counts and the History page. It still refuses the
production database.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:58:49 -05:00
Zaldimmar
c5f12c769f Improve content blocks: new types, formatting, and a better editor
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>
2026-09-27 16:50:21 -05:00