Files
adminandClaude Sonnet 5 54ad7f7419
CI / build-and-test (push) Canceled after 0s
Defuse handled dashboard warnings and add a snooze action
Cross-class warnings (attendance, homework backlog, lateness) stayed red
and at the top even after being acted on. A warning now turns gray and
sorts to the bottom of its group once a recently-updated open Vorgang
with a matching tag exists, or once explicitly snoozed for 1/2/4 weeks.
Both are time-limited: once the grace period lapses without the
underlying number actually improving, the warning goes active again on
the next dashboard load - no background job needed since it's just
recomputed on every RebuildAttention.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-26 00:48:39 +02:00

15 lines
515 B
C#

using Avalonia.Controls;
using Avalonia.Interactivity;
namespace LehrerApp.Desktop.Views.Shared;
public partial class SnoozeDurationDialog : Window
{
public SnoozeDurationDialog() => InitializeComponent();
private void OnPick7(object? sender, RoutedEventArgs e) => Close(7);
private void OnPick14(object? sender, RoutedEventArgs e) => Close(14);
private void OnPick30(object? sender, RoutedEventArgs e) => Close(30);
private void OnCancel(object? sender, RoutedEventArgs e) => Close(null);
}