@truedat/qx 8.5.7 → 8.5.8
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/package.json +3 -3
- package/src/components/dataViews/DataViewEditor.js +2 -0
- package/src/components/dataViews/__tests__/__snapshots__/Queryable.spec.js.snap +2 -2
- package/src/components/dataViews/__tests__/__snapshots__/Queryables.spec.js.snap +2 -2
- package/src/components/dataViews/queryableProperties/GroupBy.js +2 -0
- package/src/components/dataViews/simpleForm/AggregationForm.js +2 -0
- package/src/components/dataViews/simpleForm/DatasetForm.js +2 -0
- package/src/components/qualityControls/QualityControlActions.js +3 -3
- package/src/components/qualityControls/QualityControls.js +34 -37
- package/src/components/qualityControls/SegmentationForm.js +1 -0
- package/src/components/qualityControls/__tests__/__snapshots__/EditQualityControl.spec.js.snap +1 -1
- package/src/components/qualityControls/__tests__/__snapshots__/NewDraftQualityControl.spec.js.snap +1 -1
- package/src/components/qualityControls/__tests__/__snapshots__/NewQualityControl.spec.js.snap +4 -2
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlActions.spec.js.snap +6 -2
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlEditor.spec.js.snap +5 -3
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlHeader.spec.js.snap +6 -2
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControls.spec.js.snap +28 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/qx",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.8",
|
|
4
4
|
"description": "Truedat Web Quality Experience package",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@testing-library/jest-dom": "^6.6.3",
|
|
57
57
|
"@testing-library/react": "^16.3.0",
|
|
58
58
|
"@testing-library/user-event": "^14.6.1",
|
|
59
|
-
"@truedat/test": "8.5.
|
|
59
|
+
"@truedat/test": "8.5.8",
|
|
60
60
|
"identity-obj-proxy": "^3.0.0",
|
|
61
61
|
"jest": "^29.7.0",
|
|
62
62
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
90
90
|
"swr": "^2.3.3"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "61ad9443b3d822d30dcfa977f5fad3494b3ed5b4"
|
|
93
93
|
}
|
|
@@ -107,6 +107,7 @@ export function DataViewDetailEditor({ dataView }) {
|
|
|
107
107
|
<Button
|
|
108
108
|
positive={mode === "guided"}
|
|
109
109
|
disabled={viewMode === "advanced" || mode == "guided"}
|
|
110
|
+
className="td-icon-text-control"
|
|
110
111
|
icon="compass"
|
|
111
112
|
content={formatMessage({ id: "actions.mode.guided" })}
|
|
112
113
|
/>
|
|
@@ -124,6 +125,7 @@ export function DataViewDetailEditor({ dataView }) {
|
|
|
124
125
|
<Button
|
|
125
126
|
positive={mode === "advanced"}
|
|
126
127
|
disabled={mode === "advanced"}
|
|
128
|
+
className="td-icon-text-control"
|
|
127
129
|
icon="code"
|
|
128
130
|
content={formatMessage({ id: "actions.mode.advanced" })}
|
|
129
131
|
/>
|
|
@@ -406,7 +406,7 @@ exports[`<Queryable /> matches the latest snapshot with from queryable 2`] = `
|
|
|
406
406
|
class="ui medium basic buttons"
|
|
407
407
|
>
|
|
408
408
|
<button
|
|
409
|
-
class="ui button"
|
|
409
|
+
class="ui button td-icon-text-control"
|
|
410
410
|
>
|
|
411
411
|
<i
|
|
412
412
|
aria-hidden="true"
|
|
@@ -436,7 +436,7 @@ exports[`<Queryable /> matches the latest snapshot with from queryable 2`] = `
|
|
|
436
436
|
class="ui medium basic buttons"
|
|
437
437
|
>
|
|
438
438
|
<button
|
|
439
|
-
class="ui button"
|
|
439
|
+
class="ui button td-icon-text-control"
|
|
440
440
|
>
|
|
441
441
|
<i
|
|
442
442
|
aria-hidden="true"
|
|
@@ -211,7 +211,7 @@ exports[`<Queryables /> matches the latest snapshot with from queryable 2`] = `
|
|
|
211
211
|
class="ui medium basic buttons"
|
|
212
212
|
>
|
|
213
213
|
<button
|
|
214
|
-
class="ui button"
|
|
214
|
+
class="ui button td-icon-text-control"
|
|
215
215
|
>
|
|
216
216
|
<i
|
|
217
217
|
aria-hidden="true"
|
|
@@ -241,7 +241,7 @@ exports[`<Queryables /> matches the latest snapshot with from queryable 2`] = `
|
|
|
241
241
|
class="ui medium basic buttons"
|
|
242
242
|
>
|
|
243
243
|
<button
|
|
244
|
-
class="ui button"
|
|
244
|
+
class="ui button td-icon-text-control"
|
|
245
245
|
>
|
|
246
246
|
<i
|
|
247
247
|
aria-hidden="true"
|
|
@@ -67,6 +67,7 @@ export default function GroupBy() {
|
|
|
67
67
|
<List.Item>
|
|
68
68
|
<Button.Group basic size="medium">
|
|
69
69
|
<Button
|
|
70
|
+
className="td-icon-text-control"
|
|
70
71
|
icon="plus"
|
|
71
72
|
onClick={() => appendGroupField(newSelectField(nextGroupId))}
|
|
72
73
|
content={formatMessage({
|
|
@@ -102,6 +103,7 @@ export default function GroupBy() {
|
|
|
102
103
|
<List.Item>
|
|
103
104
|
<Button.Group basic size="medium">
|
|
104
105
|
<Button
|
|
106
|
+
className="td-icon-text-control"
|
|
105
107
|
icon="plus"
|
|
106
108
|
content={formatMessage({
|
|
107
109
|
id: "queryables.group_by.form.add_aggregate_field",
|
|
@@ -113,6 +113,7 @@ const AggregationForm = ({
|
|
|
113
113
|
{_.size(group_bys) == 0 && (
|
|
114
114
|
<Button.Group basic size="medium">
|
|
115
115
|
<Button
|
|
116
|
+
className="td-icon-text-control"
|
|
116
117
|
icon="plus"
|
|
117
118
|
content={formatMessage({
|
|
118
119
|
id: "queryables.form.action.add_groupby",
|
|
@@ -156,6 +157,7 @@ const AggregationForm = ({
|
|
|
156
157
|
{_.size(havings) == 0 && (
|
|
157
158
|
<Button.Group basic size="medium">
|
|
158
159
|
<Button
|
|
160
|
+
className="td-icon-text-control"
|
|
159
161
|
content={formatMessage({
|
|
160
162
|
id: "queryables.form.action.add_having",
|
|
161
163
|
})}
|
|
@@ -134,6 +134,7 @@ const DatasetForm = ({
|
|
|
134
134
|
<Divider hidden />
|
|
135
135
|
<Button.Group basic size="medium">
|
|
136
136
|
<Button
|
|
137
|
+
className="td-icon-text-control"
|
|
137
138
|
icon="plus"
|
|
138
139
|
content={formatMessage({
|
|
139
140
|
id: "queryables.form.action.add_join",
|
|
@@ -177,6 +178,7 @@ const DatasetForm = ({
|
|
|
177
178
|
{_.size(wheres) == 0 && (
|
|
178
179
|
<Button.Group basic size="medium">
|
|
179
180
|
<Button
|
|
181
|
+
className="td-icon-text-control"
|
|
180
182
|
content={formatMessage({
|
|
181
183
|
id: "queryables.form.action.add_where",
|
|
182
184
|
})}
|
|
@@ -127,11 +127,11 @@ export default function QualityControlActions() {
|
|
|
127
127
|
const actionIcon = {
|
|
128
128
|
create_draft: "edit",
|
|
129
129
|
deprecate: "folder open outline",
|
|
130
|
-
edit: "
|
|
131
|
-
publish: "
|
|
130
|
+
edit: "pencil alternate",
|
|
131
|
+
publish: "share square",
|
|
132
132
|
reject: "window close outline",
|
|
133
133
|
restore: "undo",
|
|
134
|
-
send_to_approval: "
|
|
134
|
+
send_to_approval: "paper plane outline",
|
|
135
135
|
send_to_draft: "clipboard outline",
|
|
136
136
|
};
|
|
137
137
|
const base = {
|
|
@@ -6,7 +6,6 @@ import { useNavigate } from "react-router";
|
|
|
6
6
|
import {
|
|
7
7
|
Button,
|
|
8
8
|
Checkbox,
|
|
9
|
-
Container,
|
|
10
9
|
Header,
|
|
11
10
|
Icon,
|
|
12
11
|
Segment,
|
|
@@ -150,43 +149,41 @@ export const QualityControls = () => {
|
|
|
150
149
|
<Grid.Column width={8}>
|
|
151
150
|
<SearchWidget />
|
|
152
151
|
</Grid.Column>
|
|
153
|
-
<Grid.Column width={8}>
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
count={_.size(selectedQualityControls) || count}
|
|
175
|
-
/>
|
|
176
|
-
</>
|
|
177
|
-
) : null}
|
|
178
|
-
{canCreate ? (
|
|
179
|
-
<Button
|
|
180
|
-
primary
|
|
181
|
-
as={Link}
|
|
182
|
-
to={QUALITY_CONTROL_NEW}
|
|
183
|
-
content={formatMessage({
|
|
184
|
-
id: "quality_controls.actions.create",
|
|
185
|
-
})}
|
|
152
|
+
<Grid.Column width={8} textAlign="right">
|
|
153
|
+
<>
|
|
154
|
+
{status === "published" &&
|
|
155
|
+
_.size(qualityControls) > 0 &&
|
|
156
|
+
qualityControlsActions?.execute ? (
|
|
157
|
+
<>
|
|
158
|
+
<Checkbox
|
|
159
|
+
id="execute_checkbox"
|
|
160
|
+
className="bgOrange"
|
|
161
|
+
toggle
|
|
162
|
+
onChange={() =>
|
|
163
|
+
handleExecuteChange(!executeQualityControlOn)
|
|
164
|
+
}
|
|
165
|
+
checked={executeQualityControlOn}
|
|
166
|
+
style={{ top: "6px", marginRight: "7.5px" }}
|
|
167
|
+
/>
|
|
168
|
+
<ScoreGroupPopup
|
|
169
|
+
loading={groupCreating}
|
|
170
|
+
disabled={!executeQualityControlOn}
|
|
171
|
+
onSubmit={handleSubmit}
|
|
172
|
+
count={_.size(selectedQualityControls) || count}
|
|
186
173
|
/>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
174
|
+
</>
|
|
175
|
+
) : null}
|
|
176
|
+
{canCreate ? (
|
|
177
|
+
<Button
|
|
178
|
+
primary
|
|
179
|
+
as={Link}
|
|
180
|
+
to={QUALITY_CONTROL_NEW}
|
|
181
|
+
content={formatMessage({
|
|
182
|
+
id: "quality_controls.actions.create",
|
|
183
|
+
})}
|
|
184
|
+
/>
|
|
185
|
+
) : null}
|
|
186
|
+
</>
|
|
190
187
|
</Grid.Column>
|
|
191
188
|
</Grid>
|
|
192
189
|
<QualityControlsLabelResults
|
package/src/components/qualityControls/__tests__/__snapshots__/NewQualityControl.spec.js.snap
CHANGED
|
@@ -166,9 +166,11 @@ exports[`<NewQualityControl /> matches the latest snapshot 1`] = `
|
|
|
166
166
|
role="listbox"
|
|
167
167
|
tabindex="0"
|
|
168
168
|
>
|
|
169
|
-
<
|
|
169
|
+
<div
|
|
170
|
+
class="default text"
|
|
171
|
+
>
|
|
170
172
|
domain.multiple.placeholder
|
|
171
|
-
</
|
|
173
|
+
</div>
|
|
172
174
|
<i
|
|
173
175
|
aria-hidden="true"
|
|
174
176
|
class="dropdown icon"
|
package/src/components/qualityControls/__tests__/__snapshots__/QualityControlActions.spec.js.snap
CHANGED
|
@@ -29,13 +29,17 @@ exports[`<QualityControlActions /> matches the latest snapshot with actions for
|
|
|
29
29
|
aria-hidden="true"
|
|
30
30
|
class="ellipsis vertical icon"
|
|
31
31
|
/>
|
|
32
|
+
<i
|
|
33
|
+
aria-hidden="true"
|
|
34
|
+
class="dropdown icon"
|
|
35
|
+
/>
|
|
32
36
|
<div
|
|
33
37
|
class="left menu transition"
|
|
34
38
|
>
|
|
35
39
|
<div
|
|
36
40
|
aria-checked="false"
|
|
37
41
|
aria-selected="true"
|
|
38
|
-
class="selected item"
|
|
42
|
+
class="selected item td-icon-text-control"
|
|
39
43
|
role="option"
|
|
40
44
|
style="pointer-events: all;"
|
|
41
45
|
>
|
|
@@ -52,7 +56,7 @@ exports[`<QualityControlActions /> matches the latest snapshot with actions for
|
|
|
52
56
|
<a
|
|
53
57
|
aria-checked="false"
|
|
54
58
|
aria-selected="false"
|
|
55
|
-
class="item"
|
|
59
|
+
class="item td-icon-text-control"
|
|
56
60
|
data-discover="true"
|
|
57
61
|
href="/qualityControls/8/version/1/new_draft"
|
|
58
62
|
role="option"
|
package/src/components/qualityControls/__tests__/__snapshots__/QualityControlEditor.spec.js.snap
CHANGED
|
@@ -123,9 +123,11 @@ exports[`<QualityControlEditor /> matches the latest snapshot for creation 1`] =
|
|
|
123
123
|
role="listbox"
|
|
124
124
|
tabindex="0"
|
|
125
125
|
>
|
|
126
|
-
<
|
|
126
|
+
<div
|
|
127
|
+
class="default text"
|
|
128
|
+
>
|
|
127
129
|
Select domains
|
|
128
|
-
</
|
|
130
|
+
</div>
|
|
129
131
|
<i
|
|
130
132
|
aria-hidden="true"
|
|
131
133
|
class="dropdown icon"
|
|
@@ -1500,7 +1502,7 @@ exports[`<QualityControlEditor /> matches the latest snapshot for edition 1`] =
|
|
|
1500
1502
|
class="ui segment"
|
|
1501
1503
|
>
|
|
1502
1504
|
<button
|
|
1503
|
-
class="ui basic button"
|
|
1505
|
+
class="ui basic button td-icon-text-control"
|
|
1504
1506
|
>
|
|
1505
1507
|
<i
|
|
1506
1508
|
aria-hidden="true"
|
package/src/components/qualityControls/__tests__/__snapshots__/QualityControlHeader.spec.js.snap
CHANGED
|
@@ -89,13 +89,17 @@ exports[`<QualityControlHeader /> matches the latest snapshot with control quali
|
|
|
89
89
|
aria-hidden="true"
|
|
90
90
|
class="ellipsis vertical icon"
|
|
91
91
|
/>
|
|
92
|
+
<i
|
|
93
|
+
aria-hidden="true"
|
|
94
|
+
class="dropdown icon"
|
|
95
|
+
/>
|
|
92
96
|
<div
|
|
93
97
|
class="left menu transition"
|
|
94
98
|
>
|
|
95
99
|
<div
|
|
96
100
|
aria-checked="false"
|
|
97
101
|
aria-selected="true"
|
|
98
|
-
class="selected item"
|
|
102
|
+
class="selected item td-icon-text-control"
|
|
99
103
|
role="option"
|
|
100
104
|
style="pointer-events: all;"
|
|
101
105
|
>
|
|
@@ -112,7 +116,7 @@ exports[`<QualityControlHeader /> matches the latest snapshot with control quali
|
|
|
112
116
|
<a
|
|
113
117
|
aria-checked="false"
|
|
114
118
|
aria-selected="false"
|
|
115
|
-
class="item"
|
|
119
|
+
class="item td-icon-text-control"
|
|
116
120
|
data-discover="true"
|
|
117
121
|
href="/qualityControls/8/version/1/new_draft"
|
|
118
122
|
role="option"
|
|
@@ -78,42 +78,38 @@ exports[`<QualityControls /> matches the latest snapshot 1`] = `
|
|
|
78
78
|
/>
|
|
79
79
|
</div>
|
|
80
80
|
<div
|
|
81
|
-
class="eight wide column"
|
|
81
|
+
class="right aligned eight wide column"
|
|
82
82
|
>
|
|
83
83
|
<div
|
|
84
|
-
class="ui
|
|
84
|
+
class="ui fitted toggle checkbox bgOrange"
|
|
85
|
+
style="top: 6px; margin-right: 7.5px;"
|
|
85
86
|
>
|
|
86
|
-
<
|
|
87
|
-
class="
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/>
|
|
97
|
-
<label
|
|
98
|
-
for="execute_checkbox"
|
|
99
|
-
/>
|
|
100
|
-
</div>
|
|
101
|
-
<button
|
|
102
|
-
class="ui secondary disabled button"
|
|
103
|
-
disabled=""
|
|
104
|
-
tabindex="-1"
|
|
105
|
-
>
|
|
106
|
-
quality_control.actions.do_execution
|
|
107
|
-
</button>
|
|
108
|
-
<a
|
|
109
|
-
class="ui primary button"
|
|
110
|
-
data-discover="true"
|
|
111
|
-
href="/qualityControls/new"
|
|
112
|
-
role="button"
|
|
113
|
-
>
|
|
114
|
-
quality_controls.actions.create
|
|
115
|
-
</a>
|
|
87
|
+
<input
|
|
88
|
+
class="hidden"
|
|
89
|
+
id="execute_checkbox"
|
|
90
|
+
readonly=""
|
|
91
|
+
tabindex="0"
|
|
92
|
+
type="checkbox"
|
|
93
|
+
/>
|
|
94
|
+
<label
|
|
95
|
+
for="execute_checkbox"
|
|
96
|
+
/>
|
|
116
97
|
</div>
|
|
98
|
+
<button
|
|
99
|
+
class="ui secondary disabled button"
|
|
100
|
+
disabled=""
|
|
101
|
+
tabindex="-1"
|
|
102
|
+
>
|
|
103
|
+
quality_control.actions.do_execution
|
|
104
|
+
</button>
|
|
105
|
+
<a
|
|
106
|
+
class="ui primary button"
|
|
107
|
+
data-discover="true"
|
|
108
|
+
href="/qualityControls/new"
|
|
109
|
+
role="button"
|
|
110
|
+
>
|
|
111
|
+
quality_controls.actions.create
|
|
112
|
+
</a>
|
|
117
113
|
</div>
|
|
118
114
|
</div>
|
|
119
115
|
<div
|