The nightly backup (and Back up now) snapshots backend/uploads after the
database, into backups/uploads-YYYYMMDD-HHMMSS/. Unchanged files are hard
links to the last snapshot, so after the first full copy a night costs
only the new files. Built in a partial folder and renamed when complete,
refused up front when the disk hasn't room, kept to the same count as the
database backups, with its own switch on Admin -> Backups.
crosscode script: an uninstall keeps the Website's backups with rsync -aH,
so the snapshots' shared files stay shared.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As Accounts and Cross Events: a gzipped pg_dump every night (02:20) into
backend/backups/, the same website-*.sql.gz files crosscode makes before
updates, with Admin -> Backups (back up now, download, how many to keep).
The heartbeat, event feed and YouTube move from plain timers onto pg-boss
with the backup, and Admin -> Background jobs switches each on or off,
changes its schedule or runs it now. The heartbeat now reports the newest
backup (before: always none, so the Hub warned) and the real job state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eight demo churches, two per template (the second on the template's other
recommended variants and header), loaded from the Hub on demo sites with
`crosscode demo <church> website --profile <p>`. A profile replaces the
content only: the church's profile from Accounts, the site settings, the
site icon and the admins stay, and the copy names the church.
- contracts: WEBSITE_DEMO_PROFILES, DEMO_PRODUCTS, SEED_WEBSITE_DEMO_MIN_AGENT;
seed-demo takes an optional product (events by default)
- agent: a Website seed-demo job runs `crosscode demo <church> website`
- crosscode script: backup, demo as the site's user, reload, health check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new install had no pages, so the home page and its live preview showed
only the header and footer (found on cross-demo2). The backend now adds the
fixed pages with starter text at startup. Settings -> Site icon sets the
favicon, with a default from the church's colour and initial. The Latest
message's Card layout has its name; the media picker's placeholder has
enough contrast.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Website: an icon sidebar in groups (Your site, Content, Go live, Team), a
dashboard with cards and a tile per part of the admin, steps to the first
publish across the top of every admin page, and a live preview beside the
page editor and Template and style (computer or phone width, folds away,
reloads on save). A framed request (Sec-Fetch-Dest: iframe) with an admin
session reads the drafts, so no preview cookie is set. /preview/start
takes ?to=. The page editor has Content and Page details tabs.
- Accounts: /admin is an overview (cards, "Needs you", a tile per section);
People moved to /admin/people; the sidebar shows the part you're in,
grouped, with a count on Deletion requests; People redesigned, with a
confirm before Deactivate; Email and WhatsApp split into two cards.
- Both: darker grey labels for contrast; lucide-react in the Website.
- e2e: the live preview shows drafts while the site stays live; axe on the
page editor.
- docs: VERSIONS, changelogs, WHATS-NEW.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found installing the Website for cross-demo2.
- All three: a connect involving an install that isn't in the cached copy
of the Hub's list yet asks the Hub for a fresh list (one heartbeat, at
most once a minute) instead of refusing. A new Website's admin couldn't
sign in for up to 30 minutes.
- Accounts: a heartbeat on every start.
- Website: /admin links to Accounts on the spot (at most every 15 s), one
connect to Accounts at a time, and the problem page says "not linked
yet" (ACCOUNTS_NOT_LINKED). Preview redirected to the server's own
http://localhost:<web port>: the preview routes now answer with a
relative Location.
- Events: a new Website can connect for the event feed straight away.
- docs: VERSIONS, changelogs, WHATS-NEW.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The messages' YouTube thumbnails are served from the site
(/api/thumbnails/<id>.jpg): the backend fetches a message's thumbnail
once and keeps it in uploads/.thumbnails (only the site's own videos,
only a JPEG), so visitors ask nothing of YouTube before pressing play.
The messages page preloads the first one (its LCP: Heritage 89 -> 95).
- Calendar events' dates read "Sun · November", not
"Sun (month: November)".
- e2e: no request to YouTube or Spotify before play; the variant
screenshots round section heights to whole pixels (a one-pixel flake);
the e2e thumbnail is one of the demo's illustrations.
- crosscode script: a Website's export leaves out uploads/.thumbnails.
- docs: release checks on 1.0.1, VERSIONS, handover.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Variants: axe passes everywhere, all 104 baselines taken (67 new to look
through). Lighthouse 11 of 12 (Heritage messages 89, the YouTube
thumbnail as LCP). Found: Calendar dates print "Sun (month: November)".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- e2e: every section variant in every template (axe and 312 screenshots
compared with local baselines), Lighthouse on a phone (median of three,
CPU slowdown calibrated to the machine), the whole suite on real Postgres
with E2E_DATABASE_URL, a frozen clock, E2E_REUSE for running servers.
- Fixes found by them: contrast on Bold's service times panel and Calendar
event dates; the OpenStreetMap embed loads only once on screen; the
messages page's first thumbnail is eager, its host preconnected.
- The restore e2e waits for its second publish (raced on Postgres).
- docs: Hub 2.22.0 deployed; website@1.0.0 released.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
contracts: hub.storageRequestSchema and its reply, a sample and JSON
Schemas. Website: an Owner or Admin asks for more 5 GB steps under
Media library (signed to the Hub); the heartbeat reports the licence's
storage limit, so the Hub emails the church at 80% and when full.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Church details saved through Accounts' church.update (live at once).
Settings: Search Console and Bing codes, Coming soon line, menu order.
Audit log and recent edits. A made share image, Event / VideoObject /
PodcastEpisode / BreadcrumbList structured data, permanent redirects
from old page addresses. Saves refused when someone else saved in
between; Ministry leaders' events; templates previewed with the
church's own content before choosing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Publish my events: the Website's simple events as crosscode.event/1
(GET /api/feed/v1/events, updatedSince, removals in deleted for 90
days) and a signed event.changed to linked siblings. Show events
from: each sibling's feed every 15 minutes and at once on its signed
event.changed; read-only copies of only that sibling's events, one
bad event skipped, the last good copy kept. Admin: Linked products.
church.changed from Accounts refreshes the profile at once. Plan:
the video hero, more blocks and more pages move to website@1.1.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every upload is turned upright, stripped of its metadata (EXIF, GPS),
kept at most 2400 px wide and saved at 480/960/1600 px in WebP and
JPEG; the pages pick the size with <picture> and srcset. Every file
counts towards storage; a photo that can't be read is refused. sharp
0.35 (prebuilt, no build step on the servers).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>