Skip to content

Add colors to categorization rules #416

@ErikBjare

Description

@ErikBjare

We currently use some randomly generated colors in the web UI, it would be nice to have them actually mean something significant.

Similarly to how GitHub has colors for tags, we could add colors to categorization rules which gives categorized events the color in it's $color data key, which visualizations can then use.

I'm suggesting:

  • That categorization rules can have a color.
  • That the categorization rule color gets assigned to events with that category by setting the $color key.
  • Unsure if good solution: If a categorization rule doesn't have a color it inherits the parent category color (potentially +random noise to slightly differentiate). If none of the parents have a color, it will set $color to null/None.

Not a priority, but I've had this in the back of my mind for a long time and finally realized it would be neat to do this using categories.

Similar changes, but for productivity: ActivityWatch/aw-webui#162

This is a requested feature on the forum: https://forum.activitywatch.net/t/add-percentage-or-improve-colorizing-for-better-visualization/981

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions