Hub 2.25.0: demo clients, and demo data for the Church Website

- A customer can be a demo client: every install a demo site (Accounts
  included, and any later install), never billed (billing off, no invoice
  drafted, sent or made by hand). Migration: Customer.isDemo, demoSince.
- Any install can be marked as a demo site; Events and the Website have
  demo data. The Website's eight demo churches need agent 1.6.0.
- Contracts 1.19.0 vendored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 09:20:10 +02:00
co-authored by Claude Opus 5.5
parent 7850de51ec
commit 8448babb08
24 changed files with 297 additions and 58 deletions
@@ -10,9 +10,9 @@ import { changed, type CustomerBillingData, type Done } from "./shared";
export function ScheduleCard({ b, onEdit }: { b: CustomerBillingData; onEdit: () => void }) {
const off = b.billingCycle === "none";
return (
<ReadCard title="Billing schedule" onEdit={onEdit}>
<ReadCard title="Billing schedule" onEdit={b.isDemo ? undefined : onEdit}>
<Fields>
<Field label="Billing">{CYCLE[b.billingCycle]}</Field>
<Field label="Billing">{b.isDemo ? "Not billed: a demo client" : CYCLE[b.billingCycle]}</Field>
{!off && <Field label="Billing started">{b.billingStart && day(b.billingStart)}</Field>}
{!off && <Field label="Next invoice">{b.nextInvoiceDate && day(b.nextInvoiceDate)}</Field>}
{!off && <Field label="Next tier review">{b.reviewDate && day(b.reviewDate)}</Field>}