Anniversary categories (wedding, jubilee, own) and month grouping
- Birthday becomes "anniversary" with a category: birthday, wedding
anniversary (with Silver/Gold/... names), jubilee, memorial day
- Own categories: Settings > Categories (icon, color, text with {0}/{o})
- Sidebar "Categories" lists anniversaries across folders with counts
- Group by month (any view), groups fold with a click
- Folders named Hochzeit/Wedding migrate yearly tasks once
- Old files keep working (JSON "IsBirthday" maps to IsAnniversary)
- 74 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#nullable enable
|
||||
#nullable enable
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
@@ -28,7 +28,7 @@ namespace ReminderOrganizer.Services
|
||||
Line("BEGIN:VEVENT");
|
||||
Line($"UID:{t.Id}@reminder-organizer");
|
||||
Line($"DTSTAMP:{stamp}");
|
||||
if (t.IsBirthday)
|
||||
if (t.IsAnniversary)
|
||||
{
|
||||
// all-day event
|
||||
Line($"DTSTART;VALUE=DATE:{t.ReminderDate.ToString("yyyyMMdd", CultureInfo.InvariantCulture)}");
|
||||
@@ -58,7 +58,7 @@ namespace ReminderOrganizer.Services
|
||||
Line("ACTION:DISPLAY");
|
||||
Line($"DESCRIPTION:{Escape(t.Name)}");
|
||||
// all-day events start at midnight: remind at 09:00 (same day or lead days before)
|
||||
Line(t.IsBirthday
|
||||
Line(t.IsAnniversary
|
||||
? (t.LeadDays > 0 ? $"TRIGGER:-P{t.LeadDays - 1}DT15H" : "TRIGGER:PT9H")
|
||||
: (t.LeadDays > 0 ? $"TRIGGER:-P{t.LeadDays}D" : "TRIGGER:PT0M"));
|
||||
Line("END:VALARM");
|
||||
|
||||
Reference in New Issue
Block a user