diff --git a/CHANGELOG.md b/CHANGELOG.md
index bedec55..4adfa22 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,32 @@ versions follow [Semantic Versioning](https://semver.org/).
## [Unreleased]
+## [2.14.0] - 2026-11-23
+
+Frontend only: no migration, no API changes.
+
+### Changed
+
+- **The customer page is a summary and three tabs.** The header shows the church's products, what
+ it owes, the next invoice (date and estimated amount), its address and AI allowance; click a tile
+ to open it. Below are **Overview** (details, billing schedule, address, AI, sites),
+ **Products** and **Invoices and payments**. The tab is in the address (`?tab=products`), and
+ links from Billing open Invoices and payments.
+- **Every add and edit is a popup.** Details, schedule, address, AI allowance, add product, edit
+ product, notice of licence change, record payment and one-off invoice open over the page, which
+ shows only read views. A popup closes on Esc or a click outside, asking first if you've changed
+ something; its error shows by its Save button. Record payment is a popup on Billing and the
+ invoice page too.
+- **One card per product.** The licence (tier, expiry, grace, notes) and its billing (charged
+ from, custom price) are one card with one Edit and one Save. Suspend, revoke, reactivate and
+ release are in the card's ⋯ menu, away from the everyday fields.
+- **One details form.** The contact details and the billing details (billing email, postal
+ address, founding) are edited together.
+- **One message** under the header for the whole page, instead of one per section.
+- **History as one timeline.** Invoices, payments, notices of licence change and billing emails
+ in date order, with a filter; picking one kind shows its own table, sortable as before.
+- Archive / Restore moved into the ⋯ menu by the customer's name.
+
## [2.13.0] - 2026-11-23
Migration `20261123120000_alert_cleared` (one column on `InstallEvent`).
diff --git a/backend/package-lock.json b/backend/package-lock.json
index 9238cb6..b56adeb 100644
--- a/backend/package-lock.json
+++ b/backend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "events-hub-backend",
- "version": "2.13.0",
+ "version": "2.14.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "events-hub-backend",
- "version": "2.13.0",
+ "version": "2.14.0",
"hasInstallScript": true,
"dependencies": {
"@anthropic-ai/sdk": "^1.3.0",
diff --git a/backend/package.json b/backend/package.json
index c88dab1..86a0712 100644
--- a/backend/package.json
+++ b/backend/package.json
@@ -1,6 +1,6 @@
{
"name": "events-hub-backend",
- "version": "2.13.0",
+ "version": "2.14.0",
"private": true,
"description": "Cross Events Hub — API for managing Cross Events installs, licences and heartbeats",
"main": "src/index.js",
diff --git a/docs/CUSTOMER-PAGE-PLAN.md b/docs/CUSTOMER-PAGE-PLAN.md
new file mode 100644
index 0000000..7843568
--- /dev/null
+++ b/docs/CUSTOMER-PAGE-PLAN.md
@@ -0,0 +1,145 @@
+# Customer page clean-up plan (`/customers/[id]`)
+
+Status: done in Hub 2.14.0 (all five steps in one release) · 2026-11-23
+
+The customer page has grown one card at a time and is now one long scroll of open forms. This plan
+reorganises it into a summary header and tabs, merges the duplicated product settings, and does it in
+small steps that can each be released on their own. No backend changes are needed.
+
+## What's wrong today
+
+Files: `frontend/src/app/(hub)/customers/[id]/page.tsx` (239 lines) and
+`frontend/src/components/billing/CustomerBilling.tsx` (436 lines).
+
+1. **Everything is an open form, all on one page.** About 13 cards: Details, one per licence, new
+ licence, billing details, billing schedule, address, products, next invoice, statement, invoices,
+ payments, notices of licence change, billing emails.
+2. **Each product appears twice.** The licence card at the top (plan, status, expiry, grace days,
+ notes) and the billing card further down (charged from, custom price, notice of change). Both show a
+ plan/tier and each has its own Save button.
+3. **Two "details" forms and two message banners.** Customer details and billing details are separate
+ forms; the page and the Billing section each have a message area, so feedback often appears far from
+ the button that was clicked.
+4. **No summary.** To see what the church has, what it owes and when it's next invoiced you have to
+ scroll and add it up.
+5. **Risky actions next to everyday ones.** Suspend, revoke and release sit beside notes and grace days.
+6. **AI settings are buried** at the bottom of the contact details form.
+
+## Target layout
+
+### Header (always visible)
+
+- Name, founding star, archived badge, "customer since".
+- A row of `Stat` tiles (existing component in `components/ui.tsx`):
+ - **Products**: e.g. "Events · Website · Accounts", red/amber if any is suspended or expiring.
+ - **Owing**: balance, red when overdue.
+ - **Next invoice**: date and estimated amount.
+ - **Address**: own domain / Cross Code address / included domain, with the domain.
+ - **AI**: monthly cap, or "Off".
+- Actions: **Record payment**, **One-off invoice**, **Add product**, each opening a popup. **Archive /
+ Restore** moves into a "⋯" menu.
+- Clicking the **Next invoice** tile opens the next-invoice preview in a popup.
+
+### Why there is no Billing tab
+
+The Billing page (`/billing`) is the ledger across all churches: every invoice, every payment, the
+founding list. It has nothing that belongs to one church (billing email, postal address, schedule,
+next-invoice preview, statement), and its links send you to the customer page for those. So the
+customer page still needs them, but they don't need a tab of their own:
+
+- Billing email, postal address and founding are **details**: they join the contact details in one
+ Details view and one Edit popup (this also fixes "two details forms").
+- Custom price and charged-from belong to a **product**: they go on the product card.
+- Schedule, next invoice and owing are **summary**: they live in the header tiles.
+- Statement, invoices, payments, notices and billing emails are this church's **slice of the Billing
+ page**: one "Invoices and payments" tab.
+
+Three tabs instead of four.
+
+### Tabs
+
+Using the existing `Tabs` component, with the active tab in the URL (`?tab=products`) so links and
+reloads keep it.
+
+| Tab | Contents |
+|---|---|
+| **Overview** | Details (contact, notes, billing email, postal address, founding), billing schedule, address (own domain / Cross Code / included), AI allowance: each as text with **Edit**. Sites, with their address and last heartbeat (links to `/installs/[id]`). |
+| **Products** | **One card per product**, combining the licence and the billing settings (see below). **Add product** button at the top. |
+| **Invoices and payments** | Statement (PDF, email) at the top, then invoices, payments, notices of licence change and billing emails. Later, optionally one combined timeline. |
+
+### Popups, not inline forms
+
+Every add or edit opens a popup; the page itself only shows read views. That covers: Edit details,
+Edit schedule, Edit address, Edit AI allowance, Add product, Edit product, Notice of licence change,
+Record payment, One-off invoice, Next-invoice preview.
+
+- New `Modal` component in `components/ui.tsx` (there is none yet): overlay, title, close button,
+ closes on Esc or a click outside (asking first if the form has unsaved changes), focus kept inside,
+ page scroll locked, full-screen sheet at phone width.
+- A form's error shows inside the popup next to its Save button; on success the popup closes and the
+ page message shows the confirmation.
+- Confirmations for risky actions (Suspend, Revoke, Release, Archive) stay as they are.
+- `RecordPayment` is already a self-contained card with a close button, so it just goes inside a
+ `Modal`. Using the same popup on `/billing` and the invoice page is a free follow-up.
+
+### One product card
+
+Read view:
+
+```
+Cross Events CE-XXXX-XXXX [copy] ● Active
+events.hopefamily.co.za · heartbeat 4 min ago
+Tier Medium · R350/month · charged from 1 Dec 2026 · expires never
+ [Notice of change…] [Edit] [⋯]
+```
+
+**Edit** opens one popup with one **Save**:
+
+- Licence: tier, expiry, grace days, notes.
+- Billing: charged from, custom price.
+
+The "⋯" menu holds Suspend, Revoke and Release from site, each with its existing confirmation, so they
+are no longer next to the everyday fields.
+
+The Save still calls the two existing endpoints (`PUT /api/admin/licences/:id` and
+`PUT /api/admin/billing/licences/:id`), only those whose fields changed. Accounts keeps its "Free: comes
+with the church's other products" line and has no billing fields.
+
+### Messages
+
+One page-level message (a toast or a sticky banner under the header) shared by every tab, replacing the
+two banners. Keep the existing wording ("The site picks it up with its next heartbeat…").
+
+### Existing links
+
+`/customers/[id]#billing` is used by `billing/page.tsx` (twice) and `billing/invoices/[id]/page.tsx`.
+Treat `#billing` as `?tab=invoices` on load, then change those three links to `?tab=invoices`.
+
+## Steps
+
+Each step is its own branch and Hub release.
+
+1. **Split the files, no visual change.** Move the pieces into `frontend/src/components/customer/`:
+ `CustomerHeader`, `DetailsCard`, `AiCard`, `LicenceCard`, `NewLicenceForm`, and from
+ `CustomerBilling.tsx`: `BillingDetails`, `Schedule`, `Address`, `LicenceBilling`, `NextInvoice`,
+ `Statement`, `InvoiceList`, `PaymentList`, `NoticeList`, `EmailLog`. Load the customer and billing
+ data once in the page and pass them down. This keeps the later diffs small.
+2. **Header summary, tabs and one message.** The biggest improvement for the effort. Includes the
+ `#billing` → `?tab=invoices` handling and updating the three links.
+3. **`Modal` and read views.** Add `Modal`; details (merged with billing details), schedule, address
+ and AI become read views with Edit popups; Record payment and One-off invoice move into popups.
+4. **One card per product.** Merge `LicenceCard` and `LicenceBilling` into a read card with an Edit
+ popup; suspend/revoke/release go in its "⋯" menu; Add product and Notice of change become popups.
+5. *(Optional)* **Invoices and payments as one timeline**: invoices, payments, notices and emails in date order with
+ a filter.
+
+## Checks for each step
+
+- `frontend` builds and type-checks; backend tests still pass (no backend changes expected).
+- Every existing action still works: save details, AI cap/markup, generate licence (and the free
+ Accounts licence), save/suspend/revoke/release licence, archive/restore, billing details, schedule,
+ address, product billing, notice of licence change (send, PDF, send again), statement (PDF, email),
+ one-off invoice, record payment, receipts.
+- Popups: Esc and the close button work, unsaved changes ask before closing, errors show in the popup.
+- Phone width: tabs scroll sideways, stat tiles wrap, popups go full-screen, no horizontal page scroll.
+- CHANGELOG entry and version bump as usual.
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 562a116..9614a13 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "events-hub-frontend",
- "version": "2.13.0",
+ "version": "2.14.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "events-hub-frontend",
- "version": "2.13.0",
+ "version": "2.14.0",
"dependencies": {
"lucide-react": "^0.536.0",
"next": "^15.5.24",
diff --git a/frontend/package.json b/frontend/package.json
index e24ccaa..d84c66e 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,6 +1,6 @@
{
"name": "events-hub-frontend",
- "version": "2.13.0",
+ "version": "2.14.0",
"private": true,
"scripts": {
"dev": "next dev -p 3200",
diff --git a/frontend/src/app/(hub)/billing/invoices/[id]/page.tsx b/frontend/src/app/(hub)/billing/invoices/[id]/page.tsx
index c2bcbf7..fbcde03 100644
--- a/frontend/src/app/(hub)/billing/invoices/[id]/page.tsx
+++ b/frontend/src/app/(hub)/billing/invoices/[id]/page.tsx
@@ -146,7 +146,7 @@ function InvoiceDetail({ id }: { id: string }) {
Billing
{inv.customer?.name}{inv.customer?.founding && founding church}>}
+ subtitle={<>{inv.customer?.name}{inv.customer?.founding && founding church}>}
actions={}
/>
@@ -184,7 +184,7 @@ function InvoiceDetail({ id }: { id: string }) {
)}
- {paying &&
- {licence.install
- ? <>Used by {licence.install.url} · last heartbeat {ago(licence.install.lastHeartbeatAt)}>
- : `Not used yet — enter this key in ${KEY_WHERE[licence.product]}.`}
-
- {licence.product === "accounts"
- ? "Free: comes with the church's other products."
- : "Shown on the church's Licence page. Billing and founding status are under Billing below."}
-