Add Hourly Time Range Filter and Hour-Based Sorting in Activity Timeline#721
Open
Dharp02 wants to merge 5 commits intoActivityWatch:masterfrom
Open
Add Hourly Time Range Filter and Hour-Based Sorting in Activity Timeline#721Dharp02 wants to merge 5 commits intoActivityWatch:masterfrom
Dharp02 wants to merge 5 commits intoActivityWatch:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed everything up to 12a78d6 in 41 seconds. Click for details.
- Reviewed
12lines of code in1files - Skipped
0files when reviewing. - Skipped posting
1draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/views/activity/Activity.vue:236
- Draft comment:
New 'hour' option added. Ensure corresponding logic (e.g., in computed 'timeperiod' and 'periodIsBrowseable') and UI handling are updated to correctly support hourly filtering. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%<= threshold50%The comment is asking the author to ensure that the logic and UI handling are updated to support a new 'hour' option. This is a general request to ensure that the change is tested and integrated properly, which violates the rule against asking the author to ensure behavior is intended or tested.
Workflow ID: wflow_Wyq9kvHiYcbSpFMR
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
horner
reviewed
Nov 2, 2025
src/stores/activity.ts
Outdated
| if (res.startsWith('hour')) { | ||
| // For hour periods (including custom ranges like 1.5 hours), | ||
| // just query the exact timeperiod as a single period | ||
| periods = [timeperiodToStr(timeperiod)]; |
There was a problem hiding this comment.
This is good for MVP but it would be nice to support looping for each hour.
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.
Description
Currently, ActivityWatch provides time filters such as Day, Week, and Month in the main filter dropdown.
While the timeline already supports viewing activity data at an hourly level, there’s no direct option to filter or select an hourly range from the main filter controls.
This enhancement would make it easier for users to analyze activity within specific hourly intervals without relying solely on the timeline view.
Feature Proposal
Goal:
Add an “Hour” option in the existing time range dropdown to allow filtering activities for a selected hour (e.g., 1 PM – 2 PM).
Key Enhancements:
Introduce a new “Hour” filter option next to Day, Week, and Month.
Allow selecting:
Update the results dynamically in the timeline and summary view.
Example Prototype
Benefits
Expected Outcome
Users can select the Hour option in the main filter, choose a date and a specific time window, and instantly see the corresponding activity data — just like they currently can with day, week, or month.