pace
pace copied to clipboard
Implement `review` command for activity insights
Overview
The pace CLI currently lacks a comprehensive way to review and summarize time spent on various activities. Users need an intuitive command to generate a detailed report of their activities, grouped by categories and subcategories, with total time spent on each. The proposed review command aims to fill this gap by aggregating activity data and presenting it in a structured and readable format.
Objectives
- Implement a
reviewcommand that aggregates activity data. - Group activities by categories and subcategories.
- Display total time spent on each activity and category.
- Ensure the output is formatted for easy readability.
Proposed Enhancements
-
Data Aggregation Logic (pace_core)
- [X] Develop logic to parse
activities_<date>.pace.tomland any associated activity logs. - [x] Aggregate activities by categories and subcategories.
- [x] Calculate total time spent on each activity and category.
- [X] Develop logic to parse
-
Command Implementation (pace)
- [x] Implement the
reviewcommand in the CLI interface usingclap. - [x] Integrate the data aggregation logic with the
reviewcommand.
- [x] Implement the
-
Output Formatting (pace_core)
- [x] Design a format for the output with enhanced readability.
- [x] Implement formatting logic that aligns with the designed format.
Further Improvements
- [x] Provide options to filter the review by date range, e.g.,
--fromand--toflags. - [ ] Allow users to export the review report to different formats, such as Markdown, PDF, json, and csv.
- [ ] Implement caching mechanisms to improve performance for generating reviews.
Request for Comments (RFC)
Feedback is requested from contributors and users on the following:
- Suggestions for the output format and additional formatting features.
- Ideas for optimizing data aggregation and report generation.
- Interest in additional filtering and export options.