[codex] webui coverage for bluetooth and config backend routes #17

Merged
electron-rare merged 1 commits from codex/rtc-issue-10-webui-coverage into audit/telephony-webserver 2026-02-20 23:55:29 +00:00
electron-rare commented 2026-02-20 23:53:05 +00:00 (Migrated from github.com)

Scope

Implements RTC issue #10 by extending WebUI coverage for backend routes that were not exposed to operators.

Changes

  • data/webui/index.html
    • Added Bluetooth panel with actions:
      • GET /api/bluetooth
      • POST /api/bluetooth/hfp/connect
      • POST /api/bluetooth/hfp/disconnect
      • POST /api/bluetooth/ble/start
      • POST /api/bluetooth/ble/stop
    • Added JSON editors in Configuration section for:
      • POST /api/config/audio
      • POST /api/config/mqtt
      • POST /api/config/pins
  • data/webui/script.js
    • Added handlers for Bluetooth refresh/actions.
    • Added JSON parsing/apply handlers for audio/mqtt/pins config posts.
    • Config refresh now pre-fills JSON editors from current backend values.

Validation

  • python3 scripts/check_web_route_parity.py --frontend data/webui/script.js --backend src/web/WebServerManager.cpp -> PASS
  • python3 -m unittest scripts.test_check_web_route_parity -> PASS
  • platformio run -e esp32dev -> PASS

Related

## Scope Implements RTC issue #10 by extending WebUI coverage for backend routes that were not exposed to operators. ## Changes - `data/webui/index.html` - Added Bluetooth panel with actions: - GET `/api/bluetooth` - POST `/api/bluetooth/hfp/connect` - POST `/api/bluetooth/hfp/disconnect` - POST `/api/bluetooth/ble/start` - POST `/api/bluetooth/ble/stop` - Added JSON editors in Configuration section for: - POST `/api/config/audio` - POST `/api/config/mqtt` - POST `/api/config/pins` - `data/webui/script.js` - Added handlers for Bluetooth refresh/actions. - Added JSON parsing/apply handlers for audio/mqtt/pins config posts. - Config refresh now pre-fills JSON editors from current backend values. ## Validation - `python3 scripts/check_web_route_parity.py --frontend data/webui/script.js --backend src/web/WebServerManager.cpp` -> PASS - `python3 -m unittest scripts.test_check_web_route_parity` -> PASS - `platformio run -e esp32dev` -> PASS ## Related - Closes #10 - Spec baseline: #16
Sign in to join this conversation.