katieg
June 29, 2025, 8:41pm
1
If you use the arrows to change the date forward or backwards on the Activity screen, it clears whatever filters you have set. If you instead click the calendar icon in the date field and choose a new date via the calendar popup, it does not clear the filters, but that only works on the day view.
I would like to be able to use the arrows to flip between days, weeks, or months without the filters clearing automatically. Or to save specific filters on a view that I’ve created to track time by project, without having to refilter every single time.
Am I missing something and this capability exists?
RTnhN
July 2, 2025, 2:43am
2
I think that might have been missing. It makes sense to preserve the filters, I think.
It turned out to be a pretty simple fix. I added it to a PR that I already have here:
ActivityWatch:master ← RTnhN:feature/day_week_shift
opened 08:03PM - 01 Mar 25 UTC
This change has two different changes.
1. [On the forum](https://forum.activit… ywatch.net/t/improving-date-selection-in-timeline/3443/3), someone had a suggestion to be able to shift over the date in the timeline view. I also had this problem. It is also nice to have a today button even though you can just click the 24 hour option above the date pickers. The date shift actually works on the start and end dates independently, so you are able to select a two day range in the date pickers and shift that two day range over by a day or a week.
~~2. While I was working on this change, I also added a change to resolve. This will fill the end date with the start date if the end date is blank. Worst case, the person will just modify the end date to be the date that they really wanted to select. Best case, they wanted a one day range anyways.~~
https://github.com/user-attachments/assets/aa32bdf9-9025-493f-9581-537a284b5b85
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Adds quick shift buttons to `InputTimeInterval.vue` for date navigation and preserves query parameters in `Activity.vue`.
>
> - **Behavior**:
> - Adds quick shift buttons in `InputTimeInterval.vue` to move date ranges by -1w, -1d, Today, +1d, +1w.
> - `setToday()` sets both start and end dates to today.
> - `shiftDay(days)` shifts start and end dates by specified days.
> - **Navigation**:
> - Updates `Activity.vue` to preserve query parameters when navigating between periods using `previousPeriod()` and `nextPeriod()`.
> - **Misc**:
> - Removes the feature to autocomplete end date from start date if end date is blank.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=ActivityWatch%2Faw-webui&utm_source=github&utm_medium=referral)<sup> for 6295ae703563703a0ff23eaebfbfc1b2866b6b62. You can [customize](https://app.ellipsis.dev/ActivityWatch/settings/summaries) this summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->