Birthday entry type, relative dates, list/compact/cards views

- Task dialog: Appointment | Birthday switch. Birthday = name + "19.03." or
  "19.03.1986" (no time), live preview with weekday, age and days left
- Birthday folders open the birthday form; yearly tasks in such folders are
  migrated once
- Birthdays show "19. Maerz" instead of date + time; every task shows
  "in 15 days" / "3 days ago" (red when overdue)
- View switch: list, compact (one line), cards (calendar tiles), persisted
- ICS: birthdays as all-day events
- 59 tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-29 14:42:16 +01:00
parent 693d79019a
commit bb6612420d
28 changed files with 985 additions and 176 deletions

View File

@@ -1,12 +1,14 @@
{ {
"status": "done", "status": "archived",
"priority": "medium", "priority": "medium",
"notes": "", "notes": "",
"description": "",
"tags": [], "tags": [],
"tasks": [], "tasks": [],
"thumbnail": "", "thumbnail": "",
"start": "", "start": "",
"program": "", "program": "publish\\ReminderOrganizer.exe",
"itch": "", "itch": "",
"updatedAt": "2026-11-11T09:23:52.594Z" "favorite": false,
"updatedAt": "2026-11-25T19:31:06.667Z"
} }

49
Core/BirthdayInput.cs Normal file
View File

@@ -0,0 +1,49 @@
#nullable enable
using System;
using System.Globalization;
using System.Text.RegularExpressions;
namespace ReminderOrganizer.Core
{
/// <summary>Parses quick birthday input: "19.3", "19.03.", "19.03.1986", "19.3.86", "1986-03-19".</summary>
public static class BirthdayInput
{
private static readonly Regex DayMonthYear = new(@"^\s*(\d{1,2})\s*[./\-\s]\s*(\d{1,2})\s*\.?\s*(?:[./\-\s]?\s*(\d{2}|\d{4}))?\s*$");
private static readonly Regex Iso = new(@"^\s*(\d{4})-(\d{1,2})-(\d{1,2})\s*$");
public static bool TryParse(string? text, DateTime today, out int day, out int month, out int? year)
{
day = month = 0;
year = null;
if (string.IsNullOrWhiteSpace(text)) return false;
var m = Iso.Match(text);
if (m.Success)
{
year = int.Parse(m.Groups[1].Value, CultureInfo.InvariantCulture);
month = int.Parse(m.Groups[2].Value, CultureInfo.InvariantCulture);
day = int.Parse(m.Groups[3].Value, CultureInfo.InvariantCulture);
}
else
{
m = DayMonthYear.Match(text);
if (!m.Success) return false;
day = int.Parse(m.Groups[1].Value, CultureInfo.InvariantCulture);
month = int.Parse(m.Groups[2].Value, CultureInfo.InvariantCulture);
if (m.Groups[3].Success)
{
int y = int.Parse(m.Groups[3].Value, CultureInfo.InvariantCulture);
if (m.Groups[3].Value.Length == 2)
y += y > today.Year % 100 ? 1900 : 2000; // "86" → 1986, "05" → 2005
year = y;
}
}
if (month < 1 || month > 12) return false;
if (day < 1 || day > DateTime.DaysInMonth(2000, month)) return false; // 2000: leap year, allows 29.02.
if (year is int yy && (yy < 1900 || yy > today.Year)) return false;
if (year is int y2 && day > DateTime.DaysInMonth(y2, month)) return false;
return true;
}
}
}

View File

@@ -121,5 +121,21 @@
"BucketTomorrow": "MORGEN", "BucketTomorrow": "MORGEN",
"BucketThisWeek": "NÄCHSTE 7 TAGE", "BucketThisWeek": "NÄCHSTE 7 TAGE",
"BucketLater": "SPÄTER", "BucketLater": "SPÄTER",
"BucketDone": "ERLEDIGT" "BucketDone": "ERLEDIGT",
"TypeAppointment": "Termin",
"TypeBirthday": "Geburtstag",
"BirthdayDate": "Geburtstag",
"BirthdayHint": "z. B. 19.03. oder 19.03.1986 – das Jahr ist optional",
"BirthdayInvalid": "Datum nicht erkannt – bitte TT.MM. oder TT.MM.JJJJ",
"Note": "Notiz",
"NewBirthday": "Neuer Geburtstag",
"EditBirthday": "Geburtstag bearbeiten",
"RelToday": "heute",
"RelTomorrow": "morgen",
"RelYesterday": "gestern",
"RelInDays": "in {0} Tagen",
"RelDaysAgo": "vor {0} Tagen",
"ViewList": "Liste",
"ViewCompact": "Kompakt",
"ViewCards": "Kacheln"
} }

View File

@@ -121,5 +121,21 @@
"BucketTomorrow": "TOMORROW", "BucketTomorrow": "TOMORROW",
"BucketThisWeek": "NEXT 7 DAYS", "BucketThisWeek": "NEXT 7 DAYS",
"BucketLater": "LATER", "BucketLater": "LATER",
"BucketDone": "DONE" "BucketDone": "DONE",
"TypeAppointment": "Appointment",
"TypeBirthday": "Birthday",
"BirthdayDate": "Date of birth",
"BirthdayHint": "e.g. 19.03. or 19.03.1986 – the year is optional",
"BirthdayInvalid": "Date not recognized – please use DD.MM. or DD.MM.YYYY",
"Note": "Note",
"NewBirthday": "New birthday",
"EditBirthday": "Edit birthday",
"RelToday": "today",
"RelTomorrow": "tomorrow",
"RelYesterday": "yesterday",
"RelInDays": "in {0} days",
"RelDaysAgo": "{0} days ago",
"ViewList": "List",
"ViewCompact": "Compact",
"ViewCards": "Cards"
} }

View File

