From eae93322e195c29cb2dbba281b887cf85165efb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Tue, 24 Nov 2026 22:40:42 +0100 Subject: [PATCH 1/2] feat(aufgaben): set the time until the reminder directly (#964) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Aufgabe edit panel takes the minutes until the reminder in a box next to "+5 MIN" and applies them with SETZEN (or Enter, or SPEICHERN when the box was changed). The new time replaces the old one, shorter or longer, and also gives a timer to an Aufgabe that had none. The box opens on the minutes left, rounded up. - Domain: IncidentTask.WithTimer and Incident.SetTaskTimer, 1 to 1440 minutes counted from now; a done Aufgabe refuses. - Sync: SetTaskTimerCommand carries minutes, so the host stamps the due time with its own clock. A host at 46 does not know the command, so ProtocolVersion and MinimumProtocolVersion both rise to 47. - TaskRow.HasTimer follows the task, so +5 MIN turns on once SETZEN has given a task its first timer. Fixes #964 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com> --- .../+aufgaben-set-reminder-time.added.md | 1 + src/LageBuch.App.Shared/Views/TasksView.axaml | 16 +- src/LageBuch.AppLogic/LocalIncidentSession.cs | 3 + .../ViewModels/TasksViewModel.cs | 95 ++++++++++- .../ViewModels/ValidationMessages.cs | 3 + src/LageBuch.Domain/Incident.cs | 17 ++ src/LageBuch.Domain/Tasks/IncidentTask.cs | 35 +++- src/LageBuch.Sync/CommandApplier.cs | 3 + src/LageBuch.Sync/IIncidentSession.cs | 4 + src/LageBuch.Sync/RemoteIncidentSession.cs | 3 + src/LageBuch.Sync/SyncCommand.cs | 5 + src/LageBuch.Sync/SyncProtocol.cs | 8 +- .../TasksTabRenderTests.cs | 27 +++ .../CoMessprotokollViewModelTests.cs | 2 + .../LocalSessionTaskTests.cs | 15 ++ .../TaskEditingTests.cs | 156 ++++++++++++++++++ .../IncidentTaskAggregateTests.cs | 100 +++++++++++ .../WorkspaceCollaborationTests.cs | 8 + .../CommandApplierTests.cs | 29 ++++ .../CommandSerializationTests.cs | 1 + .../VersionHandshakeTests.cs | 13 +- 21 files changed, 528 insertions(+), 16 deletions(-) create mode 100644 changelog.d/+aufgaben-set-reminder-time.added.md diff --git a/changelog.d/+aufgaben-set-reminder-time.added.md b/changelog.d/+aufgaben-set-reminder-time.added.md new file mode 100644 index 00000000..051e3c8c --- /dev/null +++ b/changelog.d/+aufgaben-set-reminder-time.added.md @@ -0,0 +1 @@ +An Aufgabe being edited takes the minutes until its reminder directly, shorter or longer than before and also on an Aufgabe without a timer, next to the "+5 MIN" button (#964). diff --git a/src/LageBuch.App.Shared/Views/TasksView.axaml b/src/LageBuch.App.Shared/Views/TasksView.axaml index abb76dad..33b40178 100644 --- a/src/LageBuch.App.Shared/Views/TasksView.axaml +++ b/src/LageBuch.App.Shared/Views/TasksView.axaml @@ -209,13 +209,23 @@ FilterMode="ContainsOrdinal" MinimumPrefixLength="0" Text="{Binding EditAssignee}" /> - - + + + +