batches: add close batch change link to SSBC screens
Created by: LawnGnome
This PR extends the Actions menu that appears in several places in the execution UI (always on the Preview tab, and when an execution is incomplete or failed on the other tabs) to include a Close batch change item. For batch changes that have been executed, this means that the user can now close a batch change more directly from the batch change list.
Additionally (see the previous version of this PR description and Kelli's comment below for context), the Actions menu has been added to the Configuration tab when creating a new batch spec, replacing the Run batch spec CTA, thereby allowing a user who hasn't yet executed a batch spec (slightly) more immediate access to
Compared to the original #39446 (closed), this descopes converting the preview CTA to a dropdown button in other places. Since that button takes you to the Preview tab, which then has the full actions menu including the close batch change item, this felt unnecessary.
A note on iconography
We already have a cross icon in the actions dropdown, so I've used a circled close to distinguish closing the batch change:
It also turns out that we used mdiDelete
for the close button on a batch change, so I've updated that to mdiClose
so it's at least closer.
Closes #39446 (closed).
Test plan
I've run through the various permutations of this, including unexecuted batch specs, batch specs that are being executed, and batch specs that are complete.
Our automated storybook coverage here isn't zero, but it's also not complete, as far as I can tell. Manually using the storybook helps to validate this flow. I've restructured the ActionsMenu
storybook to handle the new way it handles its various modes.
App preview:
Check out the client app preview documentation to learn more.