@buerokratt-ria/common-gui-components 0.0.49 → 0.0.51
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.51] - 05.05.2026
|
|
8
|
+
|
|
9
|
+
- History page header alignment
|
|
10
|
+
|
|
11
|
+
## [0.0.50] - 04.05.2026
|
|
12
|
+
|
|
13
|
+
- Added authenticated person column
|
|
14
|
+
|
|
7
15
|
## [0.0.49] - 29.04.2026
|
|
8
16
|
|
|
9
17
|
- Fixed chat history XLSX download to use the S3 signed URL returned by the API instead of the previous base64 payload.
|
package/package.json
CHANGED
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
width: 40%;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
.header-container {
|
|
11
|
+
align-items: center;
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: 24px;
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
.card-drawer-container {
|
|
11
17
|
display: flex;
|
|
12
18
|
width: 100%;
|
|
@@ -79,3 +85,7 @@
|
|
|
79
85
|
overflow-y: auto;
|
|
80
86
|
padding: get-spacing(haapsalu);
|
|
81
87
|
}
|
|
88
|
+
|
|
89
|
+
.spinner {
|
|
90
|
+
height: 24px;
|
|
91
|
+
}
|
|
@@ -739,21 +739,15 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
|
|
|
739
739
|
}
|
|
740
740
|
),
|
|
741
741
|
columnHelper.accessor(
|
|
742
|
-
(row) =>
|
|
742
|
+
(row) => {
|
|
743
|
+
const hasData = row.endUserFirstName || row.endUserLastName || row.endUserId || row.contactsMessage;
|
|
744
|
+
return hasData ? t('global.yes') : '';
|
|
745
|
+
},
|
|
743
746
|
{
|
|
744
|
-
id:
|
|
745
|
-
header: t('
|
|
747
|
+
id: 'authenticatedPerson',
|
|
748
|
+
header: t('chat.history.authenticatedPerson') ?? '',
|
|
746
749
|
}
|
|
747
750
|
),
|
|
748
|
-
columnHelper.accessor('endUserId', {
|
|
749
|
-
id: 'endUserId',
|
|
750
|
-
header: t('global.idCode') ?? '',
|
|
751
|
-
}),
|
|
752
|
-
columnHelper.accessor('contactsMessage', {
|
|
753
|
-
id: 'contactsMessage',
|
|
754
|
-
header: t('chat.history.contact') ?? '',
|
|
755
|
-
cell: (props) => (props.getValue() ? t('global.yes') : t('global.no')),
|
|
756
|
-
}),
|
|
757
751
|
columnHelper.accessor('comment', {
|
|
758
752
|
id: 'comment',
|
|
759
753
|
header: t('chat.history.comment') ?? '',
|
|
@@ -1044,18 +1038,26 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
|
|
|
1044
1038
|
|
|
1045
1039
|
return (
|
|
1046
1040
|
<>
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1041
|
+
<div className="header-container">
|
|
1042
|
+
{displayTitle && (
|
|
1043
|
+
<h1>{t('chat.history.title')}{totalCount === null ? '' : ` (${totalCount.toLocaleString('et-EE')})`}</h1>
|
|
1044
|
+
)}
|
|
1050
1045
|
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1046
|
+
{showDownload && (
|
|
1047
|
+
<div>
|
|
1048
|
+
<Button
|
|
1049
|
+
type="button"
|
|
1050
|
+
appearance={"secondary"}
|
|
1051
|
+
size="s"
|
|
1052
|
+
style={{ marginTop: '4px' }}
|
|
1053
|
+
onClick={downloadChatHistory}
|
|
1054
|
+
>
|
|
1055
|
+
{loading && <CgSpinner className="spinner" />}
|
|
1056
|
+
{!loading && t('files.download_xlsx')}
|
|
1057
|
+
</Button>
|
|
1058
|
+
</div>
|
|
1059
|
+
)}
|
|
1060
|
+
</div>
|
|
1059
1061
|
|
|
1060
1062
|
<Card>
|
|
1061
1063
|
<Track gap={16}>
|
|
@@ -50,15 +50,17 @@
|
|
|
50
50
|
|
|
51
51
|
&--secondary {
|
|
52
52
|
background-color: get-color(white);
|
|
53
|
-
box-shadow: inset 0 0 0 2px get-color(
|
|
54
|
-
color: get-color(
|
|
53
|
+
box-shadow: inset 0 0 0 2px get-color(sapphire-blue-10);
|
|
54
|
+
color: get-color(sapphire-blue-10);
|
|
55
55
|
|
|
56
56
|
&:hover,
|
|
57
57
|
&:active {
|
|
58
|
-
|
|
58
|
+
background-color: get-color(sapphire-blue-0);
|
|
59
|
+
box-shadow: inset 0 0 0 2px get-color(sapphire-blue-10);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
&:focus {
|
|
63
|
+
background-color: get-color(sapphire-blue-0);
|
|
62
64
|
box-shadow: inset 0 0 0 2px get-color(sapphire-blue-10);
|
|
63
65
|
}
|
|
64
66
|
|
|
@@ -145,6 +147,8 @@
|
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
&--s {
|
|
148
|
-
|
|
150
|
+
font-size: $veera-font-size-80;
|
|
151
|
+
padding: 4px 14px;
|
|
152
|
+
font-weight: 700;
|
|
149
153
|
}
|
|
150
154
|
}
|