]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
feat(ui): human-readable CLI output + shared type updates + --url collision fix
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 17 Apr 2026 20:17:10 +0000 (22:17 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 17 Apr 2026 20:17:10 +0000 (22:17 +0200)
commitee808028b2e94d69ad0f5647dec2f507cea15a3a
tree7cd52cce38b7e85bd069329ee7bc0e795a338138
parent49ec5204d5e209108922057a05de6fbb3f705859
feat(ui): human-readable CLI output + shared type updates + --url collision fix

CLI output renderers:
- Add borderless table renderers for station list, template list,
  simulator state, and performance statistics
- Shared format utils: truncateId, statusIcon, wsIcon, fuzzyTime,
  countConnectors using canonical ConnectorEntry/EvseEntry types
- Type guards with Array.isArray + null checks for safe dispatch
- Handle supervisionUrls as string | string[] (defensive normalize)
- Optional configuration in SimulatorState guard (graceful degradation)
- Dynamic status capitalization in generic payload display
- Extract captureStream test helper to tests/helpers.ts
- 70 new tests (40 format + 30 renderers), 124 total CLI tests

Shared type fixes (ui-common):
- Add provisioned field to TemplateStatistics
- Add timestamp field to ChargingStationData
- Add configuration (optional) to SimulatorState

CLI option rename:
- Rename global --url to --server-url (explicit intent)
- Rename supervision set-url --url to --supervision-url (no collision)
- Update types, consumers, integration tests, README
ui/cli/src/output/format.ts [new file with mode: 0644]
ui/cli/src/output/renderers.ts [new file with mode: 0644]
ui/cli/src/output/table.ts
ui/cli/tests/format.test.ts [new file with mode: 0644]
ui/cli/tests/helpers.ts [new file with mode: 0644]
ui/cli/tests/output.test.ts
ui/cli/tests/renderers.test.ts [new file with mode: 0644]
ui/common/src/types/ChargingStationType.ts
ui/common/src/types/UIProtocol.ts