]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(webui): order station action buttons by CSO lifecycle (#2084)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 14 Aug 2026 22:08:21 +0000 (00:08 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Aug 2026 22:08:21 +0000 (00:08 +0200)
commit11e1fa6286da26a87e834a40ef1d76670343b2d9
treeb2789820bb23293639c2b674d9b5b34e0577c023
parent4998c9848c6909bcdd31e8c5e6a2fd5847c0c875
refactor(webui): order station action buttons by CSO lifecycle (#2084)

* refactor(webui): order station action buttons by CSO lifecycle

Reorder the station-card action buttons in both skins to follow the
Charging Station Operator lifecycle (bring-up, provisioning, exploitation,
observability):

- modern StationCard: Start/Stop, Connect/Disconnect, Configuration,
  Authorize, Details
- classic CSData: Start/Stop, Connection, Set Supervision Url,
  Change Configuration, Show Details

This fixes Authorize (runtime) preceding Configuration (provisioning) and
Details being wedged between active commands. Action sets, labels, handlers,
routes, styling and the isolated Delete button are unchanged.

Make the classic CSData show-details toggle assertions look the button up by
id instead of a fixed index, so they stay robust to ordering.

* test(webui): cover classic change-configuration toggle navigation

Add id-based navigation tests for the change-configuration toggle in
classic CSData, mirroring the show-details coverage: assert on() pushes
the change-configuration route with hashId/chargingStationId params and
off() pushes back to charging-stations. Closes the coverage gap for the
toggle reordered in this change.

* test(webui): select set-supervision-url toggle by id for consistency

Align the set-supervision-url toggle navigation tests with the
change-configuration and show-details ones by looking the toggle up via
its id instead of a fixed index, so the whole toggle-navigation suite is
order-independent and uses a single selection convention.
ui/web/src/skins/classic/components/charging-stations/CSData.vue
ui/web/src/skins/modern/components/StationCard.vue
ui/web/tests/unit/skins/classic/CSData.test.ts