@buerokratt-ria/common-gui-components 0.0.37 → 0.0.39
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,16 @@ 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.39] - 26.01.2026
|
|
8
|
+
|
|
9
|
+
- Changed initial end date to be the same as the start date
|
|
10
|
+
- Changed empty advisor name to default to 'Bürokratt' instead of '-'
|
|
11
|
+
- Fixed CSA messages display
|
|
12
|
+
|
|
13
|
+
## [0.0.38] - 20.01.2026
|
|
14
|
+
|
|
15
|
+
- Added isFiveRatingScale Handle
|
|
16
|
+
|
|
7
17
|
## [0.0.37] - 19.01.2026
|
|
8
18
|
|
|
9
19
|
- Added Sanitization to Markdownify
|
package/package.json
CHANGED
|
@@ -131,18 +131,14 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
|
|
|
131
131
|
return new Date(dateString.split("+")[0]);
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
const {control, setValue, watch} = useForm<{
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
const { control, setValue, watch } = useForm<{
|
|
135
|
+
startDate: Date | string;
|
|
136
|
+
endDate: Date | string;
|
|
137
137
|
}>({
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
endDate: passedEndDate
|
|
143
|
-
? parseDateParam(passedEndDate)
|
|
144
|
-
: new Date(new Date().setUTCHours(23, 59, 59, 999)),
|
|
145
|
-
},
|
|
138
|
+
defaultValues: {
|
|
139
|
+
startDate: passedStartDate ? parseDateParam(passedStartDate) : startOfDay(new Date()),
|
|
140
|
+
endDate: passedEndDate ? parseDateParam(passedEndDate) : endOfDay(new Date()),
|
|
141
|
+
},
|
|
146
142
|
});
|
|
147
143
|
|
|
148
144
|
const startDate = watch('startDate');
|
|
@@ -670,7 +666,7 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
|
|
|
670
666
|
|
|
671
667
|
return filteredNames.join(", ");
|
|
672
668
|
} else {
|
|
673
|
-
return
|
|
669
|
+
return "Bürokratt";
|
|
674
670
|
}
|
|
675
671
|
},
|
|
676
672
|
{
|
|
@@ -704,7 +700,7 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
|
|
|
704
700
|
header: t('chat.history.rating') ?? '',
|
|
705
701
|
cell: (props) => {
|
|
706
702
|
const value = props.getValue();
|
|
707
|
-
return value !== null && value !== undefined ? <span>{`${value}
|
|
703
|
+
return value !== null && value !== undefined ? <span>{`${value}/${props.row.original?.isFiveRatingScale === 'true' ? 5 : 10}`}</span> : null;
|
|
708
704
|
}
|
|
709
705
|
}),
|
|
710
706
|
columnHelper.accessor('feedbackText', {
|
|
@@ -887,6 +883,7 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
|
|
|
887
883
|
}
|
|
888
884
|
|
|
889
885
|
let processedValue: any = rawValue;
|
|
886
|
+
const totalCheck = chat.isFiveRatingScale === 'true' ? 5 : 10;
|
|
890
887
|
switch (col.id) {
|
|
891
888
|
case 'created':
|
|
892
889
|
case 'ended':
|
|
@@ -902,7 +899,7 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
|
|
|
902
899
|
processedValue = rawValue ? t('global.yes') : t('global.no');
|
|
903
900
|
break;
|
|
904
901
|
case 'feedbackRating':
|
|
905
|
-
processedValue = rawValue
|
|
902
|
+
processedValue = rawValue == null ? '' : `${rawValue}/${totalCheck}`;
|
|
906
903
|
break;
|
|
907
904
|
case 'status':
|
|
908
905
|
processedValue =
|
package/types/chat.ts
CHANGED
|
@@ -146,17 +146,19 @@
|
|
|
146
146
|
#{$self} {
|
|
147
147
|
&__group-header {
|
|
148
148
|
display: flex;
|
|
149
|
-
justify-content: flex-
|
|
149
|
+
justify-content: flex-start;
|
|
150
150
|
align-items: center;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
&__group-initials
|
|
153
|
+
&__group-initials,
|
|
154
|
+
&__group-event-initials {
|
|
154
155
|
background-color: get-color(black-coral-10);
|
|
155
156
|
color: get-color(white);
|
|
156
157
|
position: relative;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
|
-
&__group-name
|
|
160
|
+
&__group-name,
|
|
161
|
+
&__group-event-name {
|
|
160
162
|
text-align: left;
|
|
161
163
|
margin-left: 0;
|
|
162
164
|
font-size: $veera-font-size-100;
|
|
@@ -167,7 +169,7 @@
|
|
|
167
169
|
display: flex;
|
|
168
170
|
flex-direction: column;
|
|
169
171
|
gap: 4px;
|
|
170
|
-
align-items: flex-
|
|
172
|
+
align-items: flex-start;
|
|
171
173
|
padding-left: 50px;
|
|
172
174
|
}
|
|
173
175
|
|