managarten/apps/mana
Till JS a787a27daa feat(timeblocks): unified recurrence engine with rrule.js
Core recurrence engine:
- Add rrule.js dependency for RFC 5545 RRULE expansion
- recurrence.ts: expandRule(), materializeRecurringBlocks(30 days),
  regenerateForBlock(), cleanupFutureInstances(), deleteAllInstances()
- Virtual expansion: expandTemplatesVirtually() for calendar views >30 days
- HabitSchedule ↔ RRULE bidirectional conversion

Schema:
- Dexie v4: add parentBlockId, recurrenceDate, isRecurrenceException
  to timeBlocks with [parentBlockId+recurrenceDate] compound index
- LocalTimeBlock + TimeBlock types updated

Module changes:
- Todo: remove recurrenceRule from LocalTask/Task (lives on TimeBlock)
- Calendar: add parentBlockId to CalendarEvent, repeat icon on EventCard
- Startup: materializeRecurringBlocks(30) runs on calendar layout mount

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 19:49:57 +02:00
..
apps/web feat(timeblocks): unified recurrence engine with rrule.js 2026-04-05 19:49:57 +02:00