-
-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add metered connection and usability check #4168
Add metered connection and usability check #4168
Conversation
✅ Deploy Preview for origin-betaflight-app ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
539650e
to
0aebfdd
Compare
essentially this PR checks for "slow" connection and switches to a "disconnected-mode", correct? edit: "disconnected-mode" here seemingly only build-options -- looks good. maybe can be expanded in future, unsure what other needs exist. |
Correct. build-options come from flight controller directly. Also
|
381fd2c
to
e3cb5b3
Compare
🤔 About measurement: https://accreditly.io/articles/detecting-a-slow-internet-connection-in-javascript Also (seemingly available) official documentation still points to The part of PWA where much API's are still in development or experimental is a gray zone. Okay let's use inverted logic here instead of measuring connection. |
ad65bc2
to
3375646
Compare
@nerdCopter had tried to make it more intelligent, but will add too much code and state tracking. So instead of using inaccurate measurements just let the user decide to disable in app internet communication |
on the taskbar, where you had |
@nerdCopter Moved connection info to setup tab Would like to reserve the taskbar for something else. |
hmmm, okay, but but maybe user should know status when not connected 🤷 |
@nerdCopter Would really like a icon as indicator, but struggling finding svg in correct size and putting it in place. Was playing with Screencast.from.19-09-24.18.30.00.webm |
i suspect already using some fancy font pack no? |
translations for RU & UA: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
there is a SonarCloud however. |
@nerdCopter remaining issues are html and css related and just extends existing code which needs overhaul anyway. |
2497ff2
to
675410a
Compare
675410a
to
2045b46
Compare
Quality Gate passedIssues Measures |
fixes Slow or delayed connection during weak internet connection #4165
reference: https://wicg.github.io/netinfo/
adds option for user to disable connection when on metered or slow connection
indicator on firmware flasher tab
connection info on setup tab
for future improvement we could add an icon for connection status.