Report browser and OS versions with local UI visits
维护者通常 1 天内回复
@lePereT 已经在做这个了。
开始于 2026年12月1日。
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- Lua
- 星标
- 1
- 派生
- 0
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 24
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jangala-dev/devicecode-lua 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
jangala-dev/devicecode-lua#441 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 58/100
jangala-dev/devicecode-lua#440 ·
维护者通常 1 天内回复
-
Serve local UI static files gzip-compressed可能已有人在做 @lePereT 于 2 天前认领。 未关闭enhancement
jangala-dev/devicecode-lua#437 · 已指派 2 人 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
jangala-dev/devicecode-lua#432 · 3 条评论 ·
维护者通常 1 天内回复
-
net: active_uplink stuck on modem_secondary for ~20 h while modem_primary carries the traffic (v0.12.0-ocw4)可能已有人在做 @rslater-cs 于 3 天前认领。 未关闭
jangala-dev/devicecode-lua#431 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 jangala-dev/devicecode-lua 的全部 Issue
相似的 Issue
-
forever from-game
难度 2/5 1-3 小时 新手友好度 62/100
openmap-world/openmap#614 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
area: ci-tooling good first issue priority: P3 size: S type: chore
难度 2/5 1-3 小时 新手友好度 85/100
-
follow-up needs-review
难度 2/5 1-3 小时 新手友好度 78/100
ksysoev/duet.nvim#310 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100