Skip to content

Add services status tile, header indicator, and Localazy source pipeline - #1205

Merged
gskjold merged 3 commits into
mainfrom
feature/services-tile
Jun 12, 2026
Merged

gskjold merged 3 commits into
mainfrom
feature/services-tile

Conversation

@gskjold

@gskjold gskjold commented Jun 12, 2026

Copy link
Copy Markdown
Member

Adds a per-service status view to the web UI plus the Localazy source-of-truth pipeline.

  • Backend: sysinfo.json exposes a per-service status array (primary MQTT, energy speedometer, price, NTP, cloud, ZmartCharge), and data.json carries a single aggregate byte. CloudConnector/ZmartCharge gained small status accessors.
  • UI: new ServicesTile on the status page (rows shown only for services the firmware emits); the header MQTT badge becomes a Services badge colored by the worst current state, linking to the status page; auto-refreshes on aggregate change.
  • Localazy: localazy/source/en.json becomes the tracked canonical English source; upload config scoped to file:translations.json; stale ui/translations.json removed; CLAUDE.md documents the workflow.

Note on scope: the custom-MQTT service row (ws.setCustomMqttHandler + CUSTOM_MQTT_NAME) was decoupled here since the custom-MQTT connector is a separate PR (#1204). Once #1204 lands, a one-line follow-up wires the custom MQTT row in; whichever of the two merges second needs that small reconciliation.

Builds: esp8266 + esp32 pass; UI rebuilt.

gskjold and others added 3 commits June 12, 2026 11:57
Backend exposes a per-service status array in sysinfo.json (one entry per
compiled-and-enabled service: primary MQTT, custom MQTT, energy
speedometer, price service, NTP, cloud, ZmartCharge) plus a single
aggregate byte in data.json. CloudConnector and ZmartCharge gained tiny
status accessors (lastError, isInitialized, lastFailed, etc.).

The new ServicesTile component on the status page renders the array
dynamically (rows shown only for services the firmware actually emits).
The header MQTT badge is replaced with a Services badge whose color
reflects the worst current state and links to the status page; the tile
auto-refreshes whenever the aggregate changes.

CUSTOM_MQTT_NAME lets the custom-overlay user pick a label for their
custom MQTT row on the tile.

Localazy plumbing reorganized: localazy/source/en.json is now the
canonical English source-of-truth (tracked), upload config scopes to
file:translations.json so future pushes merge into the existing keyset
instead of creating a parallel file. Stale ui/translations.json deleted.
CLAUDE.md documents the translation workflow and the critical upload
config rules.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Re-adds ws.setCustomMqttHandler() in handleCustomMqtt() and the
CUSTOM_MQTT_NAME overlay option, decoupled earlier while the custom-MQTT
connector was a separate PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: 3bc1e7c

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold
gskjold merged commit 77f18fb into main Jun 12, 2026
7 checks passed
@gskjold
gskjold deleted the feature/services-tile branch June 12, 2026 10:09
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