Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Reorganize settings page into a container
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s committed Sep 5, 2019
1 parent 535f5d8 commit 9531c6b
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 166 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ build-all:
python setup.py sdist
python setup.py clean
rm -rf ./Spytrack.egg-info
zip -9 -r ./dist/spytrack.zip dist/spytrack
10 changes: 4 additions & 6 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,27 @@
## Optimization

- (1) Don't re-render if the window is hidden
- (1) Move out computations to a separate window
- (1) Move out computations to a separate thread
- (1) Reduce memory footprint by [optimizing](https://habr.com/ru/post/455722/) events
- (3) Don't intersect all events, only after the last intersected one
- (3) Don't aggregate on all events, add to the intersection only the last events

## Configuration

- (1) The config file should be create from the default one
- (2) Put the configuration file to the local directory
- (1) Add stop-list for app tracker
- (2) Wildcard rules and special syntax for regexp rules
- (1) Validate input forms

## UI

- (2) Icon should change depending on the current project
- (4) Projects should be added, removed and edited in a separated UI rather than a config
- (3) Change tray icon depending on a project and its completion
- (2) "Add a rule" dialog to on double-click on project's event
- (3) Inclusive and exclusive filtering for events on the selected project (for analyzing mismatches).
Maybe a normal string with ES-like syntax: `+search1 +"search2 complex" -"search exclude"` for simplicity
- (2) Make projects settings collapsable
- (1) Make projects settings collapsable
- (2) Edit start of the day
- (2) Add https://github.com/ActivityWatch/aw-webui to compensate the lack of features

## Projects

Expand All @@ -45,8 +43,8 @@
# Planned fixes

- (1) List of projects and their events should be updated after any start-end time change
- (2) Make AW web-ui link configurable
- (2) Redraw chart on Today checkbox or date change
- (3) Regexp validation

## Refactoring

Expand Down
2 changes: 1 addition & 1 deletion spytrack/analyze/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class PieChartData:
data: Dict[str, int]
data: Dict[str, float]

def __init__(self) -> None:
self.data = {}
Expand Down
2 changes: 1 addition & 1 deletion spytrack/config/default_config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
default_yaml = """
daemon:
host: http://localhost
port: 9011
port: 5600
gui:
interval: 5
projects:
Expand Down
Loading

0 comments on commit 9531c6b

Please sign in to comment.