Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1940ff2a91 | ||
|
|
2d4d9ea871 | ||
|
|
28085d92ba | ||
|
|
fbe814b2d9 | ||
|
|
fe4310352e | ||
|
|
db12d17796 | ||
|
|
22d7e54008 | ||
|
|
8c213d6d84 | ||
|
|
48abc06db7 | ||
|
|
da283f3cbb | ||
|
|
2a4cf7acab | ||
|
|
a3ac3da5a5 | ||
|
|
8e52bd2d33 | ||
|
|
7b49ec2b70 | ||
|
|
d3e04127f3 | ||
|
|
2fb7ac57da | ||
|
|
81c01d8a9f | ||
|
|
2335fd46e4 | ||
|
|
f58711603a | ||
|
|
d1354a6a17 | ||
|
|
175a6b41eb | ||
|
|
80d8e903dd | ||
|
|
35501deb0d | ||
|
|
79e1450df6 | ||
|
|
6905a19c8c | ||
|
|
dcc22a5c16 | ||
|
|
e6c91c3705 | ||
|
|
925b5fbd8b |
@@ -2,6 +2,75 @@
|
||||
|
||||
Each package and app has its own section and its own tags (`contracts@1.0.0`, `accounts@1.0.0`, …).
|
||||
|
||||
## website@1.6.0 - 2026-11-27
|
||||
|
||||
The demo church has real photos, and photos in small frames load at their size. Details in
|
||||
`apps/website/CHANGELOG.md`. No migration.
|
||||
|
||||
- **Demo photos:** 104 Unsplash stock photos (models, free under the Unsplash License, credited
|
||||
in `apps/website/backend/demo-photos/CREDITS.md`) instead of the generated illustration: a set
|
||||
per demo profile, a portrait for every leader, a picture for each event, and a photo for each
|
||||
message instead of the stand-in video's thumbnail. Loaded like uploads, in the responsive sizes.
|
||||
- **Faster on phones:** the collage hero, the team's portraits and the ministry cards give the
|
||||
browser their real width (`sizes`), so a phone no longer fetches the full-width photo for a
|
||||
small frame.
|
||||
|
||||
## website@1.5.0 + crosscode script - 2026-11-27
|
||||
|
||||
The Church Website's nightly backup also backs up the photos and files. Details in
|
||||
`apps/website/CHANGELOG.md`. No migration.
|
||||
|
||||
- **Website 1.5.0:** each night after the database, a snapshot of `backend/uploads` in
|
||||
`backend/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. On Admin → Backups, with its own
|
||||
switch. Kept to the same count as the database backups.
|
||||
- **crosscode script:** an uninstall keeps the Website's backups with `rsync -aH`, so the
|
||||
snapshots' shared files stay shared instead of each becoming a full copy.
|
||||
|
||||
## website@1.4.0 - 2026-11-27
|
||||
|
||||
Database backups and background jobs for the Church Website, as Accounts and Cross Events have.
|
||||
Details in `apps/website/CHANGELOG.md`. No migration (pg-boss makes its own `pgboss_website`
|
||||
schema on first start).
|
||||
|
||||
- **Backups:** a gzipped `pg_dump` every night at 02:20 into `backend/backups/`, the same
|
||||
`website-*.sql.gz` files the crosscode script makes before updates; Admin → Backups.
|
||||
- **Background jobs** on pg-boss: the backup, the Hub heartbeat, the event feed and YouTube (before:
|
||||
plain timers); Admin → Background jobs switches each on or off, changes its schedule, runs one now.
|
||||
- **The heartbeat tells the Hub the truth:** the newest backup (before: always none, so the Hub
|
||||
warned "No backup reported") and the real job mode and failures.
|
||||
|
||||
## contracts@1.19.0 + agent@1.6.0 + website@1.3.0 + crosscode script - 2026-11-27
|
||||
|
||||
Demo data for the Church Website, from the Hub (Hub 2.25.0). Additive: an Events `seed-demo` job
|
||||
means what it did. Details in each app's CHANGELOG.md. No migrations.
|
||||
|
||||
- **contracts 1.19.0:** `agent.WEBSITE_DEMO_PROFILES` (eight, two per template:
|
||||
`heritage-parish`, `heritage-city`, `bold-youth`, `bold-plant`, `community-family`,
|
||||
`community-town`, `clean-modern`, `clean-campus`), `DEMO_PRODUCTS`, `DEMO_PROFILES_BY_PRODUCT`,
|
||||
`SEED_WEBSITE_DEMO_MIN_AGENT` (1.6.0). `seed-demo` args take an optional `product` (`events`,
|
||||
the default, or `website`); the profile must be one of that product's, and a Website demo takes
|
||||
no `adminEmail`.
|
||||
- **agent 1.6.0:** a Website `seed-demo` job runs `crosscode demo <church> website --profile <p>`.
|
||||
- **website 1.3.0:** the eight demo churches (`backend/src/demo/seeds.ts`,
|
||||
`npm run demo -- --profile <p>`, `--list`). They replace 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. `--template` alone is still the Acacia Hill development church.
|
||||
- **crosscode script:** `crosscode demo <church> website --profile <p>`: backup, the demo as the
|
||||
site's user (`--force`), reload, wait for `/api/health`. Refused on a Website release without
|
||||
the profiles (before 1.3.0).
|
||||
|
||||
## accounts@1.8.0 + website@1.1.0 - 2026-11-26
|
||||
|
||||
The admins of both, redesigned as Cross Events' admin dashboard and settings. Details in each app's
|
||||
CHANGELOG.md. No migrations, no backend changes.
|
||||
|
||||
- **Accounts 1.8.0:** `/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; People redesigned.
|
||||
- **Website 1.1.0:** an icon sidebar in groups, a dashboard, steps to the first publish across the
|
||||
top, and a live preview beside the page editor and Template and style (drafts in a frame, no
|
||||
preview cookie).
|
||||
|
||||
## accounts@1.7.1 + website@1.0.2 + events@3.7.1 - 2026-11-26
|
||||
|
||||
Found installing the Website for cross-demo2. Details in each app's CHANGELOG.md. No migrations.
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# Changelog — Accounts
|
||||
|
||||
## [1.8.0] - 2026-11-26
|
||||
|
||||
No migrations, no new settings, no backend changes. The admin redesigned as Cross Events' admin
|
||||
dashboard and settings.
|
||||
|
||||
### Changed
|
||||
|
||||
- **`/admin` is an overview:** four cards (people with an account, deletion requests waiting,
|
||||
sites that sign in here, last backup), a "Needs you" list with buttons to act, and a tile with a
|
||||
line about every section. **People moved to `/admin/people`.**
|
||||
- **The sidebar shows the part you're in** (your account or admin, with a link to the other), and
|
||||
admin's sections are grouped: People, Church, Signing in, System. Deletion requests shows how many
|
||||
are waiting. The phone menu shows both parts. Every page title has its section's icon.
|
||||
- **People:** a search box, a row per person with initials, admin and status badges, two-step
|
||||
sign-in and last sign-in; the person's card stays in view while scrolling. Deactivating someone
|
||||
asks to confirm first.
|
||||
- **Email and WhatsApp** are two cards, each with its own Save.
|
||||
- Group labels are a darker grey (WCAG AA contrast).
|
||||
|
||||
## [1.7.1] - 2026-11-26
|
||||
|
||||
No migrations, no new settings.
|
||||
|
||||
@@ -3,6 +3,13 @@
|
||||
What each version changes for the church, in plain language (read by the Hub like Cross Events'
|
||||
WHATS-NEW.md; a section shows once its version is tagged).
|
||||
|
||||
## 1.8.0
|
||||
|
||||
- **An easier admin.** Admin opens on an overview: how many people have an account, anything that
|
||||
needs you (like deletion requests waiting), and a tile for every setting. The menu down the side
|
||||
is grouped and shows only the part you're in. People has moved to Admin → **People**, with a
|
||||
search box and a clearer list; deactivating someone now asks you to confirm.
|
||||
|
||||
## 1.7.1
|
||||
|
||||
- **New sites connect to your sign-in straight away.** A Church Website or Cross Events installed
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@crosscode/accounts-backend",
|
||||
"version": "1.7.1",
|
||||
"version": "1.8.0",
|
||||
"description": "Cross Code Accounts: the church's sign-in (OpenID Connect provider), account pages API and admin API",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
@@ -102,6 +102,10 @@ test("admin: needs two-step sign-in, then lists people", async ({ page }) => {
|
||||
await page.getByLabel("Code").fill(await helper(page, `/test/totp?secret=${key}`));
|
||||
await page.getByRole("button", { name: "Turn on" }).click();
|
||||
await page.getByRole("button", { name: "I've saved them" }).click();
|
||||
// 1.8.0: /admin is the overview, with a tile for every section; People is one.
|
||||
await expect(page.getByRole("heading", { name: "Admin", level: 1 })).toBeVisible();
|
||||
await expect(page.getByText("People with an account")).toBeVisible();
|
||||
await page.getByRole("navigation", { name: "Admin" }).getByRole("link", { name: "People", exact: true }).click();
|
||||
await expect(page.getByRole("heading", { name: "People", level: 1 })).toBeVisible();
|
||||
await expect(page.getByText("thandi@hope.test")).toBeVisible();
|
||||
// 1.3.0: every admin section has its own address, down the side; Backups is one.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@crosscode/accounts-frontend",
|
||||
"version": "1.7.1",
|
||||
"version": "1.8.0",
|
||||
"private": true,
|
||||
"description": "Cross Code Accounts: the church's sign-in pages, the account page and admin",
|
||||
"scripts": {
|
||||
|
||||
@@ -6,7 +6,7 @@ import QRCode from "qrcode";
|
||||
import { Activity as ActivityIcon, ArrowUpRight, Calendar, CheckCircle2, Globe, Lock, Mail, ShieldAlert, ShieldCheck, Smartphone, User, type LucideIcon } from "lucide-react";
|
||||
import { Button, Checkbox, Field, Notice } from "@crosscode/ui";
|
||||
import { useBranding } from "@/components/BrandingProvider";
|
||||
import { AppShell, PageTitle, ShellLoading } from "@/components/AppShell";
|
||||
import { ACCOUNT_NAV, AppShell, PageTitle, ShellLoading } from "@/components/AppShell";
|
||||
import { Card, Heading } from "@/components/Panel";
|
||||
import { call, selfSignIn } from "@/lib/api";
|
||||
import { useExternalEffect } from "@/lib/hooks";
|
||||
@@ -62,7 +62,7 @@ export function Account({ section = "overview" }: { section?: AccountSection })
|
||||
const first = me.name.split(" ")[0] || me.name;
|
||||
return (
|
||||
<AppShell me={me} active={s.path}>
|
||||
<PageTitle sub={s.sub(branding.name)}>{section === "overview" ? `Hi, ${first}` : s.title}</PageTitle>
|
||||
<PageTitle icon={section === "overview" ? undefined : ACCOUNT_NAV.find((n) => n.href === s.path)?.icon} sub={s.sub(branding.name)}>{section === "overview" ? `Hi, ${first}` : s.title}</PageTitle>
|
||||
{msg && <Notice tone={msg.tone}>{msg.text}</Notice>}
|
||||
{section === "overview" && <Overview me={me} />}
|
||||
{section === "details" && <div className="max-w-2xl"><Profile me={me} onDone={done} onFail={fail} /></div>}
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
|
||||
import Link from "next/link";
|
||||
import React, { useCallback, useState } from "react";
|
||||
import { DatabaseBackup, Download, Play, RefreshCw, Timer } from "lucide-react";
|
||||
import {
|
||||
AlertTriangle, ArrowRight, Building2, CheckCircle2, ChevronRight, DatabaseBackup, Download, Eye, FileText, KeyRound, Link2, LogIn, Mail, MessageCircle, Play,
|
||||
RefreshCw, ScrollText, Search, ShieldCheck, Timer, UserX, Users,
|
||||
} from "lucide-react";
|
||||
import { Button, Checkbox, Field, Notice } from "@crosscode/ui";
|
||||
import { AppShell, PageTitle, ShellLoading, type ShellUser } from "@/components/AppShell";
|
||||
import { ADMIN_GROUPS, ADMIN_NAV, AppShell, PageTitle, ShellLoading, type ShellUser } from "@/components/AppShell";
|
||||
import { NoticeText } from "@/components/NoticeText";
|
||||
import { Card, Heading } from "@/components/Panel";
|
||||
import { call, selfSignIn } from "@/lib/api";
|
||||
@@ -26,6 +29,7 @@ export function Admin({ section = "people" }: { section?: AdminSection }) {
|
||||
const [me, setMe] = useState<ShellUser | null>(null);
|
||||
const [allowed, setAllowed] = useState<boolean | null>(null);
|
||||
const [msg, setMsg] = useState<{ tone: "success" | "error"; text: string } | null>(null);
|
||||
const [waiting, setWaiting] = useState(0);
|
||||
|
||||
useExternalEffect(() => {
|
||||
let alive = true;
|
||||
@@ -35,11 +39,15 @@ export function Admin({ section = "people" }: { section?: AdminSection }) {
|
||||
if (!r.ok && r.error.code === "MFA_REQUIRED") return window.location.assign(selfSignIn(s.path, "&acr=mfa"));
|
||||
if (who.ok) setMe(who.data);
|
||||
setAllowed(r.ok);
|
||||
// The count beside Deletion requests.
|
||||
if (r.ok) void call<{ items: Deletion[] }>("GET", "/admin/deletions").then((d) => { if (alive && d.ok) setWaiting(d.data.items.filter((x) => x.status === "waiting_approval").length); });
|
||||
});
|
||||
return () => { alive = false; };
|
||||
}, [s.path]);
|
||||
|
||||
const flash: Flash = (tone, text) => setMsg({ tone, text });
|
||||
const icon = ADMIN_NAV.find((n) => n.href === s.path)?.icon;
|
||||
const badges = { "/admin/deletions": waiting };
|
||||
if (allowed === null || !me) return <ShellLoading />;
|
||||
if (!allowed) {
|
||||
return (
|
||||
@@ -50,16 +58,20 @@ export function Admin({ section = "people" }: { section?: AdminSection }) {
|
||||
}
|
||||
|
||||
return (
|
||||
<AppShell me={me} active={s.path}>
|
||||
<PageTitle sub={s.sub}>{s.title}</PageTitle>
|
||||
<AppShell me={me} active={s.path} badges={badges}>
|
||||
<PageTitle icon={section === "overview" ? undefined : icon} sub={section === "overview" ? `Welcome back, ${me.name.split(" ")[0] || me.name}. ${s.sub}` : s.sub}>{s.title}</PageTitle>
|
||||
{msg && <Notice tone={msg.tone}>{msg.text}</Notice>}
|
||||
{section === "overview" && <Overview />}
|
||||
{section === "people" && <People flash={flash} />}
|
||||
<div className="max-w-3xl">
|
||||
{section === "deletions" && <Deletions flash={flash} />}
|
||||
<div className="max-w-3xl space-y-6">
|
||||
{section === "deletions" && <Deletions flash={flash} onChange={setWaiting} />}
|
||||
{section === "church" && <><Church flash={flash} /><BrandStyle flash={flash} /></>}
|
||||
{section === "linked" && <Linked flash={flash} />}
|
||||
{section === "signin" && <Settings flash={flash} keys={["signup_enabled", "two_factor_required_for_admins", "signin_notices", "session_days"]} />}
|
||||
{section === "messages" && <Settings flash={flash} keys={["smtp_host", "smtp_port", "smtp_user", "smtp_pass", "smtp_from", "smtp_secure", "wawp_access_token", "wawp_instance_id"]} />}
|
||||
{section === "signin" && <Settings flash={flash} title="Signing in" icon={<LogIn className="h-4 w-4" />} sub="For everyone with an account at the church." keys={["signup_enabled", "two_factor_required_for_admins", "signin_notices", "session_days"]} />}
|
||||
{section === "messages" && <>
|
||||
<Settings flash={flash} title="Email" icon={<Mail className="h-4 w-4" />} sub="The server Accounts sends email through (SMTP): sign-in codes, password links, security notices. Leave it empty to use the server's .env." keys={["smtp_host", "smtp_port", "smtp_user", "smtp_pass", "smtp_from", "smtp_secure"]} />
|
||||
<Settings flash={flash} title="WhatsApp" icon={<MessageCircle className="h-4 w-4" />} sub="Optional: sign-in codes and notices on WhatsApp, through WAWP." keys={["wawp_access_token", "wawp_instance_id"]} />
|
||||
</>}
|
||||
{section === "notice" && <NoticeTab flash={flash} />}
|
||||
{section === "backups" && <Backups flash={flash} />}
|
||||
{section === "jobs" && <Jobs flash={flash} />}
|
||||
@@ -70,11 +82,118 @@ export function Admin({ section = "people" }: { section?: AdminSection }) {
|
||||
);
|
||||
}
|
||||
|
||||
// ─── Overview (1.8.0, as Cross Events' admin dashboard) ─────────────────────
|
||||
|
||||
type Linked = { hubConnected: boolean; items: { installId: string; name: string; listed: boolean; signsInHere: boolean }[] };
|
||||
type OverviewData = { people: number | null; deletions: number | null; linked: Linked | null; licence: { connected: boolean; state: string } | null; backups: BackupList | null };
|
||||
|
||||
const TILE: Record<string, string> = Object.fromEntries(Object.values(ADMIN_SECTIONS).map((x) => [x.path, x.tile]));
|
||||
|
||||
function Stat({ icon, label, value, detail, href, warn }: { icon: React.ReactNode; label: string; value: React.ReactNode; detail?: React.ReactNode; href: string; warn?: boolean }) {
|
||||
return (
|
||||
<Link href={href} className="group rounded-xl border bg-white p-4 shadow-sm transition hover:border-brand/40 hover:shadow">
|
||||
<div className="flex items-center gap-3">
|
||||
<span className={`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg ${warn ? "bg-amber-50 text-amber-700" : "bg-brand/10 text-brand"}`} aria-hidden>{icon}</span>
|
||||
<span className="min-w-0">
|
||||
<span className="block text-xs text-gray-500">{label}</span>
|
||||
<span className="block truncate text-xl font-semibold text-gray-900">{value}</span>
|
||||
</span>
|
||||
</div>
|
||||
{detail && <p className="mt-2 text-xs text-gray-500">{detail}</p>}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
function Overview() {
|
||||
const [d, setD] = useState<OverviewData | null>(null);
|
||||
useExternalEffect(() => {
|
||||
let alive = true;
|
||||
Promise.all([
|
||||
call<{ total: number }>("GET", "/admin/people?q="), call<{ items: Deletion[] }>("GET", "/admin/deletions"), call<Linked>("GET", "/admin/linked-products"),
|
||||
call<{ connected: boolean; state: string }>("GET", "/admin/licence"), call<BackupList>("GET", "/admin/backups"),
|
||||
]).then(([people, dels, linked, licence, backups]) => {
|
||||
if (!alive) return;
|
||||
setD({
|
||||
people: people.ok ? people.data.total : null,
|
||||
deletions: dels.ok ? dels.data.items.filter((x) => x.status === "waiting_approval").length : null,
|
||||
linked: linked.ok ? linked.data : null,
|
||||
licence: licence.ok ? licence.data : null,
|
||||
backups: backups.ok ? backups.data : null,
|
||||
});
|
||||
});
|
||||
return () => { alive = false; };
|
||||
}, []);
|
||||
if (!d) return <p className="text-sm text-gray-500" role="status">Loading…</p>;
|
||||
|
||||
const connected = d.linked?.items.filter((l) => l.signsInHere).length ?? 0;
|
||||
const notConnected = d.linked?.items.filter((l) => !l.signsInHere && l.listed) ?? [];
|
||||
const lastBackup = d.backups?.items[0]?.createdAt ?? null;
|
||||
const todo: { text: string; href: string; action: string }[] = [
|
||||
...(d.deletions ? [{ text: `${d.deletions} ${d.deletions === 1 ? "person has" : "people have"} asked to delete their account.`, href: "/admin/deletions", action: "Review" }] : []),
|
||||
...(d.licence && !d.licence.connected ? [{ text: "Accounts isn't connected to Cross Code yet, so the church's sites can't find it.", href: "/admin/licence", action: "Connect" }] : []),
|
||||
...(notConnected.length ? [{ text: `${notConnected.map((l) => l.name).join(", ")} ${notConnected.length === 1 ? "doesn't" : "don't"} sign people in here yet.`, href: "/admin/linked", action: "Connect" }] : []),
|
||||
...(d.backups?.lastError ? [{ text: "The last backup didn't work.", href: "/admin/backups", action: "See why" }] : []),
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4">
|
||||
<Stat icon={<Users className="h-5 w-5" />} label="People with an account" value={d.people ?? "—"} href="/admin/people" detail="Find someone" />
|
||||
<Stat icon={<UserX className="h-5 w-5" />} label="Deletion requests waiting" value={d.deletions ?? "—"} warn={!!d.deletions} href="/admin/deletions" detail={d.deletions ? "They need your answer" : "None waiting"} />
|
||||
<Stat icon={<Link2 className="h-5 w-5" />} label="Sites that sign in here" value={d.linked ? `${connected} of ${d.linked.items.length}` : "—"} warn={notConnected.length > 0} href="/admin/linked" detail={d.linked && !d.linked.hubConnected ? "Not connected to the Hub" : "Linked products"} />
|
||||
<Stat icon={<DatabaseBackup className="h-5 w-5" />} label="Last backup" value={lastBackup ? when(lastBackup) : "None yet"} warn={!!d.backups?.lastError} href="/admin/backups" detail={d.backups ? (d.backups.nightly ? "Every night at 02:00" : "Nightly backups are off") : undefined} />
|
||||
</div>
|
||||
|
||||
<Card>
|
||||
<Heading icon={todo.length ? <AlertTriangle className="h-4 w-4" /> : <CheckCircle2 className="h-4 w-4" />}>{todo.length ? "Needs you" : "Nothing needs you right now"}</Heading>
|
||||
{todo.length > 0 ? (
|
||||
<ul className="divide-y">
|
||||
{todo.map((t) => (
|
||||
<li key={t.href} className="flex flex-wrap items-center justify-between gap-3 py-3">
|
||||
<span className="text-sm text-gray-700">{t.text}</span>
|
||||
<Link href={t.href} className="inline-flex items-center gap-1 rounded-lg bg-brand px-3 py-1.5 text-sm font-medium text-white hover:bg-brand-dark">{t.action}<ArrowRight className="h-3.5 w-3.5" aria-hidden /></Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
) : <p className="text-sm text-gray-600">Nothing is waiting for an admin. Anything that is (a deletion request, a site to connect, a backup that failed) shows here.</p>}
|
||||
</Card>
|
||||
|
||||
<Card>
|
||||
<Heading sub="Every setting, one click away.">All settings</Heading>
|
||||
<div className="space-y-5">
|
||||
{ADMIN_GROUPS.filter((g) => g.title).map((g) => (
|
||||
<div key={g.title}>
|
||||
<h3 className="mb-2 text-xs font-semibold uppercase tracking-wide text-gray-500">{g.title}</h3>
|
||||
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
|
||||
{g.items.map((n) => {
|
||||
const Icon = n.icon;
|
||||
return (
|
||||
<Link key={n.href} href={n.href} className="flex items-start gap-3 rounded-xl border bg-white p-4 shadow-sm transition hover:border-brand/40 hover:shadow">
|
||||
<span className="flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-brand/10 text-brand" aria-hidden><Icon className="h-5 w-5" /></span>
|
||||
<span className="min-w-0">
|
||||
<span className="block text-sm font-semibold text-gray-900">{n.label}</span>
|
||||
<span className="mt-0.5 block text-xs text-gray-500">{TILE[n.href]}</span>
|
||||
</span>
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// ─── People ──────────────────────────────────────────────────────────────────
|
||||
|
||||
type Person = { id: string; name: string; email: string; role: string; status: string; twoFactor: string | null; lastSignInAt: string | null };
|
||||
type PersonDetail = Person & { phone: string | null; emailVerified: boolean; recoveryCodesLeft: number; createdAt: string; lockedUntil: string | null; signIns: { type: string; at: string; ip: string | null }[] };
|
||||
|
||||
const initials = (name: string) => name.split(/\s+/).filter(Boolean).slice(0, 2).map((x) => x[0]!.toUpperCase()).join("") || "?";
|
||||
const chip = "inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-medium";
|
||||
|
||||
function People({ flash }: { flash: Flash }) {
|
||||
const [q, setQ] = useState("");
|
||||
const [list, setList] = useState<{ items: Person[]; total: number } | null>(null);
|
||||
@@ -94,28 +213,47 @@ function People({ flash }: { flash: Flash }) {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="grid gap-6 md:grid-cols-2">
|
||||
<div className="grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]">
|
||||
<Card>
|
||||
<form onSubmit={(e) => { e.preventDefault(); void search(q); }} className="mb-4 flex gap-2">
|
||||
<input aria-label="Search people" value={q} onChange={(e) => setQ(e.target.value)} placeholder="Name or email" className="flex-1 rounded-lg border px-3 py-2" />
|
||||
<form onSubmit={(e) => { e.preventDefault(); void search(q); }} className="mb-3 flex gap-2">
|
||||
<span className="relative flex-1">
|
||||
<Search className="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400" aria-hidden />
|
||||
<input aria-label="Search people" value={q} onChange={(e) => setQ(e.target.value)} placeholder="Name or email" className="w-full rounded-lg border py-2 pl-9 pr-3" />
|
||||
</span>
|
||||
<Button type="submit" variant="secondary">Search</Button>
|
||||
</form>
|
||||
<p className="mb-2 text-sm text-gray-500">{list?.total ?? 0} people</p>
|
||||
<ul className="divide-y">
|
||||
<p className="mb-2 text-sm text-gray-500">{list?.total ?? 0} {list?.total === 1 ? "person" : "people"}</p>
|
||||
<ul className="-mx-2 divide-y">
|
||||
{list?.items.map((p) => (
|
||||
<li key={p.id}>
|
||||
<button type="button" onClick={() => show(p.id)} className="w-full py-2 text-left hover:bg-gray-50">
|
||||
<span className="block font-medium">{p.name}{p.role === "admin" && <span className="ml-2 rounded bg-brand/10 px-1.5 text-xs text-brand">admin</span>}{p.status !== "active" && <span className="ml-2 text-xs text-amber-700">{p.status}</span>}</span>
|
||||
<span className="block text-sm text-gray-500">{p.email}</span>
|
||||
<button type="button" onClick={() => show(p.id)} aria-current={open?.id === p.id ? "true" : undefined}
|
||||
className={`flex w-full items-center gap-3 rounded-lg px-2 py-2.5 text-left hover:bg-gray-50 ${open?.id === p.id ? "bg-brand/5" : ""}`}>
|
||||
<span className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-brand/10 text-xs font-semibold text-brand-dark" aria-hidden>{initials(p.name)}</span>
|
||||
<span className="min-w-0 flex-1">
|
||||
<span className="flex flex-wrap items-center gap-1.5 font-medium text-gray-900">
|
||||
{p.name}
|
||||
{p.role === "admin" && <span className={`${chip} bg-brand/10 text-brand-dark`}>admin</span>}
|
||||
{p.status !== "active" && <span className={`${chip} bg-amber-50 text-amber-800`}>{p.status}</span>}
|
||||
</span>
|
||||
<span className="block truncate text-sm text-gray-500">{p.email}</span>
|
||||
</span>
|
||||
<span className="hidden shrink-0 text-right text-xs text-gray-500 sm:block">{p.twoFactor ? <span className="inline-flex items-center gap-1 text-green-700"><ShieldCheck className="h-3.5 w-3.5" aria-hidden />Two-step</span> : null}<span className="block">{p.lastSignInAt ? `Signed in ${when(p.lastSignInAt)}` : "Never signed in"}</span></span>
|
||||
<ChevronRight className="h-4 w-4 shrink-0 text-gray-300" aria-hidden />
|
||||
</button>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</Card>
|
||||
{open && (
|
||||
<Card>
|
||||
<Heading sub={open.email}>{open.name}</Heading>
|
||||
<dl className="mb-4 grid grid-cols-2 gap-y-1 text-sm">
|
||||
{open ? (
|
||||
<Card className="lg:sticky lg:top-20">
|
||||
<div className="mb-4 flex items-center gap-3">
|
||||
<span className="flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-brand/10 text-sm font-semibold text-brand-dark" aria-hidden>{initials(open.name)}</span>
|
||||
<div className="min-w-0">
|
||||
<h2 className="text-lg font-semibold text-gray-900">{open.name}</h2>
|
||||
<p className="truncate text-xs text-gray-500">{open.email}</p>
|
||||
</div>
|
||||
</div>
|
||||
<dl className="mb-4 grid grid-cols-2 gap-y-1.5 rounded-lg bg-gray-50 p-3 text-sm">
|
||||
<dt className="text-gray-500">Phone</dt><dd>{open.phone ?? "—"}</dd>
|
||||
<dt className="text-gray-500">Email confirmed</dt><dd>{open.emailVerified ? "yes" : "no"}</dd>
|
||||
<dt className="text-gray-500">Two-step sign-in</dt><dd>{open.twoFactor ?? "off"}{open.twoFactor ? ` (${open.recoveryCodesLeft} codes left)` : ""}</dd>
|
||||
@@ -126,12 +264,18 @@ function People({ flash }: { flash: Flash }) {
|
||||
{open.twoFactor && <Button variant="secondary" onClick={() => act(`/admin/people/${open.id}/reset-two-factor`, {}, "Two-step sign-in reset. They'll set it up again when they next sign in, if they need it.")}>Reset two-step sign-in</Button>}
|
||||
{open.lockedUntil && <Button variant="secondary" onClick={() => act(`/admin/people/${open.id}/unlock`, {}, "Unlocked.")}>Unlock</Button>}
|
||||
<Button variant="secondary" onClick={() => act(`/admin/people/${open.id}/role`, { role: open.role === "admin" ? "member" : "admin" }, "Role changed.")}>{open.role === "admin" ? "Remove admin" : "Make Accounts admin"}</Button>
|
||||
<Button variant={open.status === "active" ? "danger" : "secondary"} onClick={() => act(`/admin/people/${open.id}/status`, { active: open.status !== "active" }, open.status === "active" ? "Deactivated and signed out everywhere." : "Reactivated.")}>{open.status === "active" ? "Deactivate" : "Reactivate"}</Button>
|
||||
<Button variant={open.status === "active" ? "danger" : "secondary"} onClick={() => { if (open.status === "active" && !window.confirm(`Deactivate ${open.name}? They're signed out of every site straight away.`)) return; void act(`/admin/people/${open.id}/status`, { active: open.status !== "active" }, open.status === "active" ? "Deactivated and signed out everywhere." : "Reactivated."); }}>{open.status === "active" ? "Deactivate" : "Reactivate"}</Button>
|
||||
</div>
|
||||
<p className="mb-1 text-xs text-gray-500">Roles in each product (an Events supervisor, for example) are set in that product, not here.</p>
|
||||
<p className="mb-2 mt-4 text-sm font-medium">Recent sign-ins</p>
|
||||
<ul className="space-y-1 text-sm text-gray-700">{open.signIns.map((s, i) => <li key={i}>{s.type} · {when(s.at)} {s.ip && <span className="text-gray-400">· {s.ip}</span>}</li>)}</ul>
|
||||
<ul className="space-y-1 text-sm text-gray-700">{open.signIns.map((x, i) => <li key={i}>{x.type} · {when(x.at)} {x.ip && <span className="text-gray-500">· {x.ip}</span>}</li>)}</ul>
|
||||
{!open.signIns.length && <p className="text-sm text-gray-500">None yet.</p>}
|
||||
</Card>
|
||||
) : (
|
||||
<div className="hidden rounded-xl border border-dashed p-8 text-center text-sm text-gray-500 lg:block">
|
||||
<Users className="mx-auto mb-2 h-6 w-6 text-gray-300" aria-hidden />
|
||||
Choose someone to see their account and what you can do for them.
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
@@ -141,16 +285,16 @@ function People({ flash }: { flash: Flash }) {
|
||||
|
||||
type Deletion = { id: string; status: string; requestedAt: string; products: Record<string, { status: string; product?: string; reason?: string; retryAfter?: string }>; person: { name: string; email: string } };
|
||||
|
||||
function Deletions({ flash }: { flash: Flash }) {
|
||||
function Deletions({ flash, onChange }: { flash: Flash; onChange: (waiting: number) => void }) {
|
||||
const [items, setItems] = useState<Deletion[]>([]);
|
||||
const load = useCallback(async () => {
|
||||
const r = await call<{ items: Deletion[] }>("GET", "/admin/deletions");
|
||||
if (r.ok) setItems(r.data.items);
|
||||
}, []);
|
||||
if (r.ok) { setItems(r.data.items); onChange(r.data.items.filter((x) => x.status === "waiting_approval").length); }
|
||||
}, [onChange]);
|
||||
useExternalEffect(() => { void load(); }, [load]);
|
||||
return (
|
||||
<Card>
|
||||
<Heading sub="People who asked to delete their account. They're signed out and can't sign in while this is open.">Deletion requests</Heading>
|
||||
<Heading icon={<UserX className="h-4 w-4" />} sub="People who asked to delete their account. They're signed out and can't sign in while this is open.">Deletion requests</Heading>
|
||||
{!items.length && <p className="text-sm text-gray-500">None waiting.</p>}
|
||||
<ul className="divide-y">
|
||||
{items.map((d) => (
|
||||
@@ -189,7 +333,8 @@ function Church({ flash }: { flash: Flash }) {
|
||||
const nul = (v: FormDataEntryValue | null) => (v ? String(v) : null);
|
||||
return (
|
||||
<Card>
|
||||
<Heading sub="Shared with all the church's products: the sign-in pages, the website and the app use it.">Church profile</Heading>
|
||||
<Heading icon={<Building2 className="h-4 w-4" />} sub="Shared with all the church's products: the sign-in pages, the website and the app use it.">Church profile</Heading>
|
||||
{c.branding.logoUrl && <img src={c.branding.logoUrl} alt="The church's logo" className="mb-4 h-12 w-auto rounded border bg-gray-50 p-1" />}
|
||||
<form onSubmit={async (e) => {
|
||||
e.preventDefault();
|
||||
const f = new FormData(e.currentTarget);
|
||||
@@ -230,7 +375,7 @@ function Linked({ flash }: { flash: Flash }) {
|
||||
if (!data) return <p className="text-gray-600">Loading…</p>;
|
||||
return (
|
||||
<Card>
|
||||
<Heading sub="Connected products sign people in here. Usually each product connects from its own settings; you can connect from here too.">Linked products</Heading>
|
||||
<Heading icon={<Link2 className="h-4 w-4" />} sub="Connected products sign people in here. Usually each product connects from its own settings; you can connect from here too.">Linked products</Heading>
|
||||
{!data.hubConnected && <Notice tone="warning">Accounts isn't connected to the Hub yet (Licence).</Notice>}
|
||||
{!data.items.length && <p className="text-sm text-gray-500">The church has no other Cross Code products yet.</p>}
|
||||
<ul className="divide-y">
|
||||
@@ -260,7 +405,7 @@ const SETTING_LABELS: Record<string, [string, "bool" | "text" | "secret" | "numb
|
||||
wawp_access_token: ["WAWP access token", "secret"], wawp_instance_id: ["WAWP instance id", "text"],
|
||||
};
|
||||
|
||||
function Settings({ flash, keys }: { flash: Flash; keys: string[] }) {
|
||||
function Settings({ flash, keys, title, icon, sub }: { flash: Flash; keys: string[]; title: string; icon: React.ReactNode; sub?: string }) {
|
||||
const [values, setValues] = useState<Record<string, string | boolean | null> | null>(null);
|
||||
useExternalEffect(() => {
|
||||
let alive = true;
|
||||
@@ -271,6 +416,7 @@ function Settings({ flash, keys }: { flash: Flash; keys: string[] }) {
|
||||
const defaults: Record<string, boolean> = { signup_enabled: true, two_factor_required_for_admins: true, signin_notices: true };
|
||||
return (
|
||||
<Card>
|
||||
<Heading icon={icon} sub={sub}>{title}</Heading>
|
||||
<form onSubmit={async (e) => {
|
||||
e.preventDefault();
|
||||
const f = new FormData(e.currentTarget);
|
||||
@@ -281,7 +427,7 @@ function Settings({ flash, keys }: { flash: Flash; keys: string[] }) {
|
||||
else body[k] = String(f.get(k) ?? "");
|
||||
}
|
||||
const r = await call("PUT", "/admin/settings", body);
|
||||
if (r.ok) flash("success", "Saved."); else flash("error", r.error.message);
|
||||
if (r.ok) flash("success", `${title}: saved.`); else flash("error", r.error.message);
|
||||
}}>
|
||||
{keys.map((k) => {
|
||||
const [label, kind] = SETTING_LABELS[k]!;
|
||||
@@ -318,7 +464,7 @@ function NoticeTab({ flash }: { flash: Flash }) {
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<Card>
|
||||
<Heading sub={`Version ${current.version}${isBuiltIn ? " (the built-in notice, filled in from the church profile)" : ""}. Publishing a new version asks everyone to read it the next time they sign in.`}>Edit and publish</Heading>
|
||||
<Heading icon={<FileText className="h-4 w-4" />} sub={`Version ${current.version}${isBuiltIn ? " (the built-in notice, filled in from the church profile)" : ""}. Publishing a new version asks everyone to read it the next time they sign in.`}>Edit and publish</Heading>
|
||||
{builtIn && !isBuiltIn && (
|
||||
<p className="mb-4 text-sm text-gray-600">
|
||||
The built-in notice was rewritten in Accounts 1.3.0 to say more fully what Accounts does.{" "}
|
||||
@@ -339,7 +485,7 @@ function NoticeTab({ flash }: { flash: Flash }) {
|
||||
</form>
|
||||
</Card>
|
||||
<Card>
|
||||
<Heading sub="As people will see it.">Preview</Heading>
|
||||
<Heading icon={<Eye className="h-4 w-4" />} sub="As people will see it.">Preview</Heading>
|
||||
<h3 className="mb-3 text-base font-semibold text-gray-900">{draft.title}</h3>
|
||||
<div className="max-h-[32rem] overflow-y-auto rounded-lg border bg-gray-50 p-4"><NoticeText body={draft.body} compact /></div>
|
||||
</Card>
|
||||
@@ -357,7 +503,7 @@ function Licence({ flash }: { flash: Flash }) {
|
||||
if (!s) return <p className="text-gray-600">Loading…</p>;
|
||||
return (
|
||||
<Card>
|
||||
<Heading sub="Accounts is free with the church's other products. Members can always sign in, whatever the licence says.">Licence</Heading>
|
||||
<Heading icon={<KeyRound className="h-4 w-4" />} sub="Accounts is free with the church's other products. Members can always sign in, whatever the licence says.">Licence</Heading>
|
||||
<dl className="mb-4 grid grid-cols-2 gap-y-1 text-sm">
|
||||
<dt className="text-gray-500">Connected to the Hub</dt><dd>{s.connected ? "yes" : "no"}</dd>
|
||||
<dt className="text-gray-500">Licence</dt><dd>{s.state}</dd>
|
||||
@@ -388,7 +534,7 @@ function Audit() {
|
||||
}, []);
|
||||
return (
|
||||
<Card>
|
||||
<Heading>Audit log</Heading>
|
||||
<Heading icon={<ScrollText className="h-4 w-4" />}>Audit log</Heading>
|
||||
<ul className="divide-y text-sm">
|
||||
{items.map((a) => <li key={a.id} className="flex justify-between gap-3 py-2"><span>{a.action.replace(/_/g, " ")} <span className="text-gray-500">({a.actorRole}{a.targetId ? ` · ${a.targetType}` : ""})</span></span><span className="shrink-0 text-gray-500">{when(a.createdAt)}</span></li>)}
|
||||
{!items.length && <li className="py-2 text-gray-500">Nothing yet.</li>}
|
||||
|
||||
@@ -7,9 +7,9 @@ export async function generateMetadata({ params }: { params: Promise<{ section:
|
||||
return { title: ADMIN_SECTIONS[section as AdminSection]?.title ?? "Admin" };
|
||||
}
|
||||
|
||||
/** One section of admin (1.3.0): /admin/deletions, /church, /linked, … (/admin itself is People). */
|
||||
/** One section of admin (1.3.0): /admin/people, /deletions, /church, … (1.8.0: /admin itself is the overview). */
|
||||
export default async function AdminSectionPage({ params }: { params: Promise<{ section: string }> }) {
|
||||
const { section } = await params;
|
||||
if (section === "people" || !(section in ADMIN_SECTIONS)) notFound();
|
||||
if (section === "overview" || !(section in ADMIN_SECTIONS)) notFound();
|
||||
return <Admin section={section as AdminSection} />;
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@ import { Admin } from "./Admin";
|
||||
export const metadata = { title: "Admin" };
|
||||
|
||||
export default function AdminPage() {
|
||||
return <Admin />;
|
||||
return <Admin section="overview" />;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ import { useBranding } from "@/components/BrandingProvider";
|
||||
/** Who's signed in, as the shell shows them (null: a public page such as the privacy notice). */
|
||||
export type ShellUser = { name: string; email: string; role: "member" | "admin" };
|
||||
|
||||
type NavItem = { href: string; label: string; icon: LucideIcon };
|
||||
export type NavItem = { href: string; label: string; icon: LucideIcon };
|
||||
|
||||
export const ACCOUNT_NAV: NavItem[] = [
|
||||
{ href: "/account", label: "Overview", icon: LayoutDashboard },
|
||||
@@ -22,19 +22,21 @@ export const ACCOUNT_NAV: NavItem[] = [
|
||||
{ href: "/account/activity", label: "Activity", icon: Activity },
|
||||
];
|
||||
|
||||
export const ADMIN_NAV: NavItem[] = [
|
||||
{ href: "/admin", label: "People", icon: Users },
|
||||
{ href: "/admin/deletions", label: "Deletion requests", icon: UserX },
|
||||
{ href: "/admin/church", label: "Church profile", icon: Building2 },
|
||||
{ href: "/admin/linked", label: "Linked products", icon: Link2 },
|
||||
{ href: "/admin/signin", label: "Sign-in settings", icon: LogIn },
|
||||
{ href: "/admin/messages", label: "Email and WhatsApp", icon: Mail },
|
||||
{ href: "/admin/notice", label: "Privacy notice", icon: FileText },
|
||||
{ href: "/admin/backups", label: "Backups", icon: DatabaseBackup },
|
||||
{ href: "/admin/jobs", label: "Background jobs", icon: Timer },
|
||||
{ href: "/admin/licence", label: "Licence", icon: KeyRound },
|
||||
{ href: "/admin/audit", label: "Audit log", icon: ScrollText },
|
||||
/** 1.8.0: the admin's sections in groups, as Cross Events' settings, with the overview first. */
|
||||
export const ADMIN_GROUPS: { title: string | null; items: NavItem[] }[] = [
|
||||
{ title: null, items: [{ href: "/admin", label: "Overview", icon: LayoutDashboard }] },
|
||||
{ title: "People", items: [{ href: "/admin/people", label: "People", icon: Users }, { href: "/admin/deletions", label: "Deletion requests", icon: UserX }] },
|
||||
{ title: "Church", items: [{ href: "/admin/church", label: "Church profile", icon: Building2 }, { href: "/admin/linked", label: "Linked products", icon: Link2 }] },
|
||||
{
|
||||
title: "Signing in",
|
||||
items: [{ href: "/admin/signin", label: "Sign-in settings", icon: LogIn }, { href: "/admin/messages", label: "Email and WhatsApp", icon: Mail }, { href: "/admin/notice", label: "Privacy notice", icon: FileText }],
|
||||
},
|
||||
{
|
||||
title: "System",
|
||||
items: [{ href: "/admin/backups", label: "Backups", icon: DatabaseBackup }, { href: "/admin/jobs", label: "Background jobs", icon: Timer }, { href: "/admin/licence", label: "Licence", icon: KeyRound }, { href: "/admin/audit", label: "Audit log", icon: ScrollText }],
|
||||
},
|
||||
];
|
||||
export const ADMIN_NAV: NavItem[] = ADMIN_GROUPS.flatMap((g) => g.items);
|
||||
|
||||
/** Signs out of Accounts and every site of the church (RP-initiated logout), ending on /signed-out. */
|
||||
export function signOutHref() {
|
||||
@@ -53,28 +55,59 @@ function RoleBadge({ role }: { role: ShellUser["role"] }) {
|
||||
: <span className="inline-block rounded-full bg-gray-100 px-2 py-0.5 text-[11px] font-medium text-gray-600">Member</span>;
|
||||
}
|
||||
|
||||
function NavList({ title, items, active, onNavigate }: { title: string; items: NavItem[]; active: string; onNavigate?: () => void }) {
|
||||
/** Counts beside a section (deletion requests waiting, say), by its address. */
|
||||
export type Badges = Record<string, number>;
|
||||
|
||||
function NavLinks({ items, active, badges, onNavigate }: { items: NavItem[]; active: string; badges?: Badges; onNavigate?: () => void }) {
|
||||
return (
|
||||
<ul className="space-y-0.5">
|
||||
{items.map((l) => {
|
||||
const Icon = l.icon;
|
||||
const on = active === l.href;
|
||||
const n = badges?.[l.href] ?? 0;
|
||||
return (
|
||||
<li key={l.href}>
|
||||
<Link href={l.href} onClick={onNavigate} aria-current={on ? "page" : undefined}
|
||||
className={`flex items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors ${on ? "bg-brand/10 font-medium text-brand-dark" : "text-gray-600 hover:bg-gray-50 hover:text-gray-900"}`}>
|
||||
<Icon className="h-4 w-4 shrink-0" aria-hidden />
|
||||
<span className="flex-1">{l.label}</span>
|
||||
{n > 0 && <span className="rounded-full bg-amber-100 px-1.5 text-xs font-semibold text-amber-900">{n}<span className="sr-only"> waiting</span></span>}
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
|
||||
function AccountNav({ active, onNavigate }: { active: string; onNavigate?: () => void }) {
|
||||
return (
|
||||
<div className="mb-6">
|
||||
<p className="mb-2 px-3 text-[11px] font-semibold uppercase tracking-wide text-gray-400">{title}</p>
|
||||
<nav className="space-y-1" aria-label={title}>
|
||||
{items.map((l) => {
|
||||
const Icon = l.icon;
|
||||
const on = active === l.href;
|
||||
return (
|
||||
<Link key={l.href} href={l.href} onClick={onNavigate} aria-current={on ? "page" : undefined}
|
||||
className={`flex items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors ${on ? "bg-brand/10 font-medium text-brand-dark" : "text-gray-600 hover:bg-gray-50"}`}>
|
||||
<Icon className="h-4 w-4 shrink-0" aria-hidden />
|
||||
{l.label}
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
</nav>
|
||||
<p className="mb-2 px-3 text-[11px] font-semibold uppercase tracking-wide text-gray-500">Your account</p>
|
||||
<nav aria-label="Your account"><NavLinks items={ACCOUNT_NAV} active={active} onNavigate={onNavigate} /></nav>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function SidebarContent({ me, active, onNavigate }: { me: ShellUser; active: string; onNavigate?: () => void }) {
|
||||
function AdminNav({ active, badges, onNavigate }: { active: string; badges?: Badges; onNavigate?: () => void }) {
|
||||
return (
|
||||
<nav aria-label="Admin" className="mb-6 space-y-5">
|
||||
{ADMIN_GROUPS.map((g, i) => (
|
||||
<div key={g.title ?? i}>
|
||||
<p className="mb-1.5 px-3 text-[11px] font-semibold uppercase tracking-wide text-gray-500">{g.title ?? "Admin"}</p>
|
||||
<NavLinks items={g.items} active={active} badges={badges} onNavigate={onNavigate} />
|
||||
</div>
|
||||
))}
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* The sidebar: who's signed in, then the sections of the part you're in (1.8.0: your account or
|
||||
* admin, not both at once; the bar across the top switches). In the phone menu, both.
|
||||
*/
|
||||
function SidebarContent({ me, active, badges, both, onNavigate }: { me: ShellUser; active: string; badges?: Badges; both?: boolean; onNavigate?: () => void }) {
|
||||
const inAdmin = me.role === "admin" && active.startsWith("/admin");
|
||||
return (
|
||||
<>
|
||||
<div className="mb-6 flex items-center gap-3 px-1">
|
||||
@@ -84,8 +117,14 @@ function SidebarContent({ me, active, onNavigate }: { me: ShellUser; active: str
|
||||
<RoleBadge role={me.role} />
|
||||
</div>
|
||||
</div>
|
||||
<NavList title="Your account" items={ACCOUNT_NAV} active={active} onNavigate={onNavigate} />
|
||||
{me.role === "admin" && <NavList title="Admin" items={ADMIN_NAV} active={active} onNavigate={onNavigate} />}
|
||||
{(both || !inAdmin) && <AccountNav active={active} onNavigate={onNavigate} />}
|
||||
{me.role === "admin" && (both || inAdmin) && <AdminNav active={active} badges={badges} onNavigate={onNavigate} />}
|
||||
{!both && me.role === "admin" && (
|
||||
<Link href={inAdmin ? "/account" : "/admin"} className="flex items-center gap-2 rounded-lg border border-dashed px-3 py-2 text-sm text-gray-600 hover:border-brand/40 hover:text-brand-dark">
|
||||
{inAdmin ? <User className="h-4 w-4" aria-hidden /> : <ShieldCheck className="h-4 w-4" aria-hidden />}
|
||||
{inAdmin ? "Go to your account" : "Go to admin"}
|
||||
</Link>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -95,7 +134,7 @@ function SidebarContent({ me, active, onNavigate }: { me: ShellUser; active: str
|
||||
* and name across the top, a sidebar of sections, the page on a light grey, and a dark footer.
|
||||
* Without `me` (a public page) there's no sidebar. `active` is the current section's address.
|
||||
*/
|
||||
export function AppShell({ me, active = "", children }: { me: ShellUser | null; active?: string; children: React.ReactNode }) {
|
||||
export function AppShell({ me, active = "", badges, children }: { me: ShellUser | null; active?: string; badges?: Badges; children: React.ReactNode }) {
|
||||
const b = useBranding();
|
||||
const [open, setOpen] = useState(false);
|
||||
const top = "text-sm border-b-2 pb-0.5 transition-colors";
|
||||
@@ -131,7 +170,7 @@ export function AppShell({ me, active = "", children }: { me: ShellUser | null;
|
||||
<button type="button" className="absolute inset-0 bg-black/30" aria-label="Close the menu" onClick={() => setOpen(false)} />
|
||||
<div className="absolute inset-y-0 left-0 flex w-72 max-w-[85vw] flex-col overflow-y-auto bg-white p-4 shadow-xl">
|
||||
<button type="button" onClick={() => setOpen(false)} aria-label="Close the menu" className="mb-2 self-end rounded-md p-2 hover:bg-gray-100"><X className="h-5 w-5" /></button>
|
||||
<SidebarContent me={me} active={active} onNavigate={() => setOpen(false)} />
|
||||
<SidebarContent me={me} active={active} badges={badges} both onNavigate={() => setOpen(false)} />
|
||||
<a href="/signed-out" onClick={(e) => { e.preventDefault(); window.location.assign(signOutHref()); }} className="mt-auto flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-gray-600 hover:bg-gray-50">
|
||||
<LogOut className="h-4 w-4" aria-hidden /> Sign out
|
||||
</a>
|
||||
@@ -142,7 +181,7 @@ export function AppShell({ me, active = "", children }: { me: ShellUser | null;
|
||||
<div className="mx-auto flex w-full max-w-7xl flex-1">
|
||||
{me && (
|
||||
<aside className="hidden w-64 shrink-0 border-r bg-white p-4 md:block">
|
||||
<div className="sticky top-20"><SidebarContent me={me} active={active} /></div>
|
||||
<div className="sticky top-20"><SidebarContent me={me} active={active} badges={badges} /></div>
|
||||
</aside>
|
||||
)}
|
||||
<main id="main" className="min-w-0 flex-1 p-4 sm:p-6">{children}</main>
|
||||
@@ -159,12 +198,15 @@ export function AppShell({ me, active = "", children }: { me: ShellUser | null;
|
||||
);
|
||||
}
|
||||
|
||||
/** A page's title and a line under it, at the top of the main column. */
|
||||
export function PageTitle({ children, sub }: { children: React.ReactNode; sub?: React.ReactNode }) {
|
||||
/** A page's title and a line under it, at the top of the main column; with the section's icon. */
|
||||
export function PageTitle({ children, sub, icon: Icon }: { children: React.ReactNode; sub?: React.ReactNode; icon?: LucideIcon }) {
|
||||
return (
|
||||
<div className="mb-6">
|
||||
<h1 className="text-2xl font-bold text-gray-900">{children}</h1>
|
||||
{sub && <p className="mt-1 text-sm text-gray-600">{sub}</p>}
|
||||
<div className="mb-6 flex items-start gap-3">
|
||||
{Icon && <span className="mt-0.5 hidden h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-brand/10 text-brand sm:flex" aria-hidden><Icon className="h-5 w-5" /></span>}
|
||||
<div className="min-w-0">
|
||||
<h1 className="text-2xl font-bold text-gray-900">{children}</h1>
|
||||
{sub && <p className="mt-1 text-sm text-gray-600">{sub}</p>}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
/** The admin's sections (1.3.0): one address each, in the sidebar (components/AppShell.tsx). */
|
||||
/**
|
||||
* The admin's sections: one address each, in groups down the side (components/AppShell.tsx), and a
|
||||
* tile each on the overview. 1.8.0: /admin is the overview (as Cross Events' admin dashboard);
|
||||
* People moved to /admin/people.
|
||||
*/
|
||||
export const ADMIN_SECTIONS = {
|
||||
people: { path: "/admin", title: "People", sub: "Everyone with a church account. Roles in each site (an Events supervisor, for example) are set in that site." },
|
||||
deletions: { path: "/admin/deletions", title: "Deletion requests", sub: "People who asked to delete their account." },
|
||||
church: { path: "/admin/church", title: "Church profile", sub: "The church's name, logo, colours and contact details, used by all its sites." },
|
||||
linked: { path: "/admin/linked", title: "Linked products", sub: "The church's sites and apps that sign people in here." },
|
||||
signin: { path: "/admin/signin", title: "Sign-in settings", sub: "Who may make an account, two-step sign-in for admins, and how long people stay signed in." },
|
||||
messages: { path: "/admin/messages", title: "Email and WhatsApp", sub: "How Accounts sends sign-in codes, password links and security notices." },
|
||||
notice: { path: "/admin/notice", title: "Privacy notice", sub: "What people read before they sign in for the first time, and after it changes." },
|
||||
backups: { path: "/admin/backups", title: "Backups", sub: "Copies of the Accounts database, kept on this server." },
|
||||
jobs: { path: "/admin/jobs", title: "Background jobs", sub: "What the server does on a schedule. Switch a job on or off or change when it runs: your choice wins over the server's .env and applies straight away." },
|
||||
licence: { path: "/admin/licence", title: "Licence", sub: "Accounts' connection to Cross Code." },
|
||||
audit: { path: "/admin/audit", title: "Audit log", sub: "What admins and the church's sites changed here." },
|
||||
overview: { path: "/admin", title: "Admin", sub: "How Accounts stands, what needs you, and every setting.", tile: "" },
|
||||
people: { path: "/admin/people", title: "People", sub: "Everyone with a church account. Roles in each site (an Events supervisor, for example) are set in that site.", tile: "Find someone, reset their two-step sign-in, make an admin" },
|
||||
deletions: { path: "/admin/deletions", title: "Deletion requests", sub: "People who asked to delete their account.", tile: "Approve or cancel people's requests to delete their account" },
|
||||
church: { path: "/admin/church", title: "Church profile", sub: "The church's name, logo, colours and contact details, used by all its sites.", tile: "Name, logo, colours and contact details for every site" },
|
||||
linked: { path: "/admin/linked", title: "Linked products", sub: "The church's sites and apps that sign people in here.", tile: "The sites and apps that sign people in here" },
|
||||
signin: { path: "/admin/signin", title: "Sign-in settings", sub: "Who may make an account, two-step sign-in for admins, and how long people stay signed in.", tile: "Who can make an account, two-step sign-in, staying signed in" },
|
||||
messages: { path: "/admin/messages", title: "Email and WhatsApp", sub: "How Accounts sends sign-in codes, password links and security notices.", tile: "How sign-in codes and password links are sent" },
|
||||
notice: { path: "/admin/notice", title: "Privacy notice", sub: "What people read before they sign in for the first time, and after it changes.", tile: "What people read before they first sign in" },
|
||||
backups: { path: "/admin/backups", title: "Backups", sub: "Copies of the Accounts database, kept on this server.", tile: "Back up now, download a copy, how many to keep" },
|
||||
jobs: { path: "/admin/jobs", title: "Background jobs", sub: "What the server does on a schedule. Switch a job on or off or change when it runs: your choice wins over the server's .env and applies straight away.", tile: "What runs on a schedule, and when" },
|
||||
licence: { path: "/admin/licence", title: "Licence", sub: "Accounts' connection to Cross Code.", tile: "The connection to Cross Code" },
|
||||
audit: { path: "/admin/audit", title: "Audit log", sub: "What admins and the church's sites changed here.", tile: "Who changed what, and when" },
|
||||
} as const;
|
||||
export type AdminSection = keyof typeof ADMIN_SECTIONS;
|
||||
|
||||
@@ -13,6 +13,12 @@ Write for the person updating servers: what the agent can now do from the Hub, a
|
||||
contracts version needs it. The developer log is the commit history of apps/agent.
|
||||
-->
|
||||
|
||||
## 1.6.0
|
||||
|
||||
- **Demo data for the Church Website.** The Hub (2.25.0 and later) can load one of the Website's
|
||||
eight demo churches on a demo site, as it already could for Cross Events. Needs Website 1.3.0 on
|
||||
the site. Cross Events' demo data works as before.
|
||||
|
||||
## 1.5.0
|
||||
|
||||
- **One product of a church at a time.** Uninstall, export and purge jobs can name products: only
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@crosscode/agent",
|
||||
"version": "1.5.0",
|
||||
"version": "1.6.0",
|
||||
"private": true,
|
||||
"description": "The server agent: runs the crosscode script for signed jobs from Cross Code Hub, reports stats (docs/AGENT-1.0-PLAN.md)",
|
||||
"license": "UNLICENSED",
|
||||
|
||||
@@ -59,7 +59,9 @@ export function crosscodeArgs(job: agent.AgentJob, opts: { exportFile?: string }
|
||||
return out;
|
||||
}
|
||||
case "seed-demo":
|
||||
return ["demo", job.args.church, "--profile", job.args.profile, ...(job.args.adminEmail ? ["--admin-email", job.args.adminEmail] : [])];
|
||||
// 1.6.0: the Website's demo names the product; Events' (no product) keeps its old form.
|
||||
return ["demo", job.args.church, ...(job.args.product === "website" ? ["website"] : []), "--profile", job.args.profile,
|
||||
...(job.args.adminEmail ? ["--admin-email", job.args.adminEmail] : [])];
|
||||
case "export":
|
||||
if (!opts.exportFile) throw new Error("export needs a file to write");
|
||||
return ["export", job.args.church, ...(job.args.products ?? []), "--out", opts.exportFile];
|
||||
|
||||
@@ -12,7 +12,7 @@ import { paths } from "./paths";
|
||||
* the tools that are there; anything missing is null rather than an error.
|
||||
*/
|
||||
|
||||
export const AGENT_VERSION = "1.5.0";
|
||||
export const AGENT_VERSION = "1.6.0";
|
||||
|
||||
function run(cmd: string, args: string[], timeoutMs = 10_000): Promise<string | null> {
|
||||
return new Promise((resolve) => {
|
||||
|
||||
@@ -47,6 +47,9 @@ describe("crosscode arguments for each job", () => {
|
||||
expect(crosscodeArgs(parsed({ type: "seed-demo", args: { church: "hope", profile: "ministry" } }))).toEqual(["demo", "hope", "--profile", "ministry"]);
|
||||
expect(crosscodeArgs(parsed({ type: "seed-demo", args: { church: "hope", profile: "events", adminEmail: "jane@hope.test" } })))
|
||||
.toEqual(["demo", "hope", "--profile", "events", "--admin-email", "jane@hope.test"]);
|
||||
// 1.6.0: the Website's demo.
|
||||
expect(crosscodeArgs(parsed({ type: "seed-demo", args: { church: "hope", product: "website", profile: "bold-plant" } }))).toEqual(["demo", "hope", "website", "--profile", "bold-plant"]);
|
||||
expect(crosscodeArgs(parsed({ type: "seed-demo", args: { church: "hope", product: "events", profile: "small" } }))).toEqual(["demo", "hope", "--profile", "small"]);
|
||||
});
|
||||
|
||||
it("env-read and env-set (1.3.0): crosscode env, each value its own argument", () => {
|
||||
|
||||
@@ -1,5 +1,185 @@
|
||||
# Changelog — Church Website
|
||||
|
||||
## [1.6.0] — 2026-11-27
|
||||
|
||||
No migration, no new environment settings.
|
||||
|
||||
### Changed
|
||||
|
||||
- **The demo church has photos** instead of the generated "hills and sun" illustration that
|
||||
stood in for every picture. 104 stock photos from Unsplash (free under the Unsplash License;
|
||||
credits in `backend/demo-photos/CREDITS.md` and `photos.json`), 12 MB of WebP in
|
||||
`backend/demo-photos/`. Each demo profile has its own set (`photos` in `src/demo/seeds.ts`): a
|
||||
stone parish church, a city spire, a worship night, a school hall, a family table, farmland, a
|
||||
coffee table, a campus. The ministry pictures match what they are (Sunday school, choir, soup
|
||||
kitchen, students). Acacia Hill (a template on its own) gets an acacia at sunrise. The people
|
||||
are the photographers' models.
|
||||
- **Every leader has a portrait** (before: only the first, so the team showed three empty
|
||||
circles), named for them in its alt text (`photos.team`).
|
||||
- **The demo's events have pictures** (`photos.events`; before: the grey placeholder on event
|
||||
cards). Photos that compress well where an event page shows them large (the picnic is 75 KB at
|
||||
960 px, not the 170 KB of the busier one), so the event pages stay at Lighthouse 90+.
|
||||
- **The demo's messages have photos** (`photos.messages`: a pulpit, an open Bible, a
|
||||
microphone, a preacher who matches the speaker) instead of the stand-in video's thumbnail.
|
||||
`Message.thumbnailUrl` set to one of the site's own uploads (`/api/uploads/…`) now comes before
|
||||
the YouTube thumbnail (`messageThumbnail`); admins and the YouTube feed store YouTube's address
|
||||
there, which is still never used, so nothing changes for a church's own messages.
|
||||
- Demo photos become media assets the way an upload does (`processImage`: 480, 960 and 1600 px
|
||||
in WebP and JPEG), so demo sites serve responsive images. Each photo is processed once per
|
||||
machine (`<tmp>/crosscode-website-demo/`, made in a folder of its own and renamed into place)
|
||||
and copied into `<uploads>/demo/`. Without `demo-photos/`, the illustration still stands in.
|
||||
- e2e: the fake YouTube thumbnail is one of the demo photos.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Photos in small frames are fetched at their size, not the screen's: Community's collage hero
|
||||
(fixed 10–16rem frames), the collage row in the other templates (a third of the width), the
|
||||
team's portraits (12rem, 20rem featured) and the ministry cards (a quarter or a third of the
|
||||
width) say so in `sizes`. A phone fetched the 960 or 1600 px photo for each before.
|
||||
|
||||
## [1.5.0] — 2026-11-27
|
||||
|
||||
No migration, no new environment settings.
|
||||
|
||||
### Added
|
||||
|
||||
- **Backups of the photos and files** (`src/backups/uploads.ts`): the nightly `backup` job (and
|
||||
Back up now) makes, after the database backup, a snapshot of the uploads in
|
||||
`backend/backups/uploads-YYYYMMDD-HHMMSS/`. A file the same as in the last snapshot (size and
|
||||
time) is a hard link to it; the rest is copied, keeping its time. Uploads never change once
|
||||
made, so after the first full copy each night costs only the new files, and each snapshot is
|
||||
still a real copy: deleting or damaging a file in `uploads/` leaves the snapshots alone.
|
||||
`.thumbnails` and other dot entries are left out. Built in a `.uploads-…-partial` folder and
|
||||
renamed when complete (a leftover partial is removed on the next run). Refused before copying
|
||||
anything when the disk hasn't room for what's new. Each holds a `.snapshot.json` (files, bytes,
|
||||
new files, new bytes). The newest `backup_retain_count` are kept, as the database backups.
|
||||
Off with `backup_uploads` = false; the last failure in `backup_uploads_last_error`. To put
|
||||
them back: `cp -a backups/uploads-…/. uploads/` as the site's user.
|
||||
- **Admin → Backups:** "Include the photos and files" (saved with the other backup settings), the
|
||||
snapshots (when, files, size, new since the one before), and their last failure. Back up now
|
||||
makes both and says if only the database worked.
|
||||
|
||||
### Changed
|
||||
|
||||
- The `backup` job is "Backup: the database, and the photos and files". The database backup is
|
||||
made even when the uploads' fails; the job then fails, so its run and the Hub show it.
|
||||
|
||||
## [1.4.0] — 2026-11-27
|
||||
|
||||
No migration: pg-boss makes its own schema (`pgboss_website`) on first start, as in Accounts. New
|
||||
dependencies `pg-boss` and `cron-parser`. Needs `pg_dump` on the server (it's there: the
|
||||
crosscode script uses it for the backups before updates).
|
||||
|
||||
### Added
|
||||
|
||||
- **Database backups** (`src/backups/backups.ts`, as Accounts 1.3.0): a gzipped `pg_dump` into
|
||||
`backend/backups/` every night at 02:20 (after Accounts' at 02:00 on the same server) and when an
|
||||
admin asks; the newest 14 kept (`backup_retain_count`), nightly on by default
|
||||
(`backup_nightly`), the last failure in `backup_last_error`. Same names as the crosscode
|
||||
script's backups before updates (`website-YYYYMMDD-HHMMSS.sql.gz`), so the list shows both. A
|
||||
dump that fails part-way leaves no file. The database only: the uploads aren't in it (as Events).
|
||||
- **Admin → Backups** (Owners and Admins): back up now, download one (audited, never cached), turn
|
||||
nightly backups off, how many to keep. `GET /api/v1/admin/backups`, `POST …/backups/run`,
|
||||
`PUT …/backups/settings`, `GET …/backups/:file/download`.
|
||||
- **Background jobs on pg-boss** (`src/jobs.ts`, as Accounts 1.4.0): `backup`, `hub-heartbeat`
|
||||
(every 15 minutes), `event-feed` (every 15 minutes) and `youtube` (hourly). One run per
|
||||
schedule however many processes run; timers in the process if the queue can't start;
|
||||
`JOBS_ENABLED=false` turns them all off. Per job: its .env flag (`BACKUP_ENABLED`,
|
||||
`HUB_HEARTBEAT_ENABLED`, `FEED_JOB_ENABLED`, `YOUTUBE_JOB_ENABLED`) and `JOB_SCHEDULE_<NAME>`.
|
||||
- **Admin → Background jobs** (Owners and Admins): each job's schedule, next run and last runs;
|
||||
switch it on or off, change its schedule (kept in `job_overrides`, winning over the .env, live
|
||||
at once), or run it now. Audited (`job_settings_changed`, `job_run`).
|
||||
|
||||
### Changed
|
||||
|
||||
- **The heartbeat reports the newest backup** (`lastBackupAt`; before always null, so the Hub
|
||||
showed "No backup reported" on every Website) **and the real job mode and failed runs in the
|
||||
last 24 hours** (before always "queue" and 0).
|
||||
- The heartbeat, the event feed and YouTube were plain timers (`startHeartbeats`,
|
||||
`startFeedSync`, `startYoutubeSync`, removed); they're jobs now. The first event-feed and
|
||||
YouTube runs are on their schedule rather than 20 and 30 seconds after a start.
|
||||
|
||||
## [1.3.0] — 2026-11-27
|
||||
|
||||
No migration, no new environment settings. Needs contracts 1.19.0 (in this checkout).
|
||||
|
||||
### Added
|
||||
|
||||
- **Eight demo churches**, two per template, for the Hub's demo sites (Hub 2.25.0, agent 1.6.0,
|
||||
`crosscode demo <church> website --profile <p>`): `heritage-parish`, `heritage-city`,
|
||||
`bold-youth`, `bold-plant`, `community-family`, `community-town`, `clean-modern`,
|
||||
`clean-campus` (`src/demo/seeds.ts`, ids from contracts `agent.WEBSITE_DEMO_PROFILES`). Each is
|
||||
its own kind of church: home page, Plan your visit, About, Give, four ministries, four leaders, a
|
||||
message series with three messages, and three upcoming events. The second of each template starts
|
||||
on the template's second recommended variant of every homepage section and its second header, so
|
||||
the eight show every recommended look.
|
||||
- **They keep the organisation settings:** a profile replaces the content only. The church's
|
||||
profile (from Accounts, else `church_profile_local`) stays, the copy names the church
|
||||
(`{name}`, `{short}`, `{city}`) and the illustrations use its colours. The site settings, the
|
||||
site icon (`favicon_media_id` and its picture) and the admins stay. Acacia Hill's profile is
|
||||
saved only on a site with no profile at all, so it still has a name. Slug history and preview
|
||||
links go with the old content.
|
||||
- `npm run demo -- --profile <p> [--force]` and `--list`. `--template <t>` alone still loads the
|
||||
Acacia Hill development church exactly as before (its profile too), so the e2e suite and its
|
||||
screenshots are unchanged.
|
||||
|
||||
## [1.2.0] — 2026-11-27
|
||||
|
||||
No migration, no new environment settings. Its first start on an existing site adds the missing
|
||||
fixed pages (below).
|
||||
|
||||
### Fixed
|
||||
|
||||
- **A new install had no pages**, so its home page (and the live preview of it) showed only the
|
||||
header and footer whatever was chosen under Template and style, and Plan your visit, About, Give,
|
||||
Contact and the rest didn't exist. Only `npm run demo` made pages. Now the backend adds the fixed
|
||||
pages at startup (`src/site/starter.ts`) with starter text: Home with every homepage section,
|
||||
Plan your visit, About us, Ministries, Leadership, Events, Messages, Give, Contact, and Terms and
|
||||
Safeguarding (footer links, not in the menu; WEBSITE-1.0-PLAN §2). All of them while a site has
|
||||
none of them (pages it made itself move after them; an address already taken is skipped), else
|
||||
only a missing home page. A removed page isn't brought back. They're drafts, published with the
|
||||
site; the audit log says "Added the starter pages". Found on cross-demo2.
|
||||
- **Template and style → Home page layout:** the Latest message's Card layout had no name.
|
||||
- **Media picker:** the "No image" placeholder had too little contrast (WCAG AA).
|
||||
|
||||
### Added
|
||||
|
||||
- **Site icon** (Settings): a picture from the media library as the favicon, live at once
|
||||
(setting `favicon_media_id`; `favicon` in the site content). Without one the site uses the
|
||||
church's icon from its profile, else a default: the church's initial on its brand colour (a cross
|
||||
before the church is known). Every page links `/site-icon?v=…`, which redirects to the icon or
|
||||
serves the default SVG; the version changes with the icon.
|
||||
|
||||
## [1.1.0] — 2026-11-26
|
||||
|
||||
No migration, no new settings, no backend changes. The admin redesigned as Cross Events' admin
|
||||
dashboard and settings. Adds `lucide-react` (the version Accounts uses).
|
||||
|
||||
### Added
|
||||
|
||||
- **Steps to the first publish** across the top of every admin page until the site is live (from
|
||||
the setup checklist): each step is a link, done ones are ticked, "Next" goes to the first one to
|
||||
do, and it folds to one line (remembered in the browser). It updates after every save.
|
||||
- **A live preview beside the page editor** (home and custom pages) and Template and style: the
|
||||
page at computer or phone width, scaled to fit, reloaded on each save at the same scroll position.
|
||||
It folds to a tab on the right (remembered); on phones it's a Preview button that opens it full
|
||||
screen. It shows drafts without the preview cookie: a request from a frame
|
||||
(`Sec-Fetch-Dest: iframe`) with an admin session reads the drafts, so the live site in another
|
||||
tab stays live. Links inside it load in full so they stay on drafts. `/preview/start` takes
|
||||
`?to=` (a site path only) to open the full preview on that page.
|
||||
|
||||
### Changed
|
||||
|
||||
- **The admin's frame:** a sidebar with icons in groups (Your site, Content, Go live, Team), a
|
||||
drawer on phones, and a bar across the top with the changes not published, Preview and who's
|
||||
signed in. Publish shows the number of changes waiting.
|
||||
- **The dashboard** as Cross Events': a welcome, four cards (site, changes waiting, storage, last
|
||||
edit), a tile for every part of the admin, and recent edits.
|
||||
- **The page editor** has tabs, Content and Page details (title, address, menu, search and
|
||||
sharing); blocks are cards with a summary, icon buttons to move, hide and remove (asks first), and
|
||||
"Add a block" is a grid of tiles. **Template and style** has tabs: Template, Home page layout,
|
||||
Style. Every admin page has its icon.
|
||||
|
||||
## [1.0.2] — 2026-11-26
|
||||
|
||||
No migration, no new settings. Works with Accounts 1.7.0; with Accounts 1.7.1 the first sign-in
|
||||
|
||||
@@ -3,6 +3,51 @@
|
||||
What each version changes for the church, in plain language (read by the Hub like Cross Events'
|
||||
WHATS-NEW.md; a section shows once its version is tagged).
|
||||
|
||||
## 1.6.0
|
||||
|
||||
- **Photos load faster on phones.** Photos in small frames (the collage at the top of the
|
||||
Community template, your team's portraits and the ministry cards) are now downloaded at the size
|
||||
they're shown, instead of full width. Nothing to change on your side.
|
||||
- Behind the scenes, Cross Code's demonstration websites now show real photos of a (made-up)
|
||||
church instead of drawings.
|
||||
|
||||
## 1.5.0
|
||||
|
||||
- **Your photos and files are backed up too.** Every night, after your site's content, your media
|
||||
library is backed up on the server. After the first time, only new photos and files are copied.
|
||||
Under **Backups** you see each one, and can switch it off.
|
||||
|
||||
## 1.4.0
|
||||
|
||||
- **Your website is backed up every night.** A copy of your site's content is kept on the server
|
||||
every night, and before every update. Owners and Admins find them under **Backups**: make one
|
||||
now, download one, or choose how many to keep. Your photos and files aren't in them.
|
||||
- **Background jobs:** under **Background jobs**, see what your site does on a schedule (backups,
|
||||
your events from Cross Events, new videos from YouTube), and switch each one on or off.
|
||||
|
||||
## 1.3.0
|
||||
|
||||
- Nothing changes on your site. Behind the scenes, Cross Code can now load demo content on the
|
||||
websites it uses for demonstrations.
|
||||
|
||||
## 1.2.0
|
||||
|
||||
- **Your home page and the other pages are there from the start:** a new website now comes with
|
||||
its home page, Plan your visit, About us, Give, Contact and the rest, with some starter text to
|
||||
change. Before, a new website had no pages, so the home page and its preview were empty apart
|
||||
from the header and footer.
|
||||
- **Your own site icon:** under **Settings → Site icon**, choose the little picture that shows in
|
||||
the browser tab and bookmarks. Until you do, your site shows your church's initial in its colour.
|
||||
|
||||
## 1.1.0
|
||||
|
||||
- **An easier admin.** A menu with icons down the side, and a dashboard with a tile for every part
|
||||
of your site.
|
||||
- **Steps to get your site live:** until your site is published, the top of every admin page shows
|
||||
what's left to do. Click a step to go there, or **Next** for the next one.
|
||||
- **See your page as you edit it:** a live preview beside the editor, at computer or phone size.
|
||||
It updates every time you save, and you can fold it away to the right.
|
||||
|
||||
## 1.0.2
|
||||
|
||||
- **Preview works:** pressing Preview in the admin shows your site with your changes, instead of
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
# Demo photos
|
||||
|
||||
The demo church's photos (`src/demo/`), from [Unsplash](https://unsplash.com), used under the
|
||||
[Unsplash License](https://unsplash.com/license): free to use, commercially too, without asking.
|
||||
The people in them are the photographers' models, standing in for the fictional churches' people.
|
||||
Credit is not required, but given here. Each is WebP, at most 2000 px wide (portraits 1000 × 1250,
|
||||
cropped to the face); `photos.json` holds their alt text, size and credit, keyed by the names the
|
||||
demo profiles use (`src/demo/seeds.ts`).
|
||||
|
||||
| Photo | Photographer | On Unsplash |
|
||||
|-------|--------------|-------------|
|
||||
| `acacia-sunrise` | [Damian Patkowski](https://unsplash.com/@damianpatkowski) | [T-LfvX-7IVg](https://unsplash.com/photos/tree-between-green-land-during-golden-hour-T-LfvX-7IVg) |
|
||||
| `city-spire` | [Ross Sneddon](https://unsplash.com/@rosssneddon) | [2XTPV6WykVc](https://unsplash.com/photos/person-walking-on-pathway-2XTPV6WykVc) |
|
||||
| `stone-church` | [Wolfgang Weiser](https://unsplash.com/@hamburgmeinefreundin) | [UCnBapalXbE](https://unsplash.com/photos/historic-brick-church-with-tall-spire-surrounded-by-trees-UCnBapalXbE) |
|
||||
| `country-church` | [Vedanth Ravi](https://unsplash.com/@vedanthravi) | [ql9-rgPUPZE](https://unsplash.com/photos/old-stone-church-ruins-under-a-blue-sky-ql9-rgPUPZE) |
|
||||
| `church-light` | [Debby Hudson](https://unsplash.com/@hudsoncrafted) | [sgdyBq6kheQ](https://unsplash.com/photos/cathedral-interior-sgdyBq6kheQ) |
|
||||
| `church-aisle` | [BEN ELLIOTT](https://unsplash.com/@benjaminelliott) | [-_M9YXEliAI](https://unsplash.com/photos/a-large-church-with-a-large-stained-glass-window--_M9YXEliAI) |
|
||||
| `church-doors` | [João Weyne Justa](https://unsplash.com/@joaoweynej) | [VCbtM1PR4_o](https://unsplash.com/photos/empty-church-pews-lead-to-a-cross-in-the-distance-VCbtM1PR4_o) |
|
||||
| `church-white` | [Julia Taubitz](https://unsplash.com/@justmejuliee) | [MVE9TBMdXLs](https://unsplash.com/photos/pews-and-chandelier-in-vimmerby-church-MVE9TBMdXLs) |
|
||||
| `farm-road` | [Mario Beducci](https://unsplash.com/@mariobeducci) | [sVp8eXOLovA](https://unsplash.com/photos/a-winding-dirt-road-through-rolling-hills-at-sunset-sVp8eXOLovA) |
|
||||
| `farm-bales` | [Vi Bell](https://unsplash.com/@vibell) | [BZa5NqifCt8](https://unsplash.com/photos/hay-bales-in-harvested-field-BZa5NqifCt8) |
|
||||
| `school-hall` | [Pix Tresa](https://unsplash.com/@pixtresa) | [qRtFqXNkssY](https://unsplash.com/photos/wooden-folding-chairs-in-paneled-room-qRtFqXNkssY) |
|
||||
| `hall-chairs` | [Adolfo Félix](https://unsplash.com/@adolfofelix) | [6hSBcpa7qVI](https://unsplash.com/photos/rows-of-empty-chairs-in-a-wood-paneled-room-6hSBcpa7qVI) |
|
||||
| `campus-path` | [avansear](https://unsplash.com/@avansear) | [nWyKIZVidIs](https://unsplash.com/photos/campus-path-with-trees-and-people-nWyKIZVidIs) |
|
||||
| `congregation-warm` | [Christian Harb](https://unsplash.com/@c7arb) | [RAENAd2Rxoo](https://unsplash.com/photos/a-congregation-gathered-inside-a-large-hall-RAENAd2Rxoo) |
|
||||
| `congregation-pews` | [Christian Harb](https://unsplash.com/@c7arb) | [e77txgeniiU](https://unsplash.com/photos/audience-seated-in-a-church-during-a-service-e77txgeniiU) |
|
||||
| `congregation-modern` | [Sophie Spree](https://unsplash.com/@sophiespree) | [9zJcrli2WCU](https://unsplash.com/photos/a-group-of-people-standing-in-a-room-with-their-hands-in-the-air-9zJcrli2WCU) |
|
||||
| `congregation-hall` | [Charise Pieterse](https://unsplash.com/@cedarhillchurch) | [IyGJ38BOcP8](https://unsplash.com/photos/people-standing-in-church-worship-IyGJ38BOcP8) |
|
||||
| `worship-hands` | [Fallon Michael](https://unsplash.com/@fallonmichaeltx) | [bUd6kWoVfII](https://unsplash.com/photos/people-raising-their-hands-up-bUd6kWoVfII) |
|
||||
| `band-stage` | [Memento Media](https://unsplash.com/@heymemento) | [PbQF8EIsR2U](https://unsplash.com/photos/man-in-black-leather-jacket-playing-guitar-PbQF8EIsR2U) |
|
||||
| `band-big` | [Bree Anne](https://unsplash.com/@breebuddy) | [dDED_VZ2jbI](https://unsplash.com/photos/people-sitting-on-chairs-watching-band-performing-on-stage-dDED_VZ2jbI) |
|
||||
| `band-small` | [AMONWAT DUMKRUT](https://unsplash.com/@amonwatdumkrut) | [3E0KqEVDKzg](https://unsplash.com/photos/woman-singing-in-church-worship-service-3E0KqEVDKzg) |
|
||||
| `guitar-singer` | [Luke Thornton](https://unsplash.com/@lukethorntonofficial) | [JNl7o-Mj2cc](https://unsplash.com/photos/man-in-gray-v-neck-long-sleeve-shirt-playing-brown-acoustic-guitar-JNl7o-Mj2cc) |
|
||||
| `guitar-room` | [Gabriel Rodrigues](https://unsplash.com/@gabrielrodriguesoficial) | [p6V49LDtWA4](https://unsplash.com/photos/a-man-sitting-on-a-chair-playing-a-guitar-p6V49LDtWA4) |
|
||||
| `choir-church` | [Green Liu](https://unsplash.com/@greenliustudio) | [ZaZcvU_WuF8](https://unsplash.com/photos/a-group-of-people-singing-in-front-of-a-golden-alter-ZaZcvU_WuF8) |
|
||||
| `choir-gospel` | [John Onaeko](https://unsplash.com/@iyinoluwaonaeko) | [8__esxuic9Q](https://unsplash.com/photos/group-of-people-standing-on-brown-wooden-floor-8__esxuic9Q) |
|
||||
| `organ` | [Spencer Plouzek](https://unsplash.com/@theguccer2100) | [aOexpXIBH_I](https://unsplash.com/photos/man-playing-a-large-wooden-pipe-organ-aOexpXIBH_I) |
|
||||
| `candles` | [Eli Solitas](https://unsplash.com/@elisolitas) | [q6e4zwgtUcM](https://unsplash.com/photos/lighted-candles-on-black-metal-candle-holder-q6e4zwgtUcM) |
|
||||
| `kids-craft` | [Yosi Prihantoro](https://unsplash.com/@yosipri) | [1q2Fo7Bx-pk](https://unsplash.com/photos/a-young-girl-is-holding-a-cross-made-of-paper-1q2Fo7Bx-pk) |
|
||||
| `kids-drawing` | [Ruslan Horovyi](https://unsplash.com/@ruslanstock) | [ycuGtOTAtuU](https://unsplash.com/photos/two-young-students-drawing-together-in-a-classroom-ycuGtOTAtuU) |
|
||||
| `kids-teacher` | [Rewired Digital](https://unsplash.com/@rewired41) | [kPkRpy6pIIg](https://unsplash.com/photos/teacher-guiding-children-drawing-at-a-table-kPkRpy6pIIg) |
|
||||
| `kids-class` | [Yegor Makarenko](https://unsplash.com/@photochel228) | [WGEgIC76RjA](https://unsplash.com/photos/adult-and-children-in-classroom-WGEgIC76RjA) |
|
||||
| `toddlers` | [Amanda Costelloe](https://unsplash.com/@oliveevephoto) | [8EHfZL6rFFg](https://unsplash.com/photos/two-young-girls-playing-with-colorful-wooden-blocks-8EHfZL6rFFg) |
|
||||
| `youth-group` | [Nicolas Lobos](https://unsplash.com/@lobosnico) | [AqUp2AfDgu8](https://unsplash.com/photos/people-standing-near-building-AqUp2AfDgu8) |
|
||||
| `youth-outdoors` | [Elliot Krueger](https://unsplash.com/@kruegerelliot) | [qNreMakc6eU](https://unsplash.com/photos/a-group-of-people-sitting-on-a-rock-in-the-woods-qNreMakc6eU) |
|
||||
| `teens` | [Eliott Reyna](https://unsplash.com/@eliottreyna) | [axTm0ee3YP4](https://unsplash.com/photos/five-persons-on-front-of-chain-link-fence-axTm0ee3YP4) |
|
||||
| `meal-table` | [Jesse Vigil](https://unsplash.com/@jessevig) | [I_b1PEyg8dY](https://unsplash.com/photos/a-group-of-people-sitting-at-a-long-table-I_b1PEyg8dY) |
|
||||
| `meal-friends` | [Sweet Life](https://unsplash.com/@sweetlifediabetes) | [OxkxluMeAGs](https://unsplash.com/photos/a-group-of-people-sitting-around-a-table-eating-food-OxkxluMeAGs) |
|
||||
| `meal-family` | [National Cancer Institute](https://unsplash.com/@nci) | [cfGG0niafjc](https://unsplash.com/photos/group-of-person-eating-indoors-cfGG0niafjc) |
|
||||
| `supper-hall` | [Sweet Life](https://unsplash.com/@sweetlifediabetes) | [sQ3r1oIsaBY](https://unsplash.com/photos/a-group-of-people-sitting-around-a-table-eating-food-sQ3r1oIsaBY) |
|
||||
| `soup-bowl` | [Dan DeAlmeida](https://unsplash.com/@ddealmeida) | [4aM_QE-HRLw](https://unsplash.com/photos/a-couple-of-people-holding-a-bowl-of-food-4aM_QE-HRLw) |
|
||||
| `food-parcels` | [Steward Masweneng](https://unsplash.com/@stewardesign) | [fMcRbRaaZiI](https://unsplash.com/photos/a-group-of-people-standing-around-a-purple-plate-fMcRbRaaZiI) |
|
||||
| `bible-study` | [Ben White](https://unsplash.com/@benwhitephotography) | [qM18dmqsTqk](https://unsplash.com/photos/man-in-black-crew-neck-t-shirt-holding-black-tablet-computer-qM18dmqsTqk) |
|
||||
| `bible-coffee` | [Nicolas Lobos](https://unsplash.com/@lobosnico) | [rHwMkuJD6GM](https://unsplash.com/photos/black-smartphone-on-white-notebook-rHwMkuJD6GM) |
|
||||
| `coffee-friends` | [Vitaly Gariev](https://unsplash.com/@silverkblack) | [_9rMpg5aI8k](https://unsplash.com/photos/people-talking-at-cafe-wooden-table-_9rMpg5aI8k) |
|
||||
| `coffee-group` | [Vitaly Gariev](https://unsplash.com/@silverkblack) | [BlCgKHTRkFI](https://unsplash.com/photos/friends-chat-and-enjoy-coffee-at-a-cafe-BlCgKHTRkFI) |
|
||||
| `students-lecture` | [Vitaly Gariev](https://unsplash.com/@silverkblack) | [T9yehHSvLL4](https://unsplash.com/photos/students-talking-in-a-lecture-hall-classroom-T9yehHSvLL4) |
|
||||
| `students-fair` | [Aayush Khator](https://unsplash.com/@aayushkhator) | [VzeCjrU0V04](https://unsplash.com/photos/a-crowd-of-people-at-an-outdoor-event-VzeCjrU0V04) |
|
||||
| `students-lawn` | [Dominic Kurniawan Suryaputra](https://unsplash.com/@d_ks11) | [tputvRf4bjA](https://unsplash.com/photos/a-group-of-people-sitting-on-top-of-a-lush-green-field-tputvRf4bjA) |
|
||||
| `prayer-group` | [Elianna Gill](https://unsplash.com/@elianna_gill03) | [Q588c92mWEI](https://unsplash.com/photos/a-group-of-people-standing-around-each-other-Q588c92mWEI) |
|
||||
| `visit-tea` | [Centre for Ageing Better](https://unsplash.com/@ageing_better) | [GJaWV0YoBeU](https://unsplash.com/photos/three-seniors-talking-and-smiling-together-GJaWV0YoBeU) |
|
||||
| `welcome-hug` | [Filip Rankovic Grobgaard](https://unsplash.com/@filipgrobgaard) | [tkI306JXz7o](https://unsplash.com/photos/a-group-of-people-embracing-and-laughing-together-tkI306JXz7o) |
|
||||
| `welcome-greeting` | [Erika Giraud](https://unsplash.com/@erikasayssmile) | [7KhbREQPFD4](https://unsplash.com/photos/two-men-hugging-on-focus-photography-7KhbREQPFD4) |
|
||||
| `friends-picnic` | [Vitaly Gariev](https://unsplash.com/@silverkblack) | [ux5wWkiW4ZA](https://unsplash.com/photos/friends-celebrating-a-birthday-outdoors-with-a-cake-ux5wWkiW4ZA) |
|
||||
| `family-picnic` | [Ainur Iman](https://unsplash.com/@mynameisiknow) | [IVCbWMeiFk4](https://unsplash.com/photos/family-picnic-in-sunlit-park-IVCbWMeiFk4) |
|
||||
| `family-walk` | [Gray Clary](https://unsplash.com/@grayclary57) | [9eU9t4vxQVk](https://unsplash.com/photos/a-group-of-people-walking-down-a-path-in-a-park-9eU9t4vxQVk) |
|
||||
| `pastor-thandi` | [K Studios](https://unsplash.com/@kstudios) | [pvwaNk2E-6E](https://unsplash.com/photos/a-smiling-woman-with-braided-hair-and-traditional-attire-pvwaNk2E-6E) |
|
||||
| `pastor-margaret` | [Age Cymru](https://unsplash.com/@agecymru) | [1Mo0BfBzjBk](https://unsplash.com/photos/a-smiling-woman-stands-before-a-rustic-corrugated-building-1Mo0BfBzjBk) |
|
||||
| `pastor-peter` | [ben o'bro](https://unsplash.com/@benobro) | [C5XyLljkMrY](https://unsplash.com/photos/man-taking-a-selfie-C5XyLljkMrY) |
|
||||
| `pastor-naidoo` | [manish_ jadhav_photography05](https://unsplash.com/@mjphotography05) | [6jzu-aBdfUU](https://unsplash.com/photos/woman-and-man-in-traditional-attire-6jzu-aBdfUU) |
|
||||
| `pastor-moore` | [Alef Morais](https://unsplash.com/@alef_visuals) | [Bop-YufQ-LQ](https://unsplash.com/photos/a-smiling-couple-stands-together-near-the-ocean-Bop-YufQ-LQ) |
|
||||
| `pastor-andile` | [Idowu Emmanuel](https://unsplash.com/@springimagix) | [1D41F-bt6p0](https://unsplash.com/photos/man-in-blue-and-white-striped-button-up-shirt-smiling-1D41F-bt6p0) |
|
||||
| `pastor-willem` | [Kyle Bushnell](https://unsplash.com/@kylebushnell) | [ZhAWv5iuFGQ](https://unsplash.com/photos/man-in-black-crew-neck-shirt-ZhAWv5iuFGQ) |
|
||||
| `pastor-daniel` | [Mina Rad](https://unsplash.com/@miinrad) | [1pLb0DK4_1o](https://unsplash.com/photos/a-man-with-a-beard-sitting-on-some-steps-1pLb0DK4_1o) |
|
||||
| `pastor-ian` | [Shubham Sharan](https://unsplash.com/@shubhamsharan) | [WCZ_1bx6D5I](https://unsplash.com/photos/a-man-wearing-glasses-WCZ_1bx6D5I) |
|
||||
| `team-pieter` | [Vicky Hladynets](https://unsplash.com/@vhladynets) | [_gDoyVv5F4c](https://unsplash.com/photos/man-in-white-crew-neck-shirt-_gDoyVv5F4c) |
|
||||
| `team-lerato` | [Christina @ wocintechchat.com M](https://unsplash.com/@wocintechchat) | [Kpd-JMLeKJk](https://unsplash.com/photos/woman-standing-and-smiling-Kpd-JMLeKJk) |
|
||||
| `team-johan` | [Lance Reis](https://unsplash.com/@lancereis) | [TTdJV-K1IUg](https://unsplash.com/photos/a-man-with-a-beard-wearing-a-hat-TTdJV-K1IUg) |
|
||||
| `team-sipho` | [Inocent Drici](https://unsplash.com/@inidrici) | [OGljLs0DnJ4](https://unsplash.com/photos/young-black-man-with-a-big-smile-OGljLs0DnJ4) |
|
||||
| `team-anne` | [Davide Aracri](https://unsplash.com/@davieees) | [0NDVW4wO1Ms](https://unsplash.com/photos/a-woman-with-dark-hair-0NDVW4wO1Ms) |
|
||||
| `team-david` | [Christophe Meyer](https://unsplash.com/@christophe_myr) | [2k1RUXZhMPY](https://unsplash.com/photos/man-in-red-crew-neck-shirt-2k1RUXZhMPY) |
|
||||
| `team-claire` | [PodMatch](https://unsplash.com/@podmatch) | [2mMhaoBGjCs](https://unsplash.com/photos/woman-in-black-blazer-smiling-2mMhaoBGjCs) |
|
||||
| `team-tom` | [Peri Stojnic](https://unsplash.com/@whoisperi) | [G9dttphDDE4](https://unsplash.com/photos/man-in-black-crew-neck-t-shirt-G9dttphDDE4) |
|
||||
| `team-nomsa` | [Brian Kungu](https://unsplash.com/@oldceltic) | [olDpu0_Q-A0](https://unsplash.com/photos/a-woman-in-a-denim-shirt-holds-a-cup-olDpu0_Q-A0) |
|
||||
| `team-kagiso` | [Divine Effiong](https://unsplash.com/@iamdivineeffiong) | [O1lbOY0H5rc](https://unsplash.com/photos/man-in-black-crew-neck-t-shirt-O1lbOY0H5rc) |
|
||||
| `team-megan` | [Felipe Souza](https://unsplash.com/@dszlipe) | [Vc_mU9UmJbM](https://unsplash.com/photos/woman-in-black-hoodie-and-blue-chair-Vc_mU9UmJbM) |
|
||||
| `team-ruan` | [Nathan Dumlao](https://unsplash.com/@nate_dumlao) | [26rK1-bH9Ls](https://unsplash.com/photos/man-in-gray-crew-neck-shirt-smiling-26rK1-bH9Ls) |
|
||||
| `team-ayesha` | [Mehrpouya H](https://unsplash.com/@mehrpouya) | [isuiNDHQPzs](https://unsplash.com/photos/woman-in-white-t-shirt-outdoors-isuiNDHQPzs) |
|
||||
| `team-chris` | [Joseph Gonzalez](https://unsplash.com/@miracletwentyone) | [iFgRcqHznqg](https://unsplash.com/photos/man-wearing-white-v-neck-shirt-iFgRcqHznqg) |
|
||||
| `team-grace` | [NORBAINE GLORY TAMAR](https://unsplash.com/@g_light) | [o9LPROnZJfA](https://unsplash.com/photos/woman-in-red-blazer-o9LPROnZJfA) |
|
||||
| `team-michelle` | [Troy Spoelma](https://unsplash.com/@spoelee4) | [EV8PPQG6zxY](https://unsplash.com/photos/a-woman-with-long-hair-wearing-a-blue-blazer-EV8PPQG6zxY) |
|
||||
| `team-reddy` | [Pranit Tandon](https://unsplash.com/@prantan) | [BJ_PVL5vpc4](https://unsplash.com/photos/man-and-woman-embracing-in-park-BJ_PVL5vpc4) |
|
||||
| `team-lwazi` | [150 Billi](https://unsplash.com/@150billi) | [dRgM67tRZHk](https://unsplash.com/photos/a-man-with-a-beard-and-a-green-shirt-dRgM67tRZHk) |
|
||||
| `team-elsie` | [Hosein Sediqi](https://unsplash.com/@hoseinsediqii) | [sBkSyfPzakI](https://unsplash.com/photos/an-older-woman-with-white-hair-and-a-smile-sBkSyfPzakI) |
|
||||
| `team-bongani` | [melvin Ankrah](https://unsplash.com/@hashtagmelvin) | [fEY925P2GlQ](https://unsplash.com/photos/a-happy-black-man-smiling-in-a-black-shirt-fEY925P2GlQ) |
|
||||
| `team-marie` | [Doug Bagg](https://unsplash.com/@dougbagg_) | [9iLbXsMZ6ls](https://unsplash.com/photos/smiling-woman-in-brown-blazer-9iLbXsMZ6ls) |
|
||||
| `team-refilwe` | [alex starnes](https://unsplash.com/@alexstarnes) | [PK_t0Lrh7MM](https://unsplash.com/photos/smiling-woman-in-yellow-blazer-holding-tablet-PK_t0Lrh7MM) |
|
||||
| `team-sam` | [Its me Pravin](https://unsplash.com/@paul__pro) | [duzGG1gkgMw](https://unsplash.com/photos/a-man-leaning-over-a-wooden-table-in-a-warehouse-duzGG1gkgMw) |
|
||||
| `team-nadia` | [amin naderloei](https://unsplash.com/@aminnaderloei) | [OmjeNvHwkDI](https://unsplash.com/photos/a-smiling-woman-sits-outdoors-on-a-rock-OmjeNvHwkDI) |
|
||||
| `team-lisa` | [Ionela Mat](https://unsplash.com/@ionelaaaaa) | [s3PJLnFKjnI](https://unsplash.com/photos/woman-smiles-while-posing-near-foliage-s3PJLnFKjnI) |
|
||||
| `team-thabo` | [nana o.](https://unsplash.com/@afroscope) | [10fvuGtnoEM](https://unsplash.com/photos/man-near-tree-10fvuGtnoEM) |
|
||||
| `team-priya` | [amin naderloei](https://unsplash.com/@aminnaderloei) | [5KsbzX5M9mo](https://unsplash.com/photos/young-woman-in-glasses-smiling-in-a-forest-5KsbzX5M9mo) |
|
||||
| `open-bible` | [Sixteen Miles Out](https://unsplash.com/@sixteenmilesout) | [L-mNqn89I2s](https://unsplash.com/photos/green-plant-on-white-book-page-L-mNqn89I2s) |
|
||||
| `pulpit` | [Mitchell Leach](https://unsplash.com/@mitchellleach) | [DmdQGZqR_38](https://unsplash.com/photos/brown-wooden-cross-on-brown-wooden-cabinet-DmdQGZqR_38) |
|
||||
| `church-quiet` | [Martin Jernberg](https://unsplash.com/@martinjernberg) | [ySjfkwugiEA](https://unsplash.com/photos/a-man-sitting-in-a-church-with-stained-glass-windows-ySjfkwugiEA) |
|
||||
| `sermon-robe` | [Benjamin Brunner](https://unsplash.com/@ben_brunner) | [MbYFGJT06gk](https://unsplash.com/photos/a-man-in-a-black-robe-holding-a-book-MbYFGJT06gk) |
|
||||
| `sermon-collar` | [RECARDO DAVIDSON](https://unsplash.com/@shotbyriki) | [26JmMEHe9nk](https://unsplash.com/photos/clergywoman-in-black-suit-stands-before-a-stone-wall-26JmMEHe9nk) |
|
||||
| `sermon-stage` | [Phil Hearing](https://unsplash.com/@philhearing) | [mgPIJGLM0SU](https://unsplash.com/photos/a-man-standing-on-top-of-a-stage-next-to-a-microphone-mgPIJGLM0SU) |
|
||||
| `sermon-hall` | [adrianna geo](https://unsplash.com/@adrigeo_) | [xjzhVNOvfZM](https://unsplash.com/photos/people-sitting-on-chairs-inside-room-xjzhVNOvfZM) |
|
||||
| `sermon-dark` | [Zach Lucero](https://unsplash.com/@zlucerophoto) | [X4V-El4qvZ4](https://unsplash.com/photos/a-man-in-a-suit-and-tie-holding-a-piece-of-paper-X4V-El4qvZ4) |
|
||||
| `mic-audience` | [Joao Cruz](https://unsplash.com/@jcruzweb) | [IkEpl3JkVqU](https://unsplash.com/photos/shallow-focus-photo-of-black-corded-microphone-IkEpl3JkVqU) |
|
||||
| `mic-blue` | [Matthias Wagner](https://unsplash.com/@matwag) | [QrqeusbpFMM](https://unsplash.com/photos/black-and-gray-microphone-on-black-stand-QrqeusbpFMM) |
|
||||
| `mic-red` | [Allie Reefer](https://unsplash.com/@thepghtraveler) | [rAoQn6kwv64](https://unsplash.com/photos/a-microphone-on-a-stand-in-front-of-a-red-background-rAoQn6kwv64) |
|
||||
| `mic-white` | [Madrosah Sunnah](https://unsplash.com/@26_ms) | [UA1nd6-Dndw](https://unsplash.com/photos/black-and-gray-microphone-on-white-background-UA1nd6-Dndw) |
|
||||
| `mic-crowd` | [Herlambang Tinasih Gusti](https://unsplash.com/@tinasihgusti) | [-ymBs1mVim8](https://unsplash.com/photos/a-man-standing-in-front-of-a-crowd-of-people--ymBs1mVim8) |
|
||||
|
After Width: | Height: | Size: 183 KiB |
|
After Width: | Height: | Size: 622 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 243 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 275 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 233 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 301 KiB |
|
After Width: | Height: | Size: 328 KiB |
|
After Width: | Height: | Size: 322 KiB |
|
After Width: | Height: | Size: 318 KiB |
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 114 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 311 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 337 KiB |
|
After Width: | Height: | Size: 207 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 603 KiB |
|
After Width: | Height: | Size: 125 KiB |
|
After Width: | Height: | Size: 206 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 38 KiB |