vaadin / web-components

A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
https://vaadin.com/docs/latest/components
473 stars 83 forks source link

[message-list] Add support for hyperlinks #7362

Open MatthewVaadin opened 7 months ago

MatthewVaadin commented 7 months ago

Describe your motivation

Iván Ruiz in the message list documentation comments:

Are hyperlinks supported in this component? ... It would be great to have this feature because it is common to share links, for example [when] interacting with a chatbot.

Sharing links when communicating ideas is a pretty common use case.

Describe the solution you'd like

As a basic feature, it should be possible to construct a message list item with a URI instead of a String. This should render as a link to the resource.

A more flexible solution would be to allow any component content to be added to the message part.

Describe alternatives you've considered

No response

Additional context

No response

rolfsmeds commented 7 months ago

This falls under the bigger dilemma of how to provide rich text / mixed media support in messages (as LLMs can also return lists, images etc), and also somehow make that properly accessible.

Avec112 commented 7 months ago

A first step could be to support web links directly pasted into the message input person to person, for reference in the chatlog, etc. Ex. "You will find the information here https://information.site/look-here."

Support for AI Chatbot is next level. I say prioritize simple basic features first.