]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ui): global code quality pass
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 17 Apr 2026 09:56:03 +0000 (11:56 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 17 Apr 2026 09:56:03 +0000 (11:56 +0200)
commit01b9a6aed766a8421c17c8a23ca37646810414de
treefb334eddef4969f9255b97a27c21d22156b5d44d
parent5f58e5604c968bad180ba01dd110521cdb9c6c86
refactor(ui): global code quality pass

- Fix ToggleButton.vue: replace unsafe for...in on localStorage with
  Object.keys(), cache localStorage value (4 reads reduced to 1)
- Extract 42-line inline @change handler in ChargingStationsView.vue
  to handleUIServerChange method
- Move ServerFailureError from WebSocketClient.ts to errors.ts
  (proper separation of concerns, re-exported for backward compat)
- Simplify useExecuteAction callback param: remove union type,
  use only ExecuteActionCallbacks object; update call sites
- Remove unnecessary String() in cli table.ts template literals
ui/cli/src/output/table.ts
ui/common/src/client/WebSocketClient.ts
ui/common/src/errors.ts
ui/web/src/components/actions/AddChargingStations.vue
ui/web/src/components/actions/SetSupervisionUrl.vue
ui/web/src/components/buttons/ToggleButton.vue
ui/web/src/composables/Utils.ts
ui/web/src/views/ChargingStationsView.vue
ui/web/tests/unit/ChargingStationsView.test.ts