Feature proposal: focus/distraction analytics dashboard built on the category system

Open
#897 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

  • #1118 by @TimeToBuildBob — closed without merging

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript

Research direction

The issue proposes a new dashboard view for focus/distraction analytics. Start by examining the existing category tree and metrics module in the aw-webui codebase. The new view will need to add a 'class' field to category leaves, compute metrics like utilization percentage and context switch count, and render the dashboard. Look for existing dashboard components and the data flow for categories to understand where to integrate. The work is additive, so ensure no existing views are altered.

Written by the indexing model from the issue text.

Description

enhancement

aw-webui has categories but no way to see how time splits across focus vs operational vs distracted work, no context-switch tracking, no attention-span metrics.
I've been building this on top of the existing category tree (adding a class field per leaf: focus/operational/distraction, computed in a pure metrics module, rendered as a new dashboard view).
Scope I'm proposing: utilization %, focus/distraction ratios, context switch count, attention span average, an "unclassified time" panel with one-click classify buttons that write back to the existing category settings. All additive, no changes to existing views or data model beyond the new class field.
Not proposing: browser extension requirements, LLM-based classification, or anything that changes existing behavior for users who don't touch the new view.
Before I put more time in: is this something you'd take as a PR into aw-webui, or would you rather this live as a separate companion project referenced from your docs/ecosystem list? Happy to go either way, want to build toward whatever you'd actually accept.

Screenshot:
Image
Image
Image

Dominant language
TypeScript
Stars
157
Forks
199
Avg merge
3d 18m
Merged PRs (30d)
81

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/aw-webui

All issues in ActivityWatch/aw-webui

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.