@truedat/qx 8.12.2 → 8.12.4
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/common/expressions/FunctionSelector.js +2 -2
- package/src/components/common/expressions/__tests__/Condition.spec.js +2 -0
- package/src/components/common/expressions/__tests__/Expression.spec.js +2 -0
- package/src/components/common/expressions/__tests__/ShapeSelector.spec.js +2 -0
- package/src/components/common/expressions/__tests__/__snapshots__/Expression.spec.js.snap +81 -69
- package/src/components/common/expressions/__tests__/__snapshots__/FunctionArgs.spec.js.snap +27 -23
- package/src/components/common/expressions/__tests__/__snapshots__/FunctionSelector.spec.js.snap +162 -138
- package/src/components/dataViews/__tests__/SimpleDataViewEditor.spec.js +15 -0
- package/src/components/dataViews/queryableProperties/__tests__/Select.spec.js +2 -0
- package/src/components/dataViews/queryableProperties/__tests__/SelectField.spec.js +2 -0
- package/src/components/functions/__tests__/__snapshots__/FunctionEditor.spec.js.snap +81 -69
- package/src/components/qualityControls/__tests__/EditQualityControl.spec.js +7 -1
- package/src/components/qualityControls/__tests__/NewQualityControl.spec.js +19 -15
- package/src/components/qualityControls/__tests__/QualityControl.spec.js +8 -3
- package/src/components/qualityControls/__tests__/QualityControlActions.spec.js +2 -0
- package/src/components/qualityControls/__tests__/QualityControlEditor.spec.js +13 -10
- package/src/components/qualityControls/__tests__/QualityControlEvents.spec.js +18 -4
- package/src/components/qualityControls/__tests__/QualityControls.spec.js +8 -11
- package/src/components/scores/__tests__/ScoreGroupPopup.spec.js +5 -2
- package/src/components/selectors/__tests__/getQualityControlScoresColumns.spec.js +15 -0
- package/src/components/selectors/getQualityControlScoresColumns.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/qx",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.4",
|
|
4
4
|
"description": "Truedat Web Quality Experience package",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@testing-library/jest-dom": "^6.6.3",
|
|
60
60
|
"@testing-library/react": "^16.3.0",
|
|
61
61
|
"@testing-library/user-event": "^14.6.1",
|
|
62
|
-
"@truedat/test": "8.12.
|
|
62
|
+
"@truedat/test": "8.12.4",
|
|
63
63
|
"identity-obj-proxy": "^3.0.0",
|
|
64
64
|
"jest": "^29.7.0",
|
|
65
65
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
93
93
|
"swr": "^2.3.3"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "d5bc1af84c4d828bdec676b0da58385cf0d6015f"
|
|
96
96
|
}
|
|
@@ -51,7 +51,7 @@ export default function FunctionSelector() {
|
|
|
51
51
|
value: fnToKey({ name, type }),
|
|
52
52
|
text: operator || label || name,
|
|
53
53
|
content: (
|
|
54
|
-
|
|
54
|
+
<div>
|
|
55
55
|
<Header>
|
|
56
56
|
<div className="flex-center">
|
|
57
57
|
<div>{operator || label || name}</div>
|
|
@@ -66,7 +66,7 @@ export default function FunctionSelector() {
|
|
|
66
66
|
</div>
|
|
67
67
|
</Header>
|
|
68
68
|
<Header.Subheader>{description}</Header.Subheader>
|
|
69
|
-
|
|
69
|
+
</div>
|
|
70
70
|
),
|
|
71
71
|
})),
|
|
72
72
|
)(funcs);
|
|
@@ -4,6 +4,8 @@ import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
|
|
|
4
4
|
import Expression from "../Expression";
|
|
5
5
|
|
|
6
6
|
describe("<Expression />", () => {
|
|
7
|
+
beforeEach(() => jest.useRealTimers());
|
|
8
|
+
|
|
7
9
|
it("matches the latest snapshot", async () => {
|
|
8
10
|
const rendered = render(
|
|
9
11
|
<TestFormWrapper>
|
|
@@ -4,6 +4,8 @@ import TestFormWrapper from "@truedat/qx/components/common/TestFormWrapper";
|
|
|
4
4
|
import ShapeSelector from "../ShapeSelector";
|
|
5
5
|
|
|
6
6
|
describe("<ShapeSelector />", () => {
|
|
7
|
+
beforeEach(() => jest.useRealTimers());
|
|
8
|
+
|
|
7
9
|
it("matches the latest snapshot", async () => {
|
|
8
10
|
const defaultValues = {
|
|
9
11
|
params: [{ name: "param1", type: "boolean", id: 1 }],
|
|
@@ -372,41 +372,45 @@ exports[`<Expression /> shape function expression 1`] = `
|
|
|
372
372
|
style="pointer-events: all;"
|
|
373
373
|
>
|
|
374
374
|
<div
|
|
375
|
-
class="
|
|
375
|
+
class="text"
|
|
376
376
|
>
|
|
377
377
|
<div
|
|
378
|
-
class="
|
|
378
|
+
class="ui header"
|
|
379
379
|
>
|
|
380
|
-
<div>
|
|
381
|
-
eq
|
|
382
|
-
</div>
|
|
383
380
|
<div
|
|
384
|
-
class="
|
|
381
|
+
class="flex-center"
|
|
385
382
|
>
|
|
386
|
-
<div
|
|
387
|
-
|
|
388
|
-
>
|
|
389
|
-
<i
|
|
390
|
-
aria-hidden="true"
|
|
391
|
-
class="question circle outline icon"
|
|
392
|
-
/>
|
|
393
|
-
arg1
|
|
383
|
+
<div>
|
|
384
|
+
eq
|
|
394
385
|
</div>
|
|
395
386
|
<div
|
|
396
|
-
class="
|
|
387
|
+
class="function-params-label"
|
|
397
388
|
>
|
|
398
|
-
<
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
389
|
+
<div
|
|
390
|
+
class="ui grey label"
|
|
391
|
+
>
|
|
392
|
+
<i
|
|
393
|
+
aria-hidden="true"
|
|
394
|
+
class="question circle outline icon"
|
|
395
|
+
/>
|
|
396
|
+
arg1
|
|
397
|
+
</div>
|
|
398
|
+
<div
|
|
399
|
+
class="ui grey label"
|
|
400
|
+
>
|
|
401
|
+
<i
|
|
402
|
+
aria-hidden="true"
|
|
403
|
+
class="question circle outline icon"
|
|
404
|
+
/>
|
|
405
|
+
arg2
|
|
406
|
+
</div>
|
|
403
407
|
</div>
|
|
404
408
|
</div>
|
|
405
409
|
</div>
|
|
410
|
+
<div
|
|
411
|
+
class="sub header"
|
|
412
|
+
/>
|
|
406
413
|
</div>
|
|
407
|
-
<div
|
|
408
|
-
class="sub header"
|
|
409
|
-
/>
|
|
410
414
|
</div>
|
|
411
415
|
</div>
|
|
412
416
|
</div>
|
|
@@ -562,41 +566,45 @@ exports[`<Expression /> shape function expression 1`] = `
|
|
|
562
566
|
style="pointer-events: all;"
|
|
563
567
|
>
|
|
564
568
|
<div
|
|
565
|
-
class="
|
|
569
|
+
class="text"
|
|
566
570
|
>
|
|
567
571
|
<div
|
|
568
|
-
class="
|
|
572
|
+
class="ui header"
|
|
569
573
|
>
|
|
570
|
-
<div>
|
|
571
|
-
eq
|
|
572
|
-
</div>
|
|
573
574
|
<div
|
|
574
|
-
class="
|
|
575
|
+
class="flex-center"
|
|
575
576
|
>
|
|
576
|
-
<div
|
|
577
|
-
|
|
578
|
-
>
|
|
579
|
-
<i
|
|
580
|
-
aria-hidden="true"
|
|
581
|
-
class="question circle outline icon"
|
|
582
|
-
/>
|
|
583
|
-
arg1
|
|
577
|
+
<div>
|
|
578
|
+
eq
|
|
584
579
|
</div>
|
|
585
580
|
<div
|
|
586
|
-
class="
|
|
581
|
+
class="function-params-label"
|
|
587
582
|
>
|
|
588
|
-
<
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
583
|
+
<div
|
|
584
|
+
class="ui grey label"
|
|
585
|
+
>
|
|
586
|
+
<i
|
|
587
|
+
aria-hidden="true"
|
|
588
|
+
class="question circle outline icon"
|
|
589
|
+
/>
|
|
590
|
+
arg1
|
|
591
|
+
</div>
|
|
592
|
+
<div
|
|
593
|
+
class="ui grey label"
|
|
594
|
+
>
|
|
595
|
+
<i
|
|
596
|
+
aria-hidden="true"
|
|
597
|
+
class="question circle outline icon"
|
|
598
|
+
/>
|
|
599
|
+
arg2
|
|
600
|
+
</div>
|
|
593
601
|
</div>
|
|
594
602
|
</div>
|
|
595
603
|
</div>
|
|
604
|
+
<div
|
|
605
|
+
class="sub header"
|
|
606
|
+
/>
|
|
596
607
|
</div>
|
|
597
|
-
<div
|
|
598
|
-
class="sub header"
|
|
599
|
-
/>
|
|
600
608
|
</div>
|
|
601
609
|
</div>
|
|
602
610
|
</div>
|
|
@@ -754,41 +762,45 @@ exports[`<Expression /> shape function expression 1`] = `
|
|
|
754
762
|
style="pointer-events: all;"
|
|
755
763
|
>
|
|
756
764
|
<div
|
|
757
|
-
class="
|
|
765
|
+
class="text"
|
|
758
766
|
>
|
|
759
767
|
<div
|
|
760
|
-
class="
|
|
768
|
+
class="ui header"
|
|
761
769
|
>
|
|
762
|
-
<div>
|
|
763
|
-
eq
|
|
764
|
-
</div>
|
|
765
770
|
<div
|
|
766
|
-
class="
|
|
771
|
+
class="flex-center"
|
|
767
772
|
>
|
|
768
|
-
<div
|
|
769
|
-
|
|
770
|
-
>
|
|
771
|
-
<i
|
|
772
|
-
aria-hidden="true"
|
|
773
|
-
class="question circle outline icon"
|
|
774
|
-
/>
|
|
775
|
-
arg1
|
|
773
|
+
<div>
|
|
774
|
+
eq
|
|
776
775
|
</div>
|
|
777
776
|
<div
|
|
778
|
-
class="
|
|
777
|
+
class="function-params-label"
|
|
779
778
|
>
|
|
780
|
-
<
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
779
|
+
<div
|
|
780
|
+
class="ui grey label"
|
|
781
|
+
>
|
|
782
|
+
<i
|
|
783
|
+
aria-hidden="true"
|
|
784
|
+
class="question circle outline icon"
|
|
785
|
+
/>
|
|
786
|
+
arg1
|
|
787
|
+
</div>
|
|
788
|
+
<div
|
|
789
|
+
class="ui grey label"
|
|
790
|
+
>
|
|
791
|
+
<i
|
|
792
|
+
aria-hidden="true"
|
|
793
|
+
class="question circle outline icon"
|
|
794
|
+
/>
|
|
795
|
+
arg2
|
|
796
|
+
</div>
|
|
785
797
|
</div>
|
|
786
798
|
</div>
|
|
787
799
|
</div>
|
|
800
|
+
<div
|
|
801
|
+
class="sub header"
|
|
802
|
+
/>
|
|
788
803
|
</div>
|
|
789
|
-
<div
|
|
790
|
-
class="sub header"
|
|
791
|
-
/>
|
|
792
804
|
</div>
|
|
793
805
|
</div>
|
|
794
806
|
</div>
|
|
@@ -297,41 +297,45 @@ exports[`<FunctionArgs /> user interaction 1`] = `
|
|
|
297
297
|
style="pointer-events: all;"
|
|
298
298
|
>
|
|
299
299
|
<div
|
|
300
|
-
class="
|
|
300
|
+
class="text"
|
|
301
301
|
>
|
|
302
302
|
<div
|
|
303
|
-
class="
|
|
303
|
+
class="ui header"
|
|
304
304
|
>
|
|
305
|
-
<div>
|
|
306
|
-
eq
|
|
307
|
-
</div>
|
|
308
305
|
<div
|
|
309
|
-
class="
|
|
306
|
+
class="flex-center"
|
|
310
307
|
>
|
|
311
|
-
<div
|
|
312
|
-
|
|
313
|
-
>
|
|
314
|
-
<i
|
|
315
|
-
aria-hidden="true"
|
|
316
|
-
class="adjust icon"
|
|
317
|
-
/>
|
|
318
|
-
arg1
|
|
308
|
+
<div>
|
|
309
|
+
eq
|
|
319
310
|
</div>
|
|
320
311
|
<div
|
|
321
|
-
class="
|
|
312
|
+
class="function-params-label"
|
|
322
313
|
>
|
|
323
|
-
<
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
314
|
+
<div
|
|
315
|
+
class="ui teal label"
|
|
316
|
+
>
|
|
317
|
+
<i
|
|
318
|
+
aria-hidden="true"
|
|
319
|
+
class="adjust icon"
|
|
320
|
+
/>
|
|
321
|
+
arg1
|
|
322
|
+
</div>
|
|
323
|
+
<div
|
|
324
|
+
class="ui teal label"
|
|
325
|
+
>
|
|
326
|
+
<i
|
|
327
|
+
aria-hidden="true"
|
|
328
|
+
class="adjust icon"
|
|
329
|
+
/>
|
|
330
|
+
arg2
|
|
331
|
+
</div>
|
|
328
332
|
</div>
|
|
329
333
|
</div>
|
|
330
334
|
</div>
|
|
335
|
+
<div
|
|
336
|
+
class="sub header"
|
|
337
|
+
/>
|
|
331
338
|
</div>
|
|
332
|
-
<div
|
|
333
|
-
class="sub header"
|
|
334
|
-
/>
|
|
335
339
|
</div>
|
|
336
340
|
</div>
|
|
337
341
|
</div>
|