Skip to content

Add Group By (Priority, Category) to tasks page#33

Merged
JoeProgrammer88 merged 2 commits intomainfrom
copilot/add-group-by-options-to-tasks
Mar 3, 2026
Merged

Add Group By (Priority, Category) to tasks page#33
JoeProgrammer88 merged 2 commits intomainfrom
copilot/add-group-by-options-to-tasks

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 3, 2026

Tasks page lacked any grouping options beyond the default date-based sections. Adds a Group By dropdown alongside the existing filters to organize tasks by Priority or Category.

Changes

index.html

  • Added #groupBySelect dropdown to the task filter bar with options: No Grouping, Group by Priority, Group by Category

src/app.ts

  • Registered change listener on #groupBySelectfilterTasks()
  • Extended filterTasks() with two new grouping modes:
    • Priority: High Priority → Medium Priority → Low Priority → Ungrouped
    • Category: alphabetical category groups → Ungrouped (tasks with no category)
    • Default (no grouping) retains existing Overdue → Due Today → Upcoming → No Due Date behavior

e2e/app.spec.ts

  • Added 4 E2E tests covering dropdown visibility, priority grouping order, category grouping order, and revert-to-default behavior

Behavior

Tasks without a value for the selected group field are collected into an Ungrouped section at the end, consistent with the issue spec.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add Group By options to tasks</issue_title>
<issue_description>On the tasks page, add another dropdown to group tasks by

  • Priority
  • Category

When using those options, tasks that do not have a value will be at the end as ungrouped</issue_description>

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


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: JoeProgrammer88 <7156063+JoeProgrammer88@users.noreply.github.com>
Copilot AI changed the title [WIP] Add group by options for tasks page Add Group By (Priority, Category) to tasks page Mar 3, 2026
@JoeProgrammer88 JoeProgrammer88 marked this pull request as ready for review March 3, 2026 02:12
@JoeProgrammer88 JoeProgrammer88 merged commit ca5336b into main Mar 3, 2026
1 check passed
@JoeProgrammer88 JoeProgrammer88 deleted the copilot/add-group-by-options-to-tasks branch March 3, 2026 02:14
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.

Add Group By options to tasks

2 participants