@truedat/dd 6.6.1 → 6.6.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/dd",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.2",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
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.6.
|
|
37
|
+
"@truedat/test": "6.6.2",
|
|
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",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@apollo/client": "^3.7.1",
|
|
91
|
-
"@truedat/auth": "6.6.
|
|
92
|
-
"@truedat/core": "6.6.
|
|
93
|
-
"@truedat/df": "6.6.
|
|
91
|
+
"@truedat/auth": "6.6.2",
|
|
92
|
+
"@truedat/core": "6.6.2",
|
|
93
|
+
"@truedat/df": "6.6.2",
|
|
94
94
|
"lodash": "^4.17.21",
|
|
95
95
|
"moment": "^2.29.4",
|
|
96
96
|
"path-to-regexp": "^1.7.0",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"react-dom": ">= 16.8.6 < 17",
|
|
116
116
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "b5defab13b213876e57046dc7d9885c6adc4a64d"
|
|
119
119
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
|
-
import { Route, Switch } from "react-router-dom";
|
|
3
|
+
import { Route, Switch, useParams } from "react-router-dom";
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import {
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
GRANT_APPROVAL_RULE_EDIT,
|
|
9
9
|
GRANT_APPROVAL_RULE_NEW,
|
|
10
10
|
GRANT_REQUEST,
|
|
11
|
+
GRANT_REQUEST_GROUP,
|
|
11
12
|
GRANT_REQUESTS,
|
|
12
13
|
GRANT_REQUESTS_APPROVALS_RESULT,
|
|
13
14
|
GRANTS_REQUESTS_CHECKOUT,
|
|
@@ -41,6 +42,20 @@ const TemplatesLoader = React.lazy(() =>
|
|
|
41
42
|
import("@truedat/df/templates/components/TemplatesLoader")
|
|
42
43
|
);
|
|
43
44
|
|
|
45
|
+
const GrantRequestGroup = () => {
|
|
46
|
+
const { id } = useParams();
|
|
47
|
+
const defaultFilters = {
|
|
48
|
+
group_id: [id],
|
|
49
|
+
};
|
|
50
|
+
return (
|
|
51
|
+
<>
|
|
52
|
+
<GrantRequestsSearchLoader defaultFilters={defaultFilters} />
|
|
53
|
+
<GrantRequestsFiltersLoader defaultFilters={defaultFilters} />
|
|
54
|
+
<GrantRequestsSearchResults defaultFilters={defaultFilters} />
|
|
55
|
+
</>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
|
|
44
59
|
export const GrantRoutes = ({ grantRequestLoaded }) => {
|
|
45
60
|
return (
|
|
46
61
|
<>
|
|
@@ -121,6 +136,11 @@ export const GrantRoutes = ({ grantRequestLoaded }) => {
|
|
|
121
136
|
return <StructuresGrantRequestView defaultFilters={defaultFilters} />;
|
|
122
137
|
}}
|
|
123
138
|
/>
|
|
139
|
+
<Route
|
|
140
|
+
exact
|
|
141
|
+
path={GRANT_REQUEST_GROUP}
|
|
142
|
+
render={() => <GrantRequestGroup />}
|
|
143
|
+
/>
|
|
124
144
|
<Route
|
|
125
145
|
path={GRANT_REQUESTS}
|
|
126
146
|
render={() => (
|
|
@@ -52,6 +52,11 @@ exports[`<GrantRoutes /> matches the latest snapshot 1`] = `
|
|
|
52
52
|
path="/structuresGrantRequests"
|
|
53
53
|
render={[Function]}
|
|
54
54
|
/>
|
|
55
|
+
<Route
|
|
56
|
+
exact={true}
|
|
57
|
+
path="/grantRequestGroups/:id"
|
|
58
|
+
render={[Function]}
|
|
59
|
+
/>
|
|
55
60
|
<Route
|
|
56
61
|
path="/grantRequests"
|
|
57
62
|
render={[Function]}
|
|
@@ -4,5 +4,7 @@ import { createSelector } from "reselect";
|
|
|
4
4
|
export const getGrantRequestsSelectedFilters = createSelector(
|
|
5
5
|
[_.prop("grantRequestsActiveFilters")],
|
|
6
6
|
(grantRequestsActiveFilters) =>
|
|
7
|
-
_.without(["must_not_approved_by"])(
|
|
7
|
+
_.without(["must_not_approved_by", "group_id"])(
|
|
8
|
+
_.keys(grantRequestsActiveFilters)
|
|
9
|
+
)
|
|
8
10
|
);
|