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
@@ -9,8 +9,7 @@ import { ago, fmtDate } from "@/lib/format";
import { KEY_WHERE, PRODUCT_NAMES } from "@/lib/products";
import { PLANS_BY_PRODUCT } from "@/lib/tiers";
import type { Licence, LicenceStatus } from "@/lib/types";
import { Badge, FormError, Menu, Modal } from "@/components/ui";
import { ModalButtons } from "./ReadCard";
import { Badge, FormError, Menu, Modal, ModalButtons } from "@/components/ui";
import { changed, dateInput, endOfDay, reportText, suggestedTier, type BillingLicence, type Done, type Plan } from "./shared";
const HEARTBEAT = "The site picks it up with its next heartbeat (within 15 minutes).";