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>
This commit is contained in:
+5
-4
@@ -1,6 +1,6 @@
|
||||
# Popups everywhere plan
|
||||
|
||||
Status: Step 0 and Hub 2.16.0 done; 2.17.0 next · 2026-11-23
|
||||
Status: done in Hub 2.16.0 and 2.17.0 (Step 0 before them) · 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
|
||||
@@ -38,6 +38,7 @@ Paths are under `frontend/src/`.
|
||||
| 15 | `app/(hub)/servers/settings/page.tsx` | **Mark as taken** (a port): inline form |
|
||||
| 16 | `app/(hub)/installs/[id]/page.tsx` | **Clear public key**: two-factor form inside the card |
|
||||
| 17 | `app/(hub)/billing/invoices/[id]/page.tsx` | A draft or approved invoice is always editable on the page, with a "Save your changes first" guard before Approve |
|
||||
| 18 | `app/(hub)/installs/[id]/page.tsx` | **Notes**: textarea and Save notes, always open (found while building 2.17.0) |
|
||||
|
||||
Optional: **Void** and **Refund** on the invoice page ask for a reason or note with `prompt()`. They are
|
||||
small forms, but 2.15.0 left confirmations as they are.
|
||||
@@ -75,7 +76,7 @@ fades) instead of `Message`.
|
||||
- **One-off invoice**: Billing opens `OneOffInvoice`; with no `customerId` it shows a church picker.
|
||||
`/billing/invoices/new` redirects to `/billing?oneoff=1`, which opens the popup, and `NewInvoice` goes.
|
||||
|
||||
## Hub 2.17.0: server, settings and invoice pages (11-17)
|
||||
## Hub 2.17.0: server, settings and invoice pages (11-18)
|
||||
|
||||
- **Server configuration**: a read view (secrets as dots) with an Edit popup, as `EnvPanel` in 2.15.0.
|
||||
- **frp config**: the path, Use this path and Read now stay on the card, the file shows read-only, and
|
||||
@@ -83,10 +84,10 @@ fades) instead of `Message`.
|
||||
- **Update agent**: a small popup from the Actions card. Remove server is unchanged.
|
||||
- **Install defaults**: a read view with an Edit popup. **Mark as taken**: a button and a small popup.
|
||||
- **Clear public key**: a danger button opening a popup with the explanation and the two-factor code
|
||||
(`ModalButtons danger`).
|
||||
(`ModalButtons danger`). The install's **Notes** show as text with an Edit popup.
|
||||
- **Invoice**: always the read view (lines and totals), with **Edit** on drafts and approved invoices
|
||||
opening a wide popup (dates, recipient, `LinesEditor`, notes). The dirty guard on Approve goes.
|
||||
- Optional: **Void** and **Refund** as popups with a text field instead of `prompt()`.
|
||||
- **Void** and **Refund** as popups with a text field instead of `prompt()` (done in 2.17.0).
|
||||
|
||||
## Checks for every popup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user