From: Jérôme Benoit Date: Fri, 14 Aug 2026 22:08:21 +0000 (+0200) Subject: refactor(webui): order station action buttons by CSO lifecycle (#2084) X-Git-Tag: v4.12~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=11e1fa6286da26a87e834a40ef1d76670343b2d9;p=e-mobility-charging-stations-simulator.git 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. --- diff --git a/ui/web/src/skins/classic/components/charging-stations/CSData.vue b/ui/web/src/skins/classic/components/charging-stations/CSData.vue index 13377f46..a8e8c260 100644 --- a/ui/web/src/skins/classic/components/charging-stations/CSData.vue +++ b/ui/web/src/skins/classic/components/charging-stations/CSData.vue @@ -71,7 +71,7 @@ Set Supervision Url - Show Details + Change Configuration - Change Configuration + Show Details