Skip to content

Task filtering: add No Due Date group and preserve section grouping on category filter#31

Merged
JoeProgrammer88 merged 2 commits intomainfrom
copilot/add-no-due-date-task-filter
Mar 3, 2026
Merged

Task filtering: add No Due Date group and preserve section grouping on category filter#31
JoeProgrammer88 merged 2 commits intomainfrom
copilot/add-no-due-date-task-filter

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 3, 2026

Tasks without a due date were incorrectly grouped under "Tasks Due Today", and selecting a category filter collapsed all groupings into a flat list.

Changes

  • filtersActive no longer includes categoryFilter — category filtering now preserves the grouped view; only status/search filters use the flat list
  • New "Overdue" section — incomplete tasks with a past due date are separated from "Due Today"
  • "Due Today" scoped to today only — filter changed from !task.dueDate || task.dueDate <= today to task.dueDate && task.dueDate === today
  • New "No Due Date" section — tasks without a due date get their own group instead of appearing under "Due Today"

Resulting section order: Overdue → Due Today → Upcoming Tasks → No Due Date

// Before: category filter killed grouping; no-due-date tasks appeared under "Due Today"
const filtersActive = categoryFilter || statusFilter || searchTerm;
const dueToday = filtered.filter(task => !task.dueDate || task.dueDate <= today);

// After
const filtersActive = statusFilter || searchTerm;
const overdue   = filtered.filter(task => !task.completed && task.dueDate && task.dueDate < today);
const dueToday  = filtered.filter(task => task.dueDate && task.dueDate === today);
const noDueDate = filtered.filter(task => !task.dueDate);
Original prompt

This section details on the original issue you should resolve

<issue_title>Task filtering</issue_title>
<issue_description>When tasks don't have a due date they should be in a new group of no due date tasks

When filtering tasks by a category, there should still be due today, overdue, and no due date task</issue_description>

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


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…tegory

Co-authored-by: JoeProgrammer88 <7156063+JoeProgrammer88@users.noreply.github.com>
Copilot AI changed the title [WIP] Add task filtering for no due date tasks Task filtering: add No Due Date group and preserve section grouping on category filter Mar 3, 2026
@JoeProgrammer88 JoeProgrammer88 marked this pull request as ready for review March 3, 2026 01:07
@JoeProgrammer88 JoeProgrammer88 merged commit 552cd00 into main Mar 3, 2026
1 check passed
@JoeProgrammer88 JoeProgrammer88 deleted the copilot/add-no-due-date-task-filter branch March 3, 2026 01:09
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.

Task filtering

2 participants