@truedat/dq 8.11.2 → 8.11.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "8.11.
|
|
3
|
+
"version": "8.11.3",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -55,42 +55,42 @@
|
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@testing-library/dom": "^10.4.
|
|
59
|
-
"@testing-library/jest-dom": "^6.6.
|
|
60
|
-
"@testing-library/react": "^16.3.
|
|
61
|
-
"@testing-library/user-event": "^14.6.
|
|
62
|
-
"@truedat/test": "8.11.
|
|
58
|
+
"@testing-library/dom": "^10.4.1",
|
|
59
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
60
|
+
"@testing-library/react": "^16.3.3",
|
|
61
|
+
"@testing-library/user-event": "^14.6.7",
|
|
62
|
+
"@truedat/test": "8.11.3",
|
|
63
63
|
"identity-obj-proxy": "^3.0.0",
|
|
64
64
|
"jest": "^29.7.0",
|
|
65
65
|
"redux-saga-test-plan": "^4.0.6"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@apollo/client": "^3.13.
|
|
69
|
-
"axios": "^1.15.
|
|
68
|
+
"@apollo/client": "^3.13.9",
|
|
69
|
+
"axios": "^1.15.2",
|
|
70
70
|
"file-saver": "^2.0.5",
|
|
71
71
|
"graphql": "^16.11.0",
|
|
72
72
|
"is-hotkey": "^0.2.0",
|
|
73
73
|
"is-url": "^1.2.4",
|
|
74
|
-
"lodash": "^4.17.
|
|
74
|
+
"lodash": "^4.17.23",
|
|
75
75
|
"moment": "^2.30.1",
|
|
76
76
|
"path-to-regexp": "^8.2.0",
|
|
77
77
|
"prop-types": "^15.8.1",
|
|
78
78
|
"query-string": "^7.1.3",
|
|
79
|
-
"react": "^19.2.
|
|
79
|
+
"react": "^19.2.8",
|
|
80
80
|
"react-csv": "^2.2.2",
|
|
81
|
-
"react-dom": "^19.2.
|
|
81
|
+
"react-dom": "^19.2.8",
|
|
82
82
|
"react-dropzone": "^14.3.8",
|
|
83
83
|
"react-hook-form": "^7.56.4",
|
|
84
|
-
"react-intl": "^7.1.
|
|
85
|
-
"react-moment": "^1.1.
|
|
84
|
+
"react-intl": "^7.1.14",
|
|
85
|
+
"react-moment": "^1.1.4",
|
|
86
86
|
"react-redux": "^9.2.0",
|
|
87
|
-
"react-router": "^8.3.
|
|
87
|
+
"react-router": "^8.3.1",
|
|
88
88
|
"redux": "^5.0.1",
|
|
89
89
|
"redux-saga": "^1.3.0",
|
|
90
90
|
"redux-saga-routines": "^3.2.3",
|
|
91
91
|
"reselect": "^5.1.1",
|
|
92
92
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
93
|
-
"swr": "^2.3.
|
|
93
|
+
"swr": "^2.3.8"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "c0d3c1ed5c9480e6207a6e696d8941043c34de2f"
|
|
96
96
|
}
|
|
@@ -4,10 +4,26 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
5
|
import { connect } from "react-redux";
|
|
6
6
|
import { Grid, Label, Segment, List } from "semantic-ui-react";
|
|
7
|
+
import {
|
|
8
|
+
useDomainPath,
|
|
9
|
+
useDomains,
|
|
10
|
+
} from "@truedat/bg/taxonomy/components/DomainPath";
|
|
7
11
|
import InformationSummary from "./InformationSummary";
|
|
8
12
|
import ImplementationSummary from "./ImplementationSummary";
|
|
9
13
|
import RawContent from "./RawContent";
|
|
10
14
|
|
|
15
|
+
const DomainBreadcrumb = ({ domain }) => {
|
|
16
|
+
const path = useDomainPath(domain);
|
|
17
|
+
const breadcrumb = _.isEmpty(path)
|
|
18
|
+
? _.flow(
|
|
19
|
+
_.map("name"),
|
|
20
|
+
_.union([domain.name]),
|
|
21
|
+
_.join(" > "),
|
|
22
|
+
)(domain.parents)
|
|
23
|
+
: _.flow(_.map("name"), _.join(" > "))(path);
|
|
24
|
+
return <>{breadcrumb}</>;
|
|
25
|
+
};
|
|
26
|
+
|
|
11
27
|
const DynamicFormViewer = lazy(
|
|
12
28
|
() => import("@truedat/df/components/DynamicFormViewer"),
|
|
13
29
|
);
|
|
@@ -20,6 +36,7 @@ export const RuleImplementationProperties = ({
|
|
|
20
36
|
templateImpl,
|
|
21
37
|
ruleImplementationLoaded,
|
|
22
38
|
}) => {
|
|
39
|
+
useDomains();
|
|
23
40
|
return _.isEmpty(ruleImplementation) &&
|
|
24
41
|
_.isEmpty(ruleImplementationRaw) ? null : (
|
|
25
42
|
<Segment attached="bottom">
|
|
@@ -49,7 +66,9 @@ export const RuleImplementationProperties = ({
|
|
|
49
66
|
<List.Header>
|
|
50
67
|
<FormattedMessage id="quality.domain" />
|
|
51
68
|
</List.Header>
|
|
52
|
-
<List.Content>
|
|
69
|
+
<List.Content>
|
|
70
|
+
<DomainBreadcrumb domain={ruleImplementation.domain} />
|
|
71
|
+
</List.Content>
|
|
53
72
|
</List.Item>
|
|
54
73
|
</List>
|
|
55
74
|
)}
|
|
@@ -2,18 +2,33 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { Header, Icon, Segment, List } from "semantic-ui-react";
|
|
5
|
+
import {
|
|
6
|
+
useDomainPath,
|
|
7
|
+
useDomains,
|
|
8
|
+
} from "@truedat/bg/taxonomy/components/DomainPath";
|
|
9
|
+
|
|
10
|
+
const DomainItem = ({ domain }) => {
|
|
11
|
+
const path = useDomainPath(domain);
|
|
12
|
+
const breadcrumb = _.isEmpty(path)
|
|
13
|
+
? _.flow(
|
|
14
|
+
_.map("name"),
|
|
15
|
+
_.union([domain.name]),
|
|
16
|
+
_.join(" > "),
|
|
17
|
+
)(domain.parents)
|
|
18
|
+
: _.flow(_.map("name"), _.join(" > "))(path);
|
|
19
|
+
return <List.Item key={domain.id}>{breadcrumb}</List.Item>;
|
|
20
|
+
};
|
|
5
21
|
|
|
6
22
|
const domainDecorator = (domains) => (
|
|
7
23
|
<List>
|
|
8
|
-
{domains.map((
|
|
9
|
-
<
|
|
10
|
-
{_.flow(_.map("name"), _.union([name]), _.join(" > "))(parents)}
|
|
11
|
-
</List.Item>
|
|
24
|
+
{domains.map((domain) => (
|
|
25
|
+
<DomainItem key={domain.id} domain={domain} />
|
|
12
26
|
))}
|
|
13
27
|
</List>
|
|
14
28
|
);
|
|
15
29
|
|
|
16
30
|
export default function TaxonomySummary({ ruleImplementation }) {
|
|
31
|
+
useDomains();
|
|
17
32
|
const dataStructures = ruleImplementation.data_structures || [];
|
|
18
33
|
|
|
19
34
|
const taxonomy = _.flow(
|
|
@@ -402,7 +402,9 @@ exports[`<RuleForm /> matches the latest snapshot (edit mode) 1`] = `
|
|
|
402
402
|
<td
|
|
403
403
|
class=""
|
|
404
404
|
>
|
|
405
|
-
|
|
405
|
+
<span>
|
|
406
|
+
bar
|
|
407
|
+
</span>
|
|
406
408
|
</td>
|
|
407
409
|
<td
|
|
408
410
|
class=""
|
|
@@ -921,7 +923,9 @@ exports[`<RuleForm /> matches the latest snapshot 1`] = `
|
|
|
921
923
|
<td
|
|
922
924
|
class=""
|
|
923
925
|
>
|
|
924
|
-
|
|
926
|
+
<span>
|
|
927
|
+
bar
|
|
928
|
+
</span>
|
|
925
929
|
</td>
|
|
926
930
|
<td
|
|
927
931
|
class=""
|
|
@@ -2,6 +2,7 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import { Label } from "semantic-ui-react";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
4
|
import { createSelector } from "reselect";
|
|
5
|
+
import { DomainTooltip } from "@truedat/bg/taxonomy/components/DomainPath";
|
|
5
6
|
import RuleLink from "../components/RuleLink";
|
|
6
7
|
|
|
7
8
|
const translateDecorator = (id) => <FormattedMessage id={id} />;
|
|
@@ -34,7 +35,8 @@ export const defaultRuleColumns = () => [
|
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
name: "domain",
|
|
37
|
-
fieldSelector: _.path("domain
|
|
38
|
+
fieldSelector: _.path("domain"),
|
|
39
|
+
fieldDecorator: (domain) => <DomainTooltip domain={domain} />,
|
|
38
40
|
sort: { name: "domain.name.raw" },
|
|
39
41
|
width: 3,
|
|
40
42
|
},
|