crosscode: scripts/products/website.sh (ports 5300/3300, uploads in the export), crosscode add <church> website (needs Accounts; www.<address> or the Cross Code address), one install_app for Accounts and the Website, env template copy, bats tests. Backend: Hub client (protocol v2, product website), crosscode.link/1 with automatic connect to the church's Accounts, sign-in through @crosscode/auth-client with the Website's own session and roles, the first Owner from HUB_ADMIN_EMAIL (verified), 2FA for Owners and Admins, back-channel logout, Accounts' user.* calls, and the church export. Frontend: admin sign-in/out and the sign-in problem page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.8 KiB
1.8 KiB
Changelog — Church Website
[Unreleased]
Added
- The app's skeleton (WEBSITE-1.0-PLAN §1): an Express + Prisma backend with
/api/healthand/api/v1/site/status(Coming soon until the first publish), the content model and its first migration, the section variants per template (§3, decision 16) with the template switch rules, and a Next.js frontend with the Coming soon page, an admin placeholder androbots.txt. - Signing in to the admin through the church's Accounts (§10), as Cross Events 3.x: the Hub
client (protocol v2, product
website, registers fromHUB_LICENCE_KEY, heartbeats with aggregate counts), links (crosscode.link/1; the Website connects itself to the church's Accounts once the Hub lists it),/api/auth/signin,/callback,/me,/signout(then Accounts' sign-out), back-channel logout and Accounts' calls (user.updated,user.export,user.deleted). The Website keeps its own session (ccw_session, only a hash stored) and its own roles; the first Owner is whoever signs in with the Hub's admin email (HUB_ADMIN_EMAIL, verified in Accounts) while the site has none. Owners and Admins sign in with a second step (two_factor_required_for_admins, on by default); asked of Accounts once, then explained. - The admin page signs people in and out;
/auth/problemexplains a refused sign-in. - The church's export (
scripts/export-church.ts):export.jsonincrosscode.church-export/1with itswebsitepart, forcrosscode exportand uninstall. crosscode:scripts/products/website.sh(the same hooks as Accounts, ports 5300 / 3300, uploads in the export),crosscode add <church> website(needs the church's Accounts; served onwww.<address>, or the Cross Code address itself), and the installer shared by Accounts and the Website (install_app).