[WEB-5559] improvement: chat support functionality and remove Intercom provider (#8217)

* [WEB-5559] improve: chat support functionality and remove Intercom provider

- Added ChatSupportModal component for chat support integration.
- Replaced IntercomProvider with ChatSupportModal in AppProvider.
- Introduced useChatSupport hook to manage chat support state and actions.
- Updated help commands to utilize chat support instead of Intercom.
- Removed obsolete Intercom-related components and hooks.

* refactor: lazy load ChatSupportModal in AppProvider
This commit is contained in:
Prateek Shourya 2025-12-03 00:03:56 +05:30 committed by GitHub
parent e650b19933
commit cacd1b489e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 97 additions and 394 deletions

View file

@ -0,0 +1,13 @@
type ChatSupportType = "open";
type ChatSupportEventType = `chat-support:${ChatSupportType}`;
export const CHAT_SUPPORT_EVENTS = {
open: "chat-support:open",
} satisfies Record<ChatSupportType, ChatSupportEventType>;
export class ChatSupportEvent extends CustomEvent<ChatSupportType> {
constructor(type: ChatSupportType) {
super(CHAT_SUPPORT_EVENTS[type]);
}
}