Report browser and OS versions with local UI visits
Maintainer antworten meist innerhalb von 1 Tag
@lePereT arbeitet bereits daran.
Seit 01.12.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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
- Vorherrschende Sprache
- Lua
- Sterne
- 1
- Forks
- 0
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 24
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus jangala-dev/devicecode-lua
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
jangala-dev/devicecode-lua#441 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 58/100
jangala-dev/devicecode-lua#440 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Serve local UI static files gzip-compressedEvtl. vergeben @lePereT hat das vor 2 Tagen übernommen. Offenenhancement
jangala-dev/devicecode-lua#437 · 2 zugewiesene Personen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
jangala-dev/devicecode-lua#432 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
net: active_uplink stuck on modem_secondary for ~20 h while modem_primary carries the traffic (v0.12.0-ocw4)Evtl. vergeben @rslater-cs hat das vor 3 Tagen übernommen. Offen
jangala-dev/devicecode-lua#431 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in jangala-dev/devicecode-lua
Ähnliche Issues
-
follow-up needs-review
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ksysoev/duet.nvim#310 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Jaliborc/PetTracker#509 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
-
bug discord triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
fitzforge/polestar#5203 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag