@chat21/chat21-ionic 3.0.6-2.1 → 3.0.6-2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.62.2
4
+ - Fixed bug: if the teammate has the role of agent when switching from the dashboard to the chat and vice versa, the icons that only owners and admins have access to are displayed briefly in the left sidebar
5
+ - Adds the "Edit Profile" button and a link to the help center in the teammate details drawer
6
+
3
7
  ### 3.0.62.1
4
8
  - Allows agents to use the "Monitor" page
5
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
- "version": "3.0.62.1",
3
+ "version": "3.0.62.2",
4
4
  "author": "Tiledesk SRL",
5
5
  "homepage": "https://tiledesk.com/",
6
6
  "scripts": {
@@ -24,7 +24,7 @@ export class SidebarComponent implements OnInit {
24
24
 
25
25
  private logger: LoggerService = LoggerInstance.getInstance();
26
26
 
27
- USER_ROLE: string;
27
+ USER_ROLE: string = 'agent'
28
28
  SIDEBAR_IS_SMALL = true
29
29
  IS_AVAILABLE: boolean;
30
30
  user: any;
@@ -52,6 +52,10 @@
52
52
 
53
53
  <div class="user-details-role">
54
54
  <h3>{{ USER_ROLE_LABEL }} </h3>
55
+
56
+ <div class="user-details-view-profile" (click)="goToUserProfile()">
57
+ {{EditProfileLabel}}
58
+ </div>
55
59
  </div>
56
60
 
57
61
  <section class="availability-section">
@@ -74,9 +78,12 @@
74
78
  <hr class="first-divider">
75
79
 
76
80
  <section *ngIf="isVisiblePAY" class="user-details-plan-info">
81
+ <span class="material-icons user-details-plan-icon">
82
+ apps
83
+ </span>
77
84
  <span>
78
85
  <div> {{prjct_name}} </div>
79
- <div style="display: inline-block;"> {{ profile_name_translated }} </div>
86
+ <div style="display: inline-block; margin-left: 26px;"> {{ profile_name_translated }} </div>
80
87
 
81
88
  <div *ngIf="plan_type === 'payment' && plan_subscription_is_active === false"
82
89
  style="color:#f44336; position:relative; top: -1px;;display: inline-block;">
@@ -95,6 +102,15 @@
95
102
  </span>
96
103
  </section>
97
104
 
105
+ <section class="user-details-help-center">
106
+ <span class="material-icons user-details-help-center-icon">
107
+ support
108
+ </span>
109
+ <span class="user-details-help-center" (click)="goToHelpCenter()">
110
+ Help center
111
+ </span>
112
+ </section>
113
+
98
114
  <!-- <hr class="second-divider" style="margin-top: 20px;border: 0;
99
115
  border-top: 1px solid rgba(255, 255,255, 0.2);"> -->
100
116
 
@@ -187,10 +187,21 @@ button.user-details-btn-close {
187
187
  color: #a9afbb;
188
188
  font-weight: 500;
189
189
  font-family: "Roboto", sans-serif !important;
190
+ margin-bottom: 8px !important;
191
+ }
192
+
193
+ .user-details-view-profile {
194
+ font-size: 14px;
195
+ color: #00d5ff;
196
+ cursor: pointer;
197
+ }
198
+
199
+ .user-details-view-profile:hover {
200
+ text-decoration: underline;
190
201
  }
191
202
 
192
203
  .availability-section {
193
- top: 300px;
204
+ top: 320px;
194
205
  text-align: center;
195
206
  background-color: #2d323e;
196
207
  padding: 9px;
@@ -204,7 +215,7 @@ button.user-details-btn-close {
204
215
  }
205
216
 
206
217
  .first-divider {
207
- margin-top: 355px;
218
+ margin-top: 365px;
208
219
  border: 0;
209
220
  border-top: 1px solid rgba(255, 255, 255, 0.2);
210
221
  margin-bottom: 20px;
@@ -254,6 +265,37 @@ button.user-details-btn-close {
254
265
  line-height: 21px;
255
266
  }
256
267
 
268
+ .user-details-plan-icon {
269
+ display: block;
270
+ float: left;
271
+ font-size: 20px;
272
+ margin-right: 6px;
273
+ }
274
+
275
+
276
+
277
+ .user-details-help-center-icon {
278
+ color: #a9afbb;
279
+ font-size: 20px;
280
+ vertical-align: middle;
281
+ margin-right: 3px;
282
+ }
283
+
284
+ .user-details-help-center {
285
+ margin-top: 6px;
286
+ font-size: 13px;
287
+ font-weight: 500;
288
+ color: #a9afbb;
289
+ -webkit-font-smoothing: antialiased;
290
+ vertical-align: middle;
291
+ cursor: pointer;
292
+ }
293
+
294
+ .user-details-help-center:hover {
295
+ color: #fff;
296
+ text-decoration: underline;
297
+ }
298
+
257
299
  .user-details-footer-section {
258
300
  -webkit-transform: translateX(-50%);
259
301
  transform: translateX(-50%);
@@ -263,12 +305,12 @@ button.user-details-btn-close {
263
305
  text-align: center;
264
306
 
265
307
  padding-bottom: 15px;
266
- padding-top: 200px;
308
+ padding-top: 186px;
267
309
  font-size: 16px;
268
310
  font-weight: 400;
269
311
  // bottom: 50px;
270
- bottom: 55px;
271
- // top:355px
312
+ // bottom: 55px;
313
+
272
314
  }
273
315
 
274
316
  .logout-btn-wpr {
@@ -290,7 +332,7 @@ button.user-details-btn-close {
290
332
 
291
333
  .user-details-footer-chat-version {
292
334
  position: absolute;
293
- bottom: 11px;
335
+ // bottom: 11px;
294
336
  text-align: center;
295
337
  margin: auto;
296
338
  transform: translateX(-50%);
@@ -298,6 +340,8 @@ button.user-details-btn-close {
298
340
  margin: auto;
299
341
  font-size: 12px;
300
342
  font-weight: 400;
343
+ padding-top: 300px;
344
+ padding-bottom: 6px;
301
345
  }
302
346
 
303
347
  :host ::ng-deep .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar {
@@ -32,6 +32,7 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
32
32
  IS_AVAILABLE: boolean;
33
33
  USER_ROLE: boolean;
34
34
  USER_ROLE_LABEL: string;
35
+ EditProfileLabel: string;
35
36
  IS_BUSY_msg: string;
36
37
  IS_AVAILABLE_msg: string;
37
38
  IS_UNAVAILABLE_msg: string;
@@ -59,6 +60,7 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
59
60
  version: string
60
61
  test: Date = new Date();
61
62
  company_name: string = 'Tiledesk'
63
+ DASHBOARD_URL: string;
62
64
  constructor(
63
65
  private translate: TranslateService,
64
66
  public tiledeskAuthService: TiledeskAuthService,
@@ -69,9 +71,11 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
69
71
  public appConfigProvider: AppConfigProvider,
70
72
  public events: EventsService,
71
73
  private eRef: ElementRef,
74
+
72
75
  ) { }
73
76
 
74
77
  ngOnInit() {
78
+ this.DASHBOARD_URL = this.appConfigProvider.getConfig().dashboardUrl + '#/project/';
75
79
  this.version = PACKAGE.version;
76
80
  this.getCurrentChatLangAndTranslateLabels();
77
81
  this.subcribeToAuthStateChanged();
@@ -218,6 +222,7 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
218
222
  }
219
223
 
220
224
  translateLabels() {
225
+ this.getEditProfileTranslation();
221
226
  this.getAvailableTranslation();
222
227
  this.getUnavailableTranslation();
223
228
  this.getIsBusyTranslation();
@@ -256,6 +261,17 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
256
261
  }
257
262
  }
258
263
 
264
+ getEditProfileTranslation() {
265
+ this.translate.get('EditProfile')
266
+ .subscribe((text: string) => {
267
+
268
+ // console.log('[SIDEBAR-USER-DETAILS] - GET GTTTTTN ', text)
269
+ this.EditProfileLabel = text
270
+ });
271
+ }
272
+
273
+
274
+
259
275
  getAvailableTranslation() {
260
276
  this.translate.get('Available')
261
277
  .subscribe((text: string) => {
@@ -491,6 +507,18 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
491
507
  });
492
508
  }
493
509
 
510
+ goToUserProfile() {
511
+ let url = this.DASHBOARD_URL + this.projectID + '/user-profile'
512
+
513
+ const myWindow = window.open(url, '_self');
514
+ myWindow.focus();
515
+ }
516
+
517
+ goToHelpCenter() {
518
+ const url = "https://gethelp.tiledesk.com/"
519
+ window.open(url, '_blank');
520
+ }
521
+
494
522
  public onLogout() {
495
523
  // this.authService.logout();
496
524
  this.closeUserDetailSidePanel()
@@ -261,5 +261,6 @@
261
261
  "First_name_of_recipient": "Vorname des Empfängers",
262
262
  "First_name_of_agent": "Vorname des Betreuers",
263
263
  "EnterCannedResponseTitle": "Titel der Vordefinierten Anfrage eingeben",
264
- "WriteMsgToSendToYourVisitors": "Verfassen Sie eine vordefinierte Antwort für Ihre Besucher"
264
+ "WriteMsgToSendToYourVisitors": "Verfassen Sie eine vordefinierte Antwort für Ihre Besucher",
265
+ "EditProfile": "Profil bearbeiten"
265
266
  }
@@ -261,5 +261,6 @@
261
261
  "First_name_of_recipient": "First name of recipient",
262
262
  "First_name_of_agent": "First name of agent",
263
263
  "EnterCannedResponseTitle": "Enter canned response title",
264
- "WriteMsgToSendToYourVisitors": "Write a canned response message to send to your visitors"
264
+ "WriteMsgToSendToYourVisitors": "Write a canned response message to send to your visitors",
265
+ "EditProfile": "Edit profile"
265
266
  }
@@ -261,5 +261,6 @@
261
261
  "First_name_of_recipient": "Nombre del destinatario",
262
262
  "First_name_of_agent": "Nombre del agente",
263
263
  "EnterCannedResponseTitle": "Introduzca el título de la respuesta predefinida",
264
- "WriteMsgToSendToYourVisitors": "Escribe un mensaje de respuesta enlatado para enviar a tus visitantes"
264
+ "WriteMsgToSendToYourVisitors": "Escribe un mensaje de respuesta enlatado para enviar a tus visitantes",
265
+ "EditProfile": "Editar perfil"
265
266
  }
@@ -261,5 +261,6 @@
261
261
  "First_name_of_recipient": "Prénom du destinataire",
262
262
  "First_name_of_agent": "Prénom du mandataire",
263
263
  "EnterCannedResponseTitle": "Saisissez le titre de la réponse standardisée",
264
- "WriteMsgToSendToYourVisitors": "Rédigez un message de réponse standardisé à envoyer à vos visiteurs"
264
+ "WriteMsgToSendToYourVisitors": "Rédigez un message de réponse standardisé à envoyer à vos visiteurs",
265
+ "EditProfile": "Editer le profil"
265
266
  }
@@ -261,5 +261,6 @@
261
261
  "First_name_of_recipient": "Nome del destinatario",
262
262
  "First_name_of_agent": "Nome dell'agente",
263
263
  "EnterCannedResponseTitle": "Inserisci il titolo della risposta predefinita",
264
- "WriteMsgToSendToYourVisitors": "Scrivi un messaggio di risposta predefinito da inviare ai tuoi visitatori"
264
+ "WriteMsgToSendToYourVisitors": "Scrivi un messaggio di risposta predefinito da inviare ai tuoi visitatori",
265
+ "EditProfile": "Cambia profilo"
265
266
  }
@@ -261,5 +261,6 @@
261
261
  "First_name_of_recipient": "Nome do destinatário",
262
262
  "First_name_of_agent": "Nome do agente",
263
263
  "EnterCannedResponseTitle": "Insira o título da resposta predeterminada",
264
- "WriteMsgToSendToYourVisitors": "Escreva uma mensagem de resposta pronta para enviar aos seus visitantes"
264
+ "WriteMsgToSendToYourVisitors": "Escreva uma mensagem de resposta pronta para enviar aos seus visitantes",
265
+ "EditProfile": "Editar Perfil"
265
266
  }
@@ -261,5 +261,6 @@
261
261
  "First_name_of_recipient": "Имя получателя",
262
262
  "First_name_of_agent": "Имя агента",
263
263
  "EnterCannedResponseTitle": "Введите готовый заголовок ответа",
264
- "WriteMsgToSendToYourVisitors": "Напишите готовое ответное сообщение для отправки своим посетителям"
264
+ "WriteMsgToSendToYourVisitors": "Напишите готовое ответное сообщение для отправки своим посетителям",
265
+ "EditProfile": "Редактировать профиль"
265
266
  }
@@ -261,5 +261,6 @@
261
261
  "First_name_of_recipient": "Име примаоца",
262
262
  "First_name_of_agent": "Име агента",
263
263
  "EnterCannedResponseTitle": "Унесите назив унапред припремљеног одговора",
264
- "WriteMsgToSendToYourVisitors": "Напишите унапред припремљену одговор поруку коју ћете послати посетиоцима"
264
+ "WriteMsgToSendToYourVisitors": "Напишите унапред припремљену одговор поруку коју ћете послати посетиоцима",
265
+ "EditProfile": "Уреди профил"
265
266
  }
@@ -261,5 +261,6 @@
261
261
  "First_name_of_recipient": "Alıcının adı",
262
262
  "First_name_of_agent": "Ajanın adı",
263
263
  "EnterCannedResponseTitle": "Hazır yanıt başlığını girin",
264
- "WriteMsgToSendToYourVisitors": "Ziyaretçilerinize göndermek için hazır bir yanıt mesajı yazın"
264
+ "WriteMsgToSendToYourVisitors": "Ziyaretçilerinize göndermek için hazır bir yanıt mesajı yazın",
265
+ "EditProfile": "Profili Düzenle"
265
266
  }
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "apiUrl": "https://tiledesk-server-pre.herokuapp.com/",
31
31
  "baseImageUrl": "https://firebasestorage.googleapis.com/v0/b/",
