- Accounts: account and admin pages in Cross Events' layout (top bar, sidebar, a page per section, dark footer); quick links to the church's sites (GET /me/apps); nightly pg_dump backups with Admin -> Backups (run, keep, download, audited; heartbeat lastBackupAt); a fuller built-in privacy notice with headings and bullets; a fixed favicon. /backups/ ignored (anchored, so src/backups is kept). - Contracts 1.11.0: people.removeDemo (only @example.com, never an admin). - Events: uploads served from the folder they're saved in (a backend started outside backend/ answered 404 for a logo it had just saved); Branding checks the file loads before saving; logout waits for the sign-out call so Accounts signs out too; set-demo removes the last demo's people from Accounts. Tests: Accounts 62 + e2e 8, Events 782, contracts 225; npm run check passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.4 KiB
TypeScript
30 lines
1.4 KiB
TypeScript
import { FileText } from "lucide-react";
|
|
import { AppShell } from "@/components/AppShell";
|
|
import { NoticeText } from "@/components/NoticeText";
|
|
import { Card } from "@/components/Panel";
|
|
|
|
export const metadata = { title: "Privacy notice" };
|
|
|
|
const api = (process.env.ACCOUNTS_API_URL || "http://127.0.0.1:5200").replace(/\/+$/, "");
|
|
|
|
/** The privacy notice for everyone, signed in or not (1.3.0: in the account pages' frame, with headings). */
|
|
export default async function PrivacyPage() {
|
|
const n = await fetch(`${api}/api/v2/notice`, { cache: "no-store" }).then((r) => r.json()).catch(() => null) as { title: string; body: string; version?: number } | null;
|
|
return (
|
|
<AppShell me={null}>
|
|
<div className="mx-auto max-w-3xl">
|
|
<Card className="sm:p-8">
|
|
<div className="mb-6 flex items-start gap-3 border-b pb-5">
|
|
<span className="flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-brand/10 text-brand" aria-hidden><FileText className="h-5 w-5" /></span>
|
|
<div>
|
|
<h1 className="text-2xl font-bold text-gray-900">{n?.title ?? "Privacy notice"}</h1>
|
|
{n?.version && <p className="mt-1 text-sm text-gray-500">Version {n.version}</p>}
|
|
</div>
|
|
</div>
|
|
{n ? <NoticeText body={n.body} /> : <p className="text-sm text-gray-700">The privacy notice couldn't be loaded. Please try again.</p>}
|
|
</Card>
|
|
</div>
|
|
</AppShell>
|
|
);
|
|
}
|