@truedat/core 5.5.1 → 5.6.1

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": "5.5.1",
3
+ "version": "5.6.1",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -35,7 +35,7 @@
35
35
  "@testing-library/jest-dom": "^5.16.5",
36
36
  "@testing-library/react": "^12.0.0",
37
37
  "@testing-library/user-event": "^13.2.1",
38
- "@truedat/test": "5.5.1",
38
+ "@truedat/test": "5.6.1",
39
39
  "babel-jest": "^28.1.0",
40
40
  "babel-plugin-dynamic-import-node": "^2.3.3",
41
41
  "babel-plugin-lodash": "^3.3.4",
@@ -117,5 +117,5 @@
117
117
  "react-dom": ">= 16.8.6 < 17",
118
118
  "semantic-ui-react": ">= 2.0.3 < 2.2"
119
119
  },
120
- "gitHead": "64293f637f73f7b7639b9bc70e1b5d66d3712aec"
120
+ "gitHead": "a8e5efaf772f212a10192b36d853529890dfdea2"
121
121
  }
@@ -6,10 +6,16 @@ import {
6
6
  GRANTS,
7
7
  GRANT_APPROVAL_RULES,
8
8
  MY_GRANT_REQUESTS,
9
+ STRUCTURES_GRANT_REQUEST,
9
10
  } from "../routes";
10
11
  import Submenu from "./Submenu";
11
12
 
12
13
  const items = [
14
+ {
15
+ name: "structures_grant_requests",
16
+ routes: [STRUCTURES_GRANT_REQUEST],
17
+ groups: ["grants"],
18
+ },
13
19
  { name: "my_grants", routes: [MY_GRANTS], groups: ["grants"] },
14
20
  { name: "grants", routes: [GRANTS], groups: ["grants"] },
15
21
  {
@@ -27,6 +33,11 @@ const items = [
27
33
  routes: [GRANT_APPROVAL_RULES],
28
34
  groups: ["grants_management"],
29
35
  },
36
+ {
37
+ name: "structures_grant_requests",
38
+ routes: [STRUCTURES_GRANT_REQUEST],
39
+ groups: ["grants"],
40
+ },
30
41
  ];
31
42
 
32
43
  export const GrantMenu = () => {
@@ -5,6 +5,15 @@ exports[`<GrantMenu /> matches the latest snapshot 1`] = `
5
5
  icon="key"
6
6
  items={
7
7
  [
8
+ {
9
+ "groups": [
10
+ "grants",
11
+ ],
12
+ "name": "structures_grant_requests",
13
+ "routes": [
14
+ "/structuresGrantRequests",
15
+ ],
16
+ },
8
17
  {
9
18
  "groups": [
10
19
  "grants",
@@ -50,6 +59,15 @@ exports[`<GrantMenu /> matches the latest snapshot 1`] = `
50
59
  "/grantApprovalRules",
51
60
  ],
52
61
  },
62
+ {
63
+ "groups": [
64
+ "grants",
65
+ ],
66
+ "name": "structures_grant_requests",
67
+ "routes": [
68
+ "/structuresGrantRequests",
69
+ ],
70
+ },
53
71
  ]
54
72
  }
55
73
  name="grants"
@@ -14,6 +14,7 @@ jest.mock("@truedat/core/hooks", () => ({
14
14
  id: 1,
15
15
  messages: [
16
16
  {
17
+ id: 1,
17
18
  message_id: "message_id",
18
19
  definition: "definition",
19
20
  description: "description",
@@ -137,6 +137,7 @@ export default {
137
137
  "sidemenu.structureTypes": "Structure Types",
138
138
  "sidemenu.structures": "Structures",
139
139
  "sidemenu.structures_upload_events": "My loads",
140
+ "sidemenu.structures_grant_requests": "Structures grant requests",
140
141
  "sidemenu.subscriptions": "Subscriptions",
141
142
  "sidemenu.tasks": "Tasks",
142
143
  "sidemenu.taxonomy": "Taxonomy",
@@ -139,6 +139,7 @@ export default {
139
139
  "sidemenu.structureTags": "Etiquetas de estructura",
140
140
  "sidemenu.structureTypes": "Tipos de estructura",
141
141
  "sidemenu.structures": "Estructuras",
142
+ "sidemenu.structures_grant_requests": "Peticiones de estructuras",
142
143
  "sidemenu.structures_upload_events": "Mis cargas",
143
144
  "sidemenu.subscriptions": "Suscripciones",
144
145
  "sidemenu.tasks": "Tareas",
package/src/routes.js CHANGED
@@ -201,6 +201,7 @@ export const STRUCTURE_VERSION = "/structures/:id/versions/:version";
201
201
  export const STRUCTURE_VERSIONS = "/structures/:id/versions";
202
202
  export const STRUCTURE_VERSION_VERSIONS =
203
203
  "/structures/:id/versions/:version/versions";
204
+ export const STRUCTURES_GRANT_REQUEST = "/structuresGrantRequests";
204
205
  export const SUBSCRIPTION = "/subscriptions/:id";
205
206
  export const SUBSCRIPTIONS = "/subscriptions";
206
207
  export const SUBSCRIPTION_EDIT = "/subscriptions/:id/edit";
@@ -391,6 +392,7 @@ const routes = {
391
392
  STRUCTURE_VERSION,
392
393
  STRUCTURE_VERSIONS,
393
394
  STRUCTURE_VERSION_VERSIONS,
395
+ STRUCTURES_GRANT_REQUEST,
394
396
  SUBSCRIPTION,
395
397
  SUBSCRIPTIONS,
396
398
  SUBSCRIPTION_EDIT,