diff --git a/bot/admin/web/angular.json b/bot/admin/web/angular.json
index 7efd6b7140..09e8b948b2 100644
--- a/bot/admin/web/angular.json
+++ b/bot/admin/web/angular.json
@@ -25,7 +25,8 @@
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets", "src/img"],
- "styles": ["src/app/theme/styles/styles.scss", "src/styles.css", "src/jsoneditor.css"],
+ "styles": ["src/app/theme/styles/styles.scss", "src/styles.css", "src/jsoneditor.css",
+ "node_modules/bootstrap-icons/font/bootstrap-icons.css"],
"scripts": []
},
"configurations": {
diff --git a/bot/admin/web/package-lock.json b/bot/admin/web/package-lock.json
index 90edc9882d..14eb27a334 100644
--- a/bot/admin/web/package-lock.json
+++ b/bot/admin/web/package-lock.json
@@ -20,10 +20,10 @@
"@angular/platform-browser": "^17.3.12",
"@angular/platform-browser-dynamic": "^17.3.12",
"@angular/router": "^17.3.12",
- "@nebular/eva-icons": "13.0.0",
"@nebular/theme": "13.0.0",
"ang-jsoneditor": "^3.1.1",
"bootstrap": "^4.4.1",
+ "bootstrap-icons": "^1.11.3",
"echarts": "^5.5.1",
"file-saver-es": "^2.0.5",
"html2pdf.js": "^0.10.1",
@@ -3816,18 +3816,6 @@
"@tybys/wasm-util": "^0.9.0"
}
},
- "node_modules/@nebular/eva-icons": {
- "version": "13.0.0",
- "resolved": "https://registry.npmjs.org/@nebular/eva-icons/-/eva-icons-13.0.0.tgz",
- "integrity": "sha512-4M9vwo3OJeDjlVufeGTg1u/01uxZ0LH8f8GvD1wuyzGitY/3hlySmXP31Nz/koKcM9QJZsm0wECJVxd+8BDf3Q==",
- "dependencies": {
- "tslib": "^2.3.0"
- },
- "peerDependencies": {
- "@nebular/theme": "13.0.0",
- "eva-icons": "^1.1.3"
- }
- },
"node_modules/@nebular/theme": {
"version": "13.0.0",
"resolved": "https://registry.npmjs.org/@nebular/theme/-/theme-13.0.0.tgz",
@@ -6300,6 +6288,21 @@
"popper.js": "^1.16.1"
}
},
+ "node_modules/bootstrap-icons": {
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.11.3.tgz",
+ "integrity": "sha512-+3lpHrCw/it2/7lBL15VR0HEumaBss0+f/Lb6ZvHISn1mlK83jjFpooTLsMWbIjJMDjDjOExMsTxnXSIT4k4ww==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ]
+ },
"node_modules/brace-expansion": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
@@ -8358,12 +8361,6 @@
"node": ">= 0.6"
}
},
- "node_modules/eva-icons": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/eva-icons/-/eva-icons-1.1.3.tgz",
- "integrity": "sha512-QBSEWNbEx1H0numXP1qgxKVCZHonRaky5ft4pGzQBcO4cy7mEja6TuJ8rc7BqX2pmkvetVQWKDH+DK/8y7GTag==",
- "peer": true
- },
"node_modules/eventemitter3": {
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
diff --git a/bot/admin/web/package.json b/bot/admin/web/package.json
index 3bc8063a67..2c4a6a9fff 100644
--- a/bot/admin/web/package.json
+++ b/bot/admin/web/package.json
@@ -28,10 +28,10 @@
"@angular/platform-browser": "^17.3.12",
"@angular/platform-browser-dynamic": "^17.3.12",
"@angular/router": "^17.3.12",
- "@nebular/eva-icons": "13.0.0",
"@nebular/theme": "13.0.0",
"ang-jsoneditor": "^3.1.1",
"bootstrap": "^4.4.1",
+ "bootstrap-icons": "^1.11.3",
"echarts": "^5.5.1",
"file-saver-es": "^2.0.5",
"html2pdf.js": "^0.10.1",
diff --git a/bot/admin/web/src/app/analytics/activity/activity.component.html b/bot/admin/web/src/app/analytics/activity/activity.component.html
index a0784a03f8..798525e3f8 100644
--- a/bot/admin/web/src/app/analytics/activity/activity.component.html
+++ b/bot/admin/web/src/app/analytics/activity/activity.component.html
@@ -41,7 +41,7 @@
nbTooltip="Refresh"
status="basic"
>
-
+
@@ -112,12 +112,12 @@ {{ currentFilterNbUsers }}
New users
1234
-
+
100% vs prev. 28 days
-->
diff --git a/bot/admin/web/src/app/analytics/activity/activity.component.ts b/bot/admin/web/src/app/analytics/activity/activity.component.ts
index d447dfa832..b629ab5555 100644
--- a/bot/admin/web/src/app/analytics/activity/activity.component.ts
+++ b/bot/admin/web/src/app/analytics/activity/activity.component.ts
@@ -235,17 +235,17 @@ export class ActivityComponent implements OnInit {
getBigIcon(before, current) {
if (current == before) {
- return 'minus-outline';
+ return 'dash-lg';
} else {
- return this.metricIncreased(before, current) ? 'diagonal-arrow-right-up-outline' : 'diagonal-arrow-right-down-outline';
+ return this.metricIncreased(before, current) ? 'arrow-up-right' : 'arrow-down-right';
}
}
getSmallIcon(before, current) {
if (current == before) {
- return 'minus-outline';
+ return 'dash';
} else {
- return this.metricIncreased(before, current) ? 'arrow-upward-outline' : 'arrow-downward-outline';
+ return this.metricIncreased(before, current) ? 'arrow-up-short' : 'arrow-down-short';
}
}
diff --git a/bot/admin/web/src/app/analytics/analytics.module.ts b/bot/admin/web/src/app/analytics/analytics.module.ts
index bbdc178030..56192198b4 100644
--- a/bot/admin/web/src/app/analytics/analytics.module.ts
+++ b/bot/admin/web/src/app/analytics/analytics.module.ts
@@ -80,6 +80,7 @@ import { DialogsListComponent } from './dialogs/dialogs-list/dialogs-list.compon
NbButtonModule,
NbInputModule,
NbSelectModule,
+ NbFormFieldModule,
NbCalendarModule,
NbUserModule,
NbDatepickerModule,
diff --git a/bot/admin/web/src/app/analytics/behavior/behavior.component.html b/bot/admin/web/src/app/analytics/behavior/behavior.component.html
index 13c5910088..59724f8852 100644
--- a/bot/admin/web/src/app/analytics/behavior/behavior.component.html
+++ b/bot/admin/web/src/app/analytics/behavior/behavior.component.html
@@ -41,7 +41,7 @@
nbTooltip="Refresh Data"
status="basic"
>
-
+
-
+
diff --git a/bot/admin/web/src/app/analytics/chart/chart.component.ts b/bot/admin/web/src/app/analytics/chart/chart.component.ts
index 8bc1eb8906..930680c3c1 100644
--- a/bot/admin/web/src/app/analytics/chart/chart.component.ts
+++ b/bot/admin/web/src/app/analytics/chart/chart.component.ts
@@ -423,7 +423,7 @@ export class ChartComponent implements OnChanges {
}
chartIcon(): string {
- return this.mainChart.type == 'PieChart' ? 'pie-chart-outline' : 'bar-chart-outline';
+ return this.mainChart.type == 'PieChart' ? 'pie-chart' : 'bar-chart';
}
onFlipAction() {
diff --git a/bot/admin/web/src/app/analytics/dialogs/dialogs-list/dialogs-list.component.html b/bot/admin/web/src/app/analytics/dialogs/dialogs-list/dialogs-list.component.html
index 433defe2cf..0c18350f21 100644
--- a/bot/admin/web/src/app/analytics/dialogs/dialogs-list/dialogs-list.component.html
+++ b/bot/admin/web/src/app/analytics/dialogs/dialogs-list/dialogs-list.component.html
@@ -2,13 +2,19 @@
diff --git a/bot/admin/web/src/app/analytics/dialogs/dialogs.component.html b/bot/admin/web/src/app/analytics/dialogs/dialogs.component.html
index 0971acd7d6..49aa9e8cc2 100644
--- a/bot/admin/web/src/app/analytics/dialogs/dialogs.component.html
+++ b/bot/admin/web/src/app/analytics/dialogs/dialogs.component.html
@@ -32,7 +32,7 @@
nbTooltip="Refresh dialogs"
(click)="refresh()"
>
-
+
diff --git a/bot/admin/web/src/app/analytics/flow/flow.component.html b/bot/admin/web/src/app/analytics/flow/flow.component.html
index a6e327a309..b450bc0276 100644
--- a/bot/admin/web/src/app/analytics/flow/flow.component.html
+++ b/bot/admin/web/src/app/analytics/flow/flow.component.html
@@ -25,7 +25,7 @@ Stories flow
Stories flow
Stories flow
Stories flow
Stories flow
-
-
-
-
-
- {{ selectedStory.storyName }}
-
-
- All
-
-
+
+
-
-
-
- {{ entry.value.name }}
-
-
-
-
-
-
-
-
-
- {{ selectedStory.storyName }}
-
-
- All
-
-
+
+
+
+ {{ selectedStory.storyName }}
+
+
+ All
+
+
+
+
+
+ {{ entry.value.name }}
+
+
+
-
-
-
-
- {{ entry.value.storyName }}
-
-
+
+
+
+
+
+ {{ selectedStory.storyName }}
+
+
+ All
+
+
+
+
+
+
+ {{ entry.value.storyName }}
+
+
+
@@ -46,7 +46,7 @@
>
All messages
@@ -57,7 +57,7 @@
>
Users
@@ -68,7 +68,7 @@
>
Messages by days in calendar
@@ -79,7 +79,7 @@
>
Messages by story
@@ -90,7 +90,7 @@
>
Messages by intent
@@ -101,7 +101,7 @@
>
Messages by configuration
@@ -112,7 +112,7 @@
>
Messages by connector type
@@ -131,7 +131,7 @@
>
Messages by Story
@@ -142,7 +142,7 @@
>
Messages by intent
@@ -153,7 +153,7 @@
>
Messages by day of week
@@ -164,7 +164,7 @@
>
Messages by hour of day
@@ -175,7 +175,7 @@
>
Messages by action type
@@ -186,7 +186,7 @@
>
Messages by story category
@@ -197,7 +197,7 @@
>
Messages by story type
@@ -208,7 +208,7 @@
>
Messages by locale
@@ -230,7 +230,7 @@
>
Curved Lines
@@ -241,7 +241,7 @@
>
Stacked Area
@@ -252,7 +252,7 @@
>
Data point focus
diff --git a/bot/admin/web/src/app/analytics/satisfaction/satisfaction-details/satisfaction-details.component.html b/bot/admin/web/src/app/analytics/satisfaction/satisfaction-details/satisfaction-details.component.html
index 17fba8c215..c4394e61c1 100644
--- a/bot/admin/web/src/app/analytics/satisfaction/satisfaction-details/satisfaction-details.component.html
+++ b/bot/admin/web/src/app/analytics/satisfaction/satisfaction-details/satisfaction-details.component.html
@@ -17,7 +17,7 @@
(click)="refresh()"
class="ml-2"
>
-
+
@@ -39,7 +39,7 @@
{{ satisfactionStat.nbUsersRated }} users
@@ -63,7 +63,7 @@
{{ getNbUsersByNote(index) }} users
diff --git a/bot/admin/web/src/app/analytics/users/users.component.html b/bot/admin/web/src/app/analytics/users/users.component.html
index e3c9279ded..e3b9ce302a 100644
--- a/bot/admin/web/src/app/analytics/users/users.component.html
+++ b/bot/admin/web/src/app/analytics/users/users.component.html
@@ -32,21 +32,27 @@
(click)="reload()"
class="ml-2"
>
-
+
-
+
+
+
+
-
+
+
+
+
ghost="true"
nbTooltip="Add dialog to Test Plan"
>
-
+
diff --git a/bot/admin/web/src/app/applications/application-upload/application-upload.component.html b/bot/admin/web/src/app/applications/application-upload/application-upload.component.html
index 693f72cc69..e51e70f2ce 100644
--- a/bot/admin/web/src/app/applications/application-upload/application-upload.component.html
+++ b/bot/admin/web/src/app/applications/application-upload/application-upload.component.html
@@ -27,7 +27,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/applications/application/application.component.html b/bot/admin/web/src/app/applications/application/application.component.html
index f8b2eb4b6b..9175642099 100644
--- a/bot/admin/web/src/app/applications/application/application.component.html
+++ b/bot/admin/web/src/app/applications/application/application.component.html
@@ -24,28 +24,28 @@
@@ -179,24 +179,30 @@
Locales
-
- {{ locale.second }}
-
-
+
+
+
+
+ {{ locale.second }}
+
+
+
*ngFor="let locale of application.supportedLocales"
>
{{ state.localeName(locale) }}
-
+ >
+
+
diff --git a/bot/admin/web/src/app/applications/application/application.component.scss b/bot/admin/web/src/app/applications/application/application.component.scss
index 6e627336c1..5e248f08a8 100644
--- a/bot/admin/web/src/app/applications/application/application.component.scss
+++ b/bot/admin/web/src/app/applications/application/application.component.scss
@@ -42,7 +42,7 @@
.tag {
display: inline-flex;
width: fit-content;
- max-width: 8rem;
+
padding: 0.3rem 0.6rem 0.3rem 1rem;
margin-right: 2px;
margin-bottom: 2px;
diff --git a/bot/admin/web/src/app/applications/applications.module.ts b/bot/admin/web/src/app/applications/applications.module.ts
index 8f9e71662a..da5b187f7d 100644
--- a/bot/admin/web/src/app/applications/applications.module.ts
+++ b/bot/admin/web/src/app/applications/applications.module.ts
@@ -28,6 +28,7 @@ import {
NbCardModule,
NbCheckboxModule,
NbDialogModule,
+ NbFormFieldModule,
NbIconModule,
NbInputModule,
NbRadioModule,
@@ -74,6 +75,7 @@ export class NlpApplicationConfig implements ApplicationConfig {
NbTooltipModule,
NbCheckboxModule,
NbSelectModule,
+ NbFormFieldModule,
NbAccordionModule,
NbSpinnerModule,
NbRadioModule,
diff --git a/bot/admin/web/src/app/applications/applications/applications.component.html b/bot/admin/web/src/app/applications/applications/applications.component.html
index 442b12121e..a2c68310c5 100644
--- a/bot/admin/web/src/app/applications/applications/applications.component.html
+++ b/bot/admin/web/src/app/applications/applications/applications.component.html
@@ -41,7 +41,7 @@ Welcome!
nbTooltip="Upload dump"
(click)="showUploadDumpPanel()"
>
-
+
routerLink="create"
nbTooltip="Create new application"
>
-
+
NEW APPLICATION
@@ -103,31 +103,32 @@ Welcome!
nbButton
ghost
shape="round"
- (click)="downloadDump(app)"
- nbTooltip="Download an application dump"
+ status="info"
+ routerLink="edit/{{ app._id }}"
+ nbTooltip="Edit application"
>
-
+
+
-
(click)="deleteApplication(app)"
nbTooltip="Delete application"
>
-
+
diff --git a/bot/admin/web/src/app/applications/configuration-tabs.component.ts b/bot/admin/web/src/app/applications/configuration-tabs.component.ts
index 4c3cb6fce9..8a3dd8c5cf 100644
--- a/bot/admin/web/src/app/applications/configuration-tabs.component.ts
+++ b/bot/admin/web/src/app/applications/configuration-tabs.component.ts
@@ -26,35 +26,7 @@ import { ApplicationsResolver } from './applications.resolver';
styleUrls: ['./configuration-tabs.component.css', './tabs.component.scss']
})
export class ConfigurationTabsComponent implements OnInit {
- tabs = [
- {
- title: 'Applications',
- route: 'nlu',
- icon: 'browser-outline',
- resolve: {
- applications: ApplicationsResolver
- }
- },
- {
- title: 'Namespaces',
- route: 'namespaces',
- icon: 'folder-outline'
- },
- {
- title: 'Log',
- route: 'users/logs',
- icon: 'eye-outline'
- }
- ];
-
- configurationTabLinks;
-
- constructor(private router: Router, private state: StateService) {
- if (!state.hasRole(UserRole.technicalAdmin)) {
- this.tabs = this.tabs.filter((t) => t.route !== 'users/logs');
- }
- this.configurationTabLinks = this.tabs;
- }
+ constructor(private router: Router) {}
ngOnInit() {
if (this.router.routerState.snapshot.url.endsWith('/configuration')) {
diff --git a/bot/admin/web/src/app/applications/namespace/create-namespace/create-namespace.component.html b/bot/admin/web/src/app/applications/namespace/create-namespace/create-namespace.component.html
index 111debca6e..373979f913 100644
--- a/bot/admin/web/src/app/applications/namespace/create-namespace/create-namespace.component.html
+++ b/bot/admin/web/src/app/applications/namespace/create-namespace/create-namespace.component.html
@@ -8,7 +8,7 @@
nbTooltip="Cancel"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/applications/namespace/namespaces.component.html b/bot/admin/web/src/app/applications/namespace/namespaces.component.html
index a486fe138f..b05db0037c 100644
--- a/bot/admin/web/src/app/applications/namespace/namespaces.component.html
+++ b/bot/admin/web/src/app/applications/namespace/namespaces.component.html
@@ -27,7 +27,7 @@ Namespaces
(click)="createNamespace()"
nbTooltip="Create a new namespace"
>
-
+
NEW NAMESPACE
@@ -62,7 +62,7 @@ Namespaces
@@ -74,7 +74,7 @@ Namespaces
(click)="manageUsers(n.namespace)"
nbTooltip="Manage Users"
>
-
+
@@ -109,7 +109,7 @@ Namespaces
@@ -121,27 +121,39 @@ Namespaces
(click)="deleteUserNamespace(u)"
nbTooltip="Delete User"
>
-
+
-
+
+
+
+
+
Owner
+
@@ -186,12 +198,22 @@ Namespaces
-
+
+
diff --git a/bot/admin/web/src/app/applications/user/user-logs.component.html b/bot/admin/web/src/app/applications/user/user-logs.component.html
index 0bf13c05d9..b47abf3293 100644
--- a/bot/admin/web/src/app/applications/user/user-logs.component.html
+++ b/bot/admin/web/src/app/applications/user/user-logs.component.html
@@ -90,7 +90,7 @@ Users logs
*ngIf="row.newData"
(click)="displayData(row)"
>
-
+
@@ -99,7 +99,7 @@ Users logs
*ngIf="row.error"
>
diff --git a/bot/admin/web/src/app/bot-admin-app.component.ts b/bot/admin/web/src/app/bot-admin-app.component.ts
index 986cce6d70..e25eff0476 100644
--- a/bot/admin/web/src/app/bot-admin-app.component.ts
+++ b/bot/admin/web/src/app/bot-admin-app.component.ts
@@ -123,87 +123,89 @@ export class BotAdminAppComponent implements AuthListener, OnInit, OnDestroy {
this.menu = [
{
title: 'Language Understanding',
- icon: 'message-circle-outline',
+ icon: 'chat-dots',
hidden: !this.state.hasRole(UserRole.nlpUser),
children: [
{
link: '/language-understanding/try',
- title: 'New Sentence',
- icon: 'plus-circle-outline'
+ title: 'New sentence',
+ icon: 'plus-circle'
},
{
link: '/language-understanding/inbox',
- title: 'Inbox',
- icon: 'inbox-outline'
+ title: 'Inbox sentences',
+ icon: 'inboxes'
},
{
link: '/language-understanding/search',
- title: 'Search',
- icon: 'search-outline'
+ title: 'Search sentences',
+ icon: 'search'
},
{
link: '/language-understanding/unknown',
- title: 'Unknown',
- icon: 'question-mark-circle-outline'
+ title: 'Unknown sentences',
+ icon: 'question-circle'
},
{
link: '/language-understanding/intents',
title: 'Intents',
- icon: 'compass-outline'
+ icon: 'compass'
},
{
link: '/language-understanding/entities',
title: 'Entities',
- icon: 'attach-outline'
+ icon: 'paperclip'
},
{
link: '/language-understanding/logs',
- title: 'Logs',
- icon: 'list-outline'
+ title: 'Sentences logs',
+ icon: 'justify-left'
}
]
},
{
title: 'Stories & Answers',
- icon: 'book-open-outline',
+ icon: 'book',
hidden: !this.state.hasRole(UserRole.botUser),
children: [
{
link: '/build/story-create',
title: 'New Story',
- icon: 'plus-circle-outline'
+ icon: 'plus-circle'
},
{
link: '/build/story-search',
title: 'All stories',
- icon: 'layers-outline'
+ icon: 'chat-left'
},
{
link: '/faq/management',
- title: 'FAQs management',
- icon: 'message-square-outline'
- },
- {
- link: '/build/story-rules',
- title: 'Rules',
- icon: 'toggle-right-outline'
+ title: 'FAQs stories',
+ icon: 'chat-left-text'
},
+
{
link: '/build/i18n',
title: 'Answers',
- icon: 'color-palette-outline'
+ icon: 'chat-right-quote'
},
{
link: '/build/story-documents',
title: 'Documents',
- icon: 'folder-outline'
+ icon: 'images'
+ },
+
+ {
+ link: '/build/story-rules',
+ title: 'Rules',
+ icon: 'toggle-on'
}
]
},
{
title: 'Gen AI',
- icon: 'bulb-outline',
+ icon: 'cpu',
children: [
// {
// link: '/rag/sources',
@@ -215,24 +217,24 @@ export class BotAdminAppComponent implements AuthListener, OnInit, OnDestroy {
{
link: '/rag/settings',
title: 'Rag settings',
- icon: 'settings-outline',
+ icon: 'lightbulb',
hidden: !this.state.hasRole(UserRole.admin)
},
{
link: '/rag/exclusions',
- title: 'Rag exclusions',
- icon: { icon: 'ragexclude', pack: 'tock-custom' }
+ title: 'Sentences Rag exclusions',
+ icon: 'lightbulb-off'
},
{
title: 'Sentence generation settings',
link: '/configuration/sentence-generation-settings',
- icon: 'list-outline',
+ icon: 'list-columns',
hidden: !this.state.hasRole(UserRole.admin)
},
{
title: 'Observability settings',
link: '/configuration/observability-settings',
- icon: 'monitor-outline',
+ icon: 'display',
hidden: !this.state.hasRole(UserRole.admin)
}
]
@@ -240,154 +242,154 @@ export class BotAdminAppComponent implements AuthListener, OnInit, OnDestroy {
{
title: 'Test',
- icon: 'play-circle-outline',
+ icon: 'play-circle',
hidden: !this.state.hasRole(UserRole.botUser),
children: [
{
link: '/test/test',
title: 'Test',
- icon: 'smiling-face-outline'
+ icon: 'terminal'
},
{
link: '/test/plan',
title: 'Test plans',
- icon: 'map-outline'
+ icon: 'map'
}
]
},
{
title: 'Analytics',
- icon: 'trending-up-outline',
+ icon: 'activity',
hidden: !this.state.hasRole(UserRole.botUser),
children: [
{
link: '/analytics/activity',
title: 'Activity',
- icon: 'activity-outline'
+ icon: 'graph-up-arrow'
},
{
link: '/analytics/behavior',
title: 'Behavior',
- icon: 'pie-chart-outline'
+ icon: 'pie-chart'
},
{
link: '/analytics/flow',
title: 'Flow',
- icon: 'funnel-outline'
+ icon: 'funnel'
},
{
link: '/analytics/users',
title: 'Users',
- icon: 'people-outline'
+ icon: 'people'
},
{
link: '/analytics/dialogs',
- title: 'Search',
- icon: 'search-outline'
+ title: 'Dialogs',
+ icon: 'wechat'
},
{
link: '/analytics/preferences',
title: 'Preferences',
- icon: 'settings-2-outline'
+ icon: 'sliders'
},
{
link: '/analytics/satisfaction',
title: 'Satisfaction',
- icon: 'star-outline'
+ icon: 'star'
}
]
},
{
title: 'Custom Metrics',
- icon: 'pie-chart-outline',
+ icon: 'clipboard-data',
hidden: !this.state.hasRole(UserRole.botUser),
children: [
{
link: '/business-metrics/board',
title: 'Metrics',
- icon: 'pie-chart-outline'
+ icon: 'clipboard2-pulse'
},
{
link: '/business-metrics/indicators',
title: 'Indicators',
- icon: 'compass-outline'
+ icon: 'sign-merge-left'
}
]
},
{
title: 'Model Quality',
- icon: 'clipboard-outline',
+ icon: 'box-seam',
hidden: !this.state.hasRole(UserRole.nlpUser),
children: [
{
link: '/model-quality/log-stats',
title: 'Model Stats',
- icon: 'activity-outline'
+ icon: 'award'
},
{
link: '/model-quality/intent-quality',
title: 'Intent Distance',
- icon: 'pantone-outline'
+ icon: 'rulers'
},
{
link: '/model-quality/count-stats',
title: 'Count Stats',
- icon: 'hash-outline'
+ icon: 'hash'
},
{
link: '/model-quality/model-builds',
title: 'Model Builds',
- icon: 'save-outline'
+ icon: 'building'
},
{
link: '/model-quality/test-builds',
title: 'Test Trends',
- icon: 'trending-down-outline'
+ icon: 'graph-down-arrow'
},
{
link: '/model-quality/test-intent-errors',
title: 'Test Intent Errors',
- icon: 'alert-triangle-outline'
+ icon: 'bug'
},
{
link: '/model-quality/test-entity-errors',
title: 'Test Entity Errors',
- icon: 'alert-triangle-outline'
+ icon: 'bug'
}
]
},
{
title: 'Settings',
- icon: 'settings-outline',
+ icon: 'gear',
children: [
{
title: 'Applications',
link: '/configuration/nlp',
- icon: 'browser-outline'
+ icon: 'window-stack'
},
{
title: 'Configurations',
link: '/configuration/bot',
- icon: 'link-outline',
+ icon: 'link-45deg',
hidden: !this.state.hasRole(UserRole.admin)
},
{
title: 'Namespaces',
link: '/configuration/namespaces',
- icon: 'folder-outline'
+ icon: 'folder'
},
{
title: 'Log',
link: '/configuration/users/logs',
- icon: 'eye-outline',
+ icon: 'eye',
hidden: !this.state.hasRole(UserRole.technicalAdmin)
},
{
title: 'Synchronization',
link: '/configuration/synchronization',
- icon: 'sync'
+ icon: 'arrow-repeat'
}
]
}
diff --git a/bot/admin/web/src/app/bot-admin-app.module.ts b/bot/admin/web/src/app/bot-admin-app.module.ts
index 39c32c0d91..9db9a4a2b8 100644
--- a/bot/admin/web/src/app/bot-admin-app.module.ts
+++ b/bot/admin/web/src/app/bot-admin-app.module.ts
@@ -36,8 +36,6 @@ import {
import { APP_BASE_HREF, PlatformLocation } from '@angular/common';
import { BotService } from './bot/bot-service';
import { BotAdminAppRoutingModule } from './bot-admin-app-routing.module';
-import { ragIcon } from './theme/icons/rag';
-import { ragexcludeIcon } from './theme/icons/ragexclude';
import { NlpService } from './core-nlp/nlp.service';
@NgModule({
@@ -74,9 +72,7 @@ import { NlpService } from './core-nlp/nlp.service';
})
export class BotAdminAppModule {
constructor(private iconLibraries: NbIconLibraries) {
- this.iconLibraries.registerSvgPack('tock-custom', {
- rag: ragIcon,
- ragexclude: ragexcludeIcon
- });
+ this.iconLibraries.registerFontPack('bootstrap-icons', { iconClassPrefix: 'bi' });
+ this.iconLibraries.setDefaultPack('bootstrap-icons');
}
}
diff --git a/bot/admin/web/src/app/bot/feature/application-feature/application-feature.component.html b/bot/admin/web/src/app/bot/feature/application-feature/application-feature.component.html
index 8843105d95..818ab776c5 100644
--- a/bot/admin/web/src/app/bot/feature/application-feature/application-feature.component.html
+++ b/bot/admin/web/src/app/bot/feature/application-feature/application-feature.component.html
@@ -29,7 +29,7 @@
nbTooltip="Refresh"
(click)="refresh()"
>
-
+
diff --git a/bot/admin/web/src/app/bot/feature/application-feature/application-features-table/application-features-table.component.html b/bot/admin/web/src/app/bot/feature/application-feature/application-features-table/application-features-table.component.html
index 7d9ca475ff..83e7c6e60d 100644
--- a/bot/admin/web/src/app/bot/feature/application-feature/application-features-table/application-features-table.component.html
+++ b/bot/admin/web/src/app/bot/feature/application-feature/application-features-table/application-features-table.component.html
@@ -28,7 +28,7 @@
nbTooltip="Add a new Feature"
(click)="newFeature()"
>
-
+
New {{ type }} feature
@@ -154,7 +154,7 @@
nbTooltip="Delete rule"
(click)="askDeleteFeature(feature)"
>
-
+
|
diff --git a/bot/admin/web/src/app/bot/feature/application-feature/create-feature/create-feature.component.html b/bot/admin/web/src/app/bot/feature/application-feature/create-feature/create-feature.component.html
index 438534ce47..54b62712a8 100644
--- a/bot/admin/web/src/app/bot/feature/application-feature/create-feature/create-feature.component.html
+++ b/bot/admin/web/src/app/bot/feature/application-feature/create-feature/create-feature.component.html
@@ -9,7 +9,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
@@ -42,14 +42,20 @@
[showError]="isSubmitted"
[required]="true"
>
-
+
+
+
+
@@ -62,16 +68,22 @@
[controls]="startDate"
[showError]="isSubmitted"
>
-
+
+
+
+
-
+
+
+
+
+
Cancel
diff --git a/bot/admin/web/src/app/bot/feature/story-rule/create-rule/create-rule.component.html b/bot/admin/web/src/app/bot/feature/story-rule/create-rule/create-rule.component.html
index c304e22389..acd215e0e4 100644
--- a/bot/admin/web/src/app/bot/feature/story-rule/create-rule/create-rule.component.html
+++ b/bot/admin/web/src/app/bot/feature/story-rule/create-rule/create-rule.component.html
@@ -12,7 +12,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
@@ -27,20 +27,26 @@
[showError]="isSubmitted"
[required]="true"
>
-
+
+
+
+
-
+
+
+
+
+
Cancel
diff --git a/bot/admin/web/src/app/bot/feature/story-rule/create-rule/create-rule.component.ts b/bot/admin/web/src/app/bot/feature/story-rule/create-rule/create-rule.component.ts
index 31e42a2ac1..d70df3fa9a 100644
--- a/bot/admin/web/src/app/bot/feature/story-rule/create-rule/create-rule.component.ts
+++ b/bot/admin/web/src/app/bot/feature/story-rule/create-rule/create-rule.component.ts
@@ -5,6 +5,7 @@ import { FormControl, FormGroup, Validators } from '@angular/forms';
import { BotService } from '../../../bot-service';
import { StateService } from '../../../../core-nlp/state.service';
import { Observable, of, take } from 'rxjs';
+import { getStoryIcon } from '../../../../shared/utils';
enum mainOrTarget {
mainStory = 'mainStory',
@@ -37,6 +38,8 @@ export class CreateRuleComponent implements OnInit {
isSubmitted: boolean = false;
+ getStoryIcon = getStoryIcon;
+
@Input() type: RuleType;
@Output() onSave = new EventEmitter();
@@ -155,16 +158,4 @@ export class CreateRuleComponent implements OnInit {
cancel(): void {
this.nbDialogRef.close({});
}
-
- getStoryIcon(story: StoryDefinitionConfiguration): string {
- if (story.isBuiltIn()) {
- return 'cube';
- }
- if (story.isSimpleAnswer()) {
- return 'message-square-outline';
- }
- if (story.isScriptAnswer()) {
- return 'code';
- }
- }
}
diff --git a/bot/admin/web/src/app/bot/feature/story-rule/story-rule-table/story-rules-table.component.html b/bot/admin/web/src/app/bot/feature/story-rule/story-rule-table/story-rules-table.component.html
index cf44da2769..1da0e5a023 100644
--- a/bot/admin/web/src/app/bot/feature/story-rule/story-rule-table/story-rules-table.component.html
+++ b/bot/admin/web/src/app/bot/feature/story-rule/story-rule-table/story-rules-table.component.html
@@ -12,7 +12,7 @@
>
-
+
@@ -41,7 +41,7 @@
(click)="newRule()"
class="new-rule-button"
>
-
+
New {{ type }} rule
@@ -92,7 +92,7 @@
{{ feature.story.name }}
@@ -109,7 +109,7 @@
>
{{ feature.switchToStory.name }}
@@ -123,7 +123,7 @@
>
{{ feature.endWithStory.name }}
@@ -169,7 +169,7 @@
nbTooltip="Delete rule"
(click)="askDeleteFeature(feature)"
>
-
+
diff --git a/bot/admin/web/src/app/bot/feature/story-rule/story-rule-table/story-rules-table.component.ts b/bot/admin/web/src/app/bot/feature/story-rule/story-rule-table/story-rules-table.component.ts
index 4782ee714f..10286c985c 100644
--- a/bot/admin/web/src/app/bot/feature/story-rule/story-rule-table/story-rules-table.component.ts
+++ b/bot/admin/web/src/app/bot/feature/story-rule/story-rule-table/story-rules-table.component.ts
@@ -5,6 +5,7 @@ import { NbDialogService, NbToastrService } from '@nebular/theme';
import { CreateRuleComponent } from '../create-rule/create-rule.component';
import { ChoiceDialogComponent } from '../../../../shared/components';
import { BotService } from '../../../bot-service';
+import { getStoryIcon } from '../../../../shared/utils';
@Component({
selector: 'tock-story-rules-table',
@@ -20,6 +21,8 @@ export class StoryRulesTableComponent implements OnChanges, OnDestroy {
searchFilterString: string;
+ getStoryIcon = getStoryIcon;
+
@Input() type: RuleType;
@Input() features: StoryFeature[] = [];
@@ -38,18 +41,6 @@ export class StoryRulesTableComponent implements OnChanges, OnDestroy {
return [RuleType.Redirection, RuleType.Ending].includes(this.type);
}
- getStoryIcon(story: StoryDefinitionConfiguration): string {
- if (story.isBuiltIn()) {
- return 'cube';
- }
- if (story.isSimpleAnswer()) {
- return 'message-square-outline';
- }
- if (story.isScriptAnswer()) {
- return 'code';
- }
- }
-
newRule(): void {
this.nbDialogService
.open(CreateRuleComponent, {
diff --git a/bot/admin/web/src/app/bot/feature/story-rule/story-rule.component.html b/bot/admin/web/src/app/bot/feature/story-rule/story-rule.component.html
index bd7b57bb6d..8e379296a6 100644
--- a/bot/admin/web/src/app/bot/feature/story-rule/story-rule.component.html
+++ b/bot/admin/web/src/app/bot/feature/story-rule/story-rule.component.html
@@ -29,7 +29,7 @@
nbTooltip="Refresh"
(click)="refresh()"
>
-
+
diff --git a/bot/admin/web/src/app/bot/feature/story-runtime-settings/story-runtime-settings.component.html b/bot/admin/web/src/app/bot/feature/story-runtime-settings/story-runtime-settings.component.html
index 63abd35dfb..c30c89b6a5 100644
--- a/bot/admin/web/src/app/bot/feature/story-runtime-settings/story-runtime-settings.component.html
+++ b/bot/admin/web/src/app/bot/feature/story-runtime-settings/story-runtime-settings.component.html
@@ -29,7 +29,7 @@
nbTooltip="Refresh"
(click)="refresh()"
>
-
+
{{ story.name }}
@@ -97,7 +97,10 @@
class="pointer"
nbTooltip="Click to view story details"
>
-
+
{{ story.name }}
@@ -129,7 +132,10 @@
class="pointer"
nbTooltip="Click to view story details"
>
-
+
{{ story.name }}
@@ -161,7 +167,10 @@
class="pointer"
nbTooltip="Click to view story details"
>
-
+
{{ story.name }}
diff --git a/bot/admin/web/src/app/bot/feature/story-runtime-settings/story-runtime-settings.component.ts b/bot/admin/web/src/app/bot/feature/story-runtime-settings/story-runtime-settings.component.ts
index 1bb6ab4665..f525cbc5dd 100644
--- a/bot/admin/web/src/app/bot/feature/story-runtime-settings/story-runtime-settings.component.ts
+++ b/bot/admin/web/src/app/bot/feature/story-runtime-settings/story-runtime-settings.component.ts
@@ -20,6 +20,7 @@ import { StoryDefinitionConfiguration } from '../../model/story';
import { StateService } from '../../../core-nlp/state.service';
import { Router } from '@angular/router';
import { Subject, takeUntil } from 'rxjs';
+import { getStoryIcon } from '../../../shared/utils';
@Component({
selector: 'tock-story-runtime-settings',
@@ -37,6 +38,8 @@ export class StoryRuntimeSettingsComponent implements OnInit, OnDestroy {
loading: boolean;
+ getStoryIcon = getStoryIcon;
+
constructor(private state: StateService, private botService: BotService, private router: Router) {}
ngOnInit(): void {
@@ -73,18 +76,6 @@ export class StoryRuntimeSettingsComponent implements OnInit, OnDestroy {
}
}
- getStoryIcon(story: StoryDefinitionConfiguration) {
- if (story.isBuiltIn()) {
- return 'cube';
- }
- if (story.isSimpleAnswer()) {
- return 'message-square-outline';
- }
- if (story.isScriptAnswer()) {
- return 'code';
- }
- }
-
editStory(story: StoryDefinitionConfiguration) {
this.router.navigateByUrl('/build/story-edit/' + story._id);
}
diff --git a/bot/admin/web/src/app/bot/i18n/i18n-export/i18n-export.component.html b/bot/admin/web/src/app/bot/i18n/i18n-export/i18n-export.component.html
index c08d03a476..23d0d14d55 100644
--- a/bot/admin/web/src/app/bot/i18n/i18n-export/i18n-export.component.html
+++ b/bot/admin/web/src/app/bot/i18n/i18n-export/i18n-export.component.html
@@ -25,7 +25,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/bot/i18n/i18n-filters/i18n-filters.component.html b/bot/admin/web/src/app/bot/i18n/i18n-filters/i18n-filters.component.html
index 9915bde917..b23efa4d63 100644
--- a/bot/admin/web/src/app/bot/i18n/i18n-filters/i18n-filters.component.html
+++ b/bot/admin/web/src/app/bot/i18n/i18n-filters/i18n-filters.component.html
@@ -5,7 +5,7 @@
-
+
@@ -37,7 +37,7 @@
-
+
Validate All
@@ -158,7 +158,7 @@
(click)="translate()"
*ngIf="state.currentApplication.supportedLocales.length !== 1"
>
-
+
Translate All
@@ -172,7 +172,7 @@
nbTooltip="Import"
(click)="import()"
>
-
+
Import
@@ -186,7 +186,7 @@
nbTooltip="Export"
(click)="export()"
>
-
+
Export
diff --git a/bot/admin/web/src/app/bot/i18n/i18n-label/i18n-label.component.html b/bot/admin/web/src/app/bot/i18n/i18n-label/i18n-label.component.html
index 45e4f986e7..10ecdc7b41 100644
--- a/bot/admin/web/src/app/bot/i18n/i18n-label/i18n-label.component.html
+++ b/bot/admin/web/src/app/bot/i18n/i18n-label/i18n-label.component.html
@@ -51,7 +51,7 @@
[disabled]="!deleteLabelAllowed"
(click)="deleteLabel()"
>
-
+
@@ -77,12 +77,12 @@
@@ -129,7 +129,7 @@
(click)="addNewAlternative(l)"
[disabled]="!isSupportedLocale(l)"
>
-
+
@@ -140,7 +140,7 @@
status="danger"
ghost
>
-
+
@@ -171,11 +171,11 @@
@@ -209,7 +209,7 @@
status="danger"
(click)="removeAlternative(l, index)"
>
-
+
diff --git a/bot/admin/web/src/app/bot/i18n/i18n.component.html b/bot/admin/web/src/app/bot/i18n/i18n.component.html
index 82e20f6b69..5f178c5edf 100644
--- a/bot/admin/web/src/app/bot/i18n/i18n.component.html
+++ b/bot/admin/web/src/app/bot/i18n/i18n.component.html
@@ -26,7 +26,7 @@ Answers
(click)="refresh()"
class="ml-2"
>
-
+
diff --git a/bot/admin/web/src/app/bot/model/story.ts b/bot/admin/web/src/app/bot/model/story.ts
index 4bd9dce8cc..984f537429 100644
--- a/bot/admin/web/src/app/bot/model/story.ts
+++ b/bot/admin/web/src/app/bot/model/story.ts
@@ -78,6 +78,14 @@ export abstract class AnswerContainer {
return this.currentType === AnswerConfigurationType.simple;
}
+ isSimpleFaqAnswer(): boolean {
+ return this.currentType === AnswerConfigurationType.simple && this.category === 'faq';
+ }
+
+ isSimpleNonFaqAnswer(): boolean {
+ return this.currentType === AnswerConfigurationType.simple && this.category != 'faq';
+ }
+
isMessageAnswer(): boolean {
return this.currentType === AnswerConfigurationType.message;
}
@@ -153,6 +161,14 @@ export class StoryDefinitionConfigurationSummary {
return this.currentType === AnswerConfigurationType.simple;
}
+ isSimpleFaqAnswer(): boolean {
+ return this.currentType === AnswerConfigurationType.simple && this.category === 'faq';
+ }
+
+ isSimpleNonFaqAnswer(): boolean {
+ return this.currentType === AnswerConfigurationType.simple && this.category != 'faq';
+ }
+
isMessageAnswer(): boolean {
return this.currentType === AnswerConfigurationType.message;
}
diff --git a/bot/admin/web/src/app/bot/story/action/step-dialog/step-dialog.component.html b/bot/admin/web/src/app/bot/story/action/step-dialog/step-dialog.component.html
index 1cdfc9cbb8..44549f2a2f 100644
--- a/bot/admin/web/src/app/bot/story/action/step-dialog/step-dialog.component.html
+++ b/bot/admin/web/src/app/bot/story/action/step-dialog/step-dialog.component.html
@@ -25,7 +25,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/bot/story/action/step/step.component.html b/bot/admin/web/src/app/bot/story/action/step/step.component.html
index d579e4cc3e..dc03176636 100644
--- a/bot/admin/web/src/app/bot/story/action/step/step.component.html
+++ b/bot/admin/web/src/app/bot/story/action/step/step.component.html
@@ -30,7 +30,7 @@
*ngIf="canUpward"
class="d-block"
>
-
+
@@ -119,7 +119,7 @@
*ngIf="!step.entity || step.entity.value"
>
@@ -131,7 +131,7 @@
(click)="setEntity()"
*ngIf="step.entity && !step.entity.value"
>
-
+
{{ step.entity ? (step.entity.value ? step.entity.value : step.entity.entityRole) : '' }}
@@ -215,7 +215,7 @@
size="small"
(click)="removeStep()"
>
-
+
Remove Action
@@ -227,7 +227,7 @@
(click)="addChild()"
*ngIf="!step.new && step.intent && !step.currentAnswer().isEmpty()"
>
-
+
Add action
@@ -237,7 +237,7 @@
size="small"
(click)="duplicateStep()"
>
-
+
Duplicate
@@ -248,7 +248,7 @@
(click)="generateChildren()"
*ngIf="!step.new && step.intent && !step.currentAnswer().isEmpty()"
>
-
+
Generate from entity
diff --git a/bot/admin/web/src/app/bot/story/action/steps/steps.component.html b/bot/admin/web/src/app/bot/story/action/steps/steps.component.html
index a74cf1e9e0..10c75cf82c 100644
--- a/bot/admin/web/src/app/bot/story/action/steps/steps.component.html
+++ b/bot/admin/web/src/app/bot/story/action/steps/steps.component.html
@@ -69,7 +69,7 @@
size="small"
(click)="generate()"
>
-
+
Generate from Entity
diff --git a/bot/admin/web/src/app/bot/story/answer/answer-dialog/answer-dialog.component.html b/bot/admin/web/src/app/bot/story/answer/answer-dialog/answer-dialog.component.html
index 27aaf2dba5..ebd24a5547 100644
--- a/bot/admin/web/src/app/bot/story/answer/answer-dialog/answer-dialog.component.html
+++ b/bot/admin/web/src/app/bot/story/answer/answer-dialog/answer-dialog.component.html
@@ -24,7 +24,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/bot/story/answer/answer/answer.component.html b/bot/admin/web/src/app/bot/story/answer/answer/answer.component.html
index 534926351a..3abbc374aa 100644
--- a/bot/admin/web/src/app/bot/story/answer/answer/answer.component.html
+++ b/bot/admin/web/src/app/bot/story/answer/answer/answer.component.html
@@ -26,9 +26,10 @@
[size]="editableIconSize"
(click)="$event.stopPropagation(); editAnswer()"
>
-
+
+
-
+
I18n
@@ -53,7 +53,7 @@
nbTooltip="Move upward"
(click)="upward(a)"
>
-
+
+
-
+
diff --git a/bot/admin/web/src/app/bot/story/search-story/stories-list/stories-list.component.html b/bot/admin/web/src/app/bot/story/search-story/stories-list/stories-list.component.html
index 78cd9efccb..bfad8f0c5d 100644
--- a/bot/admin/web/src/app/bot/story/search-story/stories-list/stories-list.component.html
+++ b/bot/admin/web/src/app/bot/story/search-story/stories-list/stories-list.component.html
@@ -20,19 +20,25 @@
>
+
@@ -56,7 +62,7 @@
(click)="displayIntentStoryDetails(story.intent)"
nbTooltip="Show intent story details"
>
-
+
@@ -70,10 +76,11 @@
nbButton
ghost
shape="round"
+ status="info"
nbTooltip="View/Edit Story"
(click)="editStory(story)"
>
-
+
diff --git a/bot/admin/web/src/app/bot/story/select-entity-dialog/select-entity-dialog.component.html b/bot/admin/web/src/app/bot/story/select-entity-dialog/select-entity-dialog.component.html
index b88575ea96..846128ca58 100644
--- a/bot/admin/web/src/app/bot/story/select-entity-dialog/select-entity-dialog.component.html
+++ b/bot/admin/web/src/app/bot/story/select-entity-dialog/select-entity-dialog.component.html
@@ -25,7 +25,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/bot/story/story-dialog/story-dialog.component.html b/bot/admin/web/src/app/bot/story/story-dialog/story-dialog.component.html
index 3d6e54177c..d11f4b203d 100644
--- a/bot/admin/web/src/app/bot/story/story-dialog/story-dialog.component.html
+++ b/bot/admin/web/src/app/bot/story/story-dialog/story-dialog.component.html
@@ -25,7 +25,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/bot/story/story.component.html b/bot/admin/web/src/app/bot/story/story.component.html
index 4f08107ae5..7015dd73c0 100644
--- a/bot/admin/web/src/app/bot/story/story.component.html
+++ b/bot/admin/web/src/app/bot/story/story.component.html
@@ -27,17 +27,26 @@
+
-
+
@@ -189,7 +198,7 @@
nbTooltip="Edit"
(click)="editEntities()"
>
-
+
@@ -228,7 +237,7 @@
nbTooltip="Customise answer by bot application configuration"
(click)="customiseMainAnswer()"
>
-
+
@@ -251,7 +260,7 @@
- {{ configuredAnswer.botConfiguration }}
+ {{ configuredAnswer.botConfiguration }}
@@ -295,7 +304,7 @@
nbTooltip="Customise actions by bot application configuration"
(click)="addCustomSteps()"
>
-
+
@@ -317,7 +326,7 @@
- {{ configuredSteps.botConfiguration }}
+ {{ configuredSteps.botConfiguration }}
@@ -352,6 +361,7 @@
size="small"
(click)="saveNewStory()"
>
+
Create
@@ -46,7 +46,7 @@ Bot configurations
nbTooltip="Refresh"
(click)="refresh()"
>
-
+
Bot configurations
(click)="prepareCreate()"
*ngIf="!newApplicationConfiguration && state.currentApplication"
>
-
+
NEW CONFIGURATION
@@ -119,7 +119,7 @@ Bot configurations
(click)="copyToClipboard(botconfig)"
nbTooltip="Copy API Key"
>
-
+
@@ -146,7 +146,7 @@ Bot configurations
(click)="saveBot(botconfig)"
nbTooltip="Save Webhook"
>
-
+
diff --git a/bot/admin/web/src/app/configuration/observability-settings/observability-settings.component.html b/bot/admin/web/src/app/configuration/observability-settings/observability-settings.component.html
index b3c89b3b6b..6508010d89 100644
--- a/bot/admin/web/src/app/configuration/observability-settings/observability-settings.component.html
+++ b/bot/admin/web/src/app/configuration/observability-settings/observability-settings.component.html
@@ -13,7 +13,7 @@ Observability settings
nbTooltip="Cancel modifications"
(click)="cancel()"
>
-
+
CANCEL
Observability settings
nbTooltip="Save settings"
(click)="submit()"
>
-
+
SAVE
-
-
- No bot configuration detected
-
+
diff --git a/bot/admin/web/src/app/faq/faq-management/faq-management-list/faq-management-list.component.html b/bot/admin/web/src/app/faq/faq-management/faq-management-list/faq-management-list.component.html
index b043109f0c..ac0a2a5e9a 100644
--- a/bot/admin/web/src/app/faq/faq-management/faq-management-list/faq-management-list.component.html
+++ b/bot/admin/web/src/app/faq/faq-management/faq-management-list/faq-management-list.component.html
@@ -11,10 +11,10 @@
{{ faq.title }}
-
+
@@ -41,7 +41,7 @@
nbTooltip="Copy question"
(click)="copyString(faq.utterances[0])"
>
-
+
@@ -81,12 +81,13 @@
nbButton
ghost
shape="round"
+ status="info"
nbTooltip="Edit"
class="mb-2"
(click)="editFaq(faq)"
data-testid="edit"
>
-
+
-
+
-
+
diff --git a/bot/admin/web/src/app/faq/faq-management/faq-management-settings/faq-management-settings.component.html b/bot/admin/web/src/app/faq/faq-management/faq-management-settings/faq-management-settings.component.html
index a1e98d87fa..8e54c05023 100644
--- a/bot/admin/web/src/app/faq/faq-management/faq-management-settings/faq-management-settings.component.html
+++ b/bot/admin/web/src/app/faq/faq-management/faq-management-settings/faq-management-settings.component.html
@@ -15,7 +15,7 @@ FAQ Parameters
(click)="close()"
data-testid="close-button"
>
-
+
diff --git a/bot/admin/web/src/app/faq/faq-management/faq-management.component.html b/bot/admin/web/src/app/faq/faq-management/faq-management.component.html
index 0999393af3..1ea77710a3 100644
--- a/bot/admin/web/src/app/faq/faq-management/faq-management.component.html
+++ b/bot/admin/web/src/app/faq/faq-management/faq-management.component.html
@@ -1,5 +1,5 @@
-
FAQs Management
+ FAQs stories
FAQs Management
[disabled]="!configurations?.length"
(click)="openSettings()"
>
-
+
FAQs Management
[disabled]="!configurations?.length"
(click)="addOrEditFaq()"
>
-
- NEW FAQ
+
+ NEW FAQ STORY
-
-
- No bot configuration detected
-
+ title="No bot configuration detected"
+ >
Entities
(click)="selectEntityType(e)"
>
{{ e.nameWithoutNamespace(state.currentApplication.namespace) }}
-
+ class="ml-1"
+ >
+
+
-
+ >
+
+
Entities
(click)="unSelectEntityType()"
nbTooltip="Unselect entity"
>
-
+
@@ -117,7 +125,7 @@ Entities
(click)="downloadDictionary()"
nbTooltip="Download Dictionary"
>
-
+
Download Dictionary
Entities
(click)="showUploadDictionaryButton = false"
nbTooltip="Upload Dictionary"
>
-
+
Upload Dictionary
Entities
*ngFor="let label of predefinedValue.labels.get(state.currentLocale)"
>
{{ label }}
-
+ >
+
+
@@ -194,7 +209,7 @@ Entities
(click)="createLabel(predefinedValue, addLabelInput.value)"
[disabled]="!addLabelInput.value?.trim().length"
>
-
+
@@ -205,7 +220,7 @@ Entities
status="danger"
nbTooltip="Delete predefined value"
>
-
+
|
@@ -235,7 +250,7 @@ Entities
>
diff --git a/bot/admin/web/src/app/language-understanding/entities/entity-details.component.html b/bot/admin/web/src/app/language-understanding/entities/entity-details.component.html
index 74f7de23db..23a63083b4 100644
--- a/bot/admin/web/src/app/language-understanding/entities/entity-details.component.html
+++ b/bot/admin/web/src/app/language-understanding/entities/entity-details.component.html
@@ -22,14 +22,18 @@
>
{{ entity.qualifiedName(state.user) }}
-
+ >
+
+
diff --git a/bot/admin/web/src/app/language-understanding/intents-logs/intents-logs.component.html b/bot/admin/web/src/app/language-understanding/intents-logs/intents-logs.component.html
index 3918f964d1..ad676b7cdc 100644
--- a/bot/admin/web/src/app/language-understanding/intents-logs/intents-logs.component.html
+++ b/bot/admin/web/src/app/language-understanding/intents-logs/intents-logs.component.html
@@ -16,7 +16,7 @@
- Logs
+ Sentences logs
(click)="loadData()"
class="ml-2"
>
-
+
(click)="downloadDump()"
*ngIf="pagination.total"
>
-
+
@@ -66,7 +66,7 @@
(click)="resetSearch()"
*ngIf="searchString.value?.trim().length"
>
-
+
@@ -130,9 +130,9 @@
{{ d.textRequest() }}
(click)="displayFullLog(d)"
nbTooltip="View Full Log"
>
-
+
-
+
nbTooltip="Copy sentence"
(click)="copySentence(d.sentence)"
>
-
+
-
+
diff --git a/bot/admin/web/src/app/language-understanding/intents-logs/intents-logs.component.ts b/bot/admin/web/src/app/language-understanding/intents-logs/intents-logs.component.ts
index 5d1da2bdd0..b95f763339 100644
--- a/bot/admin/web/src/app/language-understanding/intents-logs/intents-logs.component.ts
+++ b/bot/admin/web/src/app/language-understanding/intents-logs/intents-logs.component.ts
@@ -178,12 +178,8 @@ export class IntentsLogsComponent implements OnInit, OnDestroy {
return sentence instanceof Sentence;
}
- answerToSentence(sentence: Sentence) {
- this.router.navigate([this.config.answerToSentenceUrl], {
- queryParams: {
- text: sentence.getText()
- }
- });
+ redirectToFaqManagement(sentence: Sentence): void {
+ this.router.navigate(['faq/management'], { state: { question: sentence.text } });
}
displayFullLog(log: Log): void {
diff --git a/bot/admin/web/src/app/language-understanding/intents/intents-filters/intents-filters.component.html b/bot/admin/web/src/app/language-understanding/intents/intents-filters/intents-filters.component.html
index d986ef0c05..029b82dfd3 100644
--- a/bot/admin/web/src/app/language-understanding/intents/intents-filters/intents-filters.component.html
+++ b/bot/admin/web/src/app/language-understanding/intents/intents-filters/intents-filters.component.html
@@ -7,7 +7,7 @@
-
+
diff --git a/bot/admin/web/src/app/language-understanding/intents/intents-list/intents-list.component.html b/bot/admin/web/src/app/language-understanding/intents/intents-list/intents-list.component.html
index eba49b3d65..290326d2f3 100644
--- a/bot/admin/web/src/app/language-understanding/intents/intents-list/intents-list.component.html
+++ b/bot/admin/web/src/app/language-understanding/intents/intents-list/intents-list.component.html
@@ -19,11 +19,11 @@
{{ state.isOtherNamespaceIntent(intent) ? intent.qualifiedName() : intent.intentLabel() }}
-
+
{{ intent.description }}
@@ -52,7 +52,7 @@
nbTooltip="Delete entity"
[style.color]="getContrastYIQ(e.entityColor)"
>
-
+
@@ -78,7 +78,7 @@
(click)="removeSharedIntent(intent, intentId)"
nbTooltip="Remove shared intent"
>
-
+
@@ -92,7 +92,7 @@
nbTooltip="Add shared intent"
(click)="displayAddSharedIntentDialog(intent)"
>
-
+
@@ -117,7 +117,7 @@
(click)="removeState(intent, s)"
nbTooltip="Delete State"
>
-
+
@@ -131,7 +131,7 @@
nbTooltip="Add state"
(click)="addState(intent)"
>
-
+
@@ -143,7 +143,7 @@
(click)="displayIntentStoryDetails(intent)"
nbTooltip="Show intent story details"
>
-
+
@@ -156,10 +156,11 @@
nbButton
ghost
shape="round"
+ status="info"
nbTooltip="Edit the intent"
(click)="updateIntent(intent)"
>
-
+
-
+
-
+
diff --git a/bot/admin/web/src/app/language-understanding/sentences/sentences-inbox/sentences-inbox.component.html b/bot/admin/web/src/app/language-understanding/sentences/sentences-inbox/sentences-inbox.component.html
index 371e089c06..8ebd16cb7a 100644
--- a/bot/admin/web/src/app/language-understanding/sentences/sentences-inbox/sentences-inbox.component.html
+++ b/bot/admin/web/src/app/language-understanding/sentences/sentences-inbox/sentences-inbox.component.html
@@ -26,7 +26,7 @@ Inbox sentences
(click)="refresh()"
class="ml-2"
>
-
+
diff --git a/bot/admin/web/src/app/language-understanding/sentences/sentences-search/sentences-search.component.html b/bot/admin/web/src/app/language-understanding/sentences/sentences-search/sentences-search.component.html
index e2b0c0c12e..5bf421874b 100644
--- a/bot/admin/web/src/app/language-understanding/sentences/sentences-search/sentences-search.component.html
+++ b/bot/admin/web/src/app/language-understanding/sentences/sentences-search/sentences-search.component.html
@@ -26,7 +26,7 @@ Search sentences
(click)="downloadSentencesDump()"
class="ml-2"
>
-
+
Search sentences
(click)="refresh()"
class="ml-2"
>
-
+
diff --git a/bot/admin/web/src/app/language-understanding/sentences/sentences-unknown/sentences-unknown.component.html b/bot/admin/web/src/app/language-understanding/sentences/sentences-unknown/sentences-unknown.component.html
index 5e9db88aca..60bea8be26 100644
--- a/bot/admin/web/src/app/language-understanding/sentences/sentences-unknown/sentences-unknown.component.html
+++ b/bot/admin/web/src/app/language-understanding/sentences/sentences-unknown/sentences-unknown.component.html
@@ -15,4 +15,5 @@
-->
Unknown sentences
+
diff --git a/bot/admin/web/src/app/metrics/indicators/indicators-edit/indicators-edit.component.html b/bot/admin/web/src/app/metrics/indicators/indicators-edit/indicators-edit.component.html
index 0ad6e765cd..8be7b5ee95 100644
--- a/bot/admin/web/src/app/metrics/indicators/indicators-edit/indicators-edit.component.html
+++ b/bot/admin/web/src/app/metrics/indicators/indicators-edit/indicators-edit.component.html
@@ -13,7 +13,7 @@
nbTooltip="Close"
(click)="close()"
>
-
+
@@ -150,7 +150,7 @@
nbTooltip="Remove this value"
(click)="removeValueDefinition(i)"
>
-
+
@@ -166,7 +166,7 @@
nbTooltip="Add a new value"
(click)="addValueDefinition()"
>
-
+
Add a new value
diff --git a/bot/admin/web/src/app/metrics/indicators/indicators-filters/indicators-filters.component.html b/bot/admin/web/src/app/metrics/indicators/indicators-filters/indicators-filters.component.html
index 15d9c1eb93..9c70f7f990 100644
--- a/bot/admin/web/src/app/metrics/indicators/indicators-filters/indicators-filters.component.html
+++ b/bot/admin/web/src/app/metrics/indicators/indicators-filters/indicators-filters.component.html
@@ -5,8 +5,9 @@
+
-
+
diff --git a/bot/admin/web/src/app/metrics/indicators/indicators.component.html b/bot/admin/web/src/app/metrics/indicators/indicators.component.html
index 40bc4470f2..c99ef61a8d 100644
--- a/bot/admin/web/src/app/metrics/indicators/indicators.component.html
+++ b/bot/admin/web/src/app/metrics/indicators/indicators.component.html
@@ -8,7 +8,7 @@ Indicators
(click)="addOrEditIndicator()"
*ngIf="configurations?.length"
>
-
+
NEW INDICATOR
@@ -18,18 +18,10 @@ Indicators
[class.grid]="isSidePanelOpen.edit"
class="mt-1"
>
-
-
- No bot configuration detected
-
+ title="No bot configuration detected"
+ >
Indicators
nbButton
ghost
shape="round"
+ status="info"
nbTooltip="Edit"
class="mb-2"
(click)="addOrEditIndicator(indicator)"
>
-
+
-
+
diff --git a/bot/admin/web/src/app/metrics/metrics-board/metrics-board.component.html b/bot/admin/web/src/app/metrics/metrics-board/metrics-board.component.html
index 42c92db50c..d2b35699c9 100644
--- a/bot/admin/web/src/app/metrics/metrics-board/metrics-board.component.html
+++ b/bot/admin/web/src/app/metrics/metrics-board/metrics-board.component.html
@@ -1,17 +1,9 @@
Custom metrics
-
-
- No bot configuration detected
-
+ title="No bot configuration detected"
+>
Custom metrics
Indicators
class="col-6 text-right"
*ngIf="indicatorsDimensions.length"
>
-
- {{ dimension }}
+
-
+ {{ dimension }}
+
+
@@ -275,7 +275,7 @@ Indicators
nbTooltip="Cancel"
(click)="closeHelpModal()"
>
-
+
diff --git a/bot/admin/web/src/app/metrics/metrics-board/metrics-by-stories/metrics-by-stories.component.html b/bot/admin/web/src/app/metrics/metrics-board/metrics-by-stories/metrics-by-stories.component.html
index 45cf73bae9..e4639355a4 100644
--- a/bot/admin/web/src/app/metrics/metrics-board/metrics-by-stories/metrics-by-stories.component.html
+++ b/bot/admin/web/src/app/metrics/metrics-board/metrics-by-stories/metrics-by-stories.component.html
@@ -8,7 +8,7 @@
nbTooltip="Cancel"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/metrics/metrics-board/stories-hits/stories-hits.component.html b/bot/admin/web/src/app/metrics/metrics-board/stories-hits/stories-hits.component.html
index 51eaeec9a1..05d031d70c 100644
--- a/bot/admin/web/src/app/metrics/metrics-board/stories-hits/stories-hits.component.html
+++ b/bot/admin/web/src/app/metrics/metrics-board/stories-hits/stories-hits.component.html
@@ -8,7 +8,7 @@
nbTooltip="Cancel"
(click)="cancel()"
>
-
+
@@ -19,13 +19,16 @@
(click)="sortBy(SortingCriteria.name)"
>
Story name
+
@@ -35,12 +38,14 @@
>
Hits
diff --git a/bot/admin/web/src/app/model-quality/count-stats/count-stats.component.html b/bot/admin/web/src/app/model-quality/count-stats/count-stats.component.html
index 3a64d500e2..f5395ebdde 100644
--- a/bot/admin/web/src/app/model-quality/count-stats/count-stats.component.html
+++ b/bot/admin/web/src/app/model-quality/count-stats/count-stats.component.html
@@ -27,37 +27,49 @@ Count stats
>
-
- All intents
-
+
+
- All intents
+
- {{ intent.intentLabel() }}
-
-
- Unknown
-
+
+ {{ intent.intentLabel() }}
+
+
+ Unknown
+
+
-
+
+
+
+
@@ -150,15 +162,14 @@ Count stats
-
diff --git a/bot/admin/web/src/app/model-quality/intent-quality/intent-quality.component.html b/bot/admin/web/src/app/model-quality/intent-quality/intent-quality.component.html
index 5126914fee..b2ff24e41c 100644
--- a/bot/admin/web/src/app/model-quality/intent-quality/intent-quality.component.html
+++ b/bot/admin/web/src/app/model-quality/intent-quality/intent-quality.component.html
@@ -24,7 +24,7 @@ Intent distance
(click)="search()"
nbTooltip="Refresh"
>
-
+
@@ -35,14 +35,20 @@ Intent distance
diff --git a/bot/admin/web/src/app/model-quality/log-stats/log-stats.component.html b/bot/admin/web/src/app/model-quality/log-stats/log-stats.component.html
index 9eb25961fa..0fc81cab72 100644
--- a/bot/admin/web/src/app/model-quality/log-stats/log-stats.component.html
+++ b/bot/admin/web/src/app/model-quality/log-stats/log-stats.component.html
@@ -20,26 +20,33 @@ Model stats
-
- All intents
-
+
+
- All intents
+
- {{ intent.intentLabel() }}
-
-
- Unknown
-
+
+ {{ intent.intentLabel() }}
+
+
+ Unknown
+
+
Model builds
{{ row.errorMessage }}
diff --git a/bot/admin/web/src/app/model-quality/model-quality.module.ts b/bot/admin/web/src/app/model-quality/model-quality.module.ts
index 8af91a5d51..55c2920557 100644
--- a/bot/admin/web/src/app/model-quality/model-quality.module.ts
+++ b/bot/admin/web/src/app/model-quality/model-quality.module.ts
@@ -8,6 +8,7 @@ import {
NbCardModule,
NbCheckboxModule,
NbDatepickerModule,
+ NbFormFieldModule,
NbIconModule,
NbInputModule,
NbRouteTabsetModule,
@@ -51,6 +52,7 @@ import { CountStatsComponent } from './count-stats/count-stats.component';
NbCardModule,
NbInputModule,
NbSelectModule,
+ NbFormFieldModule,
NbToggleModule,
NbSpinnerModule,
NbDatepickerModule,
diff --git a/bot/admin/web/src/app/model-quality/test-builds/test-builds.component.html b/bot/admin/web/src/app/model-quality/test-builds/test-builds.component.html
index c98f54084b..6d923b8814 100644
--- a/bot/admin/web/src/app/model-quality/test-builds/test-builds.component.html
+++ b/bot/admin/web/src/app/model-quality/test-builds/test-builds.component.html
@@ -23,37 +23,49 @@ Test trends
-
- All intents
-
+
+
- All intents
+
- {{ intent.intentLabel() }}
-
-
- Unknown
-
+
+ {{ intent.intentLabel() }}
+
+
+ Unknown
+
+
-
+
+
+
+
Test entity errors
(click)="download()"
nbTooltip="Download the whole error list"
>
-
+
@@ -35,26 +35,32 @@ Test entity errors
-
- All intents
-
+
+
- All intents
+
- {{ intent.intentLabel() }}
-
-
- Unknown
-
+
+ {{ intent.intentLabel() }}
+
+
+ Unknown
+
+
@@ -186,7 +192,7 @@ Test entity errors
(click)="validate(row)"
nbTooltip="Validate entities"
>
-
+
Test entity errors
(click)="change(row)"
nbTooltip="Change entities"
>
-
+
Test entity errors
(click)="reveal(row)"
nbTooltip="Reveal the obfuscated part(s) of the sentence"
>
-
+
diff --git a/bot/admin/web/src/app/model-quality/test-intent-errors/test-intent-errors.component.html b/bot/admin/web/src/app/model-quality/test-intent-errors/test-intent-errors.component.html
index 67d459959c..3dccc68c8d 100644
--- a/bot/admin/web/src/app/model-quality/test-intent-errors/test-intent-errors.component.html
+++ b/bot/admin/web/src/app/model-quality/test-intent-errors/test-intent-errors.component.html
@@ -24,7 +24,7 @@ Test intent errors
(click)="download()"
nbTooltip="Download the whole error list"
>
-
+
@@ -35,26 +35,33 @@ Test intent errors
-
- All intents
-
+
+
+
- All intents
+
- {{ intent.intentLabel() }}
-
-
- Unknown
-
+
+ {{ intent.intentLabel() }}
+
+
+ Unknown
+
+
@@ -183,7 +190,7 @@ Test intent errors
(click)="validate(row)"
nbTooltip="Validate Intent"
>
-
+
Test intent errors
(click)="change(row)"
nbTooltip="Change the Intent"
>
-
+
Test intent errors
(click)="reveal(row)"
nbTooltip="Reveal the obfuscated part(s) of the sentence"
>
-
+
diff --git a/bot/admin/web/src/app/rag/rag-settings/rag-settings.component.html b/bot/admin/web/src/app/rag/rag-settings/rag-settings.component.html
index b0f952ea28..bbb680d483 100644
--- a/bot/admin/web/src/app/rag/rag-settings/rag-settings.component.html
+++ b/bot/admin/web/src/app/rag/rag-settings/rag-settings.component.html
@@ -27,7 +27,7 @@ Rag settings
nbTooltip="Cancel modifications"
(click)="cancel()"
>
-
+
CANCEL
Rag settings
nbTooltip="Save settings"
(click)="submit()"
>
-
+
SAVE
-
-
- No bot configuration detected
-
+
diff --git a/bot/admin/web/src/app/rag/rag-sources/new-source/new-source.component.html b/bot/admin/web/src/app/rag/rag-sources/new-source/new-source.component.html
index abfa5ff69c..e50f231fdb 100644
--- a/bot/admin/web/src/app/rag/rag-sources/new-source/new-source.component.html
+++ b/bot/admin/web/src/app/rag/rag-sources/new-source/new-source.component.html
@@ -25,7 +25,7 @@
nbTooltip="Cancel"
(click)="cancel()"
>
-
+
@@ -152,7 +152,7 @@
type="button"
(click)="removeExclusionUrl(index)"
>
-
+
@@ -207,7 +207,7 @@
type="button"
(click)="removeXPath(index)"
>
-
+
diff --git a/bot/admin/web/src/app/rag/rag-sources/rag-sources-board.component.html b/bot/admin/web/src/app/rag/rag-sources/rag-sources-board.component.html
index be3100f867..ffc9e04279 100644
--- a/bot/admin/web/src/app/rag/rag-sources/rag-sources-board.component.html
+++ b/bot/admin/web/src/app/rag/rag-sources/rag-sources-board.component.html
@@ -25,25 +25,17 @@ Rag sources
[disabled]="!configurations?.length"
(click)="addSource()"
>
-
+
NEW SOURCE
-
-
- No bot configuration detected
-
+ title="No bot configuration detected"
+ >
@@ -59,7 +59,7 @@
(click)="editSource($event)"
*ngIf="!hasIndexingSessionRunning()"
>
-
+
-
+
- Update source
+
+ Update source
@@ -113,8 +114,8 @@
*ngIf="isStepComplete(task.type)"
>
@@ -123,7 +124,7 @@
*ngIf="!isStepRunning(task.type)"
>
@@ -189,10 +190,10 @@
diff --git a/bot/admin/web/src/app/rag/rag-sources/source-entry/source-entry.component.spec.ts b/bot/admin/web/src/app/rag/rag-sources/source-entry/source-entry.component.spec.ts
index 70c8510944..f67321f8a2 100644
--- a/bot/admin/web/src/app/rag/rag-sources/source-entry/source-entry.component.spec.ts
+++ b/bot/admin/web/src/app/rag/rag-sources/source-entry/source-entry.component.spec.ts
@@ -76,7 +76,7 @@ describe('SourceEntryComponent', () => {
{
type: 'crawling',
label: 'Source exploration',
- icon: 'compass-outline'
+ icon: 'compass'
},
{
type: 'fetching',
diff --git a/bot/admin/web/src/app/rag/rag-sources/source-entry/source-entry.component.ts b/bot/admin/web/src/app/rag/rag-sources/source-entry/source-entry.component.ts
index dd37b4ab06..8037d96e36 100644
--- a/bot/admin/web/src/app/rag/rag-sources/source-entry/source-entry.component.ts
+++ b/bot/admin/web/src/app/rag/rag-sources/source-entry/source-entry.component.ts
@@ -34,13 +34,13 @@ export class SourceEntryComponent implements OnDestroy {
constructor(private nbDialogService: NbDialogService) {}
- initTaskDefinition = { type: IndexingSessionTaskTypes.initialization, label: 'Initialization', icon: 'clock-outline' };
+ initTaskDefinition = { type: IndexingSessionTaskTypes.initialization, label: 'Initialization', icon: 'clock' };
tasksDefinitions = [
- { type: IndexingSessionTaskTypes.crawling, label: 'Source exploration', icon: 'compass-outline' },
- { type: IndexingSessionTaskTypes.fetching, label: 'Data extraction', icon: 'code-download-outline' },
- { type: IndexingSessionTaskTypes.chunking, label: 'Text processing', icon: 'scissors-outline' },
- { type: IndexingSessionTaskTypes.embeddings, label: 'Word embedding', icon: 'menu-arrow-outline' }
+ { type: IndexingSessionTaskTypes.crawling, label: 'Source exploration', icon: 'compass' },
+ { type: IndexingSessionTaskTypes.fetching, label: 'Data extraction', icon: 'code' },
+ { type: IndexingSessionTaskTypes.chunking, label: 'Text processing', icon: 'scissors' },
+ { type: IndexingSessionTaskTypes.embeddings, label: 'Word embedding', icon: 'code-square' }
];
getRunningIndexingSessionTasks(): TaskDefinition[] {
diff --git a/bot/admin/web/src/app/rag/rag-sources/source-import/source-import.component.html b/bot/admin/web/src/app/rag/rag-sources/source-import/source-import.component.html
index e2a5e79b1b..fbe1131953 100644
--- a/bot/admin/web/src/app/rag/rag-sources/source-import/source-import.component.html
+++ b/bot/admin/web/src/app/rag/rag-sources/source-import/source-import.component.html
@@ -25,7 +25,7 @@
(click)="cancel()"
*ngIf="!uploading"
>
-
+
diff --git a/bot/admin/web/src/app/rag/rag-sources/source-normalization/csv/source-normalization-csv.component.html b/bot/admin/web/src/app/rag/rag-sources/source-normalization/csv/source-normalization-csv.component.html
index c6d93940f0..514730f4a1 100644
--- a/bot/admin/web/src/app/rag/rag-sources/source-normalization/csv/source-normalization-csv.component.html
+++ b/bot/admin/web/src/app/rag/rag-sources/source-normalization/csv/source-normalization-csv.component.html
@@ -24,7 +24,7 @@
nbTooltip="Cancel"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/rag/rag-sources/source-normalization/json/source-normalization-json.component.html b/bot/admin/web/src/app/rag/rag-sources/source-normalization/json/source-normalization-json.component.html
index ed678dc3c5..e2bd126ff3 100644
--- a/bot/admin/web/src/app/rag/rag-sources/source-normalization/json/source-normalization-json.component.html
+++ b/bot/admin/web/src/app/rag/rag-sources/source-normalization/json/source-normalization-json.component.html
@@ -24,7 +24,7 @@
nbTooltip="Cancel"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/shared/components/choice-dialog/choice-dialog.component.html b/bot/admin/web/src/app/shared/components/choice-dialog/choice-dialog.component.html
index e3f1732570..93dd829e00 100644
--- a/bot/admin/web/src/app/shared/components/choice-dialog/choice-dialog.component.html
+++ b/bot/admin/web/src/app/shared/components/choice-dialog/choice-dialog.component.html
@@ -10,7 +10,7 @@
nbTooltip="Close"
(click)="dialogRef.close('cancel')"
>
-
+
diff --git a/bot/admin/web/src/app/shared/components/debug-viewer-dialog/debug-viewer-dialog.component.html b/bot/admin/web/src/app/shared/components/debug-viewer-dialog/debug-viewer-dialog.component.html
index 3958d4890e..06549734f1 100644
--- a/bot/admin/web/src/app/shared/components/debug-viewer-dialog/debug-viewer-dialog.component.html
+++ b/bot/admin/web/src/app/shared/components/debug-viewer-dialog/debug-viewer-dialog.component.html
@@ -8,7 +8,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/shared/components/file-upload/file-upload.component.html b/bot/admin/web/src/app/shared/components/file-upload/file-upload.component.html
index 67ff2aa71b..31241f12d7 100644
--- a/bot/admin/web/src/app/shared/components/file-upload/file-upload.component.html
+++ b/bot/admin/web/src/app/shared/components/file-upload/file-upload.component.html
@@ -45,7 +45,7 @@
[class.error]="wrongType(file) || wrongFormat(file)"
(click)="preventDefault($event)"
>
-
+
@@ -71,7 +72,7 @@
Drag and drop files here
or
diff --git a/bot/admin/web/src/app/shared/components/file-upload/file-upload.component.scss b/bot/admin/web/src/app/shared/components/file-upload/file-upload.component.scss
index e65bf76e73..20037fc9cc 100644
--- a/bot/admin/web/src/app/shared/components/file-upload/file-upload.component.scss
+++ b/bot/admin/web/src/app/shared/components/file-upload/file-upload.component.scss
@@ -58,10 +58,6 @@
border-color: nb-theme(color-danger-500);
}
}
-
- nb-icon {
- font-size: 5rem;
- }
}
.upload-icon {
diff --git a/bot/admin/web/src/app/shared/components/form-control/form-control.component.html b/bot/admin/web/src/app/shared/components/form-control/form-control.component.html
index 0ee7409422..6ec4d8a722 100644
--- a/bot/admin/web/src/app/shared/components/form-control/form-control.component.html
+++ b/bot/admin/web/src/app/shared/components/form-control/form-control.component.html
@@ -21,10 +21,10 @@
diff --git a/bot/admin/web/src/app/shared/components/info-button/info-button.component.html b/bot/admin/web/src/app/shared/components/info-button/info-button.component.html
index da4c2a24c5..89b767b4a5 100644
--- a/bot/admin/web/src/app/shared/components/info-button/info-button.component.html
+++ b/bot/admin/web/src/app/shared/components/info-button/info-button.component.html
@@ -22,15 +22,15 @@
diff --git a/bot/admin/web/src/app/shared/components/info-button/info-button.component.ts b/bot/admin/web/src/app/shared/components/info-button/info-button.component.ts
index a53f3790a4..af029e84c1 100644
--- a/bot/admin/web/src/app/shared/components/info-button/info-button.component.ts
+++ b/bot/admin/web/src/app/shared/components/info-button/info-button.component.ts
@@ -40,7 +40,7 @@ export class InfoButtonComponent implements OnInit {
/**
* the button icon
*/
- icon = 'info';
+ icon = 'info-circle';
ngOnInit(): void {
if (!this.message || this.message.trim().length < 1) {
diff --git a/bot/admin/web/src/app/shared/components/intent-story-details/intent-story-details.component.html b/bot/admin/web/src/app/shared/components/intent-story-details/intent-story-details.component.html
index 9addde6989..ecc683a8d8 100644
--- a/bot/admin/web/src/app/shared/components/intent-story-details/intent-story-details.component.html
+++ b/bot/admin/web/src/app/shared/components/intent-story-details/intent-story-details.component.html
@@ -8,7 +8,7 @@
nbTooltip="Cancel"
(click)="cancel()"
>
-
+
@@ -41,24 +41,31 @@
+
BuiltIn
- Simple
+ Simple
+ Simple (Faq)
Scripted
@@ -95,13 +102,13 @@
>
Show all intent sentences
diff --git a/bot/admin/web/src/app/shared/components/json-iterator/json-iterator.component.html b/bot/admin/web/src/app/shared/components/json-iterator/json-iterator.component.html
index 8c4c593df8..c2919adff1 100644
--- a/bot/admin/web/src/app/shared/components/json-iterator/json-iterator.component.html
+++ b/bot/admin/web/src/app/shared/components/json-iterator/json-iterator.component.html
@@ -6,7 +6,7 @@
*ngIf="isRoot && !isPrimitive(data)"
(click)="expandAll()"
>
-
+
@@ -20,16 +20,15 @@
[ngClass]="{ isPrimitive: isPrimitive(data), ellipsis: !isPrimitive(data), pointer: !isPrimitive(data) }"
>
-
{{ parentKey }} :
-
+
-
+
-
+
-
+
diff --git a/bot/admin/web/src/app/shared/components/scroll-top-button/scroll-top-button.component.html b/bot/admin/web/src/app/shared/components/scroll-top-button/scroll-top-button.component.html
index f2d9d2c420..c73e3beea0 100644
--- a/bot/admin/web/src/app/shared/components/scroll-top-button/scroll-top-button.component.html
+++ b/bot/admin/web/src/app/shared/components/scroll-top-button/scroll-top-button.component.html
@@ -7,5 +7,5 @@
nbTooltip="Scroll to page top"
(click)="scrollToTop()"
>
-
+
diff --git a/bot/admin/web/src/app/shared/components/select-bot/select-bot.component.html b/bot/admin/web/src/app/shared/components/select-bot/select-bot.component.html
index 1dac47ad14..84affedf17 100644
--- a/bot/admin/web/src/app/shared/components/select-bot/select-bot.component.html
+++ b/bot/admin/web/src/app/shared/components/select-bot/select-bot.component.html
@@ -21,61 +21,71 @@
[ngClass]="{ 'd-flex': displayConnectorChoice && currentBotName !== 'None' }"
>
1)"
>
-
- {{ noConfigurationLabel }}
+
+
- {{ n }}
-
+ {{ noConfigurationLabel }}
+ {{ n }}
+
+
-
- {{ noConnectorLabel }}
-
-
- {{ c.connectorType.label() }} ( {{ c.applicationId }})
+
+
-
+ {{ noConnectorLabel }}
+
+
+ {{ c.connectorType.label() }} ( {{ c.applicationId }})
+
+
diff --git a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-dialog/sentence-training-dialog.component.html b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-dialog/sentence-training-dialog.component.html
index 6d94c7fe43..4bb626ee8b 100644
--- a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-dialog/sentence-training-dialog.component.html
+++ b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-dialog/sentence-training-dialog.component.html
@@ -1,7 +1,7 @@
- Conversation featuring this sentence
+ Dialog featuring this sentence
-
+
@@ -20,27 +20,33 @@
class="p-3"
*ngIf="dialogs?.length > 1"
>
-
-
+
+
- Conversation #{{ index + 1 }}
-
-
+
+ Dialog #{{ index + 1 }}
+
+
+
- No conversations with this phrase were found.
+ No dialog with this phrase were found.
-
+
@@ -72,7 +72,7 @@
>
{{ getSentenceAttribut(sentence, 'probability') | percent: '1.0-1' }}
-
+
-
+
-
+
-
+
-
+
-
+
-
-
- {{ state.localeName(l) }}
-
-
+
-
-
+
+ {{ state.localeName(l) }}
+
+
+
@@ -282,7 +275,7 @@
class="lineFirstButtonRetract"
(click)="createNewIntent(sentence)"
>
-
+
-
+
-
+
diff --git a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-entry/sentence-training-entry.component.scss b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-entry/sentence-training-entry.component.scss
index b479d5469a..b4effc2391 100644
--- a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-entry/sentence-training-entry.component.scss
+++ b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-entry/sentence-training-entry.component.scss
@@ -60,17 +60,3 @@
.review {
white-space: pre-wrap;
}
-
-.fast-select {
- background-color: var(--select-outline-basic-background-color);
- border-color: var(--select-outline-basic-border-color);
- color: var(--select-outline-basic-text-color);
- border-style: var(--select-outline-border-style);
- border-width: var(--select-outline-border-width);
-
- font-size: var(--select-medium-text-font-size);
- font-weight: var(--select-medium-text-font-weight);
- line-height: var(--select-medium-text-line-height);
- border-radius: var(--select-rectangle-border-radius);
- padding: 0.5em;
-}
diff --git a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-filters/sentence-training-filters.component.html b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-filters/sentence-training-filters.component.html
index a01eb37857..b617a099e9 100644
--- a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-filters/sentence-training-filters.component.html
+++ b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-filters/sentence-training-filters.component.html
@@ -5,7 +5,7 @@
-
+
@@ -37,17 +37,19 @@
>
@@ -103,7 +105,7 @@
-
+
@@ -157,9 +159,6 @@
>
{{ unknownIntent.label }}
-
@@ -167,7 +166,7 @@
+
Clear selection
+
Clear selection
-
+
@@ -281,7 +280,7 @@
-
+
@@ -313,7 +312,7 @@
Advanced tools
@@ -429,7 +430,7 @@
Translate selected sentences
-
- {{ state.localeName(l) }}
-
-
+
+
+
+ {{ state.localeName(l) }}
+
+
+
-
+
Add entity
diff --git a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-sentence/token-view/token-view.component.html b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-sentence/token-view/token-view.component.html
index e0c232820a..c53a9b1c6a 100644
--- a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-sentence/token-view/token-view.component.html
+++ b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training-sentence/token-view/token-view.component.html
@@ -27,7 +27,8 @@
class="d-block w-100"
(click)="delete(token)"
>
- Remove entity "{{ getEntityName() }}"
+
+ Remove entity "{{ getEntityName() }}"
diff --git a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training.component.html b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training.component.html
index 71f517abf0..57381634f8 100644
--- a/bot/admin/web/src/app/shared/components/sentence-training/sentence-training.component.html
+++ b/bot/admin/web/src/app/shared/components/sentence-training/sentence-training.component.html
@@ -62,7 +62,7 @@
(click)="handleBatchAction(Action.VALIDATE)"
data-testid="batch-action-validate"
>
-
+
-
+
-
+
-
+
@@ -114,13 +111,15 @@
Sort by creation date
diff --git a/bot/admin/web/src/app/shared/components/sentences-generation/sentences-generation-list/sentences-generation-list.component.html b/bot/admin/web/src/app/shared/components/sentences-generation/sentences-generation-list/sentences-generation-list.component.html
index 745261338c..bdf1eff5ad 100644
--- a/bot/admin/web/src/app/shared/components/sentences-generation/sentences-generation-list/sentences-generation-list.component.html
+++ b/bot/admin/web/src/app/shared/components/sentences-generation/sentences-generation-list/sentences-generation-list.component.html
@@ -20,7 +20,7 @@
shape="round"
(click)="generate()"
>
-
+
-
+
@@ -46,13 +46,13 @@
>
Please note that data will be transmitted to an external partner. Be careful not to send sentences containing "sensitive" information.
@@ -51,10 +51,10 @@
+ icon="info-circle"
+ >
+
-
+
diff --git a/bot/admin/web/src/app/shared/icons/custom-nb-icon-libraries.ts b/bot/admin/web/src/app/shared/icons/custom-nb-icon-libraries.ts
deleted file mode 100644
index 579ce552ff..0000000000
--- a/bot/admin/web/src/app/shared/icons/custom-nb-icon-libraries.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// see https://github.com/akveo/nebular/issues/2554
-import { Injectable } from '@angular/core';
-import { NbFontIconPackParams, NbFontIcon, NbIcon, NbIconLibraries } from '@nebular/theme';
-
-@Injectable()
-export class CustomNbIconLibraries extends NbIconLibraries {
- protected override createFontIcon(name: string, content: NbIcon | string, params: NbFontIconPackParams): NbFontIcon {
- if (content instanceof NbFontIcon) {
- return content;
- }
- return new NbFontIcon(name, params.ligature ? name : content, params);
- }
-}
diff --git a/bot/admin/web/src/app/shared/utils/business.utils.ts b/bot/admin/web/src/app/shared/utils/business.utils.ts
new file mode 100644
index 0000000000..5ac59cec96
--- /dev/null
+++ b/bot/admin/web/src/app/shared/utils/business.utils.ts
@@ -0,0 +1,13 @@
+import { StoryDefinitionConfiguration } from '../../bot/model/story';
+
+export function getStoryIcon(story: StoryDefinitionConfiguration): string {
+ if (story.isBuiltIn()) {
+ return 'cube';
+ }
+ if (story.isSimpleAnswer()) {
+ return 'chat-left';
+ }
+ if (story.isScriptAnswer()) {
+ return 'code';
+ }
+}
diff --git a/bot/admin/web/src/app/shared/utils/dialog.utils.ts b/bot/admin/web/src/app/shared/utils/dialog.utils.ts
index 5b32ce0dca..9b5c700d05 100644
--- a/bot/admin/web/src/app/shared/utils/dialog.utils.ts
+++ b/bot/admin/web/src/app/shared/utils/dialog.utils.ts
@@ -1,5 +1,3 @@
-import { ActionReport } from '../model/dialog-data';
-
export const dialogMessageUserIdentities = {
client: { qualifier: 'Human', avatar: 'assets/images/scenario-client.svg' },
bot: { qualifier: 'Bot', avatar: 'assets/images/scenario-bot.svg' }
diff --git a/bot/admin/web/src/app/shared/utils/index.ts b/bot/admin/web/src/app/shared/utils/index.ts
index e60ad73459..6d7609e647 100644
--- a/bot/admin/web/src/app/shared/utils/index.ts
+++ b/bot/admin/web/src/app/shared/utils/index.ts
@@ -2,3 +2,4 @@ export * from './strings.utils';
export * from './tabLink';
export * from './utils';
export * from './dialog.utils';
+export * from './business.utils';
diff --git a/bot/admin/web/src/app/test/dialog/bot-dialog.component.html b/bot/admin/web/src/app/test/dialog/bot-dialog.component.html
index fa10dbe99b..104659ab41 100644
--- a/bot/admin/web/src/app/test/dialog/bot-dialog.component.html
+++ b/bot/admin/web/src/app/test/dialog/bot-dialog.component.html
@@ -13,13 +13,13 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
-
+
+ Test the application {{ state.currentApplication.label }}
+
+
+
-
- Test the application {{ state.currentApplication.label }}
-
-
size="medium"
(click)="enableTestContext()"
>
-
+
@@ -58,194 +58,190 @@
-
-
-
-
-
+
+
-
-
- [{{ m.locale }}]
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ option }}
-
-
-
-
+ [{{ m.locale }}]
- GO
+
+
+
+
+
+
+
+ Save dialog in Tock
+ coming soon...
+
+
+
+
+
diff --git a/bot/admin/web/src/app/test/dialog/nlp-stats-display/nlp-stats-display.component.html b/bot/admin/web/src/app/test/dialog/nlp-stats-display/nlp-stats-display.component.html
index d7afffa0be..8521b875ac 100644
--- a/bot/admin/web/src/app/test/dialog/nlp-stats-display/nlp-stats-display.component.html
+++ b/bot/admin/web/src/app/test/dialog/nlp-stats-display/nlp-stats-display.component.html
@@ -8,7 +8,7 @@
nbTooltip="Close"
(click)="cancel()"
>
-
+
diff --git a/bot/admin/web/src/app/test/plan/test-plan.component.html b/bot/admin/web/src/app/test/plan/test-plan.component.html
index 646ba460b1..eabfaa44aa 100644
--- a/bot/admin/web/src/app/test/plan/test-plan.component.html
+++ b/bot/admin/web/src/app/test/plan/test-plan.component.html
@@ -77,7 +77,7 @@
*ngIf="!testPlanCreation"
nbTooltip="Create a new Test Plan"
>
-
+
@@ -110,7 +110,7 @@
class="create"
>
@@ -120,7 +120,7 @@
nbTooltip="Cancel"
>
@@ -143,7 +143,7 @@
style="color: #73a1ff"
nbTooltip="Launch"
>
-
+
@@ -163,7 +163,7 @@
nbTooltip="Delete"
>
@@ -178,7 +178,7 @@
nbButton
(click)="showDialogs(p)"
>
-
+
Display Conversation{{ p.dialogs.length < 2 ? '' : 's' }}
-
+
Hide Conversation{{ p.dialogs.length < 2 ? '' : 's' }}
@@ -210,7 +210,7 @@
nbButton
(click)="d.displayActions = true"
>
-
+
Display all sentences
-
+
Hide all sentences
-
+
Remove dialog
@@ -251,13 +251,13 @@
- last execution status :
@@ -271,7 +271,7 @@
nbButton
(click)="e.displayExecution = true"
>
-
+
Display details
-
+
Hide details
{{ e.dialogs.length }} conversation{{ e.dialogs.length < 2 ? '' : 's' }}
{{ e.nbErrors }} error{{ e.nbErrors ? '' : 's' }} / {{ e.dialogs.length }} conversation{{
@@ -302,7 +302,7 @@
Success
Error
diff --git a/bot/admin/web/src/app/theme/components/footer/footer.component.html b/bot/admin/web/src/app/theme/components/footer/footer.component.html
index 9a9c25cf54..600b3a7793 100644
--- a/bot/admin/web/src/app/theme/components/footer/footer.component.html
+++ b/bot/admin/web/src/app/theme/components/footer/footer.component.html
@@ -38,7 +38,7 @@
Tock v{{ tock_info.build_version }}
diff --git a/bot/admin/web/src/app/theme/components/header/header.component.html b/bot/admin/web/src/app/theme/components/header/header.component.html
index 3e1ccb80d7..0dea2aec85 100644
--- a/bot/admin/web/src/app/theme/components/header/header.component.html
+++ b/bot/admin/web/src/app/theme/components/header/header.component.html
@@ -14,11 +14,8 @@
~ limitations under the License.
-->
-