sim icon indicating copy to clipboard operation
sim copied to clipboard

[BUG] Creating a variable input repeatedly escapes the string

Open keshavsaharia opened this issue 1 year ago • 4 comments

Describe the bug

When attempting to create a variable, a quotation mark is repeatedly escaped.

Image

To Reproduce Steps to reproduce the behavior:

  1. Create a Variable in a workflow.
  2. Choose any double quoted string for the variable value.

Expected behavior

Should be able to edit a string.

Additional context

Amazing tool you're building. I totally see the application for this, please let me know if you'd like me to suggest some application use cases for this.

keshavsaharia avatar May 11 '25 20:05 keshavsaharia

@keshavsaharia We'll make this a bit more clear. For adding quotations you should use the plaintext option in the dropdown instead of string.

String automatically wraps in quotations.

emir-karabeg avatar May 11 '25 20:05 emir-karabeg

@keshavsaharia I'll fix this now.

emir-karabeg avatar May 11 '25 20:05 emir-karabeg

Ah thank you! Btw, there is one bug I didn't track down where it seems like saving the state on every keystroke is blocking the React re-rendering thread, so everything locks up briefly if you're a fast typer. Perhaps do the state saving with a setTimeout debounce, which would also help reduce your network bandwidth when you go live :)

Truly this is the most beautiful React Flow app I've ever seen - that's why I took a little time on a Sunday to try and spin it up. Happy to be a future beta tester/free advocate if you need one!

keshavsaharia avatar May 12 '25 04:05 keshavsaharia

@keshavsaharia I fixed your previous issue! Yes that's true! I'll have to add that logic in ASAP. Thanks for bringing that up - I'll go ahead and write a fix for it.

Also that's awesome I'm glad you like it! Would for sure love for you to be an advocate 😄 . Are you in the Discord?

emir-karabeg avatar May 12 '25 05:05 emir-karabeg