Skip to content

Commit

Permalink
# 1.20.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Sep 25, 2024
1 parent 73733f2 commit 1837953
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
### **Copyrigth**:
*Tiledesk SRL*

# 1.20.5
- **bug-fixed**: minor improvements

# 1.20.4

# 1.20.3
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tiledesk/cds",
"author": "Tiledesk SRL",
"version": "1.20.4",
"version": "1.20.5",
"license": "MIT",
"homepage": "https://www.tiledesk.com",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,19 @@
</cds-textarea>
</div>

<div class="field-box" *ngIf="response.hasOwnProperty('transferType')" style="width: 100%;">
<label class="title-label">{{'CDSCanvas.TransferType' | translate }}</label>
<cds-radio-buttons
[items]="radioOptions"
[itemSelected]="response?.transferType"
[bindLabelButton]="'name'"
[bindValueButton]="'value'"
[rows]="1" [columns]="2"
(changeButtonSelect)="onChangeButtonSelect($event)">
</cds-radio-buttons>
</div>


</div>

<div *ngIf="!previewMode" class="connector-wrapper" >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,11 @@ cds-textarea.text-editable-div ::ng-deep{
width: calc(100% - 20px) !important;
font-size: 0.9em !important;
}
}


cds-radio-buttons {
display: flex;
align-items: center;
height: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export class CdsActionReplySettingsComponent implements OnInit {

listOfIntents: Array<{name: string, value: string, icon?:string}>;

radioOptions: Array<{name: string, value: string, disabled: boolean, checked: boolean}>= [
{name: 'blind', value: 'blind', disabled: false, checked: false },
{name: 'consultation', value: 'consultation', disabled: false, checked: true }
]
// Connectors NoInput- NoMatch //
idIntentSelected: string;
idConnectorNoMatch: string;
Expand Down Expand Up @@ -212,7 +216,7 @@ export class CdsActionReplySettingsComponent implements OnInit {
onBlur(event){
this.logger.log('[ACTION REPLY SETTINGS] onBlur', event.target.value, this.response);
// if(event.target.value !== this.response.text){
this.changeActionReply.emit();
this.changeActionReply.emit();
// }
}

Expand All @@ -224,6 +228,12 @@ export class CdsActionReplySettingsComponent implements OnInit {
onSelectedAttribute(variableSelected: {name: string, value: string}){
}

onChangeButtonSelect(event: {label: string, category: string, value: string, disabled: boolean, checked: boolean}){
this.radioOptions.forEach(el => { el.value ===event.value? el.checked= true: el.checked = false })
this.response.transferType = event.value;
this.changeActionReply.emit();
}

checkForVariablesInsideText(text: string){
text.match(new RegExp(/(?<=\{\{)(.*)(?=\}\})/g, 'g')).forEach(match => {
let createTag = '<span class="tag">' + match + '</span>'
Expand Down
2 changes: 1 addition & 1 deletion src/app/chatbot-design-studio/services/intent.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ export class IntentService {
commandWait2.time = 0;
(action as ActionVoice).attributes.commands.push(commandWait2);
let command_form = new Command(TYPE_COMMAND.SETTINGS);
command_form.settings = { transferTo: '', trueIntent: null, falseIntent: null}
command_form.settings = { transferTo: '', transferType: 'consultation', trueIntent: null, falseIntent: null}
command_form.subType = TYPE_ACTION_VXML.BLIND_TRANSFER;
(action as ActionVoice).attributes.commands.push(command_form);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/chatbot-design-studio/utils-variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export var variableList: Array<{key: string, elements: Array<any>}> = [
{ key: 'dynamicAttributes',
elements: [
{ name: 'timestamp', value: 'timestamp', description: 'CDSvariablesList.dynamicAttributesElements.timestamp.description', src: '', icon:'calendar_today'},
{ name: 'now', value: 'now', description: 'CDSvariablesList.dynamicAttributesElements.now.description', src: '', icon:'calendar_today'},
{ name: 'now (ISO date)', value: 'now', description: 'CDSvariablesList.dynamicAttributesElements.now.description', src: '', icon:'calendar_today'},
{ name: 'UUID', value: 'UUID', description: 'CDSvariablesList.dynamicAttributesElements.UUID.description', src: '', icon:'code'},
{ name: 'UUIDv4', value: 'UUIDv4', description: 'CDSvariablesList.dynamicAttributesElements.UUIDv4.description', src: '', icon:'code'},
]
Expand Down
1 change: 1 addition & 0 deletions src/app/models/action-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ export class Setting {
maxDigits?: number;
terminators?: string;
transferTo?: string;
transferType?: string;
bargein?: boolean = true;
noInputTimeout?: number;
noInputIntent?: string;
Expand Down
19 changes: 13 additions & 6 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@
"Prompt":"Prompt",
"EnterPrompt":"Enter prompt",
"UseChatHistoryInPrompt":"Use the chat history in the prompt",
"ResponseType":"Response as JSON format",
"ResponseTypeDescription":"When JSON mode is turned on, the model's output is ensured to be valid JSON, except for in some edge cases that you should detect and handle appropriately",
"EnterTheQuestion":"Enter the question",
"SelectNamespace":"Select namespace",
"SelectKnowledgeBase":"Select Knowledge Base",
Expand Down Expand Up @@ -437,6 +439,7 @@
"Terminator":"Terminator",
"Timeout": "Timeout",
"TransferTo": "Transfer to",
"TransferType":"Transfer type",
"BargeIn":"Barge-in",
"NoMatch":"No match",
"NoInput":"No input",
Expand All @@ -455,7 +458,12 @@
"SelectedTimeSlot":"Selected time slot",
"SelectTimeSlot":"Select time slot",
"IgnoreOperatingHours":"Ignore General operating hours",
"IgnoreOperatingHoursDescription": "Check this option if you want to only check agents availability ignoring the General Operating hours settings. <br> This option is also useful if you want to demand opening and closing hours checking to the If Operating Hours Action, specifing a specific time slot"
"IgnoreOperatingHoursDescription": "Check this option if you want to only check agents availability ignoring the General Operating hours settings. <br> This option is also useful if you want to demand opening and closing hours checking to the If Operating Hours Action, specifing a specific time slot",
"intentsProgress": "Loading intents in progress",
"intentsComplete": "Intents loading completed",
"connectorsProgress": "Loading connectors in progress",
"connectorsComplete": "Connectors loading completed",
"loadingCompleteWithErrors":"Loading completed with errors"
},
"Alert": {
"ErrorMaxOptions":"Cannot add another option. Max available options achived ( 0..9, *, # )",
Expand Down Expand Up @@ -943,18 +951,17 @@
"strongAuthenticated":{ "description":"Indicates that the current user logged in the chat session with 'strong authentication'" }
},
"dynamicAttributesElements":{
"timestamp":{ "description":"" },
"now":{ "description":"" },
"UUID":{ "description":"" },
"UUIDv4":{ "description":"" }
"timestamp":{ "description":"The current timestamp in millis (Number format)" },
"now":{ "description":"The current date in the ISODate format. Ex. 2024-09-25T10:14:41.638Z (String format)" },
"UUID":{ "description":"A dynamic generated UUID obtained from a UUIDv4 removing the dashes" },
"UUIDv4":{ "description":"A dynamic standard UUIDv4" }
},
"voiceFlowElements":{
"voiceLanguage":{ "description":"Define the main language for the voice system interpreter" },
"voiceName":{ "description":"Define the name of the voice chatbot" },
"event":{ "description":"Every handled event during current call flow" },
"lastBlock":{ "description":"The last triggered block heard by the caller" }
}

},
"TYPE_GPT_MODEL": {
"text-davinci-003": { "description": ""},
Expand Down

0 comments on commit 1837953

Please sign in to comment.