From 0838888b31ba2fdb868920b5d5a0751c1ec1d665 Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Mon, 22 Jul 2024 17:27:49 +0200 Subject: [PATCH 1/8] minor improvements --- src/assets/images/hours.svg | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 src/assets/images/hours.svg 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 From f75ebd4d07b746b729053bdee53a6767ae2392b0 Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Tue, 23 Jul 2024 13:09:25 +0200 Subject: [PATCH 2/8] ### 1.18.0-rc.3 --- CHANGELOG.md | 3 +++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e94f57a7..5ded3c32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ *Giovanni Troisi* ### **Copyrigth**: *Tiledesk SRL* +### 1.18.0-rc.3 +👉 **added**: description msg for ignoreOperatingHours property into cds-action-online-agents + ### 1.18.0-rc.2 👉 **added**: implement time slots on cds-action-operating-hours 👉 **added**: ignoreOperatingHours property added on cds-action-online-agents-v2 diff --git a/package-lock.json b/package-lock.json index 89b249b3..3242899c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@tiledesk/cds", - "version": "1.18.0-rc.2", + "version": "1.18.0-rc.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index cdbcb7f4..559af72f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@tiledesk/cds", "author": "Tiledesk SRL", - "version": "1.18.0-rc.2", + "version": "1.18.0-rc.3", "license": "MIT", "homepage": "https://www.tiledesk.com", "repository": { From 3e4537a0087ba53459a2f28018777b2049418d31 Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Wed, 24 Jul 2024 14:59:53 +0200 Subject: [PATCH 3/8] added: ability to maximize/minimize cds-panel-action-detail component --- .../cds-panel-action-detail.component.html | 7 +++- .../cds-panel-action-detail.component.scss | 32 +++++++++++++++++-- .../cds-panel-action-detail.component.ts | 7 ++-- src/assets/i18n/en.json | 2 ++ src/assets/images/icons/fold.svg | 6 ++++ src/assets/images/icons/unfold.svg | 6 ++++ 6 files changed, 53 insertions(+), 7 deletions(-) create mode 100644 src/assets/images/icons/fold.svg create mode 100644 src/assets/images/icons/unfold.svg diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.html index 0ab56e1a..67b1e9b3 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-action-detail/cds-panel-action-detail.component.html @@ -1,4 +1,4 @@ -
+
+ +
+ + +
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/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/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 From ddf75304b42757b96388278043a0046b785458f5 Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Mon, 29 Jul 2024 15:14:58 +0200 Subject: [PATCH 4/8] added: disabled option to select base component --- .../select/select.component.scss | 10 ++++++++++ .../cds-action-lead-update.component.ts | 4 ++++ .../chatbot-design-studio/utils-variables.ts | 20 +++++++++---------- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/app/chatbot-design-studio/cds-base-element/select/select.component.scss b/src/app/chatbot-design-studio/cds-base-element/select/select.component.scss index 7bbbc216..88f1437e 100644 --- a/src/app/chatbot-design-studio/cds-base-element/select/select.component.scss +++ b/src/app/chatbot-design-studio/cds-base-element/select/select.component.scss @@ -56,6 +56,16 @@ text-overflow: ellipsis; } + + &.ng-option-disabled { + + pointer-events: none; + .label-select{ + color: #ccc; + + } + } + // &.ng-option-marked { // // background-color: rgba(var(--blu-light-02), .23) !important; // } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-lead-update/cds-action-lead-update.component.ts b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-lead-update/cds-action-lead-update.component.ts index d5219afc..7a8ae3b4 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-lead-update/cds-action-lead-update.component.ts +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-lead-update/cds-action-lead-update.component.ts @@ -48,6 +48,7 @@ export class CdsActionLeadUpdateComponent implements OnInit { private initialize() { this.leadPropertyFormGroup = this.buildForm(); + this.leadPropertyListFiltered.forEach(el => Object.keys(this.action.update).includes(el.name)? el.disabled= true: el.disabled = false) } buildForm(): FormGroup{ @@ -74,6 +75,7 @@ export class CdsActionLeadUpdateComponent implements OnInit { this.action.update[form.key] = form.value; this.showPlaceholder = false; this.showCards = true; + this.leadPropertyListFiltered.forEach(el => Object.keys(this.action.update).includes(el.name)? el.disabled= true: el.disabled = false) this.leadPropertyFormGroup.reset(); this.updateAndSaveAction.emit(); } @@ -81,12 +83,14 @@ export class CdsActionLeadUpdateComponent implements OnInit { onAddNewProperty(){ this.logger.log("[ACTION-LEAD-UPDATE] onAddNewProperty ADD : ", this.showPlaceholder) + this.leadPropertyListFiltered.forEach(el => Object.keys(this.action.update).includes(el.name)? el.disabled= true: el.disabled = false) this.showPlaceholder = true; } onDeleteProperty(index: number, key: string){ this.logger.log("[ACTION-LEAD-UPDATE] onDeleteProperty index : ", index) delete this.action.update[key]; + this.leadPropertyListFiltered.forEach(el => Object.keys(this.action.update).includes(el.name)? el.disabled= true: el.disabled = false) if(this.action && Object.keys(this.action.update).length === 0){ this.showCards = false; this.showPlaceholder = true; diff --git a/src/app/chatbot-design-studio/utils-variables.ts b/src/app/chatbot-design-studio/utils-variables.ts index f8f1f979..df788a36 100644 --- a/src/app/chatbot-design-studio/utils-variables.ts +++ b/src/app/chatbot-design-studio/utils-variables.ts @@ -77,14 +77,14 @@ export var variableList: Array<{key: string, elements: Array}> = [ ] -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 From a8664c78b359f4031173b6072ddd3f09d158c9eb Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Mon, 29 Jul 2024 15:21:56 +0200 Subject: [PATCH 5/8] =?UTF-8?q?=F0=9F=91=89=20**added**:=20ani,=20dnis=20a?= =?UTF-8?q?nd=20callId=20voice=20property?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/chatbot-design-studio/utils-variables.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/chatbot-design-studio/utils-variables.ts b/src/app/chatbot-design-studio/utils-variables.ts index df788a36..f1b2fd24 100644 --- a/src/app/chatbot-design-studio/utils-variables.ts +++ b/src/app/chatbot-design-studio/utils-variables.ts @@ -72,6 +72,9 @@ 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'}, ] } ] From d81e6486ccd1597a61de2ecc3af8f14de592ed5d Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Mon, 29 Jul 2024 15:22:11 +0200 Subject: [PATCH 6/8] ### 1.18.0-rc.4 --- CHANGELOG.md | 4 ++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ded3c32..d3d8e6d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ *Giovanni Troisi* ### **Copyrigth**: *Tiledesk SRL* +### 1.18.0-rc.4 +👉 **added**: ani, dnis and callId voice property +👉 **added**: disabled option to select base component + ### 1.18.0-rc.3 👉 **added**: description msg for ignoreOperatingHours property into cds-action-online-agents diff --git a/package-lock.json b/package-lock.json index 3242899c..6199a832 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@tiledesk/cds", - "version": "1.18.0-rc.3", + "version": "1.18.0-rc.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 559af72f..c78a6e00 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@tiledesk/cds", "author": "Tiledesk SRL", - "version": "1.18.0-rc.3", + "version": "1.18.0-rc.4", "license": "MIT", "homepage": "https://www.tiledesk.com", "repository": { From 17dbc25e46556b792ffb80cdaac6baba323e546d Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Mon, 29 Jul 2024 15:47:13 +0200 Subject: [PATCH 7/8] =?UTF-8?q?=F0=9F=91=89=20**added**:=20history=20prope?= =?UTF-8?q?rty=20to=20cds-action-askkbv2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cds-action-gpt-task.component.html | 11 +++++++++++ .../cds-action-gpt-task.component.ts | 9 +++++++++ src/app/models/action-model.ts | 1 + 3 files changed, 21 insertions(+) diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-gpt-task/cds-action-gpt-task.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-gpt-task/cds-action-gpt-task.component.html index aa158c2b..091ae19e 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-gpt-task/cds-action-gpt-task.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-gpt-task/cds-action-gpt-task.component.html @@ -98,6 +98,17 @@
+ +
+
+ + {{"CDSCanvas.UseChatHistoryInPrompt" | translate}} + +
+
+