From 4168ccbedf129db096467c3cda13dddf7b27b4a5 Mon Sep 17 00:00:00 2001 From: Eric Harding Date: Sat, 11 Jul 2026 22:45:40 -0400 Subject: [PATCH] edit customer save button should return to customer list --- CLAUDE.md | 7 +++++++ public/css/style.css | 1 + src/routes/customers.ts | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 80fe69b..d0a3ab2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -91,6 +91,13 @@ scripts/backup.ts # nightly SQLite backup via better-sqlite3's backup API rather than a plain 3xx, since HTMX needs that header to force a full-page navigation after an XHR delete. +## Verifying UI changes + +Don't spin up Playwright/chromium-cli/headless-browser automation to verify +frontend changes in this repo. Make the code change, explain what you did and +why it should work, and ask the user (Dad's the only one who runs this app) +to check it in their own browser. + ## Data model notes worth remembering - `order_number` starts at 8247, is allocated via `MAX(order_number) + 1` in diff --git a/public/css/style.css b/public/css/style.css index 4295cfc..af19fde 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -164,6 +164,7 @@ input:focus, select:focus, textarea:focus { button, .button-link { font-family: var(--font-body); font-size: 0.95rem; + line-height: 1.4; background: var(--color-wood-mid); color: var(--color-text-on-dark); border: none; diff --git a/src/routes/customers.ts b/src/routes/customers.ts index 2916419..7be16e2 100644 --- a/src/routes/customers.ts +++ b/src/routes/customers.ts @@ -55,7 +55,7 @@ router.post('/:id/edit', (req, res) => { if (info.changes === 0) return res.status(404).send('Customer not found'); - res.redirect(303, `/customers/${req.params.id}/edit`); + res.redirect(303, '/customers'); }); export default router;