@buerokratt-ria/common-gui-components 0.0.58 → 0.0.60
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 +12 -0
- package/package.json +1 -1
- package/templates/history-page/src/History.scss +15 -1
- package/templates/history-page/src/components/ChatMetadataPanel/ChatMetadataPanel.scss +18 -0
- package/templates/history-page/src/components/ChatMetadataPanel/index.tsx +206 -0
- package/templates/history-page/src/components/ChatMetadataPanelItem/index.tsx +17 -0
- package/templates/history-page/src/components/FilterTag/FilterTag.scss +42 -0
- package/templates/history-page/src/components/FilterTag/index.tsx +16 -0
- package/templates/history-page/src/components/HeaderCombobox/index.tsx +67 -0
- package/templates/history-page/src/components/QualitySettings/QualitySettings.scss +19 -0
- package/templates/history-page/src/components/QualitySettings/index.tsx +115 -0
- package/templates/history-page/src/components/SelectedFilterTags/SelectedFilterTags.scss +36 -0
- package/templates/history-page/src/components/SelectedFilterTags/index.tsx +224 -0
- package/templates/history-page/src/components/index.tsx +6 -0
- package/templates/history-page/src/index.tsx +946 -207
- package/templates/history-page/src/types/index.ts +17 -0
- package/translations/en/common.json +22 -2
- package/translations/et/common.json +22 -2
- package/types/chat.ts +3 -0
- package/ui-components/DataTable/index.tsx +0 -1
- package/ui-components/FormElements/FormCombobox/FormCombobox.scss +263 -0
- package/ui-components/FormElements/FormCombobox/index.tsx +393 -0
- package/ui-components/FormElements/index.tsx +1 -0
- package/ui-components/Icon/index.tsx +1 -0
- package/ui-components/index.tsx +2 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const MEASUREMENT_TYPES = {
|
|
2
|
+
THEME: 'THEME',
|
|
3
|
+
QUALITY: 'QUALITY',
|
|
4
|
+
FOLLOW_UP_ACTION: 'FOLLOW_UP_ACTION',
|
|
5
|
+
} as const;
|
|
6
|
+
|
|
7
|
+
export type MeasurementType =
|
|
8
|
+
(typeof MEASUREMENT_TYPES)[keyof typeof MEASUREMENT_TYPES];
|
|
9
|
+
|
|
10
|
+
export type CharMeasurementType = {
|
|
11
|
+
readonly chatUuid: string;
|
|
12
|
+
readonly authorId: number;
|
|
13
|
+
readonly authorDisplayName: string;
|
|
14
|
+
readonly type: MeasurementType;
|
|
15
|
+
readonly value: string;
|
|
16
|
+
readonly createdAt: string;
|
|
17
|
+
}
|
|
@@ -163,6 +163,7 @@
|
|
|
163
163
|
"endTime": "End time",
|
|
164
164
|
"csaName": "Customer support name",
|
|
165
165
|
"contact": "Contact",
|
|
166
|
+
"www": "Webpage",
|
|
166
167
|
"authenticatedPerson": "Authenticated person",
|
|
167
168
|
"comment": "Comment",
|
|
168
169
|
"label": "Label",
|
|
@@ -177,7 +178,17 @@
|
|
|
177
178
|
"statusAddedDate": "Status added date",
|
|
178
179
|
"chosenCsa": "Chosen csa(s)",
|
|
179
180
|
"chosenColumn": "Chosen column(s)",
|
|
180
|
-
"chooseAll": "Choose all"
|
|
181
|
+
"chooseAll": "Choose all",
|
|
182
|
+
"conversationResponseQuality": "Response quality",
|
|
183
|
+
"followUpAction": "Follow-up action",
|
|
184
|
+
"chooseFollowUpAction": "- Select follow-up action -",
|
|
185
|
+
"chooseConversationResponseQuality": "- Select response quality -",
|
|
186
|
+
"chooseConversationTheme": "- Select chat theme -",
|
|
187
|
+
"conversationTheme": "Chat theme",
|
|
188
|
+
"theme": "Theme",
|
|
189
|
+
"responseQuality": "Bürokratt Response Quality",
|
|
190
|
+
"followUpStatus": "Follow-up Status",
|
|
191
|
+
"analysis": "Analysis"
|
|
181
192
|
},
|
|
182
193
|
"plainEvents": {
|
|
183
194
|
"answered": "Answered",
|
|
@@ -282,6 +293,12 @@
|
|
|
282
293
|
"requestedAt": "Requested At",
|
|
283
294
|
"approve": "Approve"
|
|
284
295
|
}
|
|
296
|
+
},
|
|
297
|
+
"quality": {
|
|
298
|
+
"theme": "Chat theme",
|
|
299
|
+
"responseQuality": "Chat response quality",
|
|
300
|
+
"followUpAction": "Follow-up action",
|
|
301
|
+
"selectionEmptied": "Selection emptied"
|
|
285
302
|
}
|
|
286
303
|
},
|
|
287
304
|
"deleteConversation": {
|
|
@@ -466,7 +483,10 @@
|
|
|
466
483
|
"copied": "Copied",
|
|
467
484
|
"userDeleted": "User deleted",
|
|
468
485
|
"newUserAdded": "New user added",
|
|
469
|
-
"userUpdated": "User updated"
|
|
486
|
+
"userUpdated": "User updated",
|
|
487
|
+
"conversationThemeSaved": "Theme selection has been saved.",
|
|
488
|
+
"conversationQualitySaved": "Response quality selection has been saved.",
|
|
489
|
+
"conversationFollowUpActionSaved": "Follow-up action selection has been saved."
|
|
470
490
|
}
|
|
471
491
|
},
|
|
472
492
|
"notification": {
|
|
@@ -163,6 +163,7 @@
|
|
|
163
163
|
"endTime": "Lõppaeg",
|
|
164
164
|
"csaName": "Nõustaja nimi",
|
|
165
165
|
"contact": "Kontaktandmed",
|
|
166
|
+
"www": "Veebileht",
|
|
166
167
|
"authenticatedPerson": "Autenditud isik",
|
|
167
168
|
"comment": "Kommentaar",
|
|
168
169
|
"label": "Märksõna",
|
|
@@ -177,7 +178,17 @@
|
|
|
177
178
|
"statusAddedDate": "Staatuse lisamise kuupäev",
|
|
178
179
|
"chosenCsa": "Valitud nõustaja(d)",
|
|
179
180
|
"chosenColumn": "Valitud tulba(d)",
|
|
180
|
-
"chooseAll": "Vali kõik"
|
|
181
|
+
"chooseAll": "Vali kõik",
|
|
182
|
+
"conversationResponseQuality": "Vastuse kvaliteet",
|
|
183
|
+
"followUpAction": "Järeltegevus",
|
|
184
|
+
"chooseFollowUpAction": "- Vali järeltegevus -",
|
|
185
|
+
"chooseConversationResponseQuality": "- Vali vastuse kvaliteet -",
|
|
186
|
+
"chooseConversationTheme": "- Vali vestluse valdkond -",
|
|
187
|
+
"conversationTheme": "Vestluse valdkond",
|
|
188
|
+
"theme": "Valdkond",
|
|
189
|
+
"responseQuality": "Bürokrati vastuse kvaliteet",
|
|
190
|
+
"followUpStatus": "Järeltegevuste staatus",
|
|
191
|
+
"analysis": "Analüüs"
|
|
181
192
|
},
|
|
182
193
|
"plainEvents": {
|
|
183
194
|
"answered": "Vastatud",
|
|
@@ -282,6 +293,12 @@
|
|
|
282
293
|
"requestedAt": "Taotletud Kell",
|
|
283
294
|
"approve": "Kinnita"
|
|
284
295
|
}
|
|
296
|
+
},
|
|
297
|
+
"quality": {
|
|
298
|
+
"theme": "Vestluse valdkond",
|
|
299
|
+
"responseQuality": "Vastuse kvaliteet",
|
|
300
|
+
"followUpAction": "Järeltegevus",
|
|
301
|
+
"selectionEmptied": "Valik tühjendatud"
|
|
285
302
|
}
|
|
286
303
|
},
|
|
287
304
|
"deleteConversation": {
|
|
@@ -466,7 +483,10 @@
|
|
|
466
483
|
"copied": "Kopeeritud",
|
|
467
484
|
"userDeleted": "Kasutaja kustutatud",
|
|
468
485
|
"newUserAdded": "Uus kasutaja lisatud",
|
|
469
|
-
"userUpdated": "Kasutaja uuendatud"
|
|
486
|
+
"userUpdated": "Kasutaja uuendatud",
|
|
487
|
+
"conversationThemeSaved": "Valdkonna valik on salvestatud.",
|
|
488
|
+
"conversationQualitySaved": "Vastuse kvaliteedi valik on salvestatud.",
|
|
489
|
+
"conversationFollowUpActionSaved": "Järeltegevuse valik on salvestatud."
|
|
470
490
|
}
|
|
471
491
|
},
|
|
472
492
|
"notification": {
|
package/types/chat.ts
CHANGED
|
@@ -210,7 +210,6 @@ const DataTable: FC<DataTableProps> = ({
|
|
|
210
210
|
header.column.columnDef.meta?.sticky === 'right'
|
|
211
211
|
? `${header.column.getAfter('right') * 0.675}px`
|
|
212
212
|
: undefined,
|
|
213
|
-
backgroundColor: 'white',
|
|
214
213
|
zIndex: header.column.columnDef.meta?.sticky ? 1 : 0,
|
|
215
214
|
}}
|
|
216
215
|
>
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
@import 'src/styles/tools/spacing';
|
|
2
|
+
@import 'src/styles/tools/color';
|
|
3
|
+
@import 'src/styles/settings/variables/other';
|
|
4
|
+
@import 'src/styles/settings/variables/typography';
|
|
5
|
+
|
|
6
|
+
.select {
|
|
7
|
+
$self: &;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: get-spacing(paldiski);
|
|
11
|
+
width: 100%;
|
|
12
|
+
|
|
13
|
+
&__label {
|
|
14
|
+
flex: 0 0 185px;
|
|
15
|
+
font-size: $veera-font-size-100;
|
|
16
|
+
line-height: 24px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__wrapper {
|
|
20
|
+
width: 100%;
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__trigger {
|
|
25
|
+
width: 100%;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
appearance: none;
|
|
30
|
+
background-color: get-color(white);
|
|
31
|
+
border: 1px solid get-color(black-coral-6);
|
|
32
|
+
border-radius: $veera-radius-s;
|
|
33
|
+
color: get-color(black);
|
|
34
|
+
font-size: $veera-font-size-100;
|
|
35
|
+
height: 40px;
|
|
36
|
+
line-height: 24px;
|
|
37
|
+
padding: get-spacing(paldiski);
|
|
38
|
+
text-align: left;
|
|
39
|
+
|
|
40
|
+
.icon {
|
|
41
|
+
font-size: $veera-font-size-250;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[aria-expanded=true] {
|
|
45
|
+
border-color: get-color(sapphire-blue-10);
|
|
46
|
+
border-radius: 3px;
|
|
47
|
+
|
|
48
|
+
+ #{$self}__menu {
|
|
49
|
+
display: block;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
+#{$self}__menu_up {
|
|
53
|
+
display: block;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.icon {
|
|
57
|
+
transform: rotate(180deg);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&--plain {
|
|
63
|
+
width: auto;
|
|
64
|
+
|
|
65
|
+
#{$self}__wrapper {
|
|
66
|
+
width: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#{$self}__trigger {
|
|
70
|
+
width: auto;
|
|
71
|
+
height: 24px;
|
|
72
|
+
padding: 0;
|
|
73
|
+
gap: get-spacing(paldiski);
|
|
74
|
+
justify-content: flex-start;
|
|
75
|
+
background-color: transparent;
|
|
76
|
+
border-color: transparent;
|
|
77
|
+
color: get-color(black-coral-10);
|
|
78
|
+
|
|
79
|
+
&[aria-expanded=true] {
|
|
80
|
+
border-color: transparent;
|
|
81
|
+
border-radius: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.icon {
|
|
85
|
+
align-items: center;
|
|
86
|
+
background-color: #F0F0F2;
|
|
87
|
+
border-radius: 50%;
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
flex: 0 0 24px;
|
|
90
|
+
height: 24px;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
width: 24px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:hover,
|
|
96
|
+
&:focus,
|
|
97
|
+
&[aria-expanded=true] {
|
|
98
|
+
.icon {
|
|
99
|
+
background-color: #E9F5FF;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
#{$self}__trigger-text {
|
|
105
|
+
color: get-color(black-coral-18);
|
|
106
|
+
display: inline;
|
|
107
|
+
overflow: visible;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
#{$self}__menu--combobox {
|
|
111
|
+
background-color: get-color(white);
|
|
112
|
+
top: 100%;
|
|
113
|
+
bottom: auto;
|
|
114
|
+
min-width: 296px;
|
|
115
|
+
margin-top: 3px;
|
|
116
|
+
margin-bottom: 0;
|
|
117
|
+
z-index: 10000;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
#{$self}__trigger[aria-expanded=true] {
|
|
121
|
+
.icon {
|
|
122
|
+
transform: none;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#{$self}__search,
|
|
127
|
+
#{$self}__options {
|
|
128
|
+
background-color: get-color(white);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&__trigger-text {
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
text-overflow: ellipsis;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&__menu {
|
|
139
|
+
display: none;
|
|
140
|
+
position: absolute;
|
|
141
|
+
top: 100%;
|
|
142
|
+
left: 0;
|
|
143
|
+
right: 0;
|
|
144
|
+
background-color: get-color(white);
|
|
145
|
+
border-radius: 4px;
|
|
146
|
+
border: 1px solid get-color(black-coral-2);
|
|
147
|
+
border-top: 1;
|
|
148
|
+
z-index: 9998;
|
|
149
|
+
max-height: 320px;
|
|
150
|
+
overflow: auto;
|
|
151
|
+
margin-top: 3px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&__menu--combobox {
|
|
155
|
+
top: auto;
|
|
156
|
+
bottom: 100%;
|
|
157
|
+
overflow: hidden;
|
|
158
|
+
margin-top: 0;
|
|
159
|
+
margin-bottom: 3px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&__menu--portal {
|
|
163
|
+
display: block;
|
|
164
|
+
position: fixed;
|
|
165
|
+
top: 100%;
|
|
166
|
+
bottom: auto;
|
|
167
|
+
right: auto;
|
|
168
|
+
margin-top: 3px;
|
|
169
|
+
margin-bottom: 0;
|
|
170
|
+
z-index: 10000;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&__options {
|
|
174
|
+
max-height: 224px;
|
|
175
|
+
overflow: auto;
|
|
176
|
+
list-style: none;
|
|
177
|
+
margin: 0;
|
|
178
|
+
padding: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__search {
|
|
182
|
+
padding: get-spacing(paldiski);
|
|
183
|
+
position: relative;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&__search-icon {
|
|
187
|
+
left: 16px;
|
|
188
|
+
position: absolute;
|
|
189
|
+
top: 50%;
|
|
190
|
+
transform: translateY(-50%);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&__search-input {
|
|
194
|
+
width: 100%;
|
|
195
|
+
appearance: none;
|
|
196
|
+
background-color: get-color(white);
|
|
197
|
+
border: 1px solid get-color(black-coral-6);
|
|
198
|
+
border-radius: $veera-radius-s;
|
|
199
|
+
color: get-color(black);
|
|
200
|
+
font-size: $veera-font-size-100;
|
|
201
|
+
height: 40px;
|
|
202
|
+
line-height: 24px;
|
|
203
|
+
padding: get-spacing(paldiski);
|
|
204
|
+
padding-left: 36px;
|
|
205
|
+
|
|
206
|
+
&:focus {
|
|
207
|
+
border-color: get-color(sapphire-blue-10);
|
|
208
|
+
outline: none;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&__option {
|
|
213
|
+
display: flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
gap: 8px;
|
|
216
|
+
padding: 8px 15px;
|
|
217
|
+
|
|
218
|
+
span {
|
|
219
|
+
display: block;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&[aria-selected=true] {
|
|
223
|
+
background-color: get-color(sapphire-blue-10);
|
|
224
|
+
color: get-color(white);
|
|
225
|
+
|
|
226
|
+
&:hover,
|
|
227
|
+
&:focus {
|
|
228
|
+
background-color: get-color(sapphire-blue-10);
|
|
229
|
+
color: get-color(white);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&:hover,
|
|
234
|
+
&:focus {
|
|
235
|
+
background-color: get-color(black-coral-0);
|
|
236
|
+
color: get-color(black-coral-20);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&__option--combobox {
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
|
|
243
|
+
&[aria-selected=true] {
|
|
244
|
+
background-color: get-color(white);
|
|
245
|
+
color: get-color(black);
|
|
246
|
+
|
|
247
|
+
&:hover,
|
|
248
|
+
&:focus {
|
|
249
|
+
background-color: get-color(black-coral-0);
|
|
250
|
+
color: get-color(black-coral-20);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&__option--combobox input[type='checkbox'] {
|
|
256
|
+
margin: 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.search__icon-size {
|
|
260
|
+
width: get-spacing(kuressaare);
|
|
261
|
+
height: get-spacing(kuressaare);
|
|
262
|
+
}
|
|
263
|
+
}
|