dashboard: use status field filtering

This commit is contained in:
2026-06-09 23:17:06 -06:00
parent 626ebadc94
commit 8d59a72554
3 changed files with 127 additions and 96 deletions
+10
View File
@@ -65,3 +65,13 @@ Current dashboard firmware files:
- `esp_panel_board_custom_conf.h` - Waveshare board/display configuration
This refactor keeps behavior unchanged while preparing for later `api` and `ui` file splits.
## Status Field Filtering
The dashboard uses field-filtered `/api/v1/status` calls:
- Fast poll: `/api/v1/status?fields=battery,temps,relays`
- Slow poll: `/api/v1/status?fields=network,system,config`
This keeps the endpoint model simple while reducing payload size, JSON parsing, and UI churn.