# Changelog — Church App ## [Unreleased] Being built for `app@1.0.0` (docs/APP-1.0-PLAN.md). One migration so far (`20261201000000_init`). ### Added - **The foundation** (plan §1, §2, §10, §12): `backend/` (Express, Prisma, pg-boss) and `frontend/` (Next.js 16), as the Website. - The Hub: registers with a `CCP-` key from `HUB_LICENCE_KEY`, a heartbeat every 15 minutes with `hub.appStatsSchema` (the active-member band, the modules on; prayer, announcement and message counts 0 until their modules arrive), the licence checked offline. - Links: Connect and Disconnect (`crosscode.link/1`) with Accounts, Events and the Website; links itself to Accounts once the Hub lists it; `church.changed` from Accounts. - Signing in through Accounts (`@crosscode/auth-client`), back to the exact page. Everyone signed in is a Member (`Member`, keyed by the account's `sub`, a copy of the profile with the verified phone number and the WhatsApp opt-out). A sign-in lasts 8 days, renewed by each visit, never past 90 days from the sign-in (`SESSION_DAYS`, `SESSION_MAX_DAYS`). Back-channel logout. - Roles (Owner, Church admin, Content admin, Devotional writer, Prayer coordinator, Pastoral care): only with a 2FA sign-in (`TWO_FACTOR_NEEDED` otherwise; the admin's sign-in asks Accounts for a second step). The first Owner from `HUB_ADMIN_EMAIL`, verified. - Active members: `lastActiveAt`, at most one write a day in the church's timezone; the band in the heartbeat and on the dashboard. - Modules switched on and off (`modules` setting, `PUT /api/v1/admin/modules`, Owner and Church admin, audited). - `GET /api/v1/app`: the church profile, its colours made safe, font pairing and corners, the modules on, the timezone. - The frontend's shell: header, bottom tab bar, the church's footer, the manifest and icons (`/app-icon/192|512|maskable|apple|favicon`), the service worker (`public/sw.js`), "Add to home screen", the offline notice and page, Me, the admin's first dashboard, the sign-in problem page. - `env.template.json` (read by the Hub at the tag), `ecosystem.config.example.cjs` (ports 5400 / 3400 in development).