From 3c300ec481fc588d75d83d523fcc723690a078f2 Mon Sep 17 00:00:00 2001 From: Aitor Algorta Date: Wed, 25 Oct 2023 13:40:14 +0200 Subject: [PATCH] added source to libs and apps --- .../Topics/TopicItem/TopicDescription/TopicDescription.tsx | 2 -- frontend/inbox/src/pages/Inbox/MessageInput/index.tsx | 3 +++ lib/typescript/model/Source.ts | 2 ++ lib/typescript/render/outbound/index.ts | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/control-center/src/pages/Topics/TopicItem/TopicDescription/TopicDescription.tsx b/frontend/control-center/src/pages/Topics/TopicItem/TopicDescription/TopicDescription.tsx index eeec77ad27..26d4d42d4a 100644 --- a/frontend/control-center/src/pages/Topics/TopicItem/TopicDescription/TopicDescription.tsx +++ b/frontend/control-center/src/pages/Topics/TopicItem/TopicDescription/TopicDescription.tsx @@ -35,9 +35,7 @@ const TopicDescription = (props: TopicDescriptionProps) => { if (!_expanded) { wrapperSection.current.style.height = `${basicHeight}px`; } else { - console.log('in'); if (wrapperSection && wrapperSection.current) { - console.log('in in'); wrapperSection.current.style.height = `${calculateHeightOfCodeString(code) + 100 + headerHeight}px`; } else { wrapperSection.current.style.height = `${basicHeight}px`; diff --git a/frontend/inbox/src/pages/Inbox/MessageInput/index.tsx b/frontend/inbox/src/pages/Inbox/MessageInput/index.tsx index f17606e7bd..4dba3375c5 100644 --- a/frontend/inbox/src/pages/Inbox/MessageInput/index.tsx +++ b/frontend/inbox/src/pages/Inbox/MessageInput/index.tsx @@ -286,6 +286,9 @@ const MessageInput = (props: Props) => { case Source.whatsapp: message.message = outboundMapper.getTextPayload(input); break; + case Source.airyCopilot: + message.message = outboundMapper.getTextPayload(input); + break; } sendMessages(message).then(() => { diff --git a/lib/typescript/model/Source.ts b/lib/typescript/model/Source.ts index dab71c881b..fffb775a01 100644 --- a/lib/typescript/model/Source.ts +++ b/lib/typescript/model/Source.ts @@ -34,6 +34,7 @@ export enum Source { amazons3 = 'amazons3', amazonLexV2 = 'amazonLexV2', integrationSourceApi = 'integrationSourceApi', + airyCopilot = 'copilot', } export enum SourceApps { @@ -57,6 +58,7 @@ export const isAiryComponent = (source: string): boolean => { case Source.airyContacts: case Source.airyMobile: case Source.airyWebhooks: + case Source.airyCopilot: case Source.integrationSourceApi: return true; } diff --git a/lib/typescript/render/outbound/index.ts b/lib/typescript/render/outbound/index.ts index d23c11016b..97d87bd220 100644 --- a/lib/typescript/render/outbound/index.ts +++ b/lib/typescript/render/outbound/index.ts @@ -13,6 +13,7 @@ export const getOutboundMapper = (source: string) => { case 'google': return new GoogleMapper(); case 'chatplugin': + case 'copilot': return new ChatpluginMapper(); case 'twilio.sms': case 'twilio.whatsapp':