feat: real activity streak instead of the hardcoded 12 - #172
Merged
Merged
Conversation
# Conflicts: # backend/src/main/java/com/autoapplicant/adapter/persistence/repository/GeneratedDocumentJpaRepository.java
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.
The sidebar said "12-day streak" for everyone (
count: 12was hardcoded). Now it's a real number.GET /api/v1/analytics/streak?zone=<IANA zone>: consecutive days with job-search activity, i.e. application status moves (which includes creating one), generated documents and outreach. The status ledger isn't exposed outside the per-application timeline, so the frontend couldn't work this out from what it already loads.Includes #174 (a test that broke when #162 and #169 crossed on main) so CI can compile; merge #174 first and that part drops out of the diff. #175 retakes the README screenshots with this in place, so it goes after this one.