Add Hourly Time Range Filter and Hour-Based Sorting in Activity Timeline #721
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.