Hub 2.9.0: whether people can sign in

- An Events install's page shows its sign-in mode, whether it's linked to the church's Accounts,
  and the last sign-in failure (Events 3.5.0 heartbeat, contracts 1.13.0 vendored).
- Alerts: signs in through Accounts but isn't linked (critical), linked to the wrong Accounts, a
  sign-in failed in the last 24 hours, an Accounts nothing is linked to while the church has Events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 12:56:41 +02:00
co-authored by Claude Opus 5.5
parent 1150a82ecc
commit 894f2b2771
12 changed files with 130 additions and 19 deletions
+4
View File
@@ -68,6 +68,10 @@ export type Stats = {
campuses?: boolean;
campusCount?: number;
income?: { last30d?: string; allTime?: string; eventIncome12m?: string };
/** Cross Events 3.5.0+ (contracts 1.13.0): how people sign in. */
signIn?: { mode: "local" | "accounts"; accounts: { installId: string; url: string } | null; lastError: { at: string; code: string; message: string } | null };
/** Accounts: products linked to it. */
linkedProducts?: number;
};
export type InstallEvent = { id: string; type: string; level: Problem["level"]; message: string; createdAt: string; resolvedAt: string | null; install?: { id: string; name: string; url: string } };