@buerokratt-ria/common-gui-components 0.0.14 → 0.0.16
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
|
@@ -4,6 +4,14 @@ All changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## Template [MajorVersion.MediterraneanVersion.MinorVersion] - DD-MM-YYYY
|
|
6
6
|
|
|
7
|
+
## [0.0.16] - 12-05-2025
|
|
8
|
+
|
|
9
|
+
- Updating CSA display and filtering.
|
|
10
|
+
|
|
11
|
+
## [0.0.15] - 09-05-2025
|
|
12
|
+
|
|
13
|
+
- Display feedback rating consistently in history page.
|
|
14
|
+
|
|
7
15
|
## [0.0.14] - 05-05-2025
|
|
8
16
|
|
|
9
17
|
- Updated popup duration to be 5 seconds.
|
package/package.json
CHANGED
|
@@ -259,7 +259,7 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({user, toastContext, o
|
|
|
259
259
|
}),
|
|
260
260
|
onSuccess: (res: any) => {
|
|
261
261
|
setCustomerSupportAgents([
|
|
262
|
-
{label: '-', value: '
|
|
262
|
+
{label: '-', value: '-'},
|
|
263
263
|
{label: 'Bürokratt', value: 'chatbot'},
|
|
264
264
|
...res.data.response.map((item) => ({
|
|
265
265
|
label: [item.firstName, item.lastName].join(' ').trim(),
|
|
@@ -481,9 +481,22 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({user, toastContext, o
|
|
|
481
481
|
),
|
|
482
482
|
}),
|
|
483
483
|
columnHelper.accessor(
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
484
|
+
(row) => {
|
|
485
|
+
if (Array.isArray(row.allCsa) && !(row.allCsa.length === 1 && (row.allCsa[0] == null || row.allCsa[0].toString().trim() === ''))) {
|
|
486
|
+
const cleanedNames = row.allCsa
|
|
487
|
+
.filter(name => !!name && typeof name === 'string')
|
|
488
|
+
.map(name => name.trim())
|
|
489
|
+
.filter(name => name !== "")
|
|
490
|
+
.filter((name, index, self) => self.indexOf(name) === index);
|
|
491
|
+
|
|
492
|
+
const filteredNames = cleanedNames.length > 1
|
|
493
|
+
? cleanedNames.filter(name => name !== "Bürokratt")
|
|
494
|
+
: cleanedNames;
|
|
495
|
+
|
|
496
|
+
return filteredNames.join(", ");
|
|
497
|
+
} else {
|
|
498
|
+
return '-';
|
|
499
|
+
}
|
|
487
500
|
},
|
|
488
501
|
{
|
|
489
502
|
id: `customerSupportFullName`,
|
|
Binary file
|