@truedat/cx 6.14.0 → 6.15.0
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 +4 -4
- package/src/configurations/components/Configurations.js +12 -7
- package/src/configurations/components/EditConfiguration.js +6 -1
- package/src/configurations/components/NewConfiguration.js +6 -1
- package/src/jobs/components/JobsView.js +25 -17
- package/src/sources/components/NewSource.js +6 -1
- package/src/sources/components/SourceHeader.js +12 -3
- package/src/sources/components/Sources.js +8 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/cx",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.15.0",
|
|
4
4
|
"description": "Truedat Web Connectors",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@testing-library/jest-dom": "^5.16.5",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "6.
|
|
37
|
+
"@truedat/test": "6.15.0",
|
|
38
38
|
"babel-jest": "^28.1.0",
|
|
39
39
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
40
40
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@apollo/client": "^3.7.1",
|
|
94
|
-
"@truedat/core": "6.
|
|
94
|
+
"@truedat/core": "6.15.0",
|
|
95
95
|
"lodash": "^4.17.21",
|
|
96
96
|
"match-sorter": "^6.3.1",
|
|
97
97
|
"moment": "^2.29.4",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"react-dom": ">= 16.8.6 < 17",
|
|
113
113
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "82830ba952924ed48c558abe06b3a01880c3e17e"
|
|
116
116
|
}
|
|
@@ -2,16 +2,15 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
|
-
import { useIntl } from "react-intl";
|
|
5
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { Link } from "react-router-dom";
|
|
7
7
|
import { Button, Grid, Header, Icon, Input, Segment } from "semantic-ui-react";
|
|
8
|
-
import { FormattedMessage } from "react-intl";
|
|
9
8
|
import { CONFIGURATION_CREATE } from "@truedat/core/routes";
|
|
10
9
|
import ConfigurationCards from "./ConfigurationCards";
|
|
11
10
|
|
|
12
11
|
const toSearchable = _.flow(_.deburr, _.toLower, _.trim);
|
|
13
12
|
|
|
14
|
-
const matchesFilter = filter =>
|
|
13
|
+
const matchesFilter = (filter) =>
|
|
15
14
|
_.flow(
|
|
16
15
|
_.at(["type", "external_id"]),
|
|
17
16
|
_.map(toSearchable),
|
|
@@ -41,7 +40,13 @@ export const Configurations = ({ configurations, configurationsLoading }) => {
|
|
|
41
40
|
to={CONFIGURATION_CREATE}
|
|
42
41
|
content={<FormattedMessage id="configurations.actions.create" />}
|
|
43
42
|
/>
|
|
44
|
-
<Icon
|
|
43
|
+
<Icon
|
|
44
|
+
name={formatMessage({
|
|
45
|
+
id: "configurations.header.icon",
|
|
46
|
+
defaultMessage: "plug",
|
|
47
|
+
})}
|
|
48
|
+
circular
|
|
49
|
+
/>
|
|
45
50
|
<Header.Content>
|
|
46
51
|
<FormattedMessage id="configurations.header" />
|
|
47
52
|
<Header.Subheader>
|
|
@@ -56,7 +61,7 @@ export const Configurations = ({ configurations, configurationsLoading }) => {
|
|
|
56
61
|
value={searchFilter}
|
|
57
62
|
icon={{ name: "search", link: true }}
|
|
58
63
|
placeholder={formatMessage({
|
|
59
|
-
id: "configurations.search.placeholder"
|
|
64
|
+
id: "configurations.search.placeholder",
|
|
60
65
|
})}
|
|
61
66
|
/>
|
|
62
67
|
</Grid.Column>
|
|
@@ -68,13 +73,13 @@ export const Configurations = ({ configurations, configurationsLoading }) => {
|
|
|
68
73
|
|
|
69
74
|
Configurations.propTypes = {
|
|
70
75
|
configurations: PropTypes.array,
|
|
71
|
-
configurationsLoading: PropTypes.bool
|
|
76
|
+
configurationsLoading: PropTypes.bool,
|
|
72
77
|
};
|
|
73
78
|
|
|
74
79
|
const mapStateToProps = ({ configurations, configurationsLoading }) => ({
|
|
75
80
|
configurations,
|
|
76
81
|
configurations,
|
|
77
|
-
configurationsLoading
|
|
82
|
+
configurationsLoading,
|
|
78
83
|
});
|
|
79
84
|
|
|
80
85
|
export default connect(mapStateToProps)(Configurations);
|
|
@@ -24,7 +24,12 @@ export const EditConfiguration = ({
|
|
|
24
24
|
/>
|
|
25
25
|
<Container as={Segment} text>
|
|
26
26
|
<Header as="h2">
|
|
27
|
-
<Icon
|
|
27
|
+
<Icon
|
|
28
|
+
name={formatMessage({
|
|
29
|
+
id: "configurations.header.icon",
|
|
30
|
+
defaultMessage: "plug",
|
|
31
|
+
})}
|
|
32
|
+
/>
|
|
28
33
|
<Header.Content>
|
|
29
34
|
<FormattedMessage id="configurations.actions.update" />
|
|
30
35
|
</Header.Content>
|
|
@@ -17,7 +17,12 @@ export const NewConfiguration = ({ createConfiguration }) => {
|
|
|
17
17
|
/>
|
|
18
18
|
<Container as={Segment} text>
|
|
19
19
|
<Header as="h2">
|
|
20
|
-
<Icon
|
|
20
|
+
<Icon
|
|
21
|
+
name={formatMessage({
|
|
22
|
+
id: "configurations.header.icon",
|
|
23
|
+
defaultMessage: "plug",
|
|
24
|
+
})}
|
|
25
|
+
/>
|
|
21
26
|
<Header.Content>
|
|
22
27
|
<FormattedMessage id="configurations.actions.create" />
|
|
23
28
|
</Header.Content>
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Header, Icon, Segment } from "semantic-ui-react";
|
|
3
|
-
import { FormattedMessage } from "react-intl";
|
|
3
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
4
|
import Jobs from "./Jobs";
|
|
5
5
|
|
|
6
|
-
export const JobsView = () =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<Header
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
export const JobsView = () => {
|
|
7
|
+
const { formatMessage } = useIntl();
|
|
8
|
+
return (
|
|
9
|
+
<Segment>
|
|
10
|
+
<Header as="h2">
|
|
11
|
+
<Icon
|
|
12
|
+
circular
|
|
13
|
+
name={formatMessage({
|
|
14
|
+
id: "jobs.header.icon",
|
|
15
|
+
defaultMessage: "cogs",
|
|
16
|
+
})}
|
|
17
|
+
/>
|
|
18
|
+
<Header.Content>
|
|
19
|
+
<FormattedMessage id="jobs.header" />
|
|
20
|
+
<Header.Subheader>
|
|
21
|
+
<FormattedMessage id="jobs.subheader" />
|
|
22
|
+
</Header.Subheader>
|
|
23
|
+
</Header.Content>
|
|
24
|
+
</Header>
|
|
25
|
+
<Segment attached="bottom">
|
|
26
|
+
<Jobs />
|
|
27
|
+
</Segment>
|
|
19
28
|
</Segment>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
);
|
|
30
|
+
};
|
|
23
31
|
export default JobsView;
|
|
@@ -16,7 +16,12 @@ export const NewSource = ({ createSource }) => {
|
|
|
16
16
|
/>
|
|
17
17
|
<Container as={Segment} text>
|
|
18
18
|
<Header as="h2">
|
|
19
|
-
<Icon
|
|
19
|
+
<Icon
|
|
20
|
+
name={formatMessage({
|
|
21
|
+
id: "sources.header.icon",
|
|
22
|
+
defaultMessage: "plug",
|
|
23
|
+
})}
|
|
24
|
+
/>
|
|
20
25
|
<Header.Content>
|
|
21
26
|
<FormattedMessage id="sources.actions.create" />
|
|
22
27
|
</Header.Content>
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
+
import { useIntl } from "react-intl";
|
|
4
5
|
import { Header, Icon, Grid } from "semantic-ui-react";
|
|
5
6
|
import SourceActions from "./SourceActions";
|
|
6
7
|
|
|
7
|
-
export const SourceHeader = ({ source }) =>
|
|
8
|
-
|
|
8
|
+
export const SourceHeader = ({ source }) => {
|
|
9
|
+
const { formatMessage } = useIntl();
|
|
10
|
+
return _.isEmpty(source) ? null : (
|
|
9
11
|
<Grid>
|
|
10
12
|
<Grid.Column width={8}>
|
|
11
13
|
<Header as="h2">
|
|
12
|
-
<Icon
|
|
14
|
+
<Icon
|
|
15
|
+
circular
|
|
16
|
+
name={formatMessage({
|
|
17
|
+
id: "sources.header.icon",
|
|
18
|
+
defaultMessage: "plug",
|
|
19
|
+
})}
|
|
20
|
+
/>
|
|
13
21
|
<Header.Content>
|
|
14
22
|
{source.externalId}
|
|
15
23
|
<Header.Subheader>{source.type}</Header.Subheader>
|
|
@@ -21,6 +29,7 @@ export const SourceHeader = ({ source }) =>
|
|
|
21
29
|
</Grid.Column>
|
|
22
30
|
</Grid>
|
|
23
31
|
);
|
|
32
|
+
};
|
|
24
33
|
|
|
25
34
|
SourceHeader.propTypes = {
|
|
26
35
|
source: PropTypes.object.isRequired,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { matchSorter } from "match-sorter";
|
|
4
|
-
import { useIntl } from "react-intl";
|
|
5
4
|
import { Link } from "react-router-dom";
|
|
6
5
|
import { Button, Header, Icon, Input, Segment } from "semantic-ui-react";
|
|
7
|
-
import { FormattedMessage } from "react-intl";
|
|
6
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
8
7
|
import { useQuery } from "@apollo/client";
|
|
9
8
|
import { Loading } from "@truedat/core/components";
|
|
10
9
|
import { SOURCES_NEW } from "@truedat/core/routes";
|
|
@@ -47,7 +46,13 @@ export const Sources = () => {
|
|
|
47
46
|
to={SOURCES_NEW}
|
|
48
47
|
content={formatMessage({ id: "sources.actions.create" })}
|
|
49
48
|
/>
|
|
50
|
-
<Icon
|
|
49
|
+
<Icon
|
|
50
|
+
name={formatMessage({
|
|
51
|
+
id: "sources.header.icon",
|
|
52
|
+
defaultMessage: "plug",
|
|
53
|
+
})}
|
|
54
|
+
circular
|
|
55
|
+
/>
|
|
51
56
|
<Header.Content>
|
|
52
57
|
<FormattedMessage id="sources.header" />
|
|
53
58
|
<Header.Subheader>
|