Alert when VSA application limits are reached

Problem to solve

When we have added application limits to VSA, we should ensure the create value stream and add new stage button correctly follow the newly added limits.

With Add application limits to value stream analytics (#409609 - closed) we will add application limits to VSA:

  • ValueStream (number of records per group): maximum 50
  • Stage (number of records per value stream): 15

Additionally with VSA: Value stream errors are not shown (#415512 - closed) we will render returned error messages in the VSA form.

Proposal

On page load, we currently fetch the list of value streams available, this provides us with the count of value streams available, additionally as the form is being populated we track the stages that are created so we know the number of stages that are in the newly created value stream.

Proposal
Screen_Recording_2023-07-14_at_1.29.03_PM

When limits are reached, we should:

  • Show a dismissible alert, when the Create new value stream link is clicked (🖼 Mock up)
  • Show a non-dismissible alert and disable the Add new stage button within the modal (🖼 Mock up)

Alert copy:

  • You reached the maximum value streams (15) per group. To create a value stream, first remove an existing one.
  • You reached the maximum number of stages (50) per value stream. To create a stage, first remove an existing one.
Edited by Libor Vanc