-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ADR-0042 and fix ADR-0036 (#12277)
* Add ADR-0042 * Fix Markdown lint error * Add link to 0036 to 0042
- Loading branch information
Showing
2 changed files
with
42 additions
and
3 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
37 changes: 37 additions & 0 deletions
37
docs/decisions/0042-use-webview-for-summarization-content.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
nav_order: 0042 | ||
parent: Decision Records | ||
--- | ||
|
||
# Use `WebView` for Chat Message Content | ||
|
||
## Context and Problem Statement | ||
|
||
This decision record concerns the UI component that is used for rendering the content of AI summaries. | ||
|
||
## Decision Drivers | ||
|
||
Same as in [ADR-0036](./0036-use-textarea-for-chat-content.md). | ||
|
||
## Considered Options | ||
|
||
Same as in [ADR-0036](./0036-use-textarea-for-chat-content.md). | ||
|
||
## Decision Outcome | ||
|
||
Chosen option: "Use `WebView`". | ||
|
||
Some of the options does not support selecting and copying of text. Some options do not render Markdown. | ||
|
||
However, in contrary to [ADR-0036](./0036-use-textarea-for-chat-content.md), we chose here a `WebView`, instead of `TextArea`, because there is only one summary content in UI (when user switches entries, no new components are added, rather old ones are *rebinding* to new entry). It would hurt the performance if we used `WebView` for messages, as there could be a lot of messages in one chat. | ||
|
||
## Pros and Cons of the Options | ||
|
||
Same as in [ADR-0036](./0036-use-textarea-for-chat-content.md). | ||
|
||
## More Information | ||
|
||
This ADR is highly linked to [ADR-0036](./0036-use-textarea-for-chat-content.md). | ||
|
||
About the selection and copying, this goes down to fundamental issue from JavaFX. | ||
`Text` and `Label` as a whole or a part [cannot be selected and/or copied](https://bugs.openjdk.org/browse/JDK-8091644). |