Skip to content

Update Todoist integration to include overdue tasks and color them red#13

Merged
DMcP89 merged 4 commits intomainfrom
copilot/update-todoist-integration
Oct 21, 2025
Merged

Update Todoist integration to include overdue tasks and color them red#13
DMcP89 merged 4 commits intomainfrom
copilot/update-todoist-integration

Conversation

Copy link
Contributor

Copilot AI commented Oct 19, 2025

  • Update Todoist API filter to include overdue tasks (filter=today|overdue)
  • Update test to reflect the new URL filter
  • Run tests to ensure changes work correctly
  • Verify code formatting with go fmt and go vet
  • Add red coloring for overdue tasks using [red] tags
  • Update test data to include due dates for proper testing
  • Revert unintended formatting changes to gitstatus_test.go
  • Update README.md to mark todoist integration task as complete
Original prompt

This section details on the original issue you should resolve

<issue_title>Update todoist integration to include tasks that are overdue</issue_title>
<issue_description>## Problem
Currently when using the todoist integration for the todo list box it will only display tasks that are due on the current day and exclude any tasks that are considered overdue.

Solution

Update the integration to pull both tasks due on the current day and any tasks that are considered overdue.

https://api.todoist.com/rest/v2/tasks?filter=today%7Coverdue</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #12


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: DMcP89 <4146149+DMcP89@users.noreply.github.com>
Copilot AI changed the title [WIP] Update todoist integration to include overdue tasks Update Todoist integration to include overdue tasks Oct 19, 2025
Copilot AI requested a review from DMcP89 October 19, 2025 13:03
@DMcP89 DMcP89 marked this pull request as ready for review October 19, 2025 14:36
@DMcP89
Copy link
Owner

DMcP89 commented Oct 20, 2025

@copilot update it so that the text for overdue tasks in colored red.

Co-authored-by: DMcP89 <4146149+DMcP89@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 20, 2025

@copilot update it so that the text for overdue tasks in colored red.

Done! Overdue tasks are now colored red in the UI. The implementation compares each task's due date with today's date - tasks with due dates before today are displayed with [red] tags.

Changes in commit ff7a7ad:

  • Updated GetTodaysTasks() to check if task is overdue by comparing due date
  • Overdue tasks formatted as [red]☐ Task name[white]
  • Tasks due today or in the future remain in normal white color
  • Updated test data to include due field with dates for testing

Example output:

☐ Day care pick up         (due today - normal)
☐ Garbage                  (🔴 overdue - RED)
☐ Work on harambot         (🔴 overdue - RED)

Copilot AI changed the title Update Todoist integration to include overdue tasks Update Todoist integration to include overdue tasks and color them red Oct 20, 2025
@DMcP89
Copy link
Owner

DMcP89 commented Oct 21, 2025

@copilot remove the changes you made to gitstatus_test.go and update README.md to mark this task as checked.

… README

Co-authored-by: DMcP89 <4146149+DMcP89@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 21, 2025

@copilot remove the changes you made to gitstatus_test.go and update README.md to mark this task as checked.

Done in commit 8b5e3c7:

  • Reverted changes to gitstatus_test.go (removed whitespace cleanup that was accidentally included)
  • Updated README.md line 74 to mark "Update todoist integration to include overdue tasks" as completed [x]

@DMcP89 DMcP89 merged commit eef2a25 into main Oct 21, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update todoist integration to include tasks that are overdue

2 participants