@@ -1,4 +1,4 @@
<Window x:Class="ReminderOrganizer.MainWindow" <Window x:Class="ReminderOrganizer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:models="clr-namespace:ReminderOrganizer.Models" xmlns:models="clr-namespace:ReminderOrganizer.Models"
@@ -43,6 +43,335 @@
<!-- Folder outline icon (16x16) --> <!-- Folder outline icon (16x16) -->
<Geometry x:Key="FolderGeometry">M1.5,3.5 L6,3.5 L7.5,5 L14.5,5 L14.5,13.5 L1.5,13.5 Z</Geometry> <Geometry x:Key="FolderGeometry">M1.5,3.5 L6,3.5 L7.5,5 L14.5,5 L14.5,13.5 L1.5,13.5 Z</Geometry>
<!-- ===== Task row templates (list / compact / cards) ===== -->
<!-- relative date: red when overdue, accent when within 7 days -->
<Style x:Key="RelText" TargetType="TextBlock">
<Setter Property="FontSize" Value="11"/>
<Setter Property="Foreground" Value="{DynamicResource TextSecondaryBrush}"/>
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeDate}" Value="">
<Setter Property="Visibility" Value="Collapsed"/>
</DataTrigger>
<DataTrigger Binding="{Binding ReminderDate, Converter={StaticResource DatePassed}}" Value="True">
<Setter Property="Foreground" Value="{DynamicResource DangerBrush}"/>
</DataTrigger>
</Style.Triggers>
</Style>
<Style x:Key="RowIcon" TargetType="Button">
<Setter Property="FontFamily" Value="Segoe MDL2 Assets"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{DynamicResource TextSecondaryBrush}"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="Padding" Value="5,3"/>
<Setter Property="Opacity" Value="0.55"/>
<Setter Property="CommandParameter" Value="{Binding}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="Transparent" Padding="{TemplateBinding Padding}">
<ContentPresenter/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="1"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
<!-- Compact: one line per task -->
<DataTemplate x:Key="CompactRow">
<Border CornerRadius="6" Margin="0,0" Padding="14,4" MinHeight="30" Cursor="Hand" Background="Transparent"
MouseLeftButtonDown="TaskItem_Click" MouseMove="TaskItem_MouseMove"
MouseEnter="TaskItem_MouseEnter" MouseLeave="TaskItem_MouseLeave">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="110"/>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="74"/>
</Grid.ColumnDefinitions>
<Ellipse Width="7" Height="7" HorizontalAlignment="Left" VerticalAlignment="Center"
Fill="{Binding FolderColor, Converter={StaticResource HexToBrush}}"/>
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
<StackPanel.Style>
<Style TargetType="StackPanel">
<Style.Triggers>
<DataTrigger Binding="{Binding IsNotified}" Value="True">
<Setter Property="Opacity" Value="0.5"/>
</DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<TextBlock Text="{Binding Name}" FontSize="13" Foreground="{DynamicResource TextPrimaryBrush}" TextTrimming="CharacterEllipsis"/>
<TextBlock Text="{Binding AgeText}" FontSize="11.5" Margin="8,0,0,0" VerticalAlignment="Center" Foreground="{DynamicResource BadgeTextBrush}" FontWeight="SemiBold"/>
<TextBlock Text="{Binding Description}" FontSize="11.5" Margin="10,0,0,0" VerticalAlignment="Center"
Foreground="{DynamicResource TextSecondaryBrush}" TextTrimming="CharacterEllipsis"/>
</StackPanel>
<TextBlock Grid.Column="2" Text="{Binding RelativeDate}" Style="{StaticResource RelText}" VerticalAlignment="Center"/>
<TextBlock Grid.Column="3" Text="{Binding DisplayDate}" FontSize="12" VerticalAlignment="Center" Foreground="{DynamicResource TextSecondaryBrush}"/>
<StackPanel Grid.Column="4" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<CheckBox IsChecked="{Binding IsNotified, Mode=TwoWay}" Style="{DynamicResource DoneCheck}" Margin="0,0,4,0"
Command="{Binding DataContext.ToggleDoneCommand, RelativeSource={RelativeSource AncestorType=Window}}" CommandParameter="{Binding}"
ToolTip="{Binding DataContext[DoneTooltip], RelativeSource={RelativeSource AncestorType=Window}}">
<CheckBox.LayoutTransform><ScaleTransform ScaleX="0.8" ScaleY="0.8"/></CheckBox.LayoutTransform>
</CheckBox>
<Button Content="&#xE70F;" Style="{StaticResource RowIcon}"
Command="{Binding DataContext.EditTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
ToolTip="{Binding DataContext[EditTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
<Button Content="&#xE74D;" Style="{StaticResource RowIcon}"
Command="{Binding DataContext.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
ToolTip="{Binding DataContext[DeleteTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
</StackPanel>
</Grid>
</Border>
</DataTemplate>
<!-- Cards: calendar-style tile, great for birthdays -->
<DataTemplate x:Key="CardItem">
<Border Width="214" Margin="0,0,12,12" CornerRadius="12" BorderThickness="1" Cursor="Hand"
BorderBrush="{DynamicResource BorderBrush}" Background="{DynamicResource CardBrush}"
MouseLeftButtonDown="TaskItem_Click" MouseMove="TaskItem_MouseMove">
<Border.Style>
<Style TargetType="Border">
<Style.Triggers>
<DataTrigger Binding="{Binding IsNotified}" Value="True">
<Setter Property="Opacity" Value="0.55"/>
</DataTrigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
</Border.Style>
<Grid Margin="12">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="52"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- calendar sheet -->
<Border Grid.RowSpan="2" Width="52" Height="56" CornerRadius="10" VerticalAlignment="Top"
Background="{Binding FolderColor, Converter={StaticResource HexToBrush}, ConverterParameter=0.18}">
<StackPanel VerticalAlignment="Center">
<TextBlock Text="{Binding DayText}" FontSize="22" FontWeight="Bold" HorizontalAlignment="Center"
Foreground="{Binding FolderColor, Converter={StaticResource HexToBrush}}"/>
<TextBlock Text="{Binding MonthText}" FontSize="10" FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0,-2,0,0"
Foreground="{DynamicResource TextSecondaryBrush}"/>
</StackPanel>
</Border>
<StackPanel Grid.Column="1" Margin="10,0,0,0">
<TextBlock Text="{Binding Name}" FontSize="13.5" FontWeight="SemiBold" TextTrimming="CharacterEllipsis"
Foreground="{DynamicResource TextPrimaryBrush}" ToolTip="{Binding Name}"/>
<StackPanel Orientation="Horizontal" Margin="0,3,0,0">
<Border CornerRadius="8" Padding="7,0" Margin="0,0,6,0" Background="{DynamicResource BadgeBrush}"
Visibility="{Binding AgeText, Converter={StaticResource StringToVisibility}}">
<TextBlock Text="{Binding AgeText}" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource BadgeTextBrush}"/>
</Border>
<TextBlock Text="{Binding RelativeDate}" Style="{StaticResource RelText}" VerticalAlignment="Center"/>
</StackPanel>
<TextBlock Text="{Binding Description}" FontSize="11" Margin="0,4,0,0" TextTrimming="CharacterEllipsis"
Foreground="{DynamicResource TextSecondaryBrush}"
Visibility="{Binding Description, Converter={StaticResource StringToVisibility}}"/>
</StackPanel>
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,6,-4,-4">
<CheckBox IsChecked="{Binding IsNotified, Mode=TwoWay}" Style="{DynamicResource DoneCheck}" Margin="0,0,4,0"
Command="{Binding DataContext.ToggleDoneCommand, RelativeSource={RelativeSource AncestorType=Window}}" CommandParameter="{Binding}"
ToolTip="{Binding DataContext[DoneTooltip], RelativeSource={RelativeSource AncestorType=Window}}">
<CheckBox.LayoutTransform><ScaleTransform ScaleX="0.8" ScaleY="0.8"/></CheckBox.LayoutTransform>
</CheckBox>
<Button Content="&#xE70F;" Style="{StaticResource RowIcon}"
Command="{Binding DataContext.EditTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
ToolTip="{Binding DataContext[EditTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
<Button Content="&#xE74D;" Style="{StaticResource RowIcon}"
Command="{Binding DataContext.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
ToolTip="{Binding DataContext[DeleteTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
</StackPanel>
</Grid>
</Border>
</DataTemplate>
<ItemsPanelTemplate x:Key="StackItems"><VirtualizingStackPanel/></ItemsPanelTemplate>
<ItemsPanelTemplate x:Key="WrapItems"><WrapPanel Margin="8,8,0,0"/></ItemsPanelTemplate>
<DataTemplate x:Key="ListRow">
<!-- compact table row: no box, divider line, hover background -->
<Border x:Name="taskBorder" CornerRadius="8" Margin="0,1" Padding="14,7" MinHeight="40"
MouseLeftButtonDown="TaskItem_Click"
MouseMove="TaskItem_MouseMove"
MouseEnter="TaskItem_MouseEnter"
MouseLeave="TaskItem_MouseLeave"
Cursor="Hand"
Background="Transparent">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="170"/>
<ColumnDefinition Width="96"/>
</Grid.ColumnDefinitions>
<!-- Status Indicator -->
<Ellipse Grid.Column="0" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Center">
<Ellipse.Style>
<Style TargetType="Ellipse">
<Setter Property="Fill" Value="{DynamicResource SecondaryBrush}"/>
<Style.Triggers>
<!-- later trigger wins: done (grey) beats overdue (red) -->
<DataTrigger Binding="{Binding ReminderDate, Converter={StaticResource DatePassed}}" Value="True">
<Setter Property="Fill" Value="{DynamicResource DangerBrush}"/>
</DataTrigger>
<DataTrigger Binding="{Binding IsNotified}" Value="True">
<Setter Property="Fill" Value="{DynamicResource TextSecondaryBrush}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Ellipse.Style>
</Ellipse>
<!-- Task Info -->
<StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0,0,12,0">
<StackPanel.Style>
<Style TargetType="StackPanel">
<Style.Triggers>
<DataTrigger Binding="{Binding IsNotified}" Value="True">
<Setter Property="Opacity" Value="0.5"/>
</DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" FontSize="13" FontWeight="SemiBold" TextTrimming="CharacterEllipsis"
Foreground="{DynamicResource TextPrimaryBrush}"/>
<TextBlock Text="&#xE8EE;" FontFamily="Segoe MDL2 Assets" FontSize="11" Margin="8,0,0,0" VerticalAlignment="Center"
Foreground="{DynamicResource PrimaryBrush}"
Visibility="{Binding IsRecurring, Converter={StaticResource BoolToVisibility}}"
ToolTip="{Binding DataContext[RecurringTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
<!-- birthday age -->
<Border Margin="8,0,0,0" CornerRadius="8" Padding="7,0" VerticalAlignment="Center" Background="{DynamicResource BadgeBrush}"
Visibility="{Binding AgeText, Converter={StaticResource StringToVisibility}}">
<TextBlock Text="{Binding AgeText}" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource BadgeTextBrush}"/>
</Border>
<!-- lead reminder -->
<TextBlock Text="&#xE916;" FontFamily="Segoe MDL2 Assets" FontSize="11" Margin="8,0,0,0" VerticalAlignment="Center"
Foreground="{DynamicResource TextSecondaryBrush}"
Visibility="{Binding LeadDays, Converter={StaticResource CountToVisibility}}"
ToolTip="{Binding DataContext[LeadReminder], RelativeSource={RelativeSource AncestorType=Window}}"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,1,0,0">
<!-- folder tag (only in "Upcoming") -->
<StackPanel Orientation="Horizontal" Margin="0,0,8,0"
Visibility="{Binding DataContext.IsUpcomingMode, RelativeSource={RelativeSource AncestorType=Window}, Converter={StaticResource BoolToVisibility}}">
<Ellipse Width="7" Height="7" Fill="{Binding FolderColor, Converter={StaticResource HexToBrush}}" VerticalAlignment="Center"/>
<TextBlock Text="{Binding FolderName}" FontSize="11.5" Margin="5,0,0,0" Foreground="{DynamicResource TextSecondaryBrush}"/>
<TextBlock Text=" ·" FontSize="11.5" Foreground="{DynamicResource TextSecondaryBrush}"
Visibility="{Binding Description, Converter={StaticResource StringToVisibility}}"/>
</StackPanel>
<TextBlock Text="{Binding Description}" FontSize="11.5"
Foreground="{DynamicResource TextSecondaryBrush}"
TextTrimming="CharacterEllipsis"
Visibility="{Binding Description, Converter={StaticResource StringToVisibility}}"/>
</StackPanel>
</StackPanel>
<!-- Date -->
<StackPanel Grid.Column="2" VerticalAlignment="Center">
<StackPanel Orientation="Horizontal">
<TextBlock Text="&#xE823;" FontFamily="Segoe MDL2 Assets" FontSize="12" Margin="0,0,8,0" VerticalAlignment="Center"
Foreground="{DynamicResource TextSecondaryBrush}"/>
<TextBlock Text="{Binding DisplayDate}" FontSize="12" Foreground="{DynamicResource TextPrimaryBrush}"/>
</StackPanel>
<TextBlock Text="{Binding RelativeDate}" Style="{StaticResource RelText}" Margin="20,1,0,0"/>
</StackPanel>
<!-- Done, Edit & Delete -->
<StackPanel Grid.Column="3" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
<CheckBox IsChecked="{Binding IsNotified, Mode=TwoWay}" VerticalAlignment="Center" Margin="0,0,10,0"
Style="{DynamicResource DoneCheck}"
Command="{Binding DataContext.ToggleDoneCommand, RelativeSource={RelativeSource AncestorType=Window}}"
CommandParameter="{Binding}"
ToolTip="{Binding DataContext[DoneTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
<Button Content="&#xE70F;" FontFamily="Segoe MDL2 Assets"
Command="{Binding DataContext.EditTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
CommandParameter="{Binding}"
Background="Transparent" BorderThickness="0"
Foreground="{DynamicResource TextSecondaryBrush}"
Cursor="Hand" FontSize="13" Padding="6,4"
ToolTip="{Binding DataContext[EditTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Opacity" Value="0.5"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="1"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Content="&#xE74D;" FontFamily="Segoe MDL2 Assets"
Command="{Binding DataContext.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
CommandParameter="{Binding}"
Background="Transparent" BorderThickness="0"
Foreground="{DynamicResource TextSecondaryBrush}"
Cursor="Hand" FontSize="13" Padding="6,4"
ToolTip="{Binding DataContext[DeleteTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Opacity" Value="0.5"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="1"/>
<Setter Property="Foreground" Value="{DynamicResource DangerBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</StackPanel>
</Grid>
</Border>
</DataTemplate>
<Style x:Key="ViewToggle" TargetType="RadioButton">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontFamily" Value="Segoe MDL2 Assets"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="Foreground" Value="{DynamicResource TextSecondaryBrush}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border x:Name="bd" Width="30" Height="26" CornerRadius="6" Background="Transparent">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource HoverBrush}"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource PrimaryBrush}"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Segmented filter chip --> <!-- Segmented filter chip -->
<Style x:Key="FilterChip" TargetType="RadioButton"> <Style x:Key="FilterChip" TargetType="RadioButton">
<Setter Property="Cursor" Value="Hand"/> <Setter Property="Cursor" Value="Hand"/>
@@ -754,6 +1083,16 @@
</CheckBox.Template> </CheckBox.Template>
<TextBlock Text="{Binding [HideDone]}" Foreground="{DynamicResource TextSecondaryBrush}"/> <TextBlock Text="{Binding [HideDone]}" Foreground="{DynamicResource TextSecondaryBrush}"/>
</CheckBox> </CheckBox>
<!-- View switch: list / compact / cards -->
<Border DockPanel.Dock="Right" Margin="0,0,16,0" CornerRadius="8" Padding="2" VerticalAlignment="Center"
Background="{DynamicResource CardBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1">
<StackPanel Orientation="Horizontal">
<RadioButton GroupName="view" IsChecked="{Binding IsViewList}" Style="{StaticResource ViewToggle}" Content="&#xE8FD;" ToolTip="{Binding [ViewList]}"/>
<RadioButton GroupName="view" IsChecked="{Binding IsViewCompact}" Style="{StaticResource ViewToggle}" Content="&#xE700;" ToolTip="{Binding [ViewCompact]}"/>
<RadioButton GroupName="view" IsChecked="{Binding IsViewCards}" Style="{StaticResource ViewToggle}" Content="&#xF0E2;" ToolTip="{Binding [ViewCards]}"/>
</StackPanel>
</Border>
</DockPanel> </DockPanel>
<!-- Tasks List --> <!-- Tasks List -->
@@ -767,7 +1106,8 @@
</Grid.RowDefinitions> </Grid.RowDefinitions>
<!-- Header --> <!-- Header -->
<Border Grid.Row="0" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1" Margin="0" Padding="14,2,14,8"> <Border Grid.Row="0" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1" Margin="0" Padding="14,2,14,8"
Visibility="{Binding IsViewList, Converter={StaticResource BoolToVisibility}}">
<Grid> <Grid>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/> <ColumnDefinition Width="20"/>
@@ -785,6 +1125,21 @@
<!-- Tasks --> <!-- Tasks -->
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto"> <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<ItemsControl ItemsSource="{Binding TasksView}" Margin="0,4,0,0"> <ItemsControl ItemsSource="{Binding TasksView}" Margin="0,4,0,0">
<ItemsControl.Style>
<Style TargetType="ItemsControl">
<Setter Property="ItemTemplate" Value="{StaticResource ListRow}"/>
<Setter Property="ItemsPanel" Value="{StaticResource StackItems}"/>
<Style.Triggers>
<DataTrigger Binding="{Binding ViewMode}" Value="compact">
<Setter Property="ItemTemplate" Value="{StaticResource CompactRow}"/>
</DataTrigger>
<DataTrigger Binding="{Binding ViewMode}" Value="cards">
<Setter Property="ItemTemplate" Value="{StaticResource CardItem}"/>
<Setter Property="ItemsPanel" Value="{StaticResource WrapItems}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</ItemsControl.Style>
<ItemsControl.GroupStyle> <ItemsControl.GroupStyle>
<GroupStyle> <GroupStyle>
<GroupStyle.HeaderTemplate> <GroupStyle.HeaderTemplate>
@@ -799,145 +1154,7 @@
</GroupStyle.HeaderTemplate> </GroupStyle.HeaderTemplate>
</GroupStyle> </GroupStyle>
</ItemsControl.GroupStyle> </ItemsControl.GroupStyle>
<ItemsControl.ItemTemplate>
<DataTemplate>
<!-- compact table row: no box, divider line, hover background -->
<Border x:Name="taskBorder" CornerRadius="8" Margin="0,1" Padding="14,7" MinHeight="40"
MouseLeftButtonDown="TaskItem_Click"
MouseMove="TaskItem_MouseMove"
MouseEnter="TaskItem_MouseEnter"
MouseLeave="TaskItem_MouseLeave"
Cursor="Hand"
Background="Transparent">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="170"/>
<ColumnDefinition Width="96"/>
</Grid.ColumnDefinitions>
<!-- Status Indicator -->
<Ellipse Grid.Column="0" Width="8" Height="8" HorizontalAlignment="Left" VerticalAlignment="Center">
<Ellipse.Style>
<Style TargetType="Ellipse">
<Setter Property="Fill" Value="{DynamicResource SecondaryBrush}"/>
<Style.Triggers>
<!-- later trigger wins: done (grey) beats overdue (red) -->
<DataTrigger Binding="{Binding ReminderDate, Converter={StaticResource DatePassed}}" Value="True">
<Setter Property="Fill" Value="{DynamicResource DangerBrush}"/>
</DataTrigger>
<DataTrigger Binding="{Binding IsNotified}" Value="True">
<Setter Property="Fill" Value="{DynamicResource TextSecondaryBrush}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Ellipse.Style>
</Ellipse>
<!-- Task Info -->
<StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0,0,12,0">
<StackPanel.Style>
<Style TargetType="StackPanel">
<Style.Triggers>
<DataTrigger Binding="{Binding IsNotified}" Value="True">
<Setter Property="Opacity" Value="0.5"/>
</DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" FontSize="13" FontWeight="SemiBold" TextTrimming="CharacterEllipsis"
Foreground="{DynamicResource TextPrimaryBrush}"/>
<TextBlock Text="&#xE8EE;" FontFamily="Segoe MDL2 Assets" FontSize="11" Margin="8,0,0,0" VerticalAlignment="Center"
Foreground="{DynamicResource PrimaryBrush}"
Visibility="{Binding IsRecurring, Converter={StaticResource BoolToVisibility}}"
ToolTip="{Binding DataContext[RecurringTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
<!-- birthday age -->
<Border Margin="8,0,0,0" CornerRadius="8" Padding="7,0" VerticalAlignment="Center" Background="{DynamicResource BadgeBrush}"
Visibility="{Binding AgeText, Converter={StaticResource StringToVisibility}}">
<TextBlock Text="{Binding AgeText}" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource BadgeTextBrush}"/>
</Border>
<!-- lead reminder -->
<TextBlock Text="&#xE916;" FontFamily="Segoe MDL2 Assets" FontSize="11" Margin="8,0,0,0" VerticalAlignment="Center"
Foreground="{DynamicResource TextSecondaryBrush}"
Visibility="{Binding LeadDays, Converter={StaticResource CountToVisibility}}"
ToolTip="{Binding DataContext[LeadReminder], RelativeSource={RelativeSource AncestorType=Window}}"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,1,0,0">
<!-- folder tag (only in "Upcoming") -->
<StackPanel Orientation="Horizontal" Margin="0,0,8,0"
Visibility="{Binding DataContext.IsUpcomingMode, RelativeSource={RelativeSource AncestorType=Window}, Converter={StaticResource BoolToVisibility}}">
<Ellipse Width="7" Height="7" Fill="{Binding FolderColor, Converter={StaticResource HexToBrush}}" VerticalAlignment="Center"/>
<TextBlock Text="{Binding FolderName}" FontSize="11.5" Margin="5,0,0,0" Foreground="{DynamicResource TextSecondaryBrush}"/>
<TextBlock Text=" ·" FontSize="11.5" Foreground="{DynamicResource TextSecondaryBrush}"
Visibility="{Binding Description, Converter={StaticResource StringToVisibility}}"/>
</StackPanel>
<TextBlock Text="{Binding Description}" FontSize="11.5"
Foreground="{DynamicResource TextSecondaryBrush}"
TextTrimming="CharacterEllipsis"
Visibility="{Binding Description, Converter={StaticResource StringToVisibility}}"/>
</StackPanel>
</StackPanel>
<!-- Date -->
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="&#xE823;" FontFamily="Segoe MDL2 Assets" FontSize="12" Margin="0,0,8,0" VerticalAlignment="Center"
Foreground="{DynamicResource TextSecondaryBrush}"/>
<TextBlock Text="{Binding ReminderDate, StringFormat='dd.MM.yyyy HH:mm'}"
FontSize="12" Foreground="{DynamicResource TextSecondaryBrush}"/>
</StackPanel>
<!-- Done, Edit & Delete -->
<StackPanel Grid.Column="3" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
<CheckBox IsChecked="{Binding IsNotified, Mode=TwoWay}" VerticalAlignment="Center" Margin="0,0,10,0"
Style="{StaticResource DoneCheck}"
Command="{Binding DataContext.ToggleDoneCommand, RelativeSource={RelativeSource AncestorType=Window}}"
CommandParameter="{Binding}"
ToolTip="{Binding DataContext[DoneTooltip], RelativeSource={RelativeSource AncestorType=Window}}"/>
<Button Content="&#xE70F;" FontFamily="Segoe MDL2 Assets"
Command="{Binding DataContext.EditTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
CommandParameter="{Binding}"
Background="Transparent" BorderThickness="0"
Foreground="{DynamicResource TextSecondaryBrush}"
Cursor="Hand" FontSize="13" Padding="6,4"
ToolTip="{Binding DataContext[EditTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Opacity" Value="0.5"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="1"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Content="&#xE74D;" FontFamily="Segoe MDL2 Assets"
Command="{Binding DataContext.DeleteTaskCommand, RelativeSource={RelativeSource AncestorType=Window}}"
CommandParameter="{Binding}"
Background="Transparent" BorderThickness="0"
Foreground="{DynamicResource TextSecondaryBrush}"
Cursor="Hand" FontSize="13" Padding="6,4"
ToolTip="{Binding DataContext[DeleteTaskTooltip], RelativeSource={RelativeSource AncestorType=Window}}">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Opacity" Value="0.5"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="1"/>
<Setter Property="Foreground" Value="{DynamicResource DangerBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</StackPanel>
</Grid>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl> </ItemsControl>
</ScrollViewer> </ScrollViewer>
</Grid> </Grid>

