From 2f2646fb78c584f56633d020646512f1f2a3dc20 Mon Sep 17 00:00:00 2001 From: Steve Dogiakos Date: Wed, 18 Mar 2026 10:56:05 -0600 Subject: [PATCH] Add one-off next check number override Pencil button next to "Next check: X" in the header opens a modal with a warning about sequence gaps/duplicates. Saves via new PUT /api/account/:id/check-no endpoint (sets current_check_no = next - 1). --- public/css/style.css | 20 +++++++++++++++++ public/index.html | 25 ++++++++++++++++++++- public/js/app.js | 53 ++++++++++++++++++++++++++++++++++++++++++++ src/app.js | 18 +++++++++++++++ 4 files changed, 115 insertions(+), 1 deletion(-) diff --git a/public/css/style.css b/public/css/style.css index 62ab98f..5175b70 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -64,6 +64,26 @@ header { line-height: 1.4; } .btn-header-icon:hover { background: rgba(255,255,255,0.28); } +.btn-header-inline { + background: none; + border: none; + color: rgba(255,255,255,0.5); + font-size: 11px; + cursor: pointer; + padding: 0 0 0 4px; + line-height: 1; + vertical-align: middle; +} +.btn-header-inline:hover { color: #fff; } +.warning-box { + background: #fef9c3; + border: 1px solid #ca8a04; + border-radius: 4px; + padding: 10px 12px; + font-size: 12px; + color: #713f12; + line-height: 1.5; +} /* ── Toolbar ── */ .toolbar { diff --git a/public/index.html b/public/index.html index 8631f25..9455227 100644 --- a/public/index.html +++ b/public/index.html @@ -13,7 +13,7 @@ - Next check: + Next check: @@ -383,6 +383,29 @@ + + + +