Commit Graph
77 Commits
Author SHA1 Message Date
NeilClack f7b793d88a Remove unnecessary log 2026-06-26 18:07:03 -05:00
NeilClack a1bc7e1c1e Properly color logs 2026-06-26 18:06:38 -05:00
NeilClack f8e75194e8 Update version hash for visual verification 2026-06-24 23:20:57 -05:00
NeilClack a4eff17b77 fix(network): fix wifi page never scanning, never exiting, and UI freezes on connect
WiFiSetupPage never showed networks and could not be exited once entered.
Several compounding bugs were responsible across network.go and page.go.

Primary bugs fixed:

- WiFiSetupPage.Init() never assigned p.wifiDevice after FindDevices(),
  so startScan() always hit the nil guard and exited without launching
  a scan goroutine. No networks ever appeared in the list. A value copy
  of the Wi-Fi device is now taken from m.Devices immediately after
  FindDevices() returns, with an explicit error if no adapter is found.

- CheckInternetConnection() called FindDevices() on every tick, rebuilding
  m.Devices every 2 seconds. This caused [NET-030] log spam, invalidated
  any pointers held into the slice, and meant checkState()'s fresh Manager
  instances (which have an empty Devices slice) would never detect internet
  after Fix 2 was applied. CheckInternetConnection() now calls FindDevices()
  only when m.Devices is empty (fresh Manager), and does a cheaper per-device
  State property refresh when devices are already known (long-lived Manager).
  This satisfies both callers correctly.

- Connect() called WaitForInternet(30s, 5s) synchronously before returning,
  blocking the main UI thread for up to 35 seconds. It also returned an error
  if internet wasn't stable in time, even though AddAndActivateConnection had
  succeeded, causing the page to show "Failed to initiate connection" while NM
  was still negotiating in the background. WaitForInternet removed from
  Connect(); the page's existing checkConnectionStatusLoop and
  handleConnectionStatusUpdate already handle post-connection state tracking.

Additional bugs fixed:

- startScan() launched a new StartScan goroutine on every R-press without
  signalling the previous one to stop. Concurrent goroutines raced on
  resultsChan and accumulated indefinitely. stopScan is now closed and
  replaced before each scan, and checkConnectionStatusLoop is restarted
  with the new channel.

- Connect() always generated a new UUID and called AddAndActivateConnection
  without checking for an existing profile. Repeated connection attempts
  (e.g. wrong password then correct) accumulated duplicate stale profiles
  in NetworkManager. Existing profiles matching the SSID are now deleted
  via Settings.Connection.Delete before creating a new one.

- m.Devices was read and written concurrently from StartScan and
  CheckInternetConnection goroutines without synchronisation. A sync.RWMutex
  is added to Manager; state refreshes take a write lock, StartScan device
  lookup takes a read lock.

- Connect() checked wifiDevice.State using the caller's value copy taken at
  Init() time, which never updated. The current state is now read from
  m.Devices under lock at the point of connection.

- auth-alg: "open" was unconditionally set in the 802-11-wireless-security
  settings block. This field is only meaningful for WPA/WPA2-Personal and
  should be omitted for SAE (WPA3) and EAP variants. It is now only set
  when KeyMgmt is "wpa-psk".
2026-06-24 22:41:48 -05:00
NeilClack 953d0d8bc9 Rewrite entire network package and update wifi page 2026-06-24 18:29:59 -05:00
NeilClack cc2887d2a0 Update version text and add more download logs 2026-06-24 14:57:42 -05:00
NeilClack b018a79ecf Create a fallback for wen no audio is selected 2026-06-24 14:22:48 -05:00
NeilClack 732bd7c9a0 Update audio options page to display outputs 2026-06-23 13:52:44 -05:00
NeilClack 30dd5ffdcb Create objects for tracking audio devices 2026-06-23 11:22:21 -05:00
NeilClack 6f8cfbffee Migrate scroller page to arrow pointer navigation
Change ENTER and SPACE to perform the same actions, and also save on every update.
2026-06-19 09:44:55 -05:00
NeilClack 4cd24375cd Add audio features
- Downloads all audio files in the background
- Tracks overall progress of audio downloads, keeping "position" when
  returning
- Scroller dynamically switches between audio tracks based on the
  solfeggio frequency of the currently playing proclamations
