Activity view: add "Custom range" and "All time" periods
Author: ErikBjareCreated Sep 26, 2026Updated Sep 26, 2026
Labelstype: enhancementmodule: webui
Requested on the forum: https://forum.activitywatch.net/t/add-all-time-and-or-custom-time-range-to-query-range/2949 (2024, bumped 2026-09-26).
The Activity view currently offers day / week / month / (year, hidden behind the showYearly developer setting) / last 7d / last 30d.
1. Custom range
Pick an arbitrary start and end date and get the regular Activity view for it.
- The Timeline view already has a date-range picker (
InputTimeInterval.vue) that could be reused or shared. - Activity periods are currently
[n, unit]steps from a start date (Activity.vue, route/activity/:host/:periodLength/:date), so this needs a new period type with an explicit end date in the route. Prev/next could step by the range length.
2. All time
From the earliest event in the host's buckets to now.
- With the recent performance work (per-day split of desktop queries in ActivityWatch/aw-webui#951, named/cached queries for past periods) this should be feasible for up to ~5 years of data. Beyond that, slow is acceptable.
- Show a "this may be slow" hint on the option (e.g. a next to the label, or a note while loading), and keep the UI responsive while it loads (progress indicator, cancellable if practical).
- Probably also relevant for Year view, which hits the same scaling limits.
3. Un-hide Year view, no new toggles
- Remove the
showYearlyswitch (Developer settings,settings.ts,Activity.vue:311, locale strings) and always show Year. - Don't gate Custom range / All time behind a setting either; the slow-query hint is the mitigation.
Acceptance
- Custom range option in the Activity period selector, with shareable URL
- All time option, with slow-query hint
-
showYearlysetting removed, Year always available (drop the stale key from stored settings) - Reasonable load time on ~5 years of data (measure and note the number in the PR)
Source: ActivityWatch/activitywatch