From 626459322fee7a3970daa59f250b2eecfb6a6adb Mon Sep 17 00:00:00 2001 From: null Date: Mon, 8 Jun 2026 12:24:51 -0500 Subject: [PATCH] fix(tracker): live sync label truncation and due_day fallback on partial update - Shorten 'Live Sync' label to 'Live' for space-constrained layouts - Add existing bill due_day fallback in validateBillData to prevent spurious required-field errors during partial PATCH updates (batch 0.37.2) --- client/pages/TrackerPage.jsx | 2 +- services/billsService.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/client/pages/TrackerPage.jsx b/client/pages/TrackerPage.jsx index 363fc75..67bc4a8 100644 --- a/client/pages/TrackerPage.jsx +++ b/client/pages/TrackerPage.jsx @@ -813,7 +813,7 @@ export default function TrackerPage() { - Live Sync + Live

diff --git a/services/billsService.js b/services/billsService.js index 31fa0a5..3922205 100644 --- a/services/billsService.js +++ b/services/billsService.js @@ -254,9 +254,13 @@ function validateBillData(data, existingBill = null) { } normalized.name = nameVal || null; - // due_day is required + // due_day is required; fall back to existing value on partial updates if (data.due_day === undefined || data.due_day === null) { - errors.push({ field: 'due_day', message: 'due_day is required' }); + if (existingBill?.due_day != null) { + normalized.due_day = existingBill.due_day; + } else { + errors.push({ field: 'due_day', message: 'due_day is required' }); + } } else { const dueResult = parseDueDay(data.due_day); if (dueResult.error) {