kaoto-ui icon indicating copy to clipboard operation
kaoto-ui copied to clipboard

When creating new steps the newly created step isn't automatically selected

Open lhein opened this issue 1 year ago • 2 comments

Describe the Bug

When adding a new step to a branch it is not automatically selected. You still see the old selection in the right panel which becomes even more confusing when adding more than 1 step of the same kind like in this video.

Steps to Reproduce the Bug or Issue

  1. add a step
  2. add a choice with 2 when and 1 otherwise
  3. select the first when branch "Add new Step" figure and add a set-header, fill the expression
  4. select the second when branch "Add new Step" figure and again add a set-header and fill the expression (you would think you can just start writing in the expression field but you first have to select the new created set-header because the old one is still selected - sometimes you even have to click it twice before it gets accepted)

Screenshots or Videos

newStepsAreNotAutoSelected

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 0.30.0]

lhein avatar Apr 05 '23 10:04 lhein

@lordrip my memory isn't the best right now, but didn't we recently resolve a similar issue, if not the same? by closing the panel

kahboom avatar Apr 06 '23 10:04 kahboom

There are two separate things going on here:

  1. Whenever a new step is added, is not automatically selected, as the title states
  2. On the other hand, even if the step gets selected, the current value of the first steps will be deleted as the extension will be reloaded, as we can see from the flicker in the attached video.

The 1. it's straightforward, I'm not sure about 2. since it will require a convention over the step extensions behavior, as most of the extensions required clicking on the apply button to save.

lordrip avatar Jun 15 '23 20:06 lordrip