View File

@@ -1,6 +1,7 @@
#nullable enable #nullable enable
using System; using System;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Globalization;
using ReminderOrganizer.Core; using ReminderOrganizer.Core;
namespace ReminderOrganizer.Models namespace ReminderOrganizer.Models
@@ -36,13 +37,13 @@ namespace ReminderOrganizer.Models
public DateTime ReminderDate public DateTime ReminderDate
{ {
get => _reminderDate; get => _reminderDate;
set { if (SetProperty(ref _reminderDate, value)) OnPropertyChanged(nameof(AgeText)); } set { if (SetProperty(ref _reminderDate, value)) RaiseDisplay(); }
} }
public bool IsNotified public bool IsNotified
{ {
get => _isNotified; get => _isNotified;
set => SetProperty(ref _isNotified, value); set { if (SetProperty(ref _isNotified, value)) OnPropertyChanged(nameof(RelativeDate)); }
} }
public bool IsRecurring public bool IsRecurring
@@ -93,6 +94,59 @@ namespace ReminderOrganizer.Models
[System.Text.Json.Serialization.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore]
public string? AgeText => UpcomingAge is int a ? (AgeFormatter?.Invoke(a) ?? a.ToString()) : null; public string? AgeText => UpcomingAge is int a ? (AgeFormatter?.Invoke(a) ?? a.ToString()) : null;
private bool _isBirthday;
/// <summary>Birthday: yearly, date only (no time shown), reminded at <see cref="BirthdayHour"/>.</summary>
public bool IsBirthday
{
get => _isBirthday;
set { if (SetProperty(ref _isBirthday, value)) RaiseDisplay(); }
}
public const int BirthdayHour = 9;
/// <summary>Set once by the app: culture for month names, relative-date formatter.</summary>
public static Func<CultureInfo>? DisplayCulture { get; set; }
public static Func<DateTime, DateTime, string>? RelativeFormatter { get; set; }
/// <summary>"19. März" for birthdays, otherwise "19.03.2027 09:00".</summary>
[System.Text.Json.Serialization.JsonIgnore]
public string DisplayDate => IsBirthday
? ReminderDate.ToString(DayMonthPattern(DisplayCulture?.Invoke() ?? CultureInfo.CurrentCulture), DisplayCulture?.Invoke() ?? CultureInfo.CurrentCulture)
: ReminderDate.ToString("dd.MM.yyyy HH:mm", CultureInfo.InvariantCulture);
/// <summary>"heute", "morgen", "in 5 Tagen", "vor 2 Tagen".</summary>
[System.Text.Json.Serialization.JsonIgnore]
public string RelativeDate => IsNotified ? "" : RelativeFormatter?.Invoke(ReminderDate, DateTime.Now) ?? "";
[System.Text.Json.Serialization.JsonIgnore]
public int DaysUntil => (ReminderDate.Date - DateTime.Today).Days;
/// <summary>Day number + short month for the card view.</summary>
[System.Text.Json.Serialization.JsonIgnore]
public string DayText => ReminderDate.Day.ToString(CultureInfo.InvariantCulture);
[System.Text.Json.Serialization.JsonIgnore]
public string MonthText => ReminderDate.ToString("MMM", DisplayCulture?.Invoke() ?? CultureInfo.CurrentCulture).TrimEnd('.').ToUpperInvariant();
public static string DayMonthPattern(CultureInfo c) => c.TwoLetterISOLanguageName == "de" ? "d. MMMM" : "MMMM d";
private void RaiseDisplay()
{
OnPropertyChanged(nameof(DisplayDate));
OnPropertyChanged(nameof(RelativeDate));
OnPropertyChanged(nameof(DaysUntil));
OnPropertyChanged(nameof(DayText));
OnPropertyChanged(nameof(MonthText));
OnPropertyChanged(nameof(AgeText));
}
/// <summary>Next birthday on/after <paramref name="today"/> at BirthdayHour (29 Feb → 28 Feb in other years).</summary>
public static DateTime NextBirthday(int day, int month, DateTime today)
{
DateTime For(int year) => new(year, month, Math.Min(day, DateTime.DaysInMonth(year, month)), BirthdayHour, 0, 0);
var d = For(today.Year);
return d.Date >= today.Date ? d : For(today.Year + 1);
}
private string _folderName = ""; private string _folderName = "";
/// <summary>Runtime only: name of the folder holding this task (for the "Upcoming" view).</summary> /// <summary>Runtime only: name of the folder holding this task (for the "Upcoming" view).</summary>
[System.Text.Json.Serialization.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore]
@@ -242,5 +296,33 @@ namespace ReminderOrganizer.Models
public bool? IsDarkMode { get; set; } public bool? IsDarkMode { get; set; }
public bool PlaySound { get; set; } = true; public bool PlaySound { get; set; } = true;
public bool HideDone { get; set; } public bool HideDone { get; set; }
/// <summary>"list", "compact" or "cards".</summary>
public string ViewMode { get; set; } = "list";
/// <summary>Folders and yearly tasks were checked for birthdays once.</summary>
public bool BirthdaysMigrated { get; set; }
public static bool LooksLikeBirthdayFolder(string? name) =>
name != null && (name.Contains("geburtstag", StringComparison.OrdinalIgnoreCase) ||
name.Contains("birthday", StringComparison.OrdinalIgnoreCase));
/// <summary>Yearly tasks in a "Geburtstage"/"Birthdays" folder become birthday entries (one-time).</summary>
public int MigrateBirthdays()
{
if (BirthdaysMigrated) return 0;
BirthdaysMigrated = true;
int n = 0;
foreach (var f in Folders)
{
if (!LooksLikeBirthdayFolder(f.Name)) continue;
foreach (var t in f.Tasks)
{
if (t.IsBirthday || !t.IsRecurring || t.RecurrenceType != RecurrenceType.Yearly) continue;
t.IsBirthday = true;
n++;
}
}
return n;
}
} }
} }

