Stats: ahead/behind indicators#23
Merged
matejsemancik merged 7 commits intomainfrom Aug 27, 2025
Merged
Conversation
This commit introduces `ahead` and `behind` properties to the `WorkStats` model, providing users with a clearer understanding of their work progress relative to the required work for a given period. The `WorklogRepo` has been updated to calculate these new properties, and the `StatsWidgetUi` now displays them. Test cases have been added to `WorklogRepoTest` to ensure the new properties are calculated correctly.
This commit refactors the `WorkStats` model to use a single `trackingDelta` property instead of the separate `ahead` and `behind` properties. This simplifies the model and makes the code easier to understand. The `WorklogRepo` and `StatsWidgetUi` have been updated to use the new `trackingDelta` property. The UI now only displays the tracking delta for the "Current Period" and when the delta is not zero. The tests in `WorklogRepoTest` have also been updated to reflect the changes.
This commit adds a `GEMINI.md` file to the project, which contains guidelines for the Gemini AI assistant to follow when working on this project. This will help Gemini to understand the projects architecture and to make more informed decisions when assisting with development.
This commit introduces a new color to to visually distinguish negative time deltas in the work stats. The has been updated to apply color for positive deltas and for negative deltas, improving readability and user experience.
- Add "Done for today" message when caught up - Update text color when caught up to success color
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.
No description provided.