ActivityWatch / ActivityWatch/aw-webui

Configurable Title Attribute

Đang mở
#678 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
151
Fork
179
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
28

Mô tả

I'd like to implement a feature, to make the timline box title configurable.

![Image](https://github.com/user-attachments/assets/95e8c687-949c-4b29-a1d3-59dbaa245b86)

I'd like to see the "title" property for the "aw-watcher". I see that the logic in the getTitleAttr is hardcoded and relies on magic knowledge about the type of the bucket.

I see three options to implement this

## Option 1
If type is currentWindow, user can specify in the settings page, which field should be shown. The setting would be stored in the localStorage and can be read in the getTitleAttr method.

Pro:
- very easy implementation
Con:
- it's global, so it applies to all the watchers
- it's only working for the type 'currentWindow'

## Option 2
Add a setting per watcher to control, what property should be shown and store that in the localstorage. A new UI concept (modal dialog?) is needed on the timeline page (clicking opens a popup where you can control the display value)

Pro:
- Finegrained control
- works for every watcher type

Con:
- More effort
- if several watchers of the same type are shown, you can't change them all at once

## Option 3
Add a setting on the settings page, where we list all the watcher types. For each watcher type, you can override the display property

Pro:
- Finegrained control
- Feels like the best solution for the user

Con:
- even more effort, since we need to display a list of all used watcher types (and this might change over time)

Which option would be the best for you?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.