Skip to content

Commit e56ada2

Browse files
committed
Merge branch 'master-2' into features/to-master/ds-generic-bug-fix-8
# Conflicts: # src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-web-request-v2/cds-action-web-request-v2.component.scss # src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-web-request-v2/cds-action-web-request-v2.component.ts
2 parents ee109c5 + 6464a9a commit e56ada2

146 files changed

Lines changed: 4104 additions & 2017 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: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,62 @@
4040
- **added**: deepseek-chat llm model and claude 3.7
4141
- **removed**: mixtral-8x7b-32768 model
4242

43-
# 1.29.0
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
4499

45100
# 1.29.0-rc.15
46101
- **bug-fixed**: new set thereIsWebResponse on createWebhook
@@ -69,15 +124,37 @@
69124
# 1.28.3
70125
- **bug-fixed**: widget into iframe not allows to use microphone
71126

127+
# 1.28.3-rc.1
128+
- **bug-fixed**: widget into iframe not allows to use microphone
129+
72130
# 1.28.1
73131
- **bug-fixed**: error in loadTokenMultiplier undefined value, called in CdsActionGPTTaskComponent
74132
- **bug-fixed**: defaultfallback and start intents error to display in cds-panel-intent-list
75133

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+
76139
# 1.28.1
77140
- **added**: doc for AI_PROMPT and WHATSAPP actions
78141

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

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+
81158
# 1.27.0-rc.20
82159
- **bug-fixed**: initStageSettings
83160
- **bug-fixed**: set default alpha_connectors

src/app/app.component.ts

Lines changed: 9 additions & 1 deletion
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,10 +50,14 @@ 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();
5863
// this.logger.log('[APP-COMP] ngOnInit appconfig', appconfig)
@@ -94,6 +99,10 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
9499

95100

96101
private async initialize(){
102+
103+
// Lazy loading icons in App
104+
this.iconService.registerIcons();
105+
97106
let serverBaseURL = this.appConfigService.getConfig().apiUrl
98107
this.tiledeskAuthService.initialize(serverBaseURL);
99108

@@ -104,7 +113,6 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
104113

105114
await this.initAuthentication();
106115
this.setLanguage(null);
107-
108116
}
109117

110118

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/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: 4 additions & 2 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
}

src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@
4444

4545
<div class="text-editor">
4646
<div *ngIf="!response.metadata.src" class="response-frame-panel no-image">
47-
<div class="image"><img src="assets/images/icons/add_audio.svg"></div>
47+
<div class="image">
48+
<mat-icon svgIcon="add_audio" aria-hidden="true"></mat-icon>
49+
<img src="assets/images/icons/add_audio.svg">
50+
</div>
4851
<div class="text">{{'CDSCanvas.ClickToAddAudioURL' | translate}}</div>
4952
</div>
5053
<div *ngIf="response.metadata.src" class="response-frame-panel no-image">

src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-ai-prompt/cds-action-ai-prompt.component.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
</div>
2121

2222
<div class="action-row">
23-
2423
<div id="gpt-icon" class="action-row-left icon-action">
25-
<img *ngIf="!action?.llm" src="assets/images/icons/add_ai_model.svg" alt="ai model">
24+
<mat-icon *ngIf="!action?.llm" svgIcon="add_ai_model" aria-hidden="true"></mat-icon>
25+
<!-- <img *ngIf="!action?.llm" src="assets/images/icons/add_ai_model.svg" alt="ai model"> -->
26+
<!-- <mat-icon *ngIf="action?.llm" [svgIcon]="getLlmIcon(action?.llm)" aria-hidden="true"></mat-icon> -->
2627
<img *ngIf="action?.llm" src="{{ (llm_models | filter:{key: 'value', value: action?.llm }).src }}" alt="">
2728
</div>
2829

@@ -311,7 +312,7 @@
311312

312313
<hr class="custom-divider" style="margin-top: 10px;">
313314

314-
<div class="link-container" *ngIf="projectPlan === PLAN_NAME.F">
315+
<div class="link-container" *ngIf="projectPlan === PLAN_NAME.G">
315316
<a class="link" (click)="goToIntegrations()">{{'CDSCanvas.ManageIntegrationKey' | translate }}</a>
316317
</div>
317318

0 commit comments

Comments
 (0)