Added the Percentage#203
Closed
Rustix69 wants to merge 0 commit into
Closed
Conversation
| return Math.abs(hash).toString(36); | ||
| }; | ||
|
|
||
| /** |
Collaborator
There was a problem hiding this comment.
seems to be too convoluted. the UI elements inside ./ui must remain as - is to Avoid breaking changes. imo.. this feature can be implemented via Tailwind Classes, and a simple Round function inside that
d6536df to
28e2825
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added completion percentage display in Project and Tag filter dropdowns to help users quickly track task progress at a glance.
Key Features:
{completed}/{total} ({percentage}%)useMemohooksScreenshot
Files Modified:
frontend/src/components/utils/types.ts- AddedFilterStatsinterfacefrontend/src/components/HomeComponents/Tasks/tasks-utils.ts- Added calculation functionsfrontend/src/components/ui/multiSelect.tsx- Enhanced to display statsfrontend/src/components/HomeComponents/Tasks/Tasks.tsx- Integrated stats calculationFixes: #(replace_with_the_issue_fixed)
Checklist
npx prettier --write .(for formatting)gofmt -w .(for Go backend) - N/A (no backend changes)npm test(for JS/TS testing)Additional Notes
Implementation Details:
calculateProjectStats()andcalculateTagStats()utility functionsuseMemofor efficient recalculation only when tasks/filters change