Skip to content

Conversation

matejsemancik
Copy link
Owner

No description provided.

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
@matejsemancik matejsemancik changed the title Stats: Ahead/behind indicators Stats: ahead/behind indicators Jun 26, 2025
@matejsemancik matejsemancik merged commit d2a6fc3 into main Aug 27, 2025
1 check passed
@matejsemancik matejsemancik deleted the feature/stats-ahead-behind branch August 27, 2025 13:43
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.

1 participant