View File

@@ -28,9 +28,17 @@ namespace ReminderOrganizer.Services
Line("BEGIN:VEVENT"); Line("BEGIN:VEVENT");
Line($"UID:{t.Id}@reminder-organizer"); Line($"UID:{t.Id}@reminder-organizer");
Line($"DTSTAMP:{stamp}"); Line($"DTSTAMP:{stamp}");
// floating local time: shows at the same clock time in every calendar if (t.IsBirthday)
Line($"DTSTART:{t.ReminderDate.ToString("yyyyMMdd'T'HHmmss", CultureInfo.InvariantCulture)}"); {
Line("DURATION:PT30M"); // all-day event
Line($"DTSTART;VALUE=DATE:{t.ReminderDate.ToString("yyyyMMdd", CultureInfo.InvariantCulture)}");
}
else
{
// floating local time: shows at the same clock time in every calendar
Line($"DTSTART:{t.ReminderDate.ToString("yyyyMMdd'T'HHmmss", CultureInfo.InvariantCulture)}");
Line("DURATION:PT30M");
}
var summary = t.UpcomingAge is int age ? $"{t.Name} ({age})" : t.Name; var summary = t.UpcomingAge is int age ? $"{t.Name} ({age})" : t.Name;
Line($"SUMMARY:{Escape(summary)}"); Line($"SUMMARY:{Escape(summary)}");
if (!string.IsNullOrWhiteSpace(t.Description)) Line($"DESCRIPTION:{Escape(t.Description)}"); if (!string.IsNullOrWhiteSpace(t.Description)) Line($"DESCRIPTION:{Escape(t.Description)}");
@@ -49,7 +57,10 @@ namespace ReminderOrganizer.Services
Line("BEGIN:VALARM"); Line("BEGIN:VALARM");
Line("ACTION:DISPLAY"); Line("ACTION:DISPLAY");
Line($"DESCRIPTION:{Escape(t.Name)}"); Line($"DESCRIPTION:{Escape(t.Name)}");
Line(t.LeadDays > 0 ? $"TRIGGER:-P{t.LeadDays}D" : "TRIGGER:PT0M"); // all-day events start at midnight: remind at 09:00 (same day or lead days before)
Line(t.IsBirthday
? (t.LeadDays > 0 ? $"TRIGGER:-P{t.LeadDays - 1}DT15H" : "TRIGGER:PT9H")
: (t.LeadDays > 0 ? $"TRIGGER:-P{t.LeadDays}D" : "TRIGGER:PT0M"));
Line("END:VALARM"); Line("END:VALARM");
Line("END:VEVENT"); Line("END:VEVENT");
} }

