Skip to content

Add "Hide Completed" toggle to task filter bar#35

Merged
JoeProgrammer88 merged 2 commits intomainfrom
copilot/add-hide-completed-tasks
Mar 4, 2026
Merged

Add "Hide Completed" toggle to task filter bar#35
JoeProgrammer88 merged 2 commits intomainfrom
copilot/add-hide-completed-tasks

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 4, 2026

Completed tasks clutter the task view with no way to suppress them independently of the status filter. This adds a dedicated toggle that hides completed tasks across all groupings and filter combinations.

Changes

  • index.html — Added 👁 Hide Completed button to the filters row
  • src/app.ts
    • hideCompleted: boolean state property on TaskManager
    • toggleHideCompleted() — flips state, updates button text/style, re-renders
    • filterTasks() — short-circuits completed tasks first when flag is set:
      if (this.hideCompleted && task.completed) return false;
  • css/styles.css.btn-secondary.active styled to primary blue to indicate the filter is on

Behaviour

The toggle is orthogonal to all other filters (category, status, group-by, search). When active, the button switches to "👁 Show Completed" with a blue highlight.

Default Active (hiding completed)
default active
Original prompt

This section details on the original issue you should resolve

<issue_title>Add feature to hide completed tasks</issue_title>
<issue_description>The completed tasks can clutter up the task view. The user should have the option to hide completed tasks regardless of grouping or filtering</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.

Co-authored-by: JoeProgrammer88 <7156063+JoeProgrammer88@users.noreply.github.com>
Copilot AI changed the title [WIP] Add feature to hide completed tasks in task view Add "Hide Completed" toggle to task filter bar Mar 4, 2026
@JoeProgrammer88 JoeProgrammer88 marked this pull request as ready for review March 4, 2026 03:59
@JoeProgrammer88 JoeProgrammer88 merged commit 1dc5af0 into main Mar 4, 2026
1 check passed
@JoeProgrammer88 JoeProgrammer88 deleted the copilot/add-hide-completed-tasks branch March 4, 2026 04:01
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 feature to hide completed tasks

2 participants