From 11e1fa6286da26a87e834a40ef1d76670343b2d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 15 Aug 2026 00:08:21 +0200 Subject: [PATCH] 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. --- .../components/charging-stations/CSData.vue | 12 ++-- .../skins/modern/components/StationCard.vue | 12 ++-- .../tests/unit/skins/classic/CSData.test.ts | 61 ++++++++++++++++--- 3 files changed, 65 insertions(+), 20 deletions(-) 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