Problem of displaying and editing lg templates in generated Form Dialog #4955
Labels
Area: Form Dialogs
The creation of an adaptive dialog from a schema defined by creating a form
Type: Bug
Something isn't working
Milestone
Describe the bug
Found several problems related to LG displaying and editing a generated dialog in Composer, especially related to the $kind
SendActivity
.1. SendActivity node is empty in Flow Editor
Problem:
Causes:
It's a bug of the SendActivity node, when the lg template can't be found, it should fallback to the raw value instead of showing nothing.
Suggested solution:
It can be fixed by a one-line change
2. Form Editor shows the template name instead of the exact content
Problem:
Causes
By design in Composer.
Suggested solution:
Needs furthur discussion.
3. Neither Form Editor can edit the LG content nor the LG all up view page.
Problem:
It leads to these templates not editable in entire Composer.
Suggested solutions:
The problem of Form Editor is caused by the generated dialog doesn't include the $designer.id field.
Composer relies on the
$designer.id
field to associate *.dialog with *.lg files, it makes sure the lg editor work and Action deletion will always clear related lg template.To fix that, we have several solutions
$designer.id
convention, generate$designer.id
when generating dialog.$designer.id
is absent. We can assigning a designer id only to the modified part.Version
Browser
OS
To Reproduce
Steps to reproduce the behavior:
- Help()
TriggerExpected behavior
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: