@truedat/core 8.2.0 → 8.2.2

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/core",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -48,7 +48,7 @@
48
48
  "@testing-library/jest-dom": "^6.6.3",
49
49
  "@testing-library/react": "^16.3.0",
50
50
  "@testing-library/user-event": "^14.6.1",
51
- "@truedat/test": "8.2.0",
51
+ "@truedat/test": "8.2.2",
52
52
  "identity-obj-proxy": "^3.0.0",
53
53
  "jest": "^29.7.0",
54
54
  "redux-saga-test-plan": "^4.0.6"
@@ -85,5 +85,5 @@
85
85
  "slate-react": "^0.22.10",
86
86
  "swr": "^2.3.3"
87
87
  },
88
- "gitHead": "a0b6d89f64e82602a1f3c5e250691526fe0c558a"
88
+ "gitHead": "ef27133e5868b9aad2d95d7f2c69f36063d4327b"
89
89
  }
@@ -7,29 +7,38 @@ import { useWebContext } from "../webContext";
7
7
  * This component is meant to replace ../Alert.js as we are moving away from redux.
8
8
  */
9
9
  export const AlertMessage = () => {
10
- const { formatMessage } = useIntl();
11
- const { alertMessage, setAlertMessage } = useWebContext();
10
+ const { formatMessage } = useIntl();
11
+ const { alertMessage, setAlertMessage } = useWebContext();
12
12
 
13
- if (_.isEmpty(alertMessage)) {
14
- return null;
15
- }
13
+ if (_.isEmpty(alertMessage)) {
14
+ return null;
15
+ }
16
16
 
17
- const { error, header, icon, color, content, anchor } = alertMessage;
17
+ const { error, header, icon, color, content, anchor } = alertMessage;
18
18
 
19
- return <Message
20
- error={error}
21
- header={header && formatMessage({ id: header, defaultMessage: header })}
22
- icon={icon}
23
- color={color}
24
- content={
25
- <>
26
- {content && formatMessage({ id: content, defaultMessage: content })}
27
- {anchor && <a href={anchor.reference}>{formatMessage({ id: anchor.label, defaultMessage: anchor.label })}</a>}
28
- </>
29
- }
30
- visible
31
- onDismiss={() => setAlertMessage({})}
32
- />;
19
+ return (
20
+ <Message
21
+ error={error}
22
+ header={header && formatMessage({ id: header, defaultMessage: header })}
23
+ icon={icon}
24
+ color={color}
25
+ content={
26
+ <>
27
+ {content && formatMessage({ id: content, defaultMessage: content })}
28
+ {anchor && (
29
+ <a href={anchor.reference}>
30
+ {formatMessage({
31
+ id: anchor.label,
32
+ defaultMessage: anchor.label,
33
+ })}
34
+ </a>
35
+ )}
36
+ </>
37
+ }
38
+ visible
39
+ onDismiss={() => setAlertMessage({})}
40
+ />
41
+ );
33
42
  };
34
43
 
35
- export default AlertMessage;
44
+ export default AlertMessage;
package/src/routes.js CHANGED
@@ -41,6 +41,8 @@ export const CONCEPT_LINKS_CONCEPTS_NEW =
41
41
  export const CONCEPT_LINKS_MANAGEMENT = "/concepts/management/links";
42
42
  export const CONCEPT_LINKS_IMPLEMENTATIONS =
43
43
  "/concepts/:business_concept_id/versions/:id/links/implementations";
44
+ export const CONCEPT_LINKS_QUALITY_CONTROLS =
45
+ "/concepts/:business_concept_id/versions/:id";
44
46
  export const CONCEPT_LINKS_STRUCTURES =
45
47
  "/concepts/:business_concept_id/versions/:id/links/structures";
46
48
  export const CONCEPT_LINKS_STRUCTURES_NEW =
@@ -127,7 +129,8 @@ export const IMPLEMENTATION_MOVE = "/implementations/:implementation_id/move";
127
129
  export const IMPLEMENTATION_NEW = "/implementations/new";
128
130
  export const IMPLEMENTATION_NEW_BASIC = "/implementations/basic";
129
131
  export const IMPLEMENTATION_NEW_RAW = "/implementations/new_raw";
130
- export const IMPLEMENTATIONS_BY_SUBSCOPE = "/implementations/subscope/:subscope";
132
+ export const IMPLEMENTATIONS_BY_SUBSCOPE =
133
+ "/implementations/subscope/:subscope";
131
134
  export const IMPLEMENTATION_RESULTS =
132
135
  "/implementations/:implementation_id/results";
133
136
  export const IMPLEMENTATION_RESULTS_DETAILS =
@@ -184,6 +187,14 @@ export const QUALITY_CONTROL_NEW_DRAFT =
184
187
  export const QUALITY_CONTROL = "/qualityControls/:id/version/:version";
185
188
  export const QUALITY_CONTROL_HISTORY =
186
189
  "/qualityControls/:id/version/:version/history";
190
+ export const QUALITY_CONTROL_CONCEPTS =
191
+ "/qualityControls/:id/version/:version/links/concepts";
192
+ export const QUALITY_CONTROL_STRUCTURES =
193
+ "/qualityControls/:id/version/:version/links/structures";
194
+ export const QUALITY_CONTROL_STRUCTURE_LINKS_NEW =
195
+ "/qualityControls/:id/version/:version/links/structures/new";
196
+ export const QUALITY_CONTROL_CONCEPT_LINKS_NEW =
197
+ "/qualityControls/:id/version/:version/links/concepts/new";
187
198
  export const QUALITY_CONTROL_SCORES =
188
199
  "/qualityControls/:id/version/:version/scores";
189
200
  export const QUALITY_CONTROL_EVENTS =
@@ -318,6 +329,7 @@ const routes = {
318
329
  CONCEPT_LINKS_CONCEPTS_NEW,
319
330
  CONCEPT_LINKS_IMPLEMENTATIONS,
320
331
  CONCEPT_LINKS_MANAGEMENT,
332
+ CONCEPT_LINKS_QUALITY_CONTROLS,
321
333
  CONCEPT_LINKS_STRUCTURES,
322
334
  CONCEPT_LINKS_STRUCTURES_NEW,
323
335
  CONCEPT_LINKS_STRUCTURES_SUGGEST,
@@ -431,6 +443,10 @@ const routes = {
431
443
  QUALITY_CONTROL_EVENTS,
432
444
  QUALITY_CONTROL_HISTORY,
433
445
  QUALITY_CONTROL_SCORES,
446
+ QUALITY_CONTROL_CONCEPTS,
447
+ QUALITY_CONTROL_CONCEPT_LINKS_NEW,
448
+ QUALITY_CONTROL_STRUCTURES,
449
+ QUALITY_CONTROL_STRUCTURE_LINKS_NEW,
434
450
  QUALITY_DASHBOARD,
435
451
  REFERENCE_DATASET,
436
452
  REFERENCE_DATASETS,