Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#4132] Added Copilot source to libs and apps #4133

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
3 changes: 3 additions & 0 deletions frontend/inbox/src/pages/Inbox/MessageInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
2 changes: 2 additions & 0 deletions lib/typescript/model/Source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export enum Source {
amazons3 = 'amazons3',
amazonLexV2 = 'amazonLexV2',
integrationSourceApi = 'integrationSourceApi',
airyCopilot = 'copilot',
}

export enum SourceApps {
Expand All @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions lib/typescript/render/outbound/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
Loading