Report browser and OS versions with local UI visits
Maintainer thường phản hồi trong vòng 1 ngày
@lePereT đang làm issue này rồi.
Từ ngày 1/12/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem
Many devices in the field are older phones and tablets. We don't know which browsers they run, so we can't tell how old a browser the local UI has to support.
Local UI visit telemetry already exists (#340 here, jangala-dev/local-ui#76). It's on dev, so it hasn't reached the field yet. The visit is sent by the Vue app itself, which leaves a blind spot: a browser too old to run the app never reports. Those are exactly the browsers we need to count.
This is also another possible cause of #426. On a browser that can't run the app, the UI "doesn't load" even though DNS and HTTP work.
Proposal
-
Capture the browser on the server. The UI service sees the
User-Agentheader on the first page request (index.html), whether or not the JS later runs. Parse it on the box into coarse fields:- browser family and major version
- OS family and major version
- form factor: phone, tablet or desktop
Don't upload the raw
User-Agent, because it can include the device model. Old browsers report their versions accurately; only recent Chrome versions freeze some details. -
Extend the existing record. Make it
devicecode.ui.visits/2(src/services/ui/usage.lua,handle_local_ui_visitinsrc/services/ui/http/request.lua, thelocal_ui_visitspipeline). Don't add a new pipeline.- Record a page load even when no visit beacon follows. "Page served but no beacon" is how a failed app start shows up.
- Keep everything bounded, like the current pending and dedup lists.
-
Add an optional field for the client's feature-check result:
Proxy, ES modules and CSS custom properties. The client side is tracked in jangala-dev/local-ui#88.
The data is a few bytes per visit, so there's no meaningful effect on data usage.
Done when
- A real visit uploads browser, OS and form factor to the cloud.
- A page load where the JS fails to start still records the browser.
- No raw
User-Agentstring leaves the box. - Unit tests cover parsing for common old and new browsers: Android WebView, Samsung Internet, iOS Safari, Chrome, Firefox and KaiOS.
Related: #340, #426, #437, jangala-dev/local-ui#76, jangala-dev/local-ui#87, jangala-dev/local-ui#88
- Ngôn ngữ chính
- Lua
- Star
- 1
- Fork
- 0
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 24
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
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 jangala-dev/devicecode-lua
-
time: "time synchronisation lost" (time_unsynced) logged right after every devicecode restartĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jangala-dev/devicecode-lua#441 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
jangala-dev/devicecode-lua#440 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Serve local UI static files gzip-compressedCó thể đã có người làm @lePereT đã nhận 2 ngày trước. Đang mởenhancement
jangala-dev/devicecode-lua#437 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
jangala-dev/devicecode-lua#432 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
net: active_uplink stuck on modem_secondary for ~20 h while modem_primary carries the traffic (v0.12.0-ocw4)Có thể đã có người làm @rslater-cs đã nhận 3 ngày trước. Đang mở
jangala-dev/devicecode-lua#431 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của jangala-dev/devicecode-lua
Issue tương tự
-
follow-up needs-review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ksysoev/duet.nvim#310 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
LUA error since patch 12.1.7Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Jaliborc/PetTracker#509 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
bug discord triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
fitzforge/polestar#5203 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày