Repository navigation
Highlight due and overdue tasks, fix Date.days_between - #183
Open
mbrettschneider wants to merge 2 commits into
Open
mbrettschneider wants to merge 2 commits into
mbrettschneider wants to merge 2 commits into
Conversation
days_between read the year, month and day of both dates from this.dt, so it always returned 0. As a result, the threshold date of a recurring task with both a due and a threshold date was not moved along with the due date when the task was rescheduled. Add a test for that case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Show the due date in bold if a task is due today and in bold red if it is overdue, and add the due date to the tooltip. Update the row when the due date changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tasks with a
due:date currently show the date only as plain text, so overdue tasks look the same as everything else. This PR adds a small visual cue and fixes a bug I found along the way.Changes
TaskRow: highlight due and overdue tasks
due:date in bold.due:date in bold red (#c01c28).notify["due-date"]).Date: fix
days_betweenignoring its argumentdays_betweenread the year, month and day of both dates fromthis.dt, so it always returned 0. Its only caller, the rescheduling of recurring tasks inTaskManager, therefore never moved the threshold date along with the due date: a weekly task withdue:2021-11-16 t:2021-11-14, completed on 2021-11-15, gotdue:2021-11-23but keptt:2021-11-14. There is a new test, "Repeat weekly task upon completing (due and threshold date)", for this case. It fails without the fix and passes with it.Testing
Built on Ubuntu 24.04 (Vala 0.56.16, GTK 3.24.41) with
-DBUILD_TESTS=ON: all 33 tests pass.Checked by hand with a todo.txt that has an overdue task, a task due today (2026-10-21), a task due later and a task without a due date:
Not included
🤖 Generated with Claude Code