diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.scss
index 2c13ed25..4b2b11c8 100644
--- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.scss
+++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.scss
@@ -1,10 +1,13 @@
-$margin-left: 10px;
-$padding: 10px;
+:host{
+ $margin-left: 10px;
+ $padding: 10px;
+ --panel-width: 480px;
+}
.panel-intent-detail {
// position: relative;
display: block;
- width: 480px;
+ width: var(--panel-width);
min-width: 400px;
height: 100%; //auto
max-height: 100%;
@@ -15,6 +18,14 @@ $padding: 10px;
border-left: 1px solid var(--gray-light-02);
// margin: 0 auto 0 auto; // nk
inset: 0 0 0 200px;
+
+ &.minimize {
+ --panel-width: 480px;
+ }
+
+ &.maximize {
+ --panel-width: 680px;
+ }
}
.header-panel {
@@ -24,7 +35,22 @@ $padding: 10px;
right: 0;
background-color: var(--blu-light-03);
z-index: 2;
+
+ display: flex;
+ align-items: center;
+ cds-action-description{
+ width: 100%;
+ }
}
+
+.header-options-wrp{
+ display: flex;
+ padding: 10px;
+ &:hover{
+ cursor: pointer;
+ }
+}
+
.content-panel{
// height: calc(100% - 73px); // nk
// height: calc(100% - 100px); // nk
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.ts
index db6d26b9..43afdcc0 100644
--- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.ts
+++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit, Input, Output, EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef, ViewContainerRef, HostListener } from '@angular/core';
+import { Component, OnInit, Input, Output, EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef, ViewContainerRef, HostListener, ElementRef } from '@angular/core';
import { Subject, Subscription } from 'rxjs';
import { ConnectorService } from '../../../services/connector.service';
import { IntentService } from '../../../services/intent.service';
@@ -40,9 +40,10 @@ export class CdsActionDetailPanelComponent implements OnInit, OnChanges {
elementIntentSelectedType: string;
openCardButton = false;
+ maximize: boolean = false;
- /** panel reply button configuaration */
- private subscriptionIntent: Subscription;
+ /** panel reply button configuaration */
+ private subscriptionIntent: Subscription;
canShowActionByPlan: { plan: PLAN_NAME, enabled: boolean}= { plan: PLAN_NAME.A, enabled: true}
diff --git a/src/app/chatbot-design-studio/utils-actions.ts b/src/app/chatbot-design-studio/utils-actions.ts
index 6121cc40..e8ce46bf 100644
--- a/src/app/chatbot-design-studio/utils-actions.ts
+++ b/src/app/chatbot-design-studio/utils-actions.ts
@@ -96,7 +96,7 @@ export const ACTIONS_LIST: {[key: string]: {name: string, category: TYPE_ACTION_
REPLACE_BOTV2: { name: 'CDSActionList.NAME.ReplaceBot', category: TYPE_ACTION_CATEGORY.FLOW, type: TYPE_ACTION.REPLACE_BOTV2, src: "assets/images/actions/replace_bot.svg", status: "active", description: "CDSActionList.DESCRIPTION.ReplaceBot" },
WAIT : { name: 'CDSActionList.NAME.Wait', category: TYPE_ACTION_CATEGORY.FLOW, type: TYPE_ACTION.WAIT, src:"assets/images/actions/wait.svg", status: "active", description: "CDSActionList.DESCRIPTION.Wait" },
CAPTURE_USER_REPLY: { name: 'CDSActionList.NAME.CaptureUserReply', category: TYPE_ACTION_CATEGORY.FLOW, type: TYPE_ACTION.CAPTURE_USER_REPLY, src: "assets/images/actions/capture_user_reply.svg", status: "active", description: "CDSActionList.DESCRIPTION.CaptureUserReply" },
- LEAD_UPDATE : { name: 'CDSActionList.NAME.LeadUpdate', category: TYPE_ACTION_CATEGORY.FLOW, type: TYPE_ACTION.LEAD_UPDATE, src:"assets/images/actions/lead_update.svg", status: "inactive", description: "CDSActionList.DESCRIPTION.LeadUpdate" },
+ LEAD_UPDATE : { name: 'CDSActionList.NAME.LeadUpdate', category: TYPE_ACTION_CATEGORY.FLOW, type: TYPE_ACTION.LEAD_UPDATE, src:"assets/images/actions/lead_update.svg", status: "active", description: "CDSActionList.DESCRIPTION.LeadUpdate" },
// WEB_REQUEST : { name: 'CDSActionList.NAME.WebRequest',category: TYPE_ACTION_CATEGORY.INTEGRATIONS, type: TYPE_ACTION.WEB_REQUEST, src:"assets/images/actions/web_request.svg", status: "active", description: ''},
ASKGPT: { name: 'CDSActionList.NAME.AskTheKnowledgeBase', category: TYPE_ACTION_CATEGORY.AI, type: TYPE_ACTION.ASKGPT, src: "assets/images/actions/ask_to_kb.svg", status: "inactive", description: "CDSActionList.DESCRIPTION.AskTheKnowledgeBase" },
ASKGPTV2: { name: 'CDSActionList.NAME.AskTheKnowledgeBase', category: TYPE_ACTION_CATEGORY.AI, type: TYPE_ACTION.ASKGPTV2, src: "assets/images/actions/ask_to_kb.svg", status: "active", description: "CDSActionList.DESCRIPTION.AskTheKnowledgeBase" },
diff --git a/src/app/chatbot-design-studio/utils-variables.ts b/src/app/chatbot-design-studio/utils-variables.ts
index f8f1f979..f1b2fd24 100644
--- a/src/app/chatbot-design-studio/utils-variables.ts
+++ b/src/app/chatbot-design-studio/utils-variables.ts
@@ -72,19 +72,22 @@ export var variableList: Array<{key: string, elements: Array
}> = [
{ name: 'voice Name', value: 'voiceName', description: 'CDSvariablesList.voiceFlowElements.voiceName.description', src: '', icon:'person'},
{ name: 'event', value: 'event', description: 'CDSvariablesList.voiceFlowElements.event.description', src: '', icon:'perm_phone_msg'},
{ name: 'last block', value: 'lastBlock', description: 'CDSvariablesList.voiceFlowElements.lastBlock.description', src: '', icon:'perm_phone_msg'},
+ { name: 'callId', value: 'callId', description: 'CDSvariablesList.voiceFlowElements.callId.description', src: '', icon:'perm_phone_msg'},
+ { name: 'dnis', value: 'dnis', description: 'CDSvariablesList.voiceFlowElements.dnis.description', src: '', icon:'perm_phone_msg'},
+ { name: 'ani', value: 'ani', description: 'CDSvariablesList.voiceFlowElements.ani.description', src: '', icon:'perm_phone_msg'},
]
}
]
-export const leadPropertyList: Array<{ name: string, value: string, description?: string, src?: string, icon?: string}> = [
- { name: 'email', value: 'email' },
- { name: 'fullname', value: 'fullname' },
- { name: 'phone', value: 'phone' },
- { name: 'company', value: 'company' },
- { name: 'streetAddress', value: 'streetAddress' },
- { name: 'city', value: 'city' },
- { name: 'region', value: 'region' },
- { name: 'zipcode', value: 'zipcode' },
- { name: 'country', value: 'country' }
+export const leadPropertyList: Array<{ name: string, value: string, disabled: boolean, description?: string, src?: string, icon?: string}> = [
+ { name: 'email', value: 'email', disabled: false },
+ { name: 'fullname', value: 'fullname', disabled: false },
+ { name: 'phone', value: 'phone', disabled: false },
+ { name: 'company', value: 'company', disabled: false },
+ { name: 'streetAddress', value: 'streetAddress', disabled: false },
+ { name: 'city', value: 'city', disabled: false },
+ { name: 'region', value: 'region', disabled: false },
+ { name: 'zipcode', value: 'zipcode', disabled: false },
+ { name: 'country', value: 'country', disabled: false }
]
\ No newline at end of file
diff --git a/src/app/models/action-model.ts b/src/app/models/action-model.ts
index 7c59842f..21d5ffc1 100644
--- a/src/app/models/action-model.ts
+++ b/src/app/models/action-model.ts
@@ -383,6 +383,7 @@ export class ActionGPTTask extends Action {
question: string;
assignReplyTo: string;
context: string;
+ history: boolean;
max_tokens: number;
temperature: number;
model: string;
diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json
index 21dd4ca4..ca0ea897 100644
--- a/src/assets/i18n/en.json
+++ b/src/assets/i18n/en.json
@@ -51,6 +51,8 @@
"SelectDepartment": "Select department",
"RelatedKnowledgeBase": "Related Knowledge Base",
"ChooseALanguage": "Choose a language",
+ "Maximize":"Maximize",
+ "Minimize":"Minimize",
"BotsAddEditPage": {
"AddBot": "Add Bot",
"EditBot": "Edit Bot",
diff --git a/src/assets/images/hours.svg b/src/assets/images/hours.svg
deleted file mode 100644
index e5a523c9..00000000
--- a/src/assets/images/hours.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-
\ No newline at end of file
diff --git a/src/assets/images/icons/fold.svg b/src/assets/images/icons/fold.svg
new file mode 100644
index 00000000..c25768f6
--- /dev/null
+++ b/src/assets/images/icons/fold.svg
@@ -0,0 +1,6 @@
+
\ No newline at end of file
diff --git a/src/assets/images/icons/unfold.svg b/src/assets/images/icons/unfold.svg
new file mode 100644
index 00000000..c774b08a
--- /dev/null
+++ b/src/assets/images/icons/unfold.svg
@@ -0,0 +1,6 @@
+
\ No newline at end of file