Report browser and OS versions with local UI visits
I maintainer di solito rispondono entro 1 giorno
@lePereT ci sta già lavorando.
Dal 1/12/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- Lua
- Stelle
- 1
- Fork
- 0
- Merge medio
- 1g 8h
- PR unite (30g)
- 24
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jangala-dev/devicecode-lua
-
time: "time synchronisation lost" (time_unsynced) logged right after every devicecode restartAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jangala-dev/devicecode-lua#441 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
jangala-dev/devicecode-lua#440 ·
I maintainer di solito rispondono entro 1 giorno
-
Serve local UI static files gzip-compressedForse già presa @lePereT l’ha presa 2 giorni fa. Apertaenhancement
jangala-dev/devicecode-lua#437 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
jangala-dev/devicecode-lua#432 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
net: active_uplink stuck on modem_secondary for ~20 h while modem_primary carries the traffic (v0.12.0-ocw4)Forse già presa @rslater-cs l’ha presa 3 giorni fa. Aperta
jangala-dev/devicecode-lua#431 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di jangala-dev/devicecode-lua
Issue simili
-
местоположение NPC Мазу'конApertaforever from-game
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
openmap-world/openmap#614 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
area: ci-tooling good first issue priority: P3 size: S type: chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
follow-up needs-review
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ksysoev/duet.nvim#310 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100