Skip to content

Conversation

@Dharp02
Copy link

@Dharp02 Dharp02 commented Oct 30, 2025

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:

    • Date (e.g., 10/30/2025)
    • Start time (e.g., 01:00 PM)
    • End time (e.g., 02:00 PM)
  • Update the results dynamically in the timeline and summary view.


Example Prototype

image Example: **Activity for 2025-10-30 — 13:00 to 14:00** Host: Poonam • Time active: 1h 15m 42s

Benefits

  • Makes hour-level filtering consistent with other time views.
  • Helps users who want to analyze short working sessions or specific periods during the day.
  • Reduces the need for manual navigation in the timeline to inspect hourly data.

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.


Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to 12a78d6 in 41 seconds. Click for details.
  • Reviewed 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 draft 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% <= threshold 50% 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 Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

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)];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good for MVP but it would be nice to support looping for each hour.

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.

2 participants