Skip to content

Conversation

@Rustix69
Copy link
Contributor

@Rustix69 Rustix69 commented Jan 9, 2026

Description

This PR adds completion percentage display to the Projects and Tags filter dropdowns, allowing users to quickly see task progress without opening each filter individually.

Changes:

  • Added calculateProjectStats() and calculateTagStats() utility functions in tasks-utils.ts

  • Enhanced MultiSelectFilter component to accept and display completion statistics

  • Updated Tasks.tsx to calculate and pass completion stats to filter dropdowns

  • Stats show format: "ProjectName - 3/10 tasks, 30%"

  • Fixes: Show Completion Percentage Next to Filters in Dropdown #177

Checklist

  • Ran npx prettier --write . (for formatting)
  • Ran gofmt -w . (for Go backend)
  • Ran npm test (for JS/TS testing)
  • Added unit tests, if applicable
  • Verified all tests pass
  • Updated documentation, if needed

Additional Notes

image

- Add calculation functions for project and tag completion stats
- Update MultiSelectFilter to display completion percentage
- Show completed/total tasks count in filter dropdowns
- Calculate stats dynamically when tasks are loaded or synced
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

More information on how to conduct a self review:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

- Add calculateProjectStats and calculateTagStats functions
- Display completed/total tasks and percentage in filter dropdowns
- Update stats dynamically on task changes and sync
- Add comprehensive test coverage for new functionality
@its-me-abhishek
Copy link
Collaborator

@Rustix69 there are conflicts due to recent merges.

Rustix69 and others added 3 commits January 10, 2026 23:04
- Add calculateProjectStats and calculateTagStats functions
- Display completed/total tasks and percentage in filter dropdowns
- Update stats dynamically on task changes and sync
- Add comprehensive test coverage for new functionality
@its-me-abhishek its-me-abhishek merged commit 224ad3a into CCExtractor:main Jan 10, 2026
5 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.

Show Completion Percentage Next to Filters in Dropdown

2 participants