KaotoIO / kaoto-ui

Frontend for the Kaoto project to provide an easy-to-use integration framework based on Apache Camel.
https://www.kaoto.io
Apache License 2.0
89 stars 44 forks source link

Close the right config panel when clicking an empty spot in the canvas (deselecting a step) #1299

Open lhein opened 1 year ago

lhein commented 1 year ago

Please describe the feature that you want to propose

Currently when clicking on a step the right config panel opens up. You can close it in 2 ways...

The closing via X is a normal and expected thing and I would keep it. The closing via another click on the step is a bit alien from what I see in other tools. Usually when selecting something a config panel shows up and when deselecting it the panel goes away.

What do you think about doing it the same way for Kaoto?

kahboom commented 1 year ago

We have actually just implemented this last week via https://github.com/KaotoIO/kaoto-ui/issues/543. Personally I think it's just a convenience for working faster, why wouldn't you want it? If you prefer to close via the X then do that instead.

What do you expect to happen if you click the step and the detail is open already?

lhein commented 1 year ago

I would expect nothing. The pane is already open. What I would usually expect is that the pane vanishes if the node is no longer selected.