Skip to content

0.12.1 follow-ups: entry states, monitoring refusal, sidebar fixes, unreachable code removed - #48

Merged
cayossarian merged 3 commits into
mainfrom
feat/followups-0121
Nov 24, 2026
Merged

cayossarian merged 3 commits into
mainfrom
feat/followups-0121

Conversation

@cayossarian

Copy link
Copy Markdown
Member

What

Follow-ups for 0.12.1, released as 0.12.1-beta.3 and bundled in SpanPanel/span 2.3.4b2.

Changes

  • Entry states: a panel that needs a restart (migration_error, failed_unload) gets its own message, apart from a failed setup or a disabled entry.
  • Old ids: a card configured with a device id from before Home Assistant 2026.8 finds its panel's entry through config/device_registry/list_composite_splits, so it reports those states too. A card whose panel was removed says it is unable to connect.
  • Monitoring refusal: get_monitoring_status's new monitoring_panel_not_loaded refusal is treated as a wait in every view, and views and side panels read monitoring again once a reload finishes.
  • Sidebar:
    • says when no SPAN Panel exists;
    • catches its panel list up after a lost connection;
    • its Event Bus help lists every key of span_panel_current_alert, alert_display_name included.
  • Removed, because no production state reaches it:
    • subscription catches Core never triggers (rating catches stay, since that event is admin-only);
    • guards for a missing hass or connection (HomeAssistant.connection is now required);
    • the sidebar's re-attach handling (the frontend builds a new element each time);
    • SettingsTab, MonitoringTab's Promise topology and three unused strings;
    • the error store's setters: the store is now passed in at construction.
  • A _waitFor race fixed at its root, and a sampling interval that ran on after the dashboard was discarded is stopped.
  • The version is 0.12.1-beta.3, and dist/ is rebuilt in its own commit.

Changelog (0.12.1, Fixed): new or changed in this PR

  • A SPAN Panel card or the sidebar dashboard whose panel failed to set up, as when it must be authenticated again, cannot load until Home Assistant is restarted, or is disabled, says so and how to set it right, and draws the panel once it has loaded, where the card showed "Unable to connect to SPAN Panel" and the sidebar "SPAN Panel integration is not loaded", monitoring as off or no favorites.
  • A SPAN Panel card left on a dashboard after its panel was removed says it is unable to connect, where it drew an empty card.
  • The card and the sidebar dashboard show a panel's monitoring again once a reload of the panel, as after its options are changed, finishes, where a view drawn or a circuit's side panel opened during the reload could show monitoring as off until opened again.
  • The sidebar dashboard says no SPAN Panel is found where there is none, where it showed "Panel device not found. Check device_id in card config."
  • The sidebar dashboard's panel list catches up once the connection to Home Assistant is back, where a panel added, removed or renamed just as the connection was lost stayed listed as it was until the next change.
  • The Monitoring tab's Event Bus help lists every key of the span_panel_current_alert event, the new alert_display_name, the circuit's name as Home Assistant shows it, among them, where it left out the keys for the monitoring rating, the copied package ratings and when the overload began.

Tests

  • npm test: 1830 passed, exit 0. Every new test fails on main. Lint, typecheck and i18n validation are clean.

…refusals, and drop unreachable code

The card and the sidebar tell a panel that needs a restart from one whose setup
failed or that is disabled, find the entry of a card configured before Home
Assistant 2026.8 through the device registry's composite splits, and treat
get_monitoring_status's monitoring_panel_not_loaded refusal as a wait. The
sidebar says when no SPAN Panel exists, catches its panel list up after a lost
connection, and lists every key of the current alert event.

Code no production state reaches is removed: subscription catches Core never
triggers, guards for a missing hass or connection, the sidebar's re-attach
handling (the frontend builds a new element each time), SettingsTab, and the
error store's setters, now passed in at construction.
@cayossarian
cayossarian merged commit 8151fac into main Nov 24, 2026
2 checks passed
@cayossarian
cayossarian deleted the feat/followups-0121 branch November 24, 2026 03:31
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