View File

@@ -1,4 +1,4 @@
<Window x:Class="ReminderOrganizer.TaskWindow" <Window x:Class="ReminderOrganizer.TaskWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="{Binding WindowTitle}" Title="{Binding WindowTitle}"
@@ -20,6 +20,27 @@
<SolidColorBrush x:Key="InputBackgroundBrush" Color="#F1F5F9"/> <SolidColorBrush x:Key="InputBackgroundBrush" Color="#F1F5F9"/>
<SolidColorBrush x:Key="HoverBrush" Color="#E2E8F0"/> <SolidColorBrush x:Key="HoverBrush" Color="#E2E8F0"/>
<Style x:Key="Segment" TargetType="RadioButton">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="Foreground" Value="{DynamicResource TextSecondaryBrush}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border x:Name="bd" CornerRadius="6" Padding="14,6" Background="Transparent">
<ContentPresenter VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource PrimaryBrush}"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="Label" TargetType="TextBlock"> <Style x:Key="Label" TargetType="TextBlock">
<Setter Property="FontSize" Value="11"/> <Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="SemiBold"/> <Setter Property="FontWeight" Value="SemiBold"/>
@@ -113,13 +134,49 @@
<!-- Content --> <!-- Content -->
<StackPanel Grid.Row="1" Margin="18,16,18,18"> <StackPanel Grid.Row="1" Margin="18,16,18,18">
<!-- Type: appointment / birthday -->
<Border CornerRadius="8" Background="{DynamicResource InputBackgroundBrush}" Padding="3" Margin="0,0,0,14" HorizontalAlignment="Left">
<StackPanel Orientation="Horizontal">
<RadioButton GroupName="type" IsChecked="{Binding IsAppointment}" Style="{StaticResource Segment}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="&#xE787;" FontFamily="Segoe MDL2 Assets" FontSize="12" VerticalAlignment="Center" Margin="0,0,6,0"/>
<TextBlock Text="{Binding AppointmentText}"/>
</StackPanel>
</RadioButton>
<RadioButton GroupName="type" IsChecked="{Binding IsBirthday}" Style="{StaticResource Segment}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="&#xED55;" FontFamily="Segoe MDL2 Assets" FontSize="12" VerticalAlignment="Center" Margin="0,0,6,0"/>
<TextBlock Text="{Binding BirthdayTypeText}"/>
</StackPanel>
</RadioButton>
</StackPanel>
</Border>
<TextBlock Text="{Binding NameLabel}" Style="{StaticResource Label}"/> <TextBlock Text="{Binding NameLabel}" Style="{StaticResource Label}"/>
<TextBox x:Name="NameBox" Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource Input}"/> <TextBox x:Name="NameBox" Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource Input}"/>
<TextBlock Text="{Binding ErrorMessage}" Foreground="#EF4444" FontSize="11" Margin="0,4,0,0" <TextBlock Text="{Binding ErrorMessage}" Foreground="#EF4444" FontSize="11" Margin="0,4,0,0"
Visibility="{Binding HasError, Converter={StaticResource BoolToVisibility}}"/> Visibility="{Binding HasError, Converter={StaticResource BoolToVisibility}}"/>
<TextBlock Text="{Binding DateLabel}" Style="{StaticResource Label}" Margin="0,14,0,4"/> <!-- Birthday: one date field, no time -->
<Grid> <StackPanel Visibility="{Binding IsBirthday, Converter={StaticResource BoolToVisibility}}">
<TextBlock Text="{Binding BirthdayLabel}" Style="{StaticResource Label}" Margin="0,14,0,4"/>
<TextBox x:Name="BirthdayBox" Text="{Binding BirthdayText, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource Input}" FontSize="15"/>
<TextBlock Text="{Binding BirthdayPreview}" FontSize="12" Margin="0,6,0,0" TextWrapping="Wrap">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource TextSecondaryBrush}"/>
<Style.Triggers>
<DataTrigger Binding="{Binding BirthdayInvalid}" Value="True">
<Setter Property="Foreground" Value="#EF4444"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
<!-- Appointment: date, time, recurrence -->
<StackPanel Visibility="{Binding IsAppointment, Converter={StaticResource BoolToVisibility}}">
<TextBlock Text="{Binding DateLabel}" Style="{StaticResource Label}" Margin="0,14,0,4"/> <Grid>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
@@ -181,14 +238,6 @@
<TextBlock Text="{Binding NextOccurrenceLabel}" FontSize="11" Foreground="{DynamicResource TextSecondaryBrush}"/> <TextBlock Text="{Binding NextOccurrenceLabel}" FontSize="11" Foreground="{DynamicResource TextSecondaryBrush}"/>
<TextBlock Text="{Binding NextOccurrenceText}" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource TextPrimaryBrush}" Margin="4,0,0,0"/> <TextBlock Text="{Binding NextOccurrenceText}" FontSize="11" FontWeight="SemiBold" Foreground="{DynamicResource TextPrimaryBrush}" Margin="4,0,0,0"/>
</StackPanel> </StackPanel>
<!-- Birth year (yearly only) -->
<StackPanel Orientation="Horizontal" Margin="0,10,0,0"
Visibility="{Binding IsYearly, Converter={StaticResource BoolToVisibility}}">
<TextBlock Text="{Binding BirthYearLabel}" FontSize="12" Foreground="{DynamicResource TextPrimaryBrush}" VerticalAlignment="Center" Width="150"/>
<TextBox Text="{Binding BirthYearText, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource Input}" Width="80" Padding="8,4" MaxLength="4"/>
<TextBlock Text="!" Foreground="#EF4444" FontWeight="Bold" Margin="8,0,0,0" VerticalAlignment="Center"
Visibility="{Binding BirthYearError, Converter={StaticResource BoolToVisibility}}"/>
</StackPanel> </StackPanel>
<!-- Lead reminder --> <!-- Lead reminder -->

View File

