Replace old notification handlers with smart reminder system

- Add TaskReminderLog to AutoMigrate (table was missing)
- Remove HandleTaskReminder and HandleOverdueReminder registrations
- Register HandleSmartReminder which uses frequency-aware scheduling
  and tracks sent reminders to prevent duplicates

The old handlers sent ALL overdue tasks daily regardless of age.
Smart reminder tapers off (daily for 3 days, then every 3 days, stops at 14).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-12-22 20:19:40 -06:00
parent 37a04db82e
commit 8962850003
2 changed files with 8 additions and 13 deletions

View File

@@ -144,6 +144,7 @@ func Migrate() error {
&models.NotificationPreference{},
&models.APNSDevice{},
&models.GCMDevice{},
&models.TaskReminderLog{}, // Smart reminder tracking
// Subscription tables
&models.SubscriptionSettings{},