Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Designer): Updated HTML Editor to support newline characters (for dynamic content) #4635

Merged
merged 7 commits into from Apr 18, 2024

Conversation

spanvalkar
Copy link
Contributor

@spanvalkar spanvalkar commented Apr 17, 2024

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

This PR fixes a bug with the HTML Editor where the HTML Editor cannot support newline characters.

  • What is the current behavior? (You can also link to an open issue here)

When a user adds dynamic content to any action with an HTML Editor and adds a newline character (for example, by pressing the 'enter' key) and then closes the action, reopening the action will cause the dynamic content to disappear. The dynamic content should stay in the action's HTML Editor, but it does not stay because the HTML Editor does not support newline characters.

Bug 26654763: Expression gets lost when newline is used

  • What is the new behavior (if this is a feature change)?

My change enables the HTML Editor to support newline characters. With my change, a user can add newline characters to the HTML Editor for dynamic content and the newline character (and dynamic content) will be preserved. It will not spontaneously disappear (as seen in the bug linked above). This improves the user experience for LA Designer users because it ensures the HTML Editor can support newline characters.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

This PR does not break any existing functionality. Rather, it only adds to the functionality of the HTML Editor by supporting newline characters.

  • Please Include Screenshots or Videos of the intended change:

Added a newline character after the 'a' in email:

image

Upon reopening the HTML-to-Text action, the dynamic content with newline character remains. Previously, HTML-to-Text field would appear blank (incorrectly):

image

@hartra344 hartra344 enabled auto-merge (squash) April 18, 2024 17:28
@hartra344 hartra344 merged commit f4e1f8b into Azure:main Apr 18, 2024
10 checks passed
Eric-B-Wu added a commit that referenced this pull request May 8, 2024
Eric-B-Wu added a commit that referenced this pull request May 8, 2024
Eric-B-Wu added a commit that referenced this pull request May 8, 2024
…ters (#4808)

* cherry-pick

* Revert "fix(Designer): Updated HTML Editor to support newline characters (for dynamic content) (#4635)"

This reverts commit f4e1f8b.
Eric-B-Wu added a commit that referenced this pull request May 8, 2024
…ters (#4807)

* Revert "fix(Designer): Updated HTML Editor to support newline characters (for dynamic content) (#4635)"

This reverts commit f4e1f8b.

* adding test

* adding another test
Eric-B-Wu added a commit that referenced this pull request May 8, 2024
Eric-B-Wu added a commit that referenced this pull request May 8, 2024
…or monitoring view (#4775)

* add UTC to monitoring times

* moved changes

* update

* update specs

* fix

* Update snapshots

* see if this works

* remove unnecssary code

* Revert "fix(Designer): Updated HTML Editor to support newline characters (for dynamic content) (#4635)"

This reverts commit f4e1f8b.

* testing if this fixes

* more attempts

* more attempts

* adding unit tests

* readding file and praying it works

* please give me some coverage!

---------

Co-authored-by: Travis Harris <travisharris@microsoft.com>
Co-authored-by: Travis Harris <hartra344@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants