From e4feafa82b307a5fa2e06fdce14b05be2894c25a Mon Sep 17 00:00:00 2001 From: Steve Dogiakos Date: Wed, 18 Mar 2026 21:15:05 -0600 Subject: [PATCH] Add Delete Account button with confirmation modal Red "Delete Account" button at top of Account Settings. Clicking opens a second modal with an irreversibility warning and the account name, requiring a second explicit confirmation before deletion. Deletes the account row plus all associated checks and deposits. Redirects to the setup wizard if no accounts remain. --- public/css/style.css | 3 +++ public/index.html | 23 +++++++++++++++++++++++ public/js/app.js | 40 ++++++++++++++++++++++++++++++++++++++++ src/app.js | 16 ++++++++++++++++ 4 files changed, 82 insertions(+) diff --git a/public/css/style.css b/public/css/style.css index c920b5c..ce048ad 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -174,6 +174,9 @@ button:disabled { opacity: 0.45; cursor: not-allowed; } .btn-ghost { background: transparent; color: var(--text-muted); } .btn-ghost:hover { color: var(--text); background: var(--bg); } +.btn-danger { background: #dc2626; color: #fff; font-weight: 500; } +.btn-danger:not(:disabled):hover { background: #b91c1c; } +.delete-account-row { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); } .btn-icon { background: transparent; diff --git a/public/index.html b/public/index.html index 2e8c028..7d6bd99 100644 --- a/public/index.html +++ b/public/index.html @@ -300,6 +300,10 @@ + + + +