@truedat/bg 7.4.2 → 7.4.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 +6 -6
- package/src/concepts/components/ConceptArchive.js +3 -3
- package/src/concepts/components/ConceptArchiveRow.js +3 -3
- package/src/concepts/components/__tests__/ConceptArchive.spec.js +3 -3
- package/src/concepts/components/__tests__/__snapshots__/ConceptArchive.spec.js.snap +2 -2
- package/src/concepts/components/__tests__/__snapshots__/ConceptArchiveRow.spec.js.snap +1 -7
- package/src/concepts/reducers/__tests__/conceptArchive.spec.js +4 -4
- package/src/concepts/reducers/conceptArchive.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.4",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
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": "7.4.
|
|
37
|
+
"@truedat/test": "7.4.4",
|
|
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",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@truedat/core": "7.4.
|
|
90
|
-
"@truedat/df": "7.4.
|
|
91
|
-
"@truedat/lm": "7.4.
|
|
89
|
+
"@truedat/core": "7.4.4",
|
|
90
|
+
"@truedat/df": "7.4.4",
|
|
91
|
+
"@truedat/lm": "7.4.4",
|
|
92
92
|
"decode-uri-component": "^0.2.2",
|
|
93
93
|
"file-saver": "^2.0.5",
|
|
94
94
|
"moment": "^2.29.4",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"react-dom": ">= 16.8.6 < 17",
|
|
112
112
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "d509869066c00469da5505d0b80a982eb1572f6a"
|
|
115
115
|
}
|
|
@@ -29,7 +29,7 @@ export const ConceptArchive = ({ conceptArchive }) => (
|
|
|
29
29
|
/>
|
|
30
30
|
<Table.HeaderCell
|
|
31
31
|
content={
|
|
32
|
-
<FormattedMessage id="concepts.props.
|
|
32
|
+
<FormattedMessage id="concepts.props.updated_at" />
|
|
33
33
|
}
|
|
34
34
|
/>
|
|
35
35
|
</Table.Row>
|
|
@@ -48,11 +48,11 @@ export const ConceptArchive = ({ conceptArchive }) => (
|
|
|
48
48
|
);
|
|
49
49
|
|
|
50
50
|
ConceptArchive.propTypes = {
|
|
51
|
-
conceptArchive: PropTypes.array
|
|
51
|
+
conceptArchive: PropTypes.array,
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
const mapStateToProps = ({ conceptArchive }) => ({
|
|
55
|
-
conceptArchive
|
|
55
|
+
conceptArchive,
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
export default connect(mapStateToProps)(ConceptArchive);
|
|
@@ -11,7 +11,7 @@ export const ConceptArchiveRow = ({
|
|
|
11
11
|
business_concept_id,
|
|
12
12
|
id,
|
|
13
13
|
status,
|
|
14
|
-
|
|
14
|
+
updated_at,
|
|
15
15
|
last_change_by,
|
|
16
16
|
version,
|
|
17
17
|
}) => {
|
|
@@ -32,7 +32,7 @@ export const ConceptArchiveRow = ({
|
|
|
32
32
|
/>
|
|
33
33
|
<Table.Cell content={version} />
|
|
34
34
|
<Table.Cell content={_.propOr("", "full_name")(last_change_by)} />
|
|
35
|
-
<Table.Cell content={<DateTime value={
|
|
35
|
+
<Table.Cell content={<DateTime value={updated_at} />} />
|
|
36
36
|
</Table.Row>
|
|
37
37
|
);
|
|
38
38
|
};
|
|
@@ -41,7 +41,7 @@ ConceptArchiveRow.propTypes = {
|
|
|
41
41
|
business_concept_id: PropTypes.number,
|
|
42
42
|
id: PropTypes.number,
|
|
43
43
|
status: PropTypes.string,
|
|
44
|
-
|
|
44
|
+
updated_at: PropTypes.string,
|
|
45
45
|
last_change_by: PropTypes.string,
|
|
46
46
|
version: PropTypes.number,
|
|
47
47
|
};
|
|
@@ -8,10 +8,10 @@ describe("<ConceptArchive />", () => {
|
|
|
8
8
|
{
|
|
9
9
|
id: 123,
|
|
10
10
|
status: "status",
|
|
11
|
-
|
|
11
|
+
updated_at: "2018-06-27T07:32:53.154377Z",
|
|
12
12
|
last_change_by: "maixu",
|
|
13
|
-
version: 1
|
|
14
|
-
}
|
|
13
|
+
version: 1,
|
|
14
|
+
},
|
|
15
15
|
];
|
|
16
16
|
const props = { conceptArchive };
|
|
17
17
|
const wrapper = shallow(<ConceptArchive {...props} />);
|
|
@@ -46,7 +46,7 @@ exports[`<ConceptArchive /> matches the latest snapshot 1`] = `
|
|
|
46
46
|
as="th"
|
|
47
47
|
content={
|
|
48
48
|
<Memo(MemoizedFormattedMessage)
|
|
49
|
-
id="concepts.props.
|
|
49
|
+
id="concepts.props.updated_at"
|
|
50
50
|
/>
|
|
51
51
|
}
|
|
52
52
|
/>
|
|
@@ -58,9 +58,9 @@ exports[`<ConceptArchive /> matches the latest snapshot 1`] = `
|
|
|
58
58
|
<ConceptArchiveRow
|
|
59
59
|
id={123}
|
|
60
60
|
key="0"
|
|
61
|
-
last_change_at="2018-06-27T07:32:53.154377Z"
|
|
62
61
|
last_change_by="maixu"
|
|
63
62
|
status="status"
|
|
63
|
+
updated_at="2018-06-27T07:32:53.154377Z"
|
|
64
64
|
version={1}
|
|
65
65
|
/>
|
|
66
66
|
</TableBody>
|
|
@@ -21,15 +21,15 @@ describe("reducers: conceptArchive", () => {
|
|
|
21
21
|
{
|
|
22
22
|
id: 123,
|
|
23
23
|
status: "status",
|
|
24
|
-
|
|
24
|
+
updated_at: "2018-06-27T07:32:53.154377Z",
|
|
25
25
|
last_change_by: "maixu",
|
|
26
|
-
version: 1
|
|
27
|
-
}
|
|
26
|
+
version: 1,
|
|
27
|
+
},
|
|
28
28
|
];
|
|
29
29
|
expect(
|
|
30
30
|
conceptArchive(fooState, {
|
|
31
31
|
type: fetchConceptArchive.SUCCESS,
|
|
32
|
-
payload: { data }
|
|
32
|
+
payload: { data },
|
|
33
33
|
})
|
|
34
34
|
).toEqual(data);
|
|
35
35
|
});
|
|
@@ -6,10 +6,10 @@ const initialState = [];
|
|
|
6
6
|
const pickFields = _.pick([
|
|
7
7
|
"id",
|
|
8
8
|
"business_concept_id",
|
|
9
|
-
"
|
|
9
|
+
"updated_at",
|
|
10
10
|
"last_change_by",
|
|
11
11
|
"status",
|
|
12
|
-
"version"
|
|
12
|
+
"version",
|
|
13
13
|
]);
|
|
14
14
|
|
|
15
15
|
const conceptArchive = (state = initialState, { type, payload }) => {
|