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,10 +3,9 @@
import React, { useState } from "react";
import type { Release } from "@/lib/types";
import { PRODUCT_NAMES } from "@/lib/products";
import { FormError, Modal } from "@/components/ui";
import { FormError, Modal, ModalButtons, useSubmit } from "@/components/ui";
import { fromInput, toInput } from "@/components/servers";
import { ModalButtons } from "@/components/customer/ReadCard";
import { H, changed, post, productName, useSubmit, withWarnings, type Done, type Install } from "./shared";
import { H, changed, post, productName, withWarnings, type Done, type Install } from "./shared";
/**
* Schedule an update of one install: at a time at least 4 hours away (the church gets notice), or