Skip to content

Commit 4299e1c

Browse files
committed
Merge branch 'master-2' into features/to-master/ds-generic-bug-fix-5
# Conflicts: # src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts # src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-text/cds-action-reply-text.component.ts # src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-canvas.component.ts # src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/cds-intent.component.ts # src/app/chatbot-design-studio/services/connector.service.ts # src/app/chatbot-design-studio/services/intent.service.ts # src/app/chatbot-design-studio/utils.ts
2 parents c6f0798 + e56ada2 commit 4299e1c

196 files changed

Lines changed: 6736 additions & 2633 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ Thumbs.db
5555
*.sublime-workspace
5656

5757
/src/environments/env-locali
58-
/src/environments/real_data
58+
/src/environments/real_data
59+
settings.json

CHANGELOG.md

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,154 @@
77
### **Copyrigth**:
88
*Tiledesk SRL*
99

10+
11+
# 1.30.4
12+
- **changed**: added LLM Ollama and changed template selection from select to input with autocomplete
13+
14+
# 1.30.3
15+
- **bug-fixed**: css text-align and font-size in ng-select
16+
- **bug-fixed**: added cds-select onReset in operand cds-action-assign-variable-v2
17+
18+
# 1.30.2
19+
- **bug-fixed**: deleted log widget
20+
21+
# 1.30.1
22+
- **bug-fixed**: fixed ExpressionChangedAfterItHasBeenCheckedError
23+
24+
# 1.30.0
25+
- **changed**: Hide examples button if text exists in JSON buttons
26+
- **bug-fixed**: Fixed graphic errors examples button in JSON buttons
27+
- **bug-fixed**: Fixed logic example in JSON buttons
28+
- **bug-fixed**: Fixed graphic errors in JSON buttons
29+
- **added**: JSON buttons models
30+
- **added**: more info JSON buttons
31+
- **bug-fixed**: disabled JSON.parse in action jsonbuttons
32+
- **added**: added json buttons
33+
- **canged**: Hide examples button if text exists in JSON buttons
34+
- **bug-fixed**: Fixed graphic errors examples button in JSON buttons
35+
36+
37+
# 1.29.2
38+
39+
# 1.29.1
40+
- **added**: deepseek-chat llm model and claude 3.7
41+
- **removed**: mixtral-8x7b-32768 model
42+
43+
# 1.29.2
44+
45+
# 1.29.1
46+
- **added**: deepseek-chat llm model and claude 3.7
47+
- **removed**: mixtral-8x7b-32768 model
48+
49+
50+
# 1.30.0-rc.9
51+
- **canged**: Hide examples button if text exists in JSON buttons
52+
53+
# 1.30.0-rc.8
54+
- **bug-fixed**: Fixed graphic errors examples button in JSON buttons
55+
- **bug-fixed**: Fixed logic example in JSON buttons
56+
- **bug-fixed**: Fixed errors explode row in widget log
57+
- **bug-fixed**: scroll to bottom in widget log
58+
59+
# 1.30.0-rc.7
60+
- **bug-fixed**: Fixed graphic errors in JSON buttons
61+
62+
# 1.30.0-rc.6
63+
- **canged**: changed graphics of the log widget
64+
65+
# 1.30.0-rc.5
66+
- **added**: JSON buttons models
67+
- **added**: more info JSON buttons
68+
69+
70+
# 1.30.0-rc.4
71+
- **bug-fixed**: opacity label connector
72+
- **bug-fixed**: show hide label connector
73+
- **bug-fixed**: hide the label when the connector is not visible
74+
- **bug-fixed**: remove the label when I remove a connector
75+
- **bug-fixed**: hide contracted connector when delete or change connector from panel action
76+
- **bug-fixed**: chack show-hide connectors on all actions
77+
- **bug-fixed**: change z-index at connector menu
78+
- **canged**: save the state of the contracted connector in the intent json
79+
80+
81+
# 1.30.0-rc.3
82+
- **bug-fixed**: disabled JSON.parse in action jsonbuttons
83+
84+
85+
# 1.30.0-rc.2
86+
- **changed**: Webhook remove chat actions (tagAction)
87+
- **changed**: Webhook remove training and form sentences from blocks
88+
- **bug-fixed**: when I create a copilot webhook passing in the body copilot:true
89+
- **bug-fixed**: in the chatbot copilot webhook check the async loop
90+
91+
# 1.30.0-rc.1
92+
- **added**: added json buttons
93+
- **changed**: hide Button typing alias in action reply
94+
95+
# 1.30.0-rc.0
96+
- **added**: hide/show single connector
97+
- **bug-fixed**: web request
98+
- **changed**: change default intent color
99+
100+
# 1.29.0-rc.15
101+
- **bug-fixed**: new set thereIsWebResponse on createWebhook
102+
103+
# 1.29.0-rc.14
104+
- **bug-fixed**: set thereIsWebResponse on createWebhook
105+
106+
# 1.29.0-rc.13
107+
- **bug-fixed**: select default intent by subtype
108+
109+
# 1.29.0-rc.12
110+
- **bug-fixed**: webhook css + services
111+
112+
# 1.29.0-rc.11
113+
- **added**: new webhook
114+
115+
# 1.29.0-rc.3
116+
- **changed**: web-response action UI improvements
117+
118+
# 1.29.0-rc.2
119+
- **added**: web-response action
120+
121+
# 1.29.0-rc.1
122+
- **added**: close intent as default internal intent for voice chatbot
123+
124+
# 1.28.3
125+
- **bug-fixed**: widget into iframe not allows to use microphone
126+
127+
# 1.28.3-rc.1
128+
- **bug-fixed**: widget into iframe not allows to use microphone
129+
10130
# 1.28.1
11131
- **bug-fixed**: error in loadTokenMultiplier undefined value, called in CdsActionGPTTaskComponent
12132
- **bug-fixed**: defaultfallback and start intents error to display in cds-panel-intent-list
13133

