-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary This fixes the following edge case when using the chat interface: * When the main editor has a value in the text area, and the user edits an existing message, and presses `<enter>` on the keyboard, the value that was in the main editor is appended as a new message, instead of editing the existing message. It also does a bit of cleanup (moving of ChatPromptEditor components to `/components/prompt_editor`, and renaming to `PromptEditor`.) ### Additional fixes * [Don't stick to bottom when changing to edit mode, re-stick to bottom when done editing](e8a01c1) * [Autofocus function popover list search box upon opening](2329d1c) * [Remove focus trap as it wasn't doing anything anymore](7fcb4e0) * [Move constants used when creating monaco model inside function scope to avoid sharing of model between multiple editor instances](c9cab2c) * [Disable submitting function editor when json is not valid](2a6f1e1) (cherry picked from commit f4265ca) # Conflicts: # x-pack/plugins/observability_ai_assistant/public/components/prompt_editor/prompt_editor_function.tsx
- Loading branch information
1 parent
1f1f85f
commit 30c2ded
Showing
10 changed files
with
187 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.