@buerokratt-ria/common-gui-components 0.0.43 → 0.0.44

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,10 @@ 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.44] - 26.02.2026
8
+
9
+ - Removed _ from chosen CSA's list
10
+
7
11
  ## [0.0.43] - 06.02.2026
8
12
 
9
13
  - Prevent url fetch in markdownify for non image urls
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerokratt-ria/common-gui-components",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "Common GUI components and pre defined templates.",
5
5
  "main": "index.ts",
6
6
  "author": "ExiRai",
@@ -356,7 +356,6 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
356
356
  }),
357
357
  onSuccess: (res: any) => {
358
358
  setCustomerSupportAgents([
359
- {label: '-', value: '-'},
360
359
  {label: 'Bürokratt', value: 'chatbot'},
361
360
  ...res.data.response.map((item) => ({
362
361
  label: [item.firstName, item.lastName].join(' ').trim(),
@@ -1114,18 +1113,27 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
1114
1113
  setSearchParams((params) => {
1115
1114
  params.delete('customerSupportIds');
1116
1115
  params.set('page', '1');
1117
- selection?.forEach((s) =>
1118
- params.append('customerSupportIds', s.value)
1119
- );
1116
+ selection?.forEach((s) => {
1117
+ params.append("customerSupportIds", s.value);
1118
+ if (s.value === "chatbot") params.append("customerSupportIds", "-");
1119
+ return params;
1120
+ });
1120
1121
  return params;
1121
1122
  });
1122
1123
 
1123
1124
  setPagination({pageIndex: 0, pageSize: pagination.pageSize});
1124
1125
 
1126
+ const customerSupportIds =
1127
+ selection?.reduce((acc, s) => {
1128
+ acc.push(s.value);
1129
+ if (s.value === "chatbot") acc.push("-");
1130
+ return acc;
1131
+ }, []) || [];
1132
+
1125
1133
  getAllEndedChats.mutate({
1126
1134
  startDate,
1127
1135
  endDate,
1128
- customerSupportIds: selection?.map((s) => s.value) || [],
1136
+ customerSupportIds: customerSupportIds,
1129
1137
  pagination: {pageIndex: 0, pageSize: pagination.pageSize},
1130
1138
  sorting,
1131
1139
  search,