Commit Graph
3 Commits
Author SHA1 Message Date
joshuaandClaude Opus 5.5 691f46844d Hub 2.17.0: popups on the server, settings, install and invoice pages
- Server page: Configuration is a read view with an Edit popup; Update agent is a popup.
- frp config: the file shows read-only; Edit opens it in a popup with Restart, the two-factor
  code and Save on the server (its confirmation unchanged).
- Ports & defaults: install defaults, port range and central IP as a read view with an Edit popup;
  Mark as taken is a popup from the port list.
- Install page (/installs/[id]): Clear public key is a popup with the two-factor code; the notes
  are a read view with an Edit popup; the page message is under the header.
- Invoice: always the read view; Edit (draft, approved) opens a popup, so Approve no longer needs
  a save first. Void and Refund are popups instead of prompt().
- docs/POPUPS-PLAN.md done. Frontend only: no migration, no API changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:42:52 +02:00
joshuaandClaude Opus 5.5 97ae79f4c2 Hub 2.16.0: popups for every add and edit on the list pages
- Add server, Add customer, New install and Link existing open in popups (Modal from 2.14.0):
  ask before discarding, error by the button; saving still opens the new page.
- Add server: the join command in the same popup; closing before Copy asks first (Modal's
  `dirty` can now be the question to ask).
- Notices and Releases: one popup for new and edit (NoticeModal, ReleaseModal); the cards are read
  views. Release sources: a table with Sync now and Use the defaults; Edit opens the rows and the
  access token in a popup and saving syncs.
- One-off invoice on Billing is the OneOffInvoice popup with a church picker; NewInvoice goes and
  /billing/invoices/new opens the popup (/billing?oneoff=1).
- These pages use PageMessage. Frontend only: no migration, no API changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:34:22 +02:00
joshuaandClaude Opus 5.5 0e19005337 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>
2026-11-23 12:17:34 +02:00