microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
923 stars 286 forks source link

Publish mgt-chat components as web components #2896

Open cwdata opened 7 months ago

cwdata commented 7 months ago

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.

sebastienlevert commented 7 months ago

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!

cwdata commented 7 months ago

@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.

GG-bagyibence commented 5 months ago

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. 👍

sebastienlevert commented 5 months ago

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!