You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If manually create an Action node in plain text editor without $designer field, composer cannot load it correctly.
Visual Editor can show lg text, Form Editor can show lg text
Form Editor cannot edit lg text
Root cause is the manually created node doesn't have $designer id. It's broke by some recent updates.
Version
What version of the Composer are you using? Paste the build SHA found on the about page (/about).
Browser
What browser are you using?
Chrome
Safari
Firefox
Edge
OS
What operating system are you using?
macOS
Windows
Ubuntu
To Reproduce
Steps to reproduce the behavior:
Open a dialog file with your text editor.
Insert a "SendActivity" Action at somewhere
Load this bot in Composer
Try to edit lg text
Expected behavior
Give a clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots/gif/video to help explain your problem.
Additional context
We used to rely on the 'DesignerField' component in FormEditor to make sure every node has a $designer id at initial rendering. However, seems this component was alraedy retired.
Now, not all nodes have a $designer id and it breaks the LgWidget which relies on node id to write lg content back to lg file.
The text was updated successfully, but these errors were encountered:
Instead of bringing back old behavior that could frustrate developers let's think about a way to not mutate json files out from under users. Tabling for now to discuss options.
Previously we have the logic to auto-create template based on raw text, and replace the original text with a ref to the newly created template. The benefits for that is our LgEditorField can only assume all lgField is a ref to a template, not some random raw data.
To me, i'm not too concerned about mutating json for user as long as we have the consensus from user. So i'm proposing the option that either
Detecting the pattern and do the conversion at the beginning or
Do the conversion lazily when user view or try to update the lgField.
Both 1 & 2 are OK, and I prefer 1 because if we do the mutate anyhow, perhaps do it lazily is less cleaner than doing it at the begging.
Describe the bug
If manually create an Action node in plain text editor without $designer field, composer cannot load it correctly.
Root cause is the manually created node doesn't have $designer id. It's broke by some recent updates.
Version
What version of the Composer are you using? Paste the build SHA found on the about page (
/about
).Browser
What browser are you using?
OS
What operating system are you using?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Give a clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots/gif/video to help explain your problem.
Additional context
We used to rely on the 'DesignerField' component in FormEditor to make sure every node has a $designer id at initial rendering. However, seems this component was alraedy retired.
Now, not all nodes have a $designer id and it breaks the LgWidget which relies on node id to write lg content back to lg file.
The text was updated successfully, but these errors were encountered: