Incorrect hostname in `/api/0/info` breaks "this device" badge in Web UI
Maintainer thường phản hồi trong vòng 2 ngày
Một pull request liên quan đã được merge.
- #369 của @TimeToBuildBob — đã merge
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reading the /api/0/info handler and the device hostname lookup used elsewhere in the Android application; then trace how the Web UI decides which device gets the “this device” badge. Done means the endpoint reports the real device hostname and the badge identifies that device in a multi-device setup. Pull request #369 is already open, so check its changes and status first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
There are a couple of related issues regarding how the Android device hostname is handled, which affects device identification in multi-device setups.
Current Behavior
- When querying the
/api/0/infoendpoint, the hostname is returned aslocalhostinstead of the actual device name. The rest of the application already uses the device hostname correctly. - On the
/#/buckets(Raw Data) page in the Web UI, the "this device" badge only appears for a device namedlocalhost. It fails to highlight the actual device currently being used.
Screenshot
Expected Behavior
- The
/api/0/infoendpoint should return the device hostname (the same one used elsewhere in the application). - The Web UI should correctly identify the current device and display the "this device" badge based on the real device name.
- Ngôn ngữ chính
- Kotlin
- Star
- 279
- Fork
- 63
- Merge trung bình
- 4 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 57
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ActivityWatch/aw-android
-
Web watcher: add support for Brave (`com.brave.browser` missing from KNOWN_BROWSER_PACKAGES)Có thể đã có người làm @NikitaMGrimm đã nhận 26 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ActivityWatch/aw-android#306 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
AuthSettingsActivity crashes on launch (InflateException: Material attributes under AppCompat theme)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
ActivityWatch/aw-android#210 · 11 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Correctness and performance issues in watchers, sync and workersCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
ActivityWatch/aw-android#333 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
CI: emulator jobs (Test E2E, R8 smoke) fail non-deterministically — red run gives no code signalĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
ActivityWatch/aw-android#332 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ActivityWatch/aw-android#302 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của ActivityWatch/aw-android
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
auth0/Auth0.Android#1101 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LiquidGlass / LiquidGlassContainer (iOS): padded content measured at the outer width and overflows by the paddingCó thể đã có người làm @aleclarson đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
NativeScript/NativeScript#11561 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
navikt/mock-oauth2-server#1129 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Expose `close` on SsrEngineĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
-
unconfirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
thunderbird/thunderbird-android#11778 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày