botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 84 forks source link

[FEATURE] Allow multi-line transition conditions again #1710

Closed jlangree closed 1 year ago

jlangree commented 1 year ago

Is your feature request related to a problem? Please describe. Multiple lines used to be allowed for transition conditions. The new drag 'n drop ui is awesome for moving them around, but it came at the expense of being able to easily see what longer conditions are without opening the edit menu. This is a significant problem for being able to see what's going on at a glance. Especially for nodes which have several long transition conditions, I have to open the edit menu of every single one just to figure out what the flow is doing.

v12.30.6 image

In the node's menu, the node being transitioned to also takes up so much space, that it compounds the problem.

v12.30.6 image

Describe the solution you'd like The best solution would be to allow a custom label for each transition. That would make things the clearest from a development perspective.

But simply reverting back to allowing multiple lines to be used would be a functional fix. That way longer conditions can actually be seen easily.

Another possibility would be adding a tooltip that shows the entire condition when you hover.

This is what it looked like in v12.28.0, with multiple lines allowed:

image

Describe alternatives you've considered I'm aware that in the specific example I provided, I can just set some shorter temp variable that I could use in the conditions. But there are also examples like where I'm checking whether some array variable includes a specific value, or where there are several different variables being checked. There's just not enough space.

Additional context

sebburon commented 1 year ago

Hey @jlangree,

This feature has been added to the cloud version of Botpress. It's not currently in our short-term plan to add this to V12 since we focus more on bug fixing.

I do agree label for transition is a great idea Thanks for your feedback

davidvitora commented 1 year ago

Not planned, but feel free to submit a PR in our studio repository