32
- "dashboardUrl": "/dashboard/",
32
+ "dashboardUrl": "http://localhost:4204/",
33
33
  "wsUrl": "wss://tiledesk-server-pre.herokuapp.com/"
34
34
  }
35
35
 
@@ -1,6 +1,16 @@
1
1
  {
2
+ "t2y12PruGU9wUtEGzBJfolMIgK": "CAR:T-PAY:T-ANA:T-ACT:T-APP:T",
2
3
  "chatEngine": "firebase",
4
+ "uploadEngine": "firebase",
5
+ "pushEngine": "firebase",
6
+ "logLevel": "info",
7
+ "fileUploadAccept":"*/*",
8
+ "authPersistence": "LOCAL",
9
+ "supportMode": true,
10
+ "writeToButton": true,
11
+ "archivedButton": true,
3
12
  "firebaseConfig": {
13
+ "tenant": "tilechat",
4
14
  "apiKey": "AIzaSyCoWXHNvP1-qOllCpTshhC6VjPXeRTK0T4",
5
15
  "authDomain": "chat21-pre-01.firebaseapp.com",
6
16
  "databaseURL": "https://chat21-pre-01.firebaseio.com",
@@ -8,16 +18,18 @@
8
18
  "storageBucket": "chat21-pre-01.appspot.com",
9
19
  "messagingSenderId": "269505353043",
10
20
  "appId": "1:269505353043:web:b82af070572669e3707da6",
11
- "chat21ApiUrl": "https://us-central1-chat21-pre-01.cloudfunctions.net"
21
+ "chat21ApiUrl": "https://us-central1-chat21-pre-01.cloudfunctions.net",
22
+ "vapidKey": "BOsgS2ADwspKdWAmiFDZXEYqY1HSYADVfJT3j67wsySh3NxaViJqoabPJH8WM02wb5r8cQIm5TgM0UK047Z1D1c"
12
23
  },
13
24
  "chat21Config": {
14
25
  "appId": "tilechat",
15
- "MQTTendpoint": "mqtt://99.80.197.164:15675/ws",
26
+ "MQTTendpoint": "ws://99.80.197.164:15675/ws",
16
27
  "APIendpoint": "http://99.80.197.164:8004/api",
17
28
  "loginServiceEndpoint": "http://99.80.197.164:/tilechat/signin"
18
29
  },
19
30
  "apiUrl": "https://tiledesk-server-pre.herokuapp.com/",
20
31
  "baseImageUrl": "https://firebasestorage.googleapis.com/v0/b/",
21
- "dashboardUrl": "https://support-pre.tiledesk.com/dashboard/"
32
+ "dashboardUrl": "/dashboard/",
33
+ "wsUrl": "wss://tiledesk-server-pre.herokuapp.com/"
22
34
  }
23
35