From accc963883d5e63a69e5e25bc9791da501e3177f Mon Sep 17 00:00:00 2001 From: Ryan Moon Date: Fri, 3 Apr 2026 18:00:46 -0500 Subject: [PATCH] fix: persist auth cookie across refreshes and add customer detail tracking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix cookie sameSite strict → lax so browser sends it on page refresh - Add customer name field (separate from slug) - Add steps JSONB column tracking per-step provisioning state (DB, User, Schema, Pool, Chart) - Insert customer record before provisioning starts so partial failures are visible - Show status + step checklist in customers table - Add DELETE /customers/:slug/record endpoint to clear failed records without touching infra - Add "Record Only" button in UI for manual cleanup of partial deployments --- frontend/index.html | 46 +++++++++++++++++++++++++---- src/db/manager.ts | 4 +++ src/routes/auth.ts | 2 +- src/routes/customers.ts | 65 ++++++++++++++++++++++++++++++++++------- 4 files changed, 100 insertions(+), 17 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 975c04d..1a8138c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -339,6 +339,8 @@ Slug + Name + Status Modules Start Expires @@ -348,7 +350,7 @@ - Loading… + Loading…