Add user preference for "due soon" warning threshold
Currently, the warning threshold is hardcoded at 0.2 (20%) in src/lib/db/repositories/maintenance.ts:629, as the TODO comment at line 628 mentions this. It's 500km/7 days absolute minimums when intervals are small. Users may or may not have different preferences for how early they want to be warned:
- Some want warning at 20% before due
- Others only want to know when truly due or slightly before
- Some prefer earlier warnings to plan ahead
This could be exposed as a user preference in profile settings, with options like "Conservative" (notify only when close), "Balanced" (default, current behavior), or "Early" (notify well in advance), but can be discussed.
Add user preference for "due soon" warning threshold
Currently, the warning threshold is hardcoded at 0.2 (20%) in
src/lib/db/repositories/maintenance.ts:629, as the TODO comment at line 628 mentions this. It's 500km/7 days absolute minimums when intervals are small. Users may or may not have different preferences for how early they want to be warned:This could be exposed as a user preference in profile settings, with options like "Conservative" (notify only when close), "Balanced" (default, current behavior), or "Early" (notify well in advance), but can be discussed.