@truedat/core 4.48.13 → 4.49.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/CHANGELOG.md +7 -0
- package/package.json +2 -2
- package/src/components/AdminMenu.js +4 -4
- package/src/components/CatalogMenu.js +1 -1
- package/src/components/__tests__/AdminMenu.spec.js +8 -6
- package/src/components/__tests__/DomainSelector.spec.js +1 -1
- package/src/components/__tests__/__snapshots__/AdminMenu.spec.js.snap +111 -44
- package/src/messages/en.js +1 -1
- package/src/messages/es.js +1 -1
- package/src/routes.js +27 -27
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.49.0",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"react-dom": ">= 16.8.6 < 17",
|
|
113
113
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "7260126df6067fe59b11c5dc2b94dbdd881fed7b"
|
|
116
116
|
}
|
|
@@ -3,20 +3,20 @@ import { useAuthorized } from "../hooks";
|
|
|
3
3
|
import {
|
|
4
4
|
CONFIGURATIONS,
|
|
5
5
|
JOBS,
|
|
6
|
+
RELATION_TAGS,
|
|
6
7
|
SOURCES,
|
|
7
|
-
|
|
8
|
+
SUBSCRIPTIONS,
|
|
8
9
|
TEMPLATES,
|
|
9
|
-
SUBSCRIPTIONS
|
|
10
10
|
} from "../routes";
|
|
11
11
|
import Submenu from "./Submenu";
|
|
12
12
|
|
|
13
13
|
const items = [
|
|
14
14
|
{ name: "templates", routes: [TEMPLATES] },
|
|
15
|
-
{ name: "
|
|
15
|
+
{ name: "relations", routes: [RELATION_TAGS] },
|
|
16
16
|
{ name: "subscriptions", routes: [SUBSCRIPTIONS] },
|
|
17
17
|
{ name: "sources", routes: [SOURCES] },
|
|
18
18
|
{ name: "jobs", routes: [JOBS] },
|
|
19
|
-
{ name: "configurations", routes: [CONFIGURATIONS] }
|
|
19
|
+
{ name: "configurations", routes: [CONFIGURATIONS] },
|
|
20
20
|
];
|
|
21
21
|
|
|
22
22
|
export const AdminMenu = () => {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { render } from "@truedat/test/render";
|
|
3
|
+
import AdminMenu from "../AdminMenu";
|
|
4
4
|
|
|
5
5
|
jest.mock("../../hooks", () => ({
|
|
6
|
-
|
|
7
|
-
useAuthorized: jest.fn(() => true)
|
|
6
|
+
...jest.requireActual("../../hooks"),
|
|
7
|
+
useAuthorized: jest.fn(() => true),
|
|
8
8
|
}));
|
|
9
9
|
|
|
10
|
+
const renderOpts = { state: { sidebarVisible: true } };
|
|
11
|
+
|
|
10
12
|
describe("<AdminMenu />", () => {
|
|
11
13
|
it("matches the latest snapshot", () => {
|
|
12
|
-
const
|
|
13
|
-
expect(
|
|
14
|
+
const { container } = render(<AdminMenu />, renderOpts);
|
|
15
|
+
expect(container).toMatchSnapshot();
|
|
14
16
|
});
|
|
15
17
|
});
|
|
@@ -5,7 +5,7 @@ import { render } from "@truedat/test/render";
|
|
|
5
5
|
import { DOMAINS_QUERY } from "../../api/queries";
|
|
6
6
|
import DomainSelector from "../DomainSelector";
|
|
7
7
|
|
|
8
|
-
const action = "
|
|
8
|
+
const action = "manageTags";
|
|
9
9
|
|
|
10
10
|
const domainsMock = {
|
|
11
11
|
request: { query: DOMAINS_QUERY, variables: { action } },
|
|
@@ -1,48 +1,115 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<AdminMenu /> matches the latest snapshot 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
4
|
+
<div>
|
|
5
|
+
<div>
|
|
6
|
+
<div
|
|
7
|
+
aria-expanded="false"
|
|
8
|
+
class="ui item dropdown"
|
|
9
|
+
role="listbox"
|
|
10
|
+
tabindex="0"
|
|
11
|
+
>
|
|
12
|
+
<a
|
|
13
|
+
class="ui"
|
|
14
|
+
href="/templates"
|
|
15
|
+
>
|
|
16
|
+
<i
|
|
17
|
+
aria-hidden="true"
|
|
18
|
+
class="setting large icon"
|
|
19
|
+
/>
|
|
20
|
+
Administration
|
|
21
|
+
</a>
|
|
22
|
+
<div
|
|
23
|
+
class="menu transition"
|
|
24
|
+
>
|
|
25
|
+
<div
|
|
26
|
+
class="header selectable"
|
|
27
|
+
>
|
|
28
|
+
Administration
|
|
29
|
+
</div>
|
|
30
|
+
<div
|
|
31
|
+
class="divider"
|
|
32
|
+
/>
|
|
33
|
+
<a
|
|
34
|
+
aria-checked="false"
|
|
35
|
+
class="item"
|
|
36
|
+
href="/templates"
|
|
37
|
+
name="templates"
|
|
38
|
+
role="option"
|
|
39
|
+
>
|
|
40
|
+
<span
|
|
41
|
+
class="text"
|
|
42
|
+
>
|
|
43
|
+
Templates
|
|
44
|
+
</span>
|
|
45
|
+
</a>
|
|
46
|
+
<a
|
|
47
|
+
aria-checked="false"
|
|
48
|
+
class="item"
|
|
49
|
+
href="/relationTags"
|
|
50
|
+
name="relations"
|
|
51
|
+
role="option"
|
|
52
|
+
>
|
|
53
|
+
<span
|
|
54
|
+
class="text"
|
|
55
|
+
>
|
|
56
|
+
Relations
|
|
57
|
+
</span>
|
|
58
|
+
</a>
|
|
59
|
+
<a
|
|
60
|
+
aria-checked="false"
|
|
61
|
+
class="item"
|
|
62
|
+
href="/subscriptions"
|
|
63
|
+
name="subscriptions"
|
|
64
|
+
role="option"
|
|
65
|
+
>
|
|
66
|
+
<span
|
|
67
|
+
class="text"
|
|
68
|
+
>
|
|
69
|
+
Subscriptions
|
|
70
|
+
</span>
|
|
71
|
+
</a>
|
|
72
|
+
<a
|
|
73
|
+
aria-checked="false"
|
|
74
|
+
class="item"
|
|
75
|
+
href="/sources"
|
|
76
|
+
name="sources"
|
|
77
|
+
role="option"
|
|
78
|
+
>
|
|
79
|
+
<span
|
|
80
|
+
class="text"
|
|
81
|
+
>
|
|
82
|
+
Sources
|
|
83
|
+
</span>
|
|
84
|
+
</a>
|
|
85
|
+
<a
|
|
86
|
+
aria-checked="false"
|
|
87
|
+
class="item"
|
|
88
|
+
href="/jobs"
|
|
89
|
+
name="jobs"
|
|
90
|
+
role="option"
|
|
91
|
+
>
|
|
92
|
+
<span
|
|
93
|
+
class="text"
|
|
94
|
+
>
|
|
95
|
+
Jobs
|
|
96
|
+
</span>
|
|
97
|
+
</a>
|
|
98
|
+
<a
|
|
99
|
+
aria-checked="false"
|
|
100
|
+
class="item"
|
|
101
|
+
href="/configurations"
|
|
102
|
+
name="configurations"
|
|
103
|
+
role="option"
|
|
104
|
+
>
|
|
105
|
+
<span
|
|
106
|
+
class="text"
|
|
107
|
+
>
|
|
108
|
+
Configuration
|
|
109
|
+
</span>
|
|
110
|
+
</a>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
48
115
|
`;
|
package/src/messages/en.js
CHANGED
|
@@ -100,6 +100,7 @@ export default {
|
|
|
100
100
|
"sidemenu.quality_dashboard": "Quality Dashboard",
|
|
101
101
|
"sidemenu.quality": "Data Quality",
|
|
102
102
|
"sidemenu.referenceData": "Reference Data",
|
|
103
|
+
"sidemenu.relations": "Relations",
|
|
103
104
|
"sidemenu.roles": "Roles",
|
|
104
105
|
"sidemenu.rules": "Quality Rules",
|
|
105
106
|
"sidemenu.search": "Search",
|
|
@@ -109,7 +110,6 @@ export default {
|
|
|
109
110
|
"sidemenu.structures": "Structures",
|
|
110
111
|
"sidemenu.structures_upload_events": "My loads",
|
|
111
112
|
"sidemenu.subscriptions": "Subscriptions",
|
|
112
|
-
"sidemenu.tags": "Relations",
|
|
113
113
|
"sidemenu.taxonomy": "Taxonomy",
|
|
114
114
|
"sidemenu.templates": "Templates",
|
|
115
115
|
"sidemenu.users": "Users",
|
package/src/messages/es.js
CHANGED
|
@@ -103,6 +103,7 @@ export default {
|
|
|
103
103
|
"sidemenu.quality_dashboard": "Dashboard de Calidad",
|
|
104
104
|
"sidemenu.quality": "Calidad",
|
|
105
105
|
"sidemenu.referenceData": "Datos de referencia",
|
|
106
|
+
"sidemenu.relations": "Relaciones",
|
|
106
107
|
"sidemenu.roles": "Roles",
|
|
107
108
|
"sidemenu.rules": "Reglas",
|
|
108
109
|
"sidemenu.search": "Búsqueda",
|
|
@@ -112,7 +113,6 @@ export default {
|
|
|
112
113
|
"sidemenu.structures": "Estructuras",
|
|
113
114
|
"sidemenu.structures_upload_events": "Mis cargas",
|
|
114
115
|
"sidemenu.subscriptions": "Suscripciones",
|
|
115
|
-
"sidemenu.tags": "Relaciones",
|
|
116
116
|
"sidemenu.taxonomy": "Dominios",
|
|
117
117
|
"sidemenu.templates": "Plantillas",
|
|
118
118
|
"sidemenu.users": "Usuarios",
|
package/src/routes.js
CHANGED
|
@@ -40,8 +40,8 @@ export const DOMAIN_CONCEPTS = "/domains/:id/concepts";
|
|
|
40
40
|
export const DOMAIN_EDIT = "/domains/:id/edit";
|
|
41
41
|
export const DOMAIN_MEMBERS = "/domains/:id/members";
|
|
42
42
|
export const DOMAIN_MEMBERS_NEW = "/domains/:id/members/new";
|
|
43
|
-
export const DOMAIN_STRUCTURES = "/domains/:id/structures";
|
|
44
43
|
export const DOMAIN_NEW = "/domains/:id/new";
|
|
44
|
+
export const DOMAIN_STRUCTURES = "/domains/:id/structures";
|
|
45
45
|
export const EXECUTION_GROUP = "/executionGroups/:id";
|
|
46
46
|
export const GRANTS = "/grants";
|
|
47
47
|
export const GRANTS_REQUESTS_CHECKOUT = "/grants_requests/checkout";
|
|
@@ -54,38 +54,38 @@ export const GROUP = "/groups/:id";
|
|
|
54
54
|
export const GROUPS = "/groups";
|
|
55
55
|
export const GROUP_CREATE = "/groups/new";
|
|
56
56
|
export const GROUP_EDIT = "/groups/:id/edit";
|
|
57
|
+
export const IMPLEMENTATION = "/implementations/:implementation_id(\\d+)";
|
|
57
58
|
export const IMPLEMENTATIONS = "/implementations";
|
|
58
59
|
export const IMPLEMENTATIONS_PENDING = "/pendingImplementations";
|
|
60
|
+
export const IMPLEMENTATION_CLONE = "/implementations/:implementation_id/clone";
|
|
59
61
|
export const IMPLEMENTATION_CONCEPT_LINKS =
|
|
60
62
|
"/implementations/:implementation_id/links/concepts";
|
|
61
63
|
export const IMPLEMENTATION_CONCEPT_LINKS_NEW =
|
|
62
64
|
"/implementations/:implementation_id/links/concepts/new";
|
|
63
|
-
export const
|
|
64
|
-
"/implementations/:implementation_id/structures";
|
|
65
|
-
export const IMPLEMENTATION_STRUCTURES_NEW =
|
|
66
|
-
"/implementations/:implementation_id/structures/new";
|
|
67
|
-
export const IMPLEMENTATION_NEW = "/implementations/new";
|
|
68
|
-
export const IMPLEMENTATION_NEW_RAW = "/implementations/new_raw";
|
|
69
|
-
export const IMPLEMENTATION = "/implementations/:implementation_id(\\d+)";
|
|
65
|
+
export const IMPLEMENTATION_EDIT = "/implementations/:implementation_id/edit";
|
|
70
66
|
export const IMPLEMENTATION_EVENTS =
|
|
71
67
|
"/implementations/:implementation_id/events";
|
|
72
|
-
export const IMPLEMENTATION_EDIT = "/implementations/:implementation_id/edit";
|
|
73
|
-
export const IMPLEMENTATION_CLONE = "/implementations/:implementation_id/clone";
|
|
74
|
-
export const IMPLEMENTATION_MOVE = "/implementations/:implementation_id/move";
|
|
75
68
|
export const IMPLEMENTATION_HISTORY =
|
|
76
69
|
"/implementations/:implementation_id/history";
|
|
77
|
-
export const
|
|
78
|
-
|
|
79
|
-
export const
|
|
80
|
-
"/implementations/:implementation_id/results/:rule_result_id/segment_results";
|
|
81
|
-
export const IMPLEMENTATION_RESULT_REMEDIATION_PLAN =
|
|
82
|
-
"/implementations/:implementation_id/results/:rule_result_id/remediation_plan";
|
|
83
|
-
export const IMPLEMENTATION_RESULT_DETAILS_REMEDIATION_PLAN =
|
|
84
|
-
"/implementations/:implementation_id/results/:rule_result_id/remediation_plan";
|
|
70
|
+
export const IMPLEMENTATION_MOVE = "/implementations/:implementation_id/move";
|
|
71
|
+
export const IMPLEMENTATION_NEW = "/implementations/new";
|
|
72
|
+
export const IMPLEMENTATION_NEW_RAW = "/implementations/new_raw";
|
|
85
73
|
export const IMPLEMENTATION_RESULTS =
|
|
86
74
|
"/implementations/:implementation_id/results";
|
|
87
75
|
export const IMPLEMENTATION_RESULTS_DETAILS =
|
|
88
76
|
"/implementations/:implementation_id/detail";
|
|
77
|
+
export const IMPLEMENTATION_RESULT_DETAILS =
|
|
78
|
+
"/implementations/:implementation_id/results/:rule_result_id";
|
|
79
|
+
export const IMPLEMENTATION_RESULT_DETAILS_REMEDIATION_PLAN =
|
|
80
|
+
"/implementations/:implementation_id/results/:rule_result_id/remediation_plan";
|
|
81
|
+
export const IMPLEMENTATION_RESULT_REMEDIATION_PLAN =
|
|
82
|
+
"/implementations/:implementation_id/results/:rule_result_id/remediation_plan";
|
|
83
|
+
export const IMPLEMENTATION_RESULT_SEGMENTS_RESULTS =
|
|
84
|
+
"/implementations/:implementation_id/results/:rule_result_id/segment_results";
|
|
85
|
+
export const IMPLEMENTATION_STRUCTURES =
|
|
86
|
+
"/implementations/:implementation_id/structures";
|
|
87
|
+
export const IMPLEMENTATION_STRUCTURES_NEW =
|
|
88
|
+
"/implementations/:implementation_id/structures/new";
|
|
89
89
|
export const INGEST = "/ingests/:id";
|
|
90
90
|
export const INGESTS = "/ingests";
|
|
91
91
|
export const INGESTS_NEW = "/ingests/new";
|
|
@@ -113,10 +113,12 @@ export const PROFILE_EXECUTION =
|
|
|
113
113
|
"/profileGroups/:group_id/profileExecutions/:id";
|
|
114
114
|
export const PROFILE_GROUP = "/profileGroups/:id";
|
|
115
115
|
export const QUALITY_DASHBOARD = "/quality_dashboard";
|
|
116
|
+
export const REFERENCE_DATASET = "/referenceDatasets/:id";
|
|
116
117
|
export const REFERENCE_DATASETS = "/referenceDatasets";
|
|
117
118
|
export const REFERENCE_DATASET_EDIT = "/referenceDatasets/:id/edit";
|
|
118
119
|
export const REFERENCE_DATASET_NEW = "/referenceDatasets/new";
|
|
119
|
-
export const
|
|
120
|
+
export const RELATION_TAGS = "/relationTags";
|
|
121
|
+
export const RELATION_TAGS_NEW = "/relationTags/new";
|
|
120
122
|
export const REMEDIATION_EDIT =
|
|
121
123
|
"/rules/:id/implementations/:implementation_id/results/:rule_result_id/remediation/edit";
|
|
122
124
|
export const REMEDIATION_NEW =
|
|
@@ -149,6 +151,7 @@ export const SOURCE_JOBS_NEW = "/sources/:sourceId/jobs/new";
|
|
|
149
151
|
export const STRUCTURE = "/structures/:id";
|
|
150
152
|
export const STRUCTURES = "/structures";
|
|
151
153
|
export const STRUCTURES_BULK_UPDATE = "/structures/bulk_update";
|
|
154
|
+
export const STRUCTURES_UPLOAD_EVENTS = "/bulk_update_template_content_events";
|
|
152
155
|
export const STRUCTURE_CHILDREN = "/structures/:id/children";
|
|
153
156
|
export const STRUCTURE_EVENTS = "/structures/:id/events";
|
|
154
157
|
export const STRUCTURE_GRANTS = "/structures/:id/grants";
|
|
@@ -164,15 +167,14 @@ export const STRUCTURE_PROFILE = "/structures/:id/profile";
|
|
|
164
167
|
export const STRUCTURE_RULES_IMPLEMENTATIONS =
|
|
165
168
|
"/structures/:id/rules_implementations";
|
|
166
169
|
export const STRUCTURE_TAGS = "/structureTags";
|
|
167
|
-
export const STRUCTURE_TAGS_EDIT = "/structureTags/:id/edit";
|
|
168
170
|
export const STRUCTURE_TAGS_NEW = "/structureTags/new";
|
|
171
|
+
export const STRUCTURE_TAG_EDIT = "/structureTags/:id/edit";
|
|
169
172
|
export const STRUCTURE_TYPES = "/structureTypes";
|
|
170
173
|
export const STRUCTURE_TYPES_EDIT = "/structureTypes/:id/edit";
|
|
171
174
|
export const STRUCTURE_VERSION = "/structures/:id/versions/:version";
|
|
172
175
|
export const STRUCTURE_VERSIONS = "/structures/:id/versions";
|
|
173
176
|
export const STRUCTURE_VERSION_VERSIONS =
|
|
174
177
|
"/structures/:id/versions/:version/versions";
|
|
175
|
-
export const STRUCTURES_UPLOAD_EVENTS = "/bulk_update_template_content_events";
|
|
176
178
|
export const SUBSCRIPTION = "/subscriptions/:id";
|
|
177
179
|
export const SUBSCRIPTIONS = "/subscriptions";
|
|
178
180
|
export const SUBSCRIPTION_EDIT = "/subscriptions/:id/edit";
|
|
@@ -181,8 +183,6 @@ export const SYSTEMS = "/systems";
|
|
|
181
183
|
export const SYSTEM_EDIT = "/systems/:id/edit";
|
|
182
184
|
export const SYSTEM_NEW = "/systems/new";
|
|
183
185
|
export const SYSTEM_STRUCTURES = "/systems/:id/structures";
|
|
184
|
-
export const TAGS = "/tags";
|
|
185
|
-
export const TAGS_NEW = "/tags/new";
|
|
186
186
|
export const TEMPLATE = "/templates/:templateId";
|
|
187
187
|
export const TEMPLATES = "/templates";
|
|
188
188
|
export const TEMPLATES_NEW = "/templates/new";
|
|
@@ -285,6 +285,8 @@ const routes = {
|
|
|
285
285
|
REFERENCE_DATASETS,
|
|
286
286
|
REFERENCE_DATASET_EDIT,
|
|
287
287
|
REFERENCE_DATASET_NEW,
|
|
288
|
+
RELATION_TAGS,
|
|
289
|
+
RELATION_TAGS_NEW,
|
|
288
290
|
REMEDIATION_EDIT,
|
|
289
291
|
REMEDIATION_NEW,
|
|
290
292
|
REMEDIATION_PLAN,
|
|
@@ -330,8 +332,8 @@ const routes = {
|
|
|
330
332
|
STRUCTURE_PROFILE,
|
|
331
333
|
STRUCTURE_RULES_IMPLEMENTATIONS,
|
|
332
334
|
STRUCTURE_TAGS,
|
|
333
|
-
STRUCTURE_TAGS_EDIT,
|
|
334
335
|
STRUCTURE_TAGS_NEW,
|
|
336
|
+
STRUCTURE_TAG_EDIT,
|
|
335
337
|
STRUCTURE_TYPES,
|
|
336
338
|
STRUCTURE_TYPES_EDIT,
|
|
337
339
|
STRUCTURE_VERSION,
|
|
@@ -345,8 +347,6 @@ const routes = {
|
|
|
345
347
|
SYSTEM_EDIT,
|
|
346
348
|
SYSTEM_NEW,
|
|
347
349
|
SYSTEM_STRUCTURES,
|
|
348
|
-
TAGS,
|
|
349
|
-
TAGS_NEW,
|
|
350
350
|
TEMPLATE,
|
|
351
351
|
TEMPLATES,
|
|
352
352
|
TEMPLATES_NEW,
|