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.
Considered Options
Same as in ADR-0036.
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, 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.
More Information
This ADR is highly linked to ADR-0036.
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.