diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d55504..63982fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ # CodeClocker Changelog -## [Unreleased] +## [1.2.3] - 2025-11-29 + +- Reset VCS changes at midnight in IDE status bar ## [1.2.2] - 2025-11-28 diff --git a/README.md b/README.md index 5067cf1..4581a3b 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ -## What's CodeClocker +## CodeClocker Time Tracker -CodeClocker automatically tracks coding activity and visualizes it in the IDE status bar and on [web dashboard on CodeClocker Hub](https://hub.codeclocker.com/). +CodeClocker automatically tracks your coding time and activity, displaying it in the IDE status bar and on the [CodeClocker Hub](https://hub.codeclocker.com/). -![Demo](https://raw.githubusercontent.com/codeclocker/codeclocker-intellij-plugin/main/docs/img/demo.gif) +[![Demo](https://raw.githubusercontent.com/codeclocker/codeclocker-intellij-plugin/main/docs/media/demo.mp4) ### Features @@ -58,4 +58,4 @@ Once active, it will update to "Active: Receiving data". If you need to open the API Key dialog window in your IntelliJ IDE (for example, you accidentally closed it during initial plugin installation), then go to **Tools > CodeClocker API Key** at the top of the dropdown list. -![API key menu](docs/img/api-key-menu.jpg) +![API key menu](docs/media/api-key-menu.jpg) diff --git a/docs/img/demo.gif b/docs/img/demo.gif deleted file mode 100644 index 447a5df..0000000 Binary files a/docs/img/demo.gif and /dev/null differ diff --git a/docs/img/api-key-menu.jpg b/docs/media/api-key-menu.jpg similarity index 100% rename from docs/img/api-key-menu.jpg rename to docs/media/api-key-menu.jpg diff --git a/docs/media/demo.mp4 b/docs/media/demo.mp4 new file mode 100644 index 0000000..9674479 Binary files /dev/null and b/docs/media/demo.mp4 differ diff --git a/gradle.properties b/gradle.properties index 71f519c..95a93e2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.codeclocker pluginName = CodeClocker pluginRepositoryUrl = https://github.com/codeclocker/codeclocker-intellij-plugin # SemVer format -> https://semver.org -pluginVersion = 1.2.2 +pluginVersion = 1.2.3 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 242 diff --git a/src/main/java/com/codeclocker/plugin/intellij/services/TimeTrackerWidgetService.java b/src/main/java/com/codeclocker/plugin/intellij/services/TimeTrackerWidgetService.java index 54d30f6..0c6f01c 100644 --- a/src/main/java/com/codeclocker/plugin/intellij/services/TimeTrackerWidgetService.java +++ b/src/main/java/com/codeclocker/plugin/intellij/services/TimeTrackerWidgetService.java @@ -4,6 +4,7 @@ import static com.codeclocker.plugin.intellij.services.vcs.ChangesActivityTracker.GLOBAL_ADDITIONS; import static com.codeclocker.plugin.intellij.services.vcs.ChangesActivityTracker.GLOBAL_REMOVALS; +import com.codeclocker.plugin.intellij.services.vcs.ChangesActivityTracker; import com.codeclocker.plugin.intellij.stopwatch.SafeStopWatch; import com.codeclocker.plugin.intellij.widget.TimeTrackerWidget; import com.intellij.openapi.Disposable; @@ -113,6 +114,13 @@ private void checkMidnightReset() { GLOBAL_REMOVALS.set(0); GLOBAL_STOP_WATCH.reset(); + // Reset per-project VCS changes counters + ChangesActivityTracker changesTracker = + ApplicationManager.getApplication().getService(ChangesActivityTracker.class); + if (changesTracker != null) { + changesTracker.clearAllProjectChanges(); + } + lastDate = currentDate; } }