@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerokratt-ria/common-gui-components",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "Common GUI components and pre defined templates.",
5
5
  "main": "index.ts",
6
6
  "author": "ExiRai",
@@ -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) => `${row.endUserFirstName} ${row.endUserLastName}`,
742
+ (row) => {
743
+ const hasData = row.endUserFirstName || row.endUserLastName || row.endUserId || row.contactsMessage;
744
+ return hasData ? t('global.yes') : '';
745
+ },
743
746
  {
744
- id: `endUserName`,
745
- header: t('global.name') ?? '',
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
- {displayTitle && (
1048
- <h1>{t('chat.history.title')}{totalCount === null ? '' : ` (${totalCount.toLocaleString('et-EE')})`}</h1>
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
- {showDownload && (
1052
- <div>
1053
- <Button appearance={"primary"} onClick={downloadChatHistory}>
1054
- {loading && <CgSpinner className="spinner"/>}
1055
- {!loading && t('files.download_xlsx')}
1056
- </Button>
1057
- </div>
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}>
@@ -162,6 +162,7 @@
162
162
  "endTime": "End time",
163
163
  "csaName": "Customer support name",
164
164
  "contact": "Contact",
165
+ "authenticatedPerson": "Authenticated person",
165
166
  "comment": "Comment",
166
167
  "label": "Label",
167
168
  "nps": "NPS",
@@ -162,6 +162,7 @@
162
162
  "endTime": "Lõppaeg",
163
163
  "csaName": "Nõustaja nimi",
164
164
  "contact": "Kontaktandmed",
165
+ "authenticatedPerson": "Autenditud isik",
165
166
  "comment": "Kommentaar",
166
167
  "label": "Märksõna",
167
168
  "nps": "Soovitusindeks",
@@ -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(black-coral-10);
54
- color: get-color(black-coral-15);
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
- box-shadow: inset 0 0 0 2px get-color(black-coral-2);
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
- padding: 4.5px 24px;
150
+ font-size: $veera-font-size-80;
151
+ padding: 4px 14px;
152
+ font-weight: 700;
149
153
  }
150
154
  }