Commit f977ff9
authored
Fix Wi-Fi network configuration in settings server and improve UI (#103)
* Fix Wi-Fi network configuration in settings server
The settings UI was correctly updating Wi-Fi networks in Redis, but not properly calling wifi.save_networks() which ensures proper handling before updating wpa_supplicant configuration.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Add additional debugging for Wi-Fi configuration issue
* Simplify debugging by removing try-except blocks
* Improve Wi-Fi configuration in settings UI
- Remove debug code from server.py
- Fix Wi-Fi network save process by using proper wifi.save_networks() function
- Add unsaved changes indicator to Save button in settings UI
- Disable Save button when there are no changes to save
* Refactor WiFi settings saving to avoid redundant calls
* Simplify WiFi network handling in settings server
* Pass value directly to save_networks without JSON parsing1 parent a50b4e3 commit f977ff9
2 files changed
+38
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
93 | | - | |
94 | | - | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
97 | 104 | | |
98 | 105 | | |
99 | 106 | | |
| |||
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
108 | 129 | | |
109 | 130 | | |
110 | 131 | | |
| |||
135 | 156 | | |
136 | 157 | | |
137 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
138 | 163 | | |
139 | 164 | | |
140 | 165 | | |
| |||
736 | 761 | | |
737 | 762 | | |
738 | 763 | | |
739 | | - | |
740 | | - | |
| 764 | + | |
| 765 | + | |
741 | 766 | | |
742 | 767 | | |
743 | 768 | | |
744 | 769 | | |
745 | 770 | | |
746 | 771 | | |
747 | | - | |
| 772 | + | |
748 | 773 | | |
749 | 774 | | |
750 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
| |||
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | | - | |
178 | | - | |
| 176 | + | |
179 | 177 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
186 | 184 | | |
187 | 185 | | |
188 | 186 | | |
| |||
0 commit comments