- Removed audio tracks list from Audio Options page
- Honestly a whole host of other stuff I forgot to mention
2026-06-19 00:13:25 -05:00
NeilClack 5bd2b75267 Auto play audio based on solfeggio frequencies 2026-06-19 00:11:48 -05:00
NeilClack 9ee7e8021a Remove track list from AudioOptions 2026-06-18 23:01:11 -05:00
NeilClack ac86864c72 Add downloading message to home screen.
Download files in the background and keep track of progress.
2026-06-18 22:43:47 -05:00
NeilClack 2af1aae885 Audio files download on application start. Home screen shows status message 2026-06-18 21:52:29 -05:00
NeilClack 7ecb90b63b Downloads are working and the goroutine is reporting updates appropriately. 2026-06-18 21:28:16 -05:00
NeilClack b11afe22f0 remove file downloads 2026-06-18 15:49:29 -05:00
NeilClack d8a9f6881a create scaffold for loading screen 2026-06-18 15:49:20 -05:00
NeilClack 1a67b97804 un-mask wifi password 2026-06-18 15:49:05 -05:00
NeilClack fe5543d50d Audio downloads when necessary 2026-06-18 11:29:45 -05:00
NeilClack d121ffdaa8 Ready to implement a loading bar 2026-06-18 08:11:33 -05:00
NeilClack 6b48679537 Add database logic 2026-06-18 08:02:21 -05:00
NeilClack 74874f97c5 audio selection works 2026-06-17 00:46:56 -05:00
NeilClack 4b7d2c13d5 Rename audio devices to audio options 2026-06-11 19:44:20 -05:00
NeilClack ddab8e446c Update version for visual preference during beta phase 2026-06-03 11:21:28 -05:00
NeilClack 8268022d51 Organize proclamations alphabetically 2026-05-31 12:15:10 -05:00
NeilClack 0ebc3adf4a Proclamations change colors! 2026-05-31 12:08:19 -05:00
NeilClack f7ef42c84a Rename application to Radiant Wave 2026-05-26 14:12:27 -05:00
NeilClack 79f613c031 Remove failing unit tests 2026-05-14 12:05:28 -05:00
NeilClack 5188c90350 Add working volume bar in audioDevices page 2026-05-14 10:21:11 -05:00
NeilClack 3ea32e0eaa Add volume changing logic 2026-05-14 09:57:13 -05:00
NeilClack 1f9da7ee78 Attempt to fix proclamation sync
internal/sync/sync.go: Return proclamations after updating.
internal/page/proclamationOptions: Handle sync return value and fallback to db if empty
2026-05-11 12:55:16 -05:00
NeilClack 870d73d6e1 Filter logs to WARNING+ 2026-05-10 22:51:26 -05:00
NeilClack 87d484353f Fixed WiFi password bug. Ready for testing and merge 2026-05-10 21:19:07 -05:00
NeilClack f4a205c472 Switch logs to Debug and remove SwitchDevice 2026-04-24 18:20:52 -05:00
NeilClack c12db4ba52 Remove broken logger line 2026-04-24 18:20:39 -05:00
NeilClack b30489ad0f Increment version for testing purposes 2026-04-24 18:00:35 -05:00
NeilClack 7f344ae5c8 Optimize proclamation loading 2026-04-24 11:06:50 -05:00
NeilClack ec3ccabb62 Remove Universal Wellbeing from visual and toggle-able list 2026-04-23 17:30:33 -05:00
NeilClack cfd67f3545 Optimize word collection loop 2026-04-23 17:30:33 -05:00
NeilClack dd069e9345 WIP: Stagger proclamations
Proclamations are now inserted 10 times, and in between each proclamation, the Universal Wellness proclamation is inserted.
Now I need to optimize the loop & remove the Universal Wellbeing option from the Proclamations menu (hide it) because it's always enabled.
2026-04-23 17:30:33 -05:00
NeilClack 0197f6cba8 Cleanup version by removing the 'v' 2026-04-23 17:30:33 -05:00
NeilClack 89b3a3b6d5 Shorten version
Customer's don't care about these updates, just minor/major, so why confuse them?
2026-04-23 17:30:33 -05:00
NeilClack 82651ec491 Remove 'Check for Updates' entry in Settings 2026-04-23 17:30:33 -05:00
NeilClack 9c88f0c9fd Re-organize Settings Menu 2026-04-23 17:29:20 -05:00
NeilClack 6b358bae42 Justify settings entries 2026-04-23 17:29:20 -05:00
NeilClack b6bf0f1873 Sync proclamations when entering proclamation list 2026-04-23 17:29:20 -05:00
NeilClack 4f392242c9 Update audio page name 2026-04-23 17:29:20 -05:00
NeilClack 105d8900d5 Replace audio devices with audio toggle 2026-04-23 17:29:14 -05:00
NeilClack 4f33296f24 remove device list
audio toggle is still not rendering
2026-04-23 17:26:22 -05:00