task-report: Add task report view#139
Merged
Merged
Conversation
- Adds a toggle button to the main tasks view. - Conditionally renders a new ReportsView component. - ReportsView shows Daily, Weekly, and Monthly bar charts for 'Completed' vs 'Ongoing' tasks.
its-me-abhishek
requested changes
Nov 1, 2025
| } from 'recharts'; | ||
|
|
||
| const Legend: any = RechartsLegend; | ||
| type ReportsViewProps = { |
Collaborator
There was a problem hiding this comment.
Should move all Types, helpers to types.ts and utils.ts in the same directories
| return new Date(date.getFullYear(), date.getMonth(), date.getDate()); | ||
| }; | ||
|
|
||
| const ReportChart = ({ data, title }: { data: any[]; title: string }) => ( |
Collaborator
There was a problem hiding this comment.
this can be a separate component imho
Contributor
Author
on it! |
13eaee8 to
e5f974f
Compare
e5f974f to
63777eb
Compare
Contributor
Author
done, please check |
Closed
ShivaGupta-14
pushed a commit
to ShivaGupta-14/ccsync
that referenced
this pull request
Dec 25, 2025
* task-report: Add task report view - Adds a toggle button to the main tasks view. - Conditionally renders a new ReportsView component. - ReportsView shows Daily, Weekly, and Monthly bar charts for 'Completed' vs 'Ongoing' tasks. * fix-CI: Fix prettier formatting error
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.
- Adds a toggle button to the main tasks view:-

- Conditionally renders a new ReportsView component.
screen recording:-
https://github.com/user-attachments/assets/793d7c62-c026-4b3b-8810-97736f302f8c
- ReportsView shows Daily, Weekly, and Monthly bar charts for 'Completed' vs 'Ongoing' tasks:-

- 3 items column on medium or small screens
screen recording:-
https://github.com/user-attachments/assets/7bcd11b9-9ec9-470a-9828-e388566cfe14