@@ -14,13 +14,13 @@ namespace ReminderOrganizer
public ReminderTask TaskResult => _viewModel.TaskResult; public ReminderTask TaskResult => _viewModel.TaskResult;
public TaskWindow(ReminderTask? existingTask, bool darkMode) public TaskWindow(ReminderTask? existingTask, bool darkMode, bool defaultBirthday = false)
{ {
InitializeComponent(); InitializeComponent();
Theme.Apply(Resources, darkMode); Theme.Apply(Resources, darkMode);
var localizationService = (ILocalizationService)ServiceLocator.Services.GetService(typeof(ILocalizationService))!; var localizationService = (ILocalizationService)ServiceLocator.Services.GetService(typeof(ILocalizationService))!;
_viewModel = new TaskViewModel(localizationService, existingTask); _viewModel = new TaskViewModel(localizationService, existingTask, defaultBirthday);
_viewModel.RequestClose += OnRequestClose; _viewModel.RequestClose += OnRequestClose;
DataContext = _viewModel; DataContext = _viewModel;

98
Tests/BirthdayTests.cs Normal file
View File

@@ -0,0 +1,98 @@
using System;
using ReminderOrganizer.Core;
using ReminderOrganizer.Models;
using ReminderOrganizer.Services;
using Xunit;
namespace ReminderOrganizer.Tests
{
public class BirthdayTests
{
private static readonly DateTime Today = new(2026, 11, 29);
[Theory]
[InlineData("19.03.", 19, 3, null)]
[InlineData("19.3", 19, 3, null)]
[InlineData("19.03.1986", 19, 3, 1986)]
[InlineData("19.3.86", 19, 3, 1986)]
[InlineData("1.1.05", 1, 1, 2005)]
[InlineData("1986-03-19", 19, 3, 1986)]
[InlineData(" 29.02. ", 29, 2, null)]
public void Parses_quick_input(string input, int day, int month, int? year)
{
Assert.True(BirthdayInput.TryParse(input, Today, out var d, out var m, out var y));
Assert.Equal((day, month, year), (d, m, y));
}
[Theory]
[InlineData("")]
[InlineData("32.01.")]
[InlineData("10.13.")]
[InlineData("29.02.2023")] // not a leap year
[InlineData("01.01.2030")] // future
[InlineData("abc")]
public void Rejects_bad_input(string input)
{
Assert.False(BirthdayInput.TryParse(input, Today, out _, out _, out _));
}
[Fact]
public void Next_birthday_this_year_or_next()
{
Assert.Equal(new DateTime(2026, 12, 14, 9, 0, 0), ReminderTask.NextBirthday(14, 12, Today));
Assert.Equal(new DateTime(2027, 3, 19, 9, 0, 0), ReminderTask.NextBirthday(19, 3, Today));
Assert.Equal(new DateTime(2026, 11, 29, 9, 0, 0), ReminderTask.NextBirthday(29, 11, Today)); // today counts
}
[Fact]
public void Leap_day_birthday_falls_back_to_28th()
{
Assert.Equal(new DateTime(2027, 2, 28, 9, 0, 0), ReminderTask.NextBirthday(29, 2, Today));
Assert.Equal(new DateTime(2028, 2, 29, 9, 0, 0), ReminderTask.NextBirthday(29, 2, new DateTime(2027, 3, 1)));
}
[Fact]
public void Migration_marks_yearly_tasks_in_birthday_folders_once()
{
var data = new AppData();
var bday = new Folder("Geburtstage");
bday.Tasks.Add(new ReminderTask("Oma", "", new DateTime(2027, 1, 27)) { IsRecurring = true, RecurrenceType = RecurrenceType.Yearly });
bday.Tasks.Add(new ReminderTask("Einmalig", "", new DateTime(2027, 1, 27)));
var work = new Folder("Arbeit");
work.Tasks.Add(new ReminderTask("Jahresbericht", "", new DateTime(2027, 1, 27)) { IsRecurring = true, RecurrenceType = RecurrenceType.Yearly });
data.Folders.Add(bday);
data.Folders.Add(work);
Assert.Equal(1, data.MigrateBirthdays());
Assert.True(bday.Tasks[0].IsBirthday);
Assert.False(bday.Tasks[1].IsBirthday);
Assert.False(work.Tasks[0].IsBirthday);
Assert.Equal(0, data.MigrateBirthdays());
}
[Fact]
public void Birthday_display_has_no_time()
{
ReminderTask.DisplayCulture = () => new System.Globalization.CultureInfo("de-DE");
var t = new ReminderTask("x", "", new DateTime(2027, 3, 19, 9, 0, 0)) { IsBirthday = true };
Assert.Equal("19. März", t.DisplayDate);
Assert.Equal("MÄR", t.MonthText);
t.IsBirthday = false;
Assert.Equal("19.03.2027 09:00", t.DisplayDate);
}
[Fact]
public void Ics_birthday_is_all_day()
{
var data = new AppData();
var f = new Folder("Geburtstage");
f.Tasks.Add(new ReminderTask("Oma", "", new DateTime(2027, 1, 27, 9, 0, 0))
{ IsBirthday = true, IsRecurring = true, RecurrenceType = RecurrenceType.Yearly, LeadDays = 1 });
data.Folders.Add(f);
var ics = IcsExport.Build(data, DateTime.UtcNow);
Assert.Contains("DTSTART;VALUE=DATE:20270127", ics);
Assert.DoesNotContain("DURATION", ics);
Assert.Contains("TRIGGER:-P0DT15H", ics); // 09:00 the day before
}
}
}

View File

@@ -1,4 +1,4 @@
#nullable enable #nullable enable
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@@ -194,6 +194,40 @@ namespace ReminderOrganizer.ViewModels
} }
} }
// ---------- view mode ----------
public string ViewMode
{
get => _appData.ViewMode;
set
{
if (_appData.ViewMode == value) return;
_appData.ViewMode = value;
OnPropertyChanged();
OnPropertyChanged(nameof(IsViewList));
OnPropertyChanged(nameof(IsViewCompact));
OnPropertyChanged(nameof(IsViewCards));
_ = SaveAsync();
}
}
public bool IsViewList { get => ViewMode == "list"; set { if (value) ViewMode = "list"; } }
public bool IsViewCompact { get => ViewMode == "compact"; set { if (value) ViewMode = "compact"; } }
public bool IsViewCards { get => ViewMode == "cards"; set { if (value) ViewMode = "cards"; } }
/// <summary>"today", "tomorrow", "in 5 days", "yesterday", "3 days ago".</summary>
public string RelativeText(DateTime date, DateTime now)
{
int days = (date.Date - now.Date).Days;
return days switch
{
0 => L("RelToday"),
1 => L("RelTomorrow"),
-1 => L("RelYesterday"),
> 1 => string.Format(L("RelInDays"), days),
_ => string.Format(L("RelDaysAgo"), -days)
};
}
// ---------- undo ---------- // ---------- undo ----------
private Action? _undoAction; private Action? _undoAction;
@@ -271,6 +305,8 @@ namespace ReminderOrganizer.ViewModels
_autostartService = autostartService; _autostartService = autostartService;
ReminderTask.AgeFormatter = age => string.Format(L("TurnsAge"), age); ReminderTask.AgeFormatter = age => string.Format(L("TurnsAge"), age);
ReminderTask.DisplayCulture = () => new System.Globalization.CultureInfo(_localizationService.CurrentLanguage == "de" ? "de-DE" : "en-US");
ReminderTask.RelativeFormatter = RelativeText;
// Empty name = refresh every binding (all texts depend on the language). // Empty name = refresh every binding (all texts depend on the language).
_localizationService.StringsChanged += (s, e) => _localizationService.StringsChanged += (s, e) =>
@@ -326,6 +362,7 @@ namespace ReminderOrganizer.ViewModels
if (firstRun) if (firstRun)
await SaveAsync(); await SaveAsync();
if (_appData.MigrateBirthdays() > 0) await SaveAsync();
_isDarkMode = _appData.IsDarkMode.Value; _isDarkMode = _appData.IsDarkMode.Value;
_appData.Folders.CollectionChanged += (s, e) => { HookFolders(); ReindexTasks(); }; _appData.Folders.CollectionChanged += (s, e) => { HookFolders(); ReindexTasks(); };
HookFolders(); HookFolders();
@@ -513,7 +550,10 @@ namespace ReminderOrganizer.ViewModels
return; return;
} }
var taskWindow = new TaskWindow(null, IsDarkMode) { Owner = Application.Current.MainWindow }; // Birthday folders (by name or because they mostly hold birthdays) open the birthday form.
bool birthday = AppData.LooksLikeBirthdayFolder(folder.Name) ||
(folder.Tasks.Count > 0 && folder.Tasks.Count(t => t.IsBirthday) * 2 > folder.Tasks.Count);
var taskWindow = new TaskWindow(null, IsDarkMode, birthday) { Owner = Application.Current.MainWindow };
if (taskWindow.ShowDialog() == true) if (taskWindow.ShowDialog() == true)
{ {
folder.Tasks.Add(taskWindow.TaskResult); folder.Tasks.Add(taskWindow.TaskResult);

View File

@@ -69,7 +69,7 @@ namespace ReminderOrganizer.ViewModels
} }
} }
public bool IsInPast => !IsRecurring && ReminderDate <= DateTime.Now; public bool IsInPast => !IsBirthday && !IsRecurring && ReminderDate <= DateTime.Now;
// lead reminder: index into LeadOptions // lead reminder: index into LeadOptions
public static readonly int[] LeadOptions = { 0, 1, 2, 3, 7 }; public static readonly int[] LeadOptions = { 0, 1, 2, 3, 7 };
@@ -211,9 +211,8 @@ namespace ReminderOrganizer.ViewModels
} }
} }
public string WindowTitle => _isNewTask public string WindowTitle => _localizationService.GetString(
? _localizationService.GetString("NewTask") IsBirthday ? (_isNewTask ? "NewBirthday" : "EditBirthday") : (_isNewTask ? "NewTask" : "EditTask"));
: _localizationService.GetString("EditTask");
public string NameLabel => _localizationService.GetString("Name"); public string NameLabel => _localizationService.GetString("Name");
public string DescriptionLabel => _localizationService.GetString("Description"); public string DescriptionLabel => _localizationService.GetString("Description");
@@ -236,7 +235,69 @@ namespace ReminderOrganizer.ViewModels
public event EventHandler<bool>? RequestClose; public event EventHandler<bool>? RequestClose;
public TaskViewModel(ILocalizationService localizationService, ReminderTask? existingTask = null) // ---------- birthday mode ----------
private bool _isBirthday;
public bool IsBirthday
{
get => _isBirthday;
set
{
if (!SetProperty(ref _isBirthday, value)) return;
OnPropertyChanged(nameof(IsAppointment));
OnPropertyChanged(nameof(WindowTitle));
OnPropertyChanged(nameof(IsInPast));
OnPropertyChanged(nameof(BirthdayPreview));
if (value && _isNewTask && SelectedLeadIndex == 0) SelectedLeadIndex = 1; // birthdays: 1 day before by default
}
}
public bool IsAppointment { get => !IsBirthday; set => IsBirthday = !value; }
private string _birthdayText = "";
public string BirthdayText
{
get => _birthdayText;
set
{
if (!SetProperty(ref _birthdayText, value ?? "")) return;
OnPropertyChanged(nameof(BirthdayPreview));
OnPropertyChanged(nameof(BirthdayInvalid));
}
}
private bool TryBirthday(out DateTime next, out int? year)
{
next = default;
if (!BirthdayInput.TryParse(BirthdayText, DateTime.Today, out var d, out var m, out year)) return false;
next = ReminderTask.NextBirthday(d, m, DateTime.Today);
return true;
}
/// <summary>Red only once the input could be complete ("1.1" = 3 chars) – no error after the first digit.</summary>
public bool BirthdayInvalid => BirthdayText.Trim().Length >= 3 && !TryBirthday(out _, out _);
/// <summary>"Next: Thu, 19 March 2027 · turns 41 · in 110 days"</summary>
public string BirthdayPreview
{
get
{
if (!TryBirthday(out var next, out var year))
return _localizationService.GetString(BirthdayInvalid ? "BirthdayInvalid" : "BirthdayHint");
var culture = ReminderTask.DisplayCulture?.Invoke() ?? System.Globalization.CultureInfo.CurrentCulture;
var text = next.ToString("ddd, " + ReminderTask.DayMonthPattern(culture) + " yyyy", culture);
if (year is int y) text += " · " + string.Format(_localizationService.GetString("TurnsAge"), next.Year - y);
var rel = ReminderTask.RelativeFormatter?.Invoke(next, DateTime.Now);
if (!string.IsNullOrEmpty(rel)) text += " · " + rel;
return text;
}
}
public string AppointmentText => _localizationService.GetString("TypeAppointment");
public string BirthdayTypeText => _localizationService.GetString("TypeBirthday");
public string BirthdayLabel => _localizationService.GetString("BirthdayDate");
public string NoteLabel => _localizationService.GetString("Note");
public TaskViewModel(ILocalizationService localizationService, ReminderTask? existingTask = null, bool defaultBirthday = false)
{ {
_localizationService = localizationService; _localizationService = localizationService;
_isNewTask = existingTask == null; _isNewTask = existingTask == null;
@@ -245,6 +306,21 @@ namespace ReminderOrganizer.ViewModels
{ {
_originalTask = new ReminderTask(); _originalTask = new ReminderTask();
_reminderDate = DateTime.Now.AddHours(1); _reminderDate = DateTime.Now.AddHours(1);
_isBirthday = defaultBirthday;
if (defaultBirthday) _selectedLeadIndex = 1;
}
else if (existingTask!.IsBirthday)
{
_originalTask = existingTask;
_isBirthday = true;
_name = existingTask.Name;
_description = existingTask.Description;
_reminderDate = existingTask.ReminderDate;
_isRecurring = true;
_selectedRecurrenceIndex = (int)RecurrenceType.Yearly;
_selectedLeadIndex = Math.Max(0, Array.IndexOf(LeadOptions, existingTask.LeadDays));
_birthdayText = existingTask.ReminderDate.ToString("dd.MM.", System.Globalization.CultureInfo.InvariantCulture)
+ (existingTask.BirthYear?.ToString() ?? "");
} }
else else
{ {
@@ -271,7 +347,8 @@ namespace ReminderOrganizer.ViewModels
OnPropertyChanged(nameof(SelectedMinuteIndex)); OnPropertyChanged(nameof(SelectedMinuteIndex));
} }
private bool CanSave() => !string.IsNullOrWhiteSpace(Name) && !BirthYearError; private bool CanSave() => !string.IsNullOrWhiteSpace(Name) &&
(IsBirthday ? TryBirthday(out _, out _) : !BirthYearError);
private void ValidateInput() private void ValidateInput()
{ {
@@ -311,6 +388,28 @@ namespace ReminderOrganizer.ViewModels
{ {
if (!CanSave()) return; if (!CanSave()) return;
if (IsBirthday && TryBirthday(out var nextBirthday, out var birthYear))
{
var lead = LeadOptions[SelectedLeadIndex];
// Editing on the birthday itself after it was already reminded: keep next year's date.
if (!_isNewTask && nextBirthday <= DateTime.Now && _originalTask.ReminderDate > DateTime.Now)
nextBirthday = nextBirthday.AddYears(1);
if (_isNewTask || _originalTask.ReminderDate != nextBirthday || _originalTask.LeadDays != lead)
_originalTask.IsPreNotified = false;
_originalTask.IsBirthday = true;
_originalTask.Name = Name.Trim();
_originalTask.Description = Description?.Trim() ?? "";
_originalTask.IsRecurring = true;
_originalTask.RecurrenceType = RecurrenceType.Yearly;
_originalTask.BirthYear = birthYear;
_originalTask.LeadDays = lead;
_originalTask.ReminderDate = nextBirthday;
_originalTask.IsNotified = false;
RequestClose?.Invoke(this, true);
return;
}
_originalTask.IsBirthday = false;
var leadDays = LeadOptions[SelectedLeadIndex]; var leadDays = LeadOptions[SelectedLeadIndex];
bool timingChanged = _originalTask.ReminderDate != ReminderDate || _originalTask.LeadDays != leadDays; bool timingChanged = _originalTask.ReminderDate != ReminderDate || _originalTask.LeadDays != leadDays;
_originalTask.LeadDays = leadDays; _originalTask.LeadDays = leadDays;

55
docs/itchio/README.md Normal file
View File

@@ -0,0 +1,55 @@
# itch.io-Seite: Reminder Organizer
Alles für die Seite liegt in diesem Ordner. Neu erzeugen:
- Motive: `cd sprite-generator` → `gen generate itch_keyart` / `gen generate itch_cover` (Prompts in `prompts.py`)
- Bilder: `py -3.12 ..\..\..\_Tools\Itch\itch_images.py --title "Reminder Organizer" --tagline "Never forget a date again" --backdrop ..\..\sprite-generator\output\itch_keyart_raw_00003_.png --cover-art ..\..\sprite-generator\output\itch_cover_raw_00004_.png --out . --font C:\Windows\Fonts\segoeuib.ttf --color "#C7D2FE"`
- Screenshots: echte App, 1600×1000, Englisch, mit Beispieldaten in eigenem Datenordner (`REMINDER_ORGANIZER_DATA`), hell + dunkel
## Dateien
| Datei | Wofür |
|---|---|
| `cover.png` (630×500) | Cover image |
| `screenshots\01_upcoming.png` … `06_recurring.png` (1600×1000) | Screenshots – Reihenfolge so lassen (01 Upcoming dunkel, 02 Geburtstage hell, 03 Ordner, 04 Neuer Task, 05 helles Theme, 06 wiederkehrend) |
| `banner_960x256.png` / `banner_1920x512.png` | Edit theme → Banner |
| `background_1920x1200.jpg` | Edit theme → Background (oben mittig, nicht wiederholen) |
| `description.html` | Description (im Browser öffnen, Strg+A, kopieren, einfügen) |
| `install.html` | Download & install instructions (genauso einfügen) |
| `..\..\publish\ReminderOrganizer.exe` (≈ 78 MB) | Upload (Windows, ganze App in einer Datei) – vorher `release.bat` |
## Felder unter „Edit game“
| Feld | Eintrag |
|---|---|
| Title | `Reminder Organizer` |
| Project URL | `reminder-organizer` → `https://sn09.itch.io/reminder-organizer` |
| Short description or tagline | `Folders, recurring reminders and birthdays – a small Windows tray app that never lets you forget a date.` |
| Classification | **Tools** |
| Kind of project | **Downloadable** |
| Release status | **Released** |
| Pricing | **No payments** + Haken „Donate“ → *Suggested donation* z. B. $2 (kostenlos, Spende freiwillig) |
| Uploads | `publish\ReminderOrganizer.exe` → Haken **Windows** (Anzeigename z. B. „Reminder Organizer 1.1.0 (Windows, 64-bit)“) |
| Genre | – (bei Tools kein Genre) |
| Tags (max. 10) | `reminder`, `productivity`, `to-do-list`, `calendar`, `organizer`, `notifications`, `birthday`, `system-tray`, `windows`, `dark-mode` |
| AI generation disclosure | **Yes** – Grafik: App-Icon, Cover, Banner, Hintergrund (Flux/ComfyUI); Sound: Erinnerungston (Stable Audio). Screenshots und App-Oberfläche sind echt. |
| App store links | – |
| Custom noun | `app` |
| Community | **Comments** einschalten; Discord-Link steht in der Description |
| Visibility | erst **Draft** (Vorschau prüfen), dann **Public** |
| Languages | English, German |
| Inputs | Keyboard, Mouse |
| Accessibility | – (nichts Passendes; Dark/Light-Theme steht in der Description) |
| Multiplayer | – |
| Average session | A few minutes |
| Links | Discord: `https://discord.gg/Ej4JPmCZva` |
| Gameplay video or trailer | – (kein Trailer, App hat keine Musik) |
| Download & install instructions | Inhalt von `install.html` |
## Seiten-Design („Edit theme“)
- Hintergrund `#121218`, Text `#F5F5F5`, Links/Akzente `#6366F1` (wie Dark-Theme der App), Schrift: „Inter“ oder „Lato“
- Banner `banner_960x256.png`, Background `background_1920x1200.jpg` (oben mittig, nicht wiederholen)
## Vor dem Hochladen prüfen
- [ ] `release.bat` (Tests laufen mit) → frische `publish\ReminderOrganizer.exe`, Version 1.1.0
- [ ] EXE in einen leeren Ordner kopieren und starten: Fenster, Tray-Icon, Testerinnerung erscheint als Windows-Benachrichtigung
- [ ] Description in der Vorschau ansehen (Emojis, Links Discord/E-Mail klickbar)
- [ ] Spenden-Einstellung: Payout-Konto (PayPal/Stripe) auf itch.io eingerichtet
- [ ] Nach dem Veröffentlichen: Projekt-Dashboard erkennt die Seite automatisch (sonst Bearbeiten → itch.io-Seite)

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

BIN
docs/itchio/cover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

View File

@@ -0,0 +1,28 @@
<h2>🔔 Never forget a date again</h2>
<p><strong>Reminder Organizer</strong> is a small Windows app that keeps your reminders in folders and pops them up as Windows notifications at the right time. It sits quietly in the system tray, starts with Windows if you like, and even catches up on reminders you missed while the PC was off. Birthdays, bills, appointments, chores – all in one tidy list.</p>
<h3>✨ Features</h3>
<ul>
<li>📅 <strong>Upcoming view</strong> – every folder in one list, grouped into Overdue, Today, Tomorrow, Next 7 days and Later</li>
<li>🔁 <strong>Recurring reminders</strong> – daily, weekly, monthly or yearly, or just once</li>
<li>⏰ <strong>Remind in advance</strong> – get a heads-up 1, 2 or 3 days or a week before the date</li>
<li>🎂 <strong>Birthdays</strong> – add the year of birth and the app shows "turns 40"</li>
<li>📁 <strong>Coloured folders</strong> – sort by drag and drop, drag a task onto a folder to move it</li>
<li>🔍 <strong>Search and filters</strong> – All, Today, Overdue, plus "Hide done"</li>
<li>📤 <strong>Import &amp; export</strong> – CSV import/export and a calendar export (.ics) for Outlook, Google and Apple Calendar</li>
<li>🌙 <strong>Dark and light theme</strong>, reminder sound (can be turned off), undo after deleting</li>
</ul>
<h3>🕹️ Controls</h3>
<p>🖱️ <strong>Mouse:</strong> click, drag and drop, right-click menus · ⌨️ <strong>Keyboard:</strong> Ctrl+N new task · Ctrl+F search · Del delete · Ctrl+Z undo · Esc clear search</p>
<h3>🌍 Languages</h3>
<p>English and German – the first start follows your Windows language and theme.</p>
<h3>💻 Requirements</h3>
<p>Windows 10 or 11 (64-bit) · about 80 MB · <strong>one file, no install</strong>, no .NET needed. Your reminders are saved in <code>%APPDATA%\ReminderOrganizer</code> with an automatic backup.</p>
<h3>💬 Community</h3>
<p>Ideas, bugs or questions? Join the <a href="https://discord.gg/Ej4JPmCZva">Discord community</a> or write to <a href="mailto:infomichaelmedia1@gmail.com">infomichaelmedia1@gmail.com</a>.</p>
<p><em>© 2026 Michael Media. The icon, artwork and reminder sound were created with the help of AI tools.</em></p>

28
docs/itchio/install.html Normal file
View File

@@ -0,0 +1,28 @@
<h3>Windows (64-bit)</h3>
<ol>
<li>Download <strong>ReminderOrganizer.exe</strong> and put it in a folder of your choice (for example <code>Documents\Tools</code>).</li>
<li>Double-click it. That's all – the whole app is in this one file, <strong>no installation needed</strong>.</li>
</ol>
<p>The very first start takes a few seconds longer while the app unpacks itself. Closing the window keeps the app running in the <strong>system tray</strong> (notification area) so your reminders still pop up – double-click the tray icon to open it again, right-click it to quit. Turn on <strong>File → Settings → Autostart</strong> to start it hidden with Windows.</p>
<h3>Windows SmartScreen</h3>
<p>Because the app is new and not signed, Windows may show <em>"Windows protected your PC"</em>. Click <strong>More info → Run anyway</strong>.</p>
<h3>Your reminders</h3>
<p>Everything is saved automatically in <code>%APPDATA%\ReminderOrganizer\tasks.json</code>, together with a backup of the previous save (<code>tasks.json.bak</code>). To move to another PC, use <strong>File → Export CSV</strong> and import it there.</p>
<h3>Update</h3>
<p>Quit the app (tray icon → right-click → Exit), download the new <strong>ReminderOrganizer.exe</strong> and replace the old one. Your reminders stay in <code>%APPDATA%\ReminderOrganizer</code> and are kept.</p>
<h3>Uninstall</h3>
<ol>
<li>If Autostart is on, turn it off first (File → Settings → Autostart).</li>
<li>Quit the app and delete <strong>ReminderOrganizer.exe</strong>.</li>
<li>To also remove your reminders, delete <code>%APPDATA%\ReminderOrganizer</code>. The unpacked app files are in <code>%TEMP%\.net\ReminderOrganizer</code>.</li>
</ol>
<h3>Problems?</h3>
<ul>
<li><strong>No notifications:</strong> check that Windows notifications and Focus assist / Do not disturb allow them.</li>
<li>Still stuck? Ask in the <a href="https://discord.gg/Ej4JPmCZva">Discord community</a> or write to <a href="mailto:infomichaelmedia1@gmail.com">infomichaelmedia1@gmail.com</a>. Please attach <code>%APPDATA%\ReminderOrganizer\error.log</code> if there is one.</li>
</ul>

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
docs/screenshots/cards.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

View File

@@ -1,4 +1,4 @@
"""Was generate.py erzeugt. Immer "plain solid black background", nie "transparent".""" """Was generate.py erzeugt. Immer "plain solid black background", nie "transparent"."""
PROMPTS = [ PROMPTS = [
("icon", ("icon",
@@ -8,3 +8,22 @@ PROMPTS = [
] ]
SIZES = {"icon": (1024, 1024)} SIZES = {"icon": (1024, 1024)}
STYLE_ITCH = "glossy modern 3D illustration, soft gradients, rounded friendly shapes, indigo #6366F1 as main colour with blue, green, pink and teal accents, calm evening light, clean and cosy, high detail"
PROMPTS += [
("itch_keyart",
"wide scene, a tidy desk by a window at dusk, a large friendly glossy indigo bell with a small green "
"checkmark badge stands on the right, around it neat stacks of blank calendar cards, coloured folders "
"in blue, green, pink and teal, a small wrapped birthday gift and a round clock, soft glow, "
"the left half is a calm dark indigo gradient with empty space, " + STYLE_ITCH +
", no text, no letters, no numbers, no logo, no watermark"),
("itch_cover",
"a large friendly glossy indigo bell with a small green checkmark badge in the lower centre, "
"surrounded by floating blank calendar pages, coloured folders in blue, green, pink and teal, "
"a small wrapped gift box and a round clock, the upper third is a calm smooth indigo-to-violet "
"gradient sky with nothing in it, " + STYLE_ITCH +
", no text, no letters, no numbers, no logo, no watermark"),
]
SIZES.update({"itch_keyart": (1920, 1088), "itch_cover": (1264, 1008)})