134+
# 1.28.1-rc.1
135+
- **added**: create a new intent (float action menu) of the same color as the parent intent
136+
- **bug-fixed**: fixed error in loadTokenMultiplier undefined value, called in CdsActionGPTTaskComponent
137+
- **bug-fixed**: fix default fallback and start blocks error to display in cds-panel-intent-list
138+
14139
# 1.28.1
15140
- **added**: doc for AI_PROMPT and WHATSAPP actions
16141

142+
# 1.28.0-rc.1
143+
- **added**: added OpenIntentListState in local storage
144+
17145
# 1.28.0
18146

147+
# 1.28.0-rc.2
148+
- **added**: added OpenIntentListState in local storage
149+
- **added**: added widget log panel
150+
- **changed**: new panel to change alpha color
151+
152+
# 1.28.0-rc.1
153+
- **changed**: added sat-popover on change alpha color
154+
- **bug-fixed**: element position start only the first time
155+
- **bug-fixed**: cleanup of "stageService" file
156+
- **bug-fixed**: on live test of chatbot or intent, save scale and position
157+
19158
# 1.27.0-rc.20
20159
- **bug-fixed**: initStageSettings
21160
- **bug-fixed**: set default alpha_connectors

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tiledesk/cds",
33
"author": "Tiledesk SRL",
4-
"version": "1.28.2",
4+
"version": "1.30.4",
55
"license": "MIT",
66
"homepage": "https://www.tiledesk.com",
77
"repository": {

src/app/app.component.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { NetworkService } from './services/network.service';
1818
import { MatDialog } from '@angular/material/dialog';
1919
import { NetworkOfflineComponent } from './modals/network-offline/network-offline.component';
2020
import { ImageRepoService } from 'src/chat21-core/providers/abstract/image-repo.service';
21+
import { IconService } from './chatbot-design-studio/services/icon.service';
2122

2223
@Component({
2324
selector: 'app-root',
@@ -49,13 +50,17 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
4950
private imageRepoService: ImageRepoService,
5051
private scriptService: ScriptService,
5152
private networkService: NetworkService,
53+
private iconService: IconService
5254
){
5355

5456
}
5557

58+
59+
60+
5661
ngOnInit(): void {
5762
const appconfig = this.appConfigService.getConfig();
58-
this.logger.log('[APP-COMP] ngOnInit appconfig', appconfig)
63+
// this.logger.log('[APP-COMP] ngOnInit appconfig', appconfig)
5964
this.persistence = appconfig.authPersistence;
6065
this.appStorageService.initialize(environment.storage_prefix, this.persistence, '')
6166

@@ -79,7 +84,6 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
7984

8085
const storedToken = localStorage.getItem('tiledesk_token');
8186
this.logger.log('[APP-COMP] ngOnInit AUTOLOGIN storedToken ', storedToken)
82-
this.logger.log('[APP-COMP] ngOnInit AUTOLOGIN SAVE THE PARAMS TOKEN ', token)
8387
if (storedToken !== token) {
8488
localStorage.setItem('tiledesk_token', token);
8589
} else {
@@ -95,6 +99,10 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
9599

96100

97101
private async initialize(){
102+
103+
// Lazy loading icons in App
104+
this.iconService.registerIcons();
105+
98106
let serverBaseURL = this.appConfigService.getConfig().apiUrl
99107
this.tiledeskAuthService.initialize(serverBaseURL);
100108

@@ -105,7 +113,6 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
105113

106114
await this.initAuthentication();
107115
this.setLanguage(null);
108-
109116
}
110117

111118

src/app/app.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ import { NetworkOfflineComponent } from './modals/network-offline/network-offlin
6767
import { BrandResources } from './chatbot-design-studio/BrandResources';
6868
import { FilterPipe } from './pipe/filter.pipe';
6969

70+
7071
// FACTORIES
7172
export function createTranslateLoader(http: HttpClient) {
7273
return new TranslateHttpLoader(http, './assets/i18n/', '.json');

src/app/chatbot-design-studio/cds-base-element/attributes/attributes.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { HEADER_TYPE } from './../../utils';
21
import { Component, OnInit, Output, Input, EventEmitter } from '@angular/core';
32
import { TYPE_METHOD_ATTRIBUTE } from '../../utils';
43
import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance';

src/app/chatbot-design-studio/cds-base-element/select/select.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<div class="select-item-wrp">
2222
<span class="material-icons" *ngIf="item['icon']"
2323
[class.intent-start]="item[bindLabelSelect] === RESERVED_INTENT_NAMES.START"
24-
[class.intent-defaultFallback]="item[bindLabelSelect] === RESERVED_INTENT_NAMES.DEFAULT_FALLBACK">{{item['icon']}}</span>
24+
[class.intent-defaultFallback]="item[bindLabelSelect] === RESERVED_INTENT_NAMES.DEFAULT_FALLBACK"
25+
[class.intent-close]="item[bindLabelSelect] === RESERVED_INTENT_NAMES.CLOSE">{{item['icon']}}</span>
2526
<span class="label-select">{{ item[bindLabelSelect] | translate }}</span>
2627
<span *ngIf="optionalBindAdditionalText" class="label-select-option">{{item[optionalBindAdditionalText] | translate }}</span>
2728
</div>
@@ -33,7 +34,8 @@
3334
<div class="select-item-wrp">
3435
<span class="material-icons" *ngIf="item['icon']"
3536
[class.intent-start]="item[bindLabelSelect] === RESERVED_INTENT_NAMES.START"
36-
[class.intent-defaultFallback]="item[bindLabelSelect] === RESERVED_INTENT_NAMES.DEFAULT_FALLBACK">{{item['icon']}}</span>
37+
[class.intent-defaultFallback]="item[bindLabelSelect] === RESERVED_INTENT_NAMES.DEFAULT_FALLBACK"
38+
[class.intent-close]="item[bindLabelSelect] === RESERVED_INTENT_NAMES.CLOSE">{{item['icon']}}</span>
3739
<span class="label-select">{{ item[bindLabelSelect] | translate }}</span>
3840
<span *ngIf="optionalBindAdditionalText" class="label-select-option">{{item[optionalBindAdditionalText] | translate }}</span>
3941
</div>

src/app/chatbot-design-studio/cds-base-element/select/select.component.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
&.intent-start{
3333
color: var(--color-green-hex);
3434
}
35-
&.intent-defaultFallback{
35+
&.intent-defaultFallback,
36+
&.intent-close{
3637
color: var(--color-red-hex)
3738
}
3839
}
@@ -113,7 +114,8 @@
113114
&.intent-start{
114115
color: var(--color-green-hex);
115116
}
116-
&.intent-defaultFallback{
117+
&.intent-defaultFallback,
118+
&.intent-close{
117119
color: var(--color-red-hex)
118120
}
119121
}
@@ -133,21 +135,20 @@
133135
height: 14px;
134136
width: 14px;
135137
display: flex;
138+
align-items: center;
136139
}
137140

138141
}
139142

140143
.ng-value-container .ng-input{
141144
display: flex;
142-
// top: 0px !important;
143-
// height: 43px;
144145
}
145146

146147
.ng-clear-wrapper{
147148
height: 14px;
148149
width: 14px;
149150
display: flex;
150-
151+
align-items: center;
151152
}
152153

153154
.ng-dropdown-panel,

src/app/chatbot-design-studio/cds-base-element/select/select.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class SelectComponent implements OnInit {
1212
@ViewChild('ngSelect', { static: true }) ngSelect: NgSelectComponent;
1313

1414
@Input() items: []
15-
@Input() itemSelected: any
15+
@Input() itemSelected: any;
1616
@Input() bindLabelSelect: string;
1717
@Input() bindValueSelect: string;
1818
@Input() optionalBindAdditionalText: string;

0 commit comments

Comments
 (0)