diff --git a/CHANGELOG.md b/CHANGELOG.md index 0572d65..d4d6d20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,23 @@ versions follow [Semantic Versioning](https://semver.org/). ## [Unreleased] +## [2.16.0] - 2026-11-23 + +Frontend only: no migration, no API changes. + +### Changed + +- **Every add and edit on the list pages is a popup**, like the customer and install pages: Add + server, Add customer, New install, Link existing, New notice and Edit notice, Add release and Edit + release. Each asks before discarding what you have typed, shows its error by its button, and the + page keeps one message under its header. +- **Add server** shows the join command in the same popup; closing it before Copy asks first, since + the command is shown only once. +- **Release sources** shows the sources as a table, with Sync now and Use the defaults on the card; + Edit opens the sources and the access token in a popup, and saving syncs straight away. +- **One-off invoice on Billing is a popup**, with the church to choose (on the customer page it is + for that church). `/billing/invoices/new` opens it. + ## [2.15.0] - 2026-11-23 Frontend only: no migration, no API changes. diff --git a/backend/package-lock.json b/backend/package-lock.json index f5fa15f..b44e711 100644 --- a/backend/package-lock.json +++ b/backend/package-lock.json @@ -1,12 +1,12 @@ { "name": "events-hub-backend", - "version": "2.15.0", + "version": "2.16.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "events-hub-backend", - "version": "2.15.0", + "version": "2.16.0", "hasInstallScript": true, "dependencies": { "@anthropic-ai/sdk": "^1.3.0", diff --git a/backend/package.json b/backend/package.json index 90412c8..9a4b892 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "events-hub-backend", - "version": "2.15.0", + "version": "2.16.0", "private": true, "description": "Cross Events Hub — API for managing Cross Events installs, licences and heartbeats", "main": "src/index.js", diff --git a/docs/POPUPS-PLAN.md b/docs/POPUPS-PLAN.md index 32c0797..94e9a86 100644 --- a/docs/POPUPS-PLAN.md +++ b/docs/POPUPS-PLAN.md @@ -1,6 +1,6 @@ # Popups everywhere plan -Status: Step 0 done (not released; no visible change) · 2026-11-23 +Status: Step 0 and Hub 2.16.0 done; 2.17.0 next · 2026-11-23 Hub 2.14.0 added `Modal` and made every add or edit on the customer page a popup; 2.15.0 did the same for the install page. The rest of the Hub still opens forms inline: a form card above a list, a card diff --git a/frontend/package-lock.json b/frontend/package-lock.json index be33128..b657428 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "events-hub-frontend", - "version": "2.15.0", + "version": "2.16.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "events-hub-frontend", - "version": "2.15.0", + "version": "2.16.0", "dependencies": { "lucide-react": "^0.536.0", "next": "^15.5.24", diff --git a/frontend/package.json b/frontend/package.json index c017ed4..13fe4f6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "events-hub-frontend", - "version": "2.15.0", + "version": "2.16.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 fbcde03..9252925 100644 --- a/frontend/src/app/(hub)/billing/invoices/[id]/page.tsx +++ b/frontend/src/app/(hub)/billing/invoices/[id]/page.tsx @@ -8,59 +8,13 @@ import { api, errorText, openPdf } from "@/lib/api"; import { fmtDate } from "@/lib/format"; import { Loading, Message, PageTitle } from "@/components/ui"; import { EMAIL_KIND, METHOD, StateBadge, day, money, todayYmd, type BillingEmail, type Invoice, type LicenceChange } from "@/lib/billing"; -import { LinesEditor, editTotal, fromEdit, toEdit, type EditLine } from "@/components/billing/LinesEditor"; +import { LinesEditor, fromEdit, toEdit, type EditLine } from "@/components/billing/LinesEditor"; import { RecordPayment } from "@/components/billing/RecordPayment"; import { PRODUCT_NAMES } from "@/lib/products"; type Msg = { type: "ok" | "err"; text: string } | null; type Detail = Invoice & { licenceChanges: LicenceChange[]; emails: BillingEmail[] }; -/** A one-off invoice (standby support, set-up…), made as a draft. */ -function NewInvoice() { - const router = useRouter(); - const [customers, setCustomers] = useState<{ id: string; name: string }[]>([]); - const [form, setForm] = useState({ customerId: "", issueDate: todayYmd(), notes: "" }); - const [lines, setLines] = useState([{ description: "", quantity: "1", unit: "" }]); - const [msg, setMsg] = useState(null); - - useEffect(() => { - api<{ id: string; name: string }[]>("/api/admin/billing/customers").then(setCustomers).catch(e => setMsg({ type: "err", text: errorText(e) })); - const c = new URLSearchParams(window.location.search).get("customer"); - if (c) setForm(f => ({ ...f, customerId: c })); - }, []); - - const save = async (e: React.FormEvent) => { - e.preventDefault(); - try { - const inv = await api("/api/admin/billing/invoices", { method: "POST", body: { ...form, lines: fromEdit(lines) } }); - router.replace(`/billing/invoices/${inv.id}`); - } catch (err) { setMsg({ type: "err", text: errorText(err) }); } - }; - - return ( - <> - Billing - -
-
-
-
- - -
-
setForm({ ...form, issueDate: e.target.value })} required />
-
- -