microsoft-graph-toolkit icon indicating copy to clipboard operation
microsoft-graph-toolkit copied to clipboard

Publish mgt-chat components as web components

Open cwdata opened this issue 7 months ago • 4 comments

Proposal: mgt-chat components as web components

Description

It would be great to have the chat components as web components like all other mgt components.

Rationale

mgt-chat would help to avoid context shift in helpdesk ticket systems. Often support engineers need to open a chat to gather more information from the person who opened the ticket. Many of these systems have a web UI that can be expanded but loading React is not always an option. So web components would provide us with an easy way to integrate Teams chats in helpdesk systems without the need to switch to the Teams client.

Preferred Solution

As already described, being able to use chat in every web based interface together with the other mgt components.

cwdata avatar Dec 01 '23 16:12 cwdata

Thank you so much for this feedback @cwdata! If we were to work on something like you suggest, how would you feel if the web components were loading React but that would be totally abstracted from developers leveraging them? Basically a web component wrapper for a React component. I'd love to know if this is a path we should be looking after (shorter time to market) compared to rewriting in complete web-component.

Thanks!

sebastienlevert avatar Dec 01 '23 18:12 sebastienlevert

@sebastienlevert Thanks for your suggestion. I'm not an expert in this. I tried to use React myself on the platform but that failed. Probably because they are already using some sort of JSX based virtual DOM Framework (Snabbdom). Would a wrapped React component work? I don't know. What I know is, that the other components of MGT work like a charm. Hope this helps.

cwdata avatar Dec 04 '23 13:12 cwdata

Hi, I would be also interested in having chat components as web components. We are developing an Angular application, so using React components directly is not an option for us, but the wrapper around them suggested by @sebastienlevert might works. Looking forward to it. 👍

GG-bagyibence avatar Jan 16 '24 10:01 GG-bagyibence

We are currently investigating options in this area. We haven't identified a golden path, but are really working hard to help you develop in every framework MGT already works today!

sebastienlevert avatar Jan 16 '24 12:01 sebastienlevert