The notifier used a hard-coded 3-day early reminder and never read reminder_days_before, so the modal's 'Reminder Days' control was a no-op. The early reminder now fires at the bill's own lead (>= 2 days so it never collides with the 1-day/same-day reminders); email subject+body say 'due in N days'. Lead-time selection extracted to a pure exported reminderTypeFor() for unit testing. The Reminder Days control now shows for every bill and a non-subscription save no longer clobbers the column to 3. Test: tests/notificationLeadTime.test.js Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| pages | ||
| public/img | ||
| App.jsx | ||
| api.js | ||
| index.css | ||
| main.jsx | ||