Popup kit in components/ui.tsx; plan for popups everywhere

- ReadCard, Field, Fields and ModalButtons move from components/customer/ReadCard.tsx into
  components/ui.tsx, next to Modal, FormError and PageMessage.
- useSubmit moves from components/install/shared.ts into components/ui.tsx.
- The customer and install components import them from @/components/ui. No visible change.
- docs/POPUPS-PLAN.md: every inline add or edit left in the Hub, and the plan for 2.16.0 and 2.17.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 12:17:34 +02:00
co-authored by Claude Opus 5.5
parent 019b83cca3
commit 0e19005337
16 changed files with 180 additions and 96 deletions
@@ -3,8 +3,7 @@
import React, { useState } from "react";
import { api, errorText } from "@/lib/api";
import { CYCLE, day, type BillingCycle } from "@/lib/billing";
import { FormError, Modal } from "@/components/ui";
import { Field, Fields, ModalButtons, ReadCard } from "./ReadCard";
import { Field, Fields, FormError, Modal, ModalButtons, ReadCard } from "@/components/ui";
import { changed, type CustomerBillingData, type Done } from "./shared";
/** The church's billing schedule: one for all its products. The page holds the popup (the Next invoice popup opens it too). */