mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 13:52:15 +01:00
fix: web UI review findings (step 2b)
- Saving the security settings threw: the form's values were named security, hiding the Security object the new token goes to. A save from None to None no longer reconnects, as the device closes nobody then. - Each sync redraws the lists and reloads the settings, so a reconnect shows what changed meanwhile; closing the config panel drops its feeds even while the socket is down. - A 401 on backup or an upload opens the login, as a refused socket does (Security.tokenRefused); a failed firmware upload says so. - The general and security panels fill in what the device leaves out at its default, so a save never writes back what the form showed before. The hostname holds 31 characters, as the device does. - The views (settings with defaults, a group's shades, frames, scans, the network and radio panels, op errors) move to data-src/js/views.js, with tests. runOp is the one op path with the busy retry; repeatOf, commandArgs, gone(); dead update*List and editedRepeaters removed. - Tests for ProtoClient.off and a listener removing itself mid-event. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0df740df6a
commit
3212230f01
5 changed files with 357 additions and 208 deletions
|
|
@ -58,7 +58,7 @@ PNG_EXTENSIONS = {".png"}
|
|||
# comes before index.js, which uses it. A source listed here isn't copied on
|
||||
# its own.
|
||||
BUNDLES = {
|
||||
"index.js": ["js/schema.js", "js/model.js", "js/client.js", "index.js"],
|
||||
"index.js": ["js/schema.js", "js/model.js", "js/client.js", "js/views.js", "index.js"],
|
||||
"app.css": ["main.css", "widgets.css", "icons.css"],
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue