Skip to content
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

Improvements on accessibility of the hotspot interface of the web-ui #221

Merged
merged 11 commits into from
Jan 31, 2025

Conversation

sassanh
Copy link
Collaborator

@sassanh sassanh commented Jan 25, 2025

This pull request includes:

  1. Several commits addressing Bring up WiFi Hotspot at boot up if no SSID has been previously registered #214, automatically running the wifi connection creation procedure when it boots and there is no ssid saved on the pod and it is not connected to internet.
  2. Several commits addressing Show web UI with nodogsplash captive portal when connecting to hotspot #211, using nodogsplash to provide captive portal for the webui interface in the hotspot.
  3. A commit Fixing App crashed when testing wifi hotspot: AttributeError: 'list' object has no attribute 'id' #212 (a typo, causing runtime error when running the web-ui input for the second time)
  4. A commit Fixing high CPU usage ubo-system on ubo #216 (high cpu usage of system-manager service)
  5. A commit adding utility function to apply bunch of templates to the filesystem
  6. A commit using new ARM64 github runner for building images which makes them run 2x faster and avoids the regular random failures.

It also fixes one of the reasons #223 happens as an inline change done in the last commit

* add keyboard shortcuts readme

* Update ubo_app/services/020-keyboard/shortcuts.md

Co-authored-by: Sassan Haradji <[email protected]>

* Update ubo_app/services/020-keyboard/shortcuts.md

Co-authored-by: Sassan Haradji <[email protected]>

* Update ubo_app/services/020-keyboard/shortcuts.md

Co-authored-by: Sassan Haradji <[email protected]>

* Update ubo_app/services/020-keyboard/shortcuts.md

Co-authored-by: Sassan Haradji <[email protected]>

* Update ubo_app/services/020-keyboard/shortcuts.md

Co-authored-by: Sassan Haradji <[email protected]>

* updated readme for keyboard/keypad shortcuts

* remove avanced label.

* clarify what snapshot means

* make key names more consistent

* more consistency

---------

Co-authored-by: Sassan Haradji <[email protected]>
Copy link

codecov bot commented Jan 25, 2025

Codecov Report

Attention: Patch coverage is 26.75439% with 167 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
ubo_app/system/system_manager/hotspot.py 0.00% 26 Missing ⚠️
...vices/030-wifi/pages/create_wireless_connection.py 7.40% 25 Missing ⚠️
ubo_app/system/redirect_server.py 0.00% 24 Missing ⚠️
ubo_app/utils/template_files.py 0.00% 24 Missing ⚠️
ubo_app/system/hotspot_config.py 0.00% 13 Missing ⚠️
ubo_app/system/system_manager/main.py 0.00% 13 Missing ⚠️
ubo_app/utils/network.py 66.66% 11 Missing ⚠️
ubo_app/logger.py 55.00% 9 Missing ⚠️
ubo_app/services/090-web-ui/setup.py 18.18% 9 Missing ⚠️
ubo_app/system/bootstrap.py 0.00% 7 Missing ⚠️
... and 4 more
Flag Coverage Δ
ubuntu-latest 57.28% <26.75%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
ubo_app/constants.py 100.00% <100.00%> (ø)
ubo_app/services/030-wifi/setup.py 84.78% <100.00%> (+0.33%) ⬆️
ubo_app/services/090-web-ui/reducer.py 83.33% <ø> (ø)
ubo_app/store/core/reducer.py 60.30% <ø> (ø)
ubo_app/store/services/web_ui.py 100.00% <100.00%> (ø)
ubo_app/store/services/wifi.py 100.00% <100.00%> (ø)
ubo_app/services/000-audio/audio_manager.py 45.05% <66.66%> (+0.11%) ⬆️
ubo_app/services/030-wifi/reducer.py 85.71% <50.00%> (-3.76%) ⬇️
ubo_app/side_effects.py 52.74% <83.33%> (+4.64%) ⬆️
ubo_app/utils/pod_id.py 58.82% <75.00%> (+58.82%) ⬆️
... and 10 more

@sassanh sassanh force-pushed the automatic-wifi-creation-procedure branch from 9821b5f to d41e918 Compare January 26, 2025 02:04
@sassanh sassanh force-pushed the automatic-wifi-creation-procedure branch from d41e918 to feb90c1 Compare January 26, 2025 02:06
@sassanh sassanh force-pushed the automatic-wifi-creation-procedure branch from feb90c1 to b0cb01a Compare January 26, 2025 03:17
@sassanh sassanh force-pushed the automatic-wifi-creation-procedure branch from b0cb01a to 58c9f37 Compare January 26, 2025 10:32
Copy link
Collaborator

@zytegalaxy zytegalaxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working like a charm! There's one minor change request (adding wifi password to notification info). Please merge after making that change. No need for manual testing.

…e is no ssid saved in the network manager and no default gateway is set - closes #214
…uts instead of a list due to an unwanted comma - closes #212
…ased on a templates directory, while taking backups of the original files and another utility function to restore the backups
…em services to the `ubo-hotspot` service (the more general version of the `ubo-redirect-server` service which runs the redirect server as its main process.)
@sassanh sassanh force-pushed the automatic-wifi-creation-procedure branch from e913d37 to 8a5b4d8 Compare January 31, 2025 04:42
@sassanh sassanh enabled auto-merge (rebase) January 31, 2025 04:45
@sassanh sassanh merged commit a563c3e into main Jan 31, 2025
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants