Hub 2.14.0: customer page as a summary and tabs, popups for every edit

- Customer page: header tiles (products, owing, next invoice, address, AI) and three
  tabs (Overview, Products, Invoices and payments), the tab in the URL; #billing links
  open Invoices and payments and Billing's links use ?tab=invoices.
- Every add or edit is a popup (new Modal in components/ui.tsx: Esc / click outside,
  asks before discarding changes, focus kept inside, full screen on a phone). The page
  shows only read views. Record payment is a popup on Billing and the invoice page too.
- One card per product: licence and billing fields in one Edit with one Save (each
  endpoint called only if its fields changed); suspend/revoke/reactivate/release in a
  ⋯ menu. Contact and billing details edited together. One page-level message.
- History as one timeline with a filter; each kind on its own keeps its sortable table.
- CustomerBilling.tsx split into components/customer/; plan in docs/CUSTOMER-PAGE-PLAN.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 11:14:05 +02:00
co-authored by Claude Opus 5.5
parent fc9e3faaf9
commit 590757e040
26 changed files with 1530 additions and 656 deletions
+26
View File
@@ -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`).