feat: add flexible reminder options for birthdays

Add support for customizable birthday reminders with preset offsets
(none, at time, 15min, 1h, 1d, 2d, 1w, 2w) and custom intervals.
Users can now configure when to be reminded of upcoming birthdays.

- Add migration 31: reminder_offset, reminder_custom_amount, reminder_custom_unit to birthdays table
- Update POST/PUT /birthdays routes to accept reminder fields
- Add getOffsetMinutes() helper in birthday service
- Update birthdayReminderAt() to calculate reminder time with offset
- Modify syncBirthdayReminder() to handle empty offset (no reminder)
- Add renderBirthdayReminderSection() UI component
- Move reminder-custom CSS from calendar.css to reminders.css
- Add protocol check to service worker (non-http protocol guard)

All translations already present in de.json.
Tests: 109 passing, 0 failing.

Co-Authored-By: Rafael Foster <rafaelfoster@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Ulas Kalayci
2026-05-04 20:31:42 +02:00
parent df45fba70e
commit 82a1f2c239
14 changed files with 1705 additions and 14 deletions
+1
View File
@@ -184,6 +184,7 @@ self.addEventListener('fetch', (event) => {
const { request } = event;
const url = new URL(request.url);
if (!url.protocol.startsWith('http')) return;
if (url.pathname.startsWith('/api/')) return;
if (request.method !== 'GET') return;