Skip to content

Settle the Monitoring tab after a failed read or a refused change - #42

Merged
cayossarian merged 7 commits into
mainfrom
fix/monitoring-read-nits
Nov 18, 2026
Merged

cayossarian merged 7 commits into
mainfrom
fix/monitoring-read-nits

Conversation

@cayossarian

Copy link
Copy Markdown
Member

Follow-ups to #41 in the Monitoring tab. These cover what it shows after a failed status read or a refused change. Part of the unreleased 0.12.0.

  • After the "Unable to load monitoring status" error state, the next good read draws the table afresh, so screen readers aren't told every current warning as new.
  • In a drawing kept after a failed read, each control shows what the integration stored: a row's switch and its dimming, All / None (on, off or part on, as a read would draw it) and Turn off monitoring. Turn off monitoring's warning row goes when the change is stored, so its button no longer stays busy.
  • A refused Enabled change is now said only on the panel it was for. Before, one answering after the tab had moved to another panel was shown in that panel's status line.

The 0.4 dimming is a named constant (OFF_OPACITY). There are tests for every case, each failing on the code before its fix. 82 files and 1533 tests pass, and dist/ is rebuilt.

…t load it

Where a read of the status failed with nothing of the panel's drawn, the
tab said it could not load it in the drawing it would draw over next, its
warnings emptied. The read that next answered drew its table over that,
and its live region said every warning the table showed as new. That
drawing is now left out of what the tab drew, so the next read draws its
table afresh and says nothing.
Where a change of a circuit's or the mains' switch settled with no fresh
read to draw it from, the switch showed what was stored but its row kept
the dimming it was drawn with. The row is now drawn as the switch then
shows it, dimmed while monitoring is off for the point, as a read draws
it.
…ng kept

Where the read after their changes failed, two controls of the
Monitoring tab were left as clicked: All / None, its rows keeping what
was drawn though their changes were stored, and the averaged-legs
warning's Turn off monitoring, busy for good, its row's switch still on.

With no fresh read to draw them from, each row All / None changed now
shows what its change left stored, its row dimmed to match, and All /
None what the rows then show, part on where only some are monitored. A
Turn off monitoring stored shows its circuit off, its row dimmed, and
takes its warning with it, as a read draws none for a circuit not
monitored, focus on the button going to the row's switch; refused, the
button is ready again and the row as drawn.
A refusal of the Enabled switch that answered after the Monitoring tab
had been drawn for another panel was said in that panel's status line, by
the read the refusal brings. The failure now names the panel it concerns,
and only a drawing of that panel says it.
…s in a drawing kept

Where a circuit's or the mains' switch, or Turn off monitoring, settled
with no fresh read to draw it from, its row showed what was stored but All
/ None kept what it was drawn with. It now shows what the rows then show,
as a read draws it: part on where some points are monitored, off where
none is.
@cayossarian
cayossarian merged commit 25fbad6 into main Nov 18, 2026
2 checks passed
@cayossarian
cayossarian deleted the fix/monitoring-read-nits branch November 18, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant