@truedat/dd 5.16.3 → 5.16.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 +5 -5
- package/src/components/GrantRequestsSearchResults.js +19 -19
- package/src/components/__tests__/__snapshots__/GrantRequestsSearchResults.spec.js.snap +72 -73
- package/src/reducers/__tests__/grantRequestPermissions.spec.js +1 -1
- package/src/reducers/grantRequestPermissions.js +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "5.16.
|
|
3
|
+
"version": "5.16.4",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@apollo/client": "^3.7.1",
|
|
91
|
-
"@truedat/auth": "5.16.
|
|
92
|
-
"@truedat/core": "5.16.
|
|
93
|
-
"@truedat/df": "5.16.
|
|
91
|
+
"@truedat/auth": "5.16.4",
|
|
92
|
+
"@truedat/core": "5.16.4",
|
|
93
|
+
"@truedat/df": "5.16.4",
|
|
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": "cf52894dd17d128c97fc65f97b6976fb07bcb171"
|
|
119
119
|
}
|
|
@@ -109,28 +109,28 @@ export const GrantRequestsSearchResults = ({
|
|
|
109
109
|
|
|
110
110
|
<GrantRequestsSearch />
|
|
111
111
|
<GrantRequestsSelectedFilters />
|
|
112
|
-
<Dimmer.Dimmable dimmed={
|
|
113
|
-
<Dimmer active={
|
|
112
|
+
<Dimmer.Dimmable dimmed={loading}>
|
|
113
|
+
<Dimmer active={loading} inverted>
|
|
114
114
|
<Loader />
|
|
115
115
|
</Dimmer>
|
|
116
|
-
</Dimmer.Dimmable>
|
|
117
116
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
117
|
+
{loadingDone ? (
|
|
118
|
+
<>
|
|
119
|
+
<GrantRequestsLabelResults
|
|
120
|
+
roleSelected={roleSelected}
|
|
121
|
+
grantRequestToExecute={_.size(selectedGrantRequests)}
|
|
122
|
+
/>
|
|
123
|
+
<GrantRequestsTable
|
|
124
|
+
addAll={addAll}
|
|
125
|
+
checkedAll={allChecked()}
|
|
126
|
+
checkRow={checkRow}
|
|
127
|
+
isRowChecked={isRowChecked}
|
|
128
|
+
selectedGrantRequests={selectedGrantRequests}
|
|
129
|
+
roleSelected={roleSelected}
|
|
130
|
+
/>
|
|
131
|
+
</>
|
|
132
|
+
) : null}
|
|
133
|
+
</Dimmer.Dimmable>
|
|
134
134
|
</Segment>
|
|
135
135
|
</Segment>
|
|
136
136
|
);
|
|
@@ -146,11 +146,10 @@ exports[`<GrantRequestsSearchResults /> matches the latest snapshot 1`] = `
|
|
|
146
146
|
class="selectedFilters"
|
|
147
147
|
/>
|
|
148
148
|
<div
|
|
149
|
-
class="
|
|
149
|
+
class="dimmable"
|
|
150
150
|
>
|
|
151
151
|
<div
|
|
152
|
-
class="ui
|
|
153
|
-
style="display: flex;"
|
|
152
|
+
class="ui inverted dimmer"
|
|
154
153
|
>
|
|
155
154
|
<div
|
|
156
155
|
class="content"
|
|
@@ -160,88 +159,88 @@ exports[`<GrantRequestsSearchResults /> matches the latest snapshot 1`] = `
|
|
|
160
159
|
/>
|
|
161
160
|
</div>
|
|
162
161
|
</div>
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
class="ui label grant-requests-bulk-label-results"
|
|
166
|
-
>
|
|
167
|
-
results
|
|
168
|
-
</div>
|
|
169
|
-
<table
|
|
170
|
-
class="ui sortable table"
|
|
171
|
-
>
|
|
172
|
-
<thead
|
|
173
|
-
class=""
|
|
162
|
+
<div
|
|
163
|
+
class="ui label grant-requests-bulk-label-results"
|
|
174
164
|
>
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
class=""
|
|
180
|
-
>
|
|
181
|
-
user
|
|
182
|
-
</th>
|
|
183
|
-
<th
|
|
184
|
-
class=""
|
|
185
|
-
>
|
|
186
|
-
data_structure
|
|
187
|
-
</th>
|
|
188
|
-
<th
|
|
189
|
-
class="ascending sorted disabled"
|
|
190
|
-
>
|
|
191
|
-
path
|
|
192
|
-
</th>
|
|
193
|
-
<th
|
|
194
|
-
class="two wide"
|
|
195
|
-
>
|
|
196
|
-
inserted_at
|
|
197
|
-
</th>
|
|
198
|
-
</tr>
|
|
199
|
-
</thead>
|
|
200
|
-
<tbody
|
|
201
|
-
class=""
|
|
165
|
+
results
|
|
166
|
+
</div>
|
|
167
|
+
<table
|
|
168
|
+
class="ui sortable table"
|
|
202
169
|
>
|
|
203
|
-
<
|
|
170
|
+
<thead
|
|
204
171
|
class=""
|
|
205
172
|
>
|
|
206
|
-
<
|
|
207
|
-
class=""
|
|
208
|
-
>
|
|
209
|
-
null
|
|
210
|
-
</td>
|
|
211
|
-
<td
|
|
212
|
-
class=""
|
|
213
|
-
/>
|
|
214
|
-
<td
|
|
173
|
+
<tr
|
|
215
174
|
class=""
|
|
216
175
|
>
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
176
|
+
<th
|
|
177
|
+
class=""
|
|
178
|
+
>
|
|
179
|
+
user
|
|
180
|
+
</th>
|
|
181
|
+
<th
|
|
182
|
+
class=""
|
|
183
|
+
>
|
|
184
|
+
data_structure
|
|
185
|
+
</th>
|
|
186
|
+
<th
|
|
187
|
+
class="ascending sorted disabled"
|
|
188
|
+
>
|
|
189
|
+
path
|
|
190
|
+
</th>
|
|
191
|
+
<th
|
|
192
|
+
class="two wide"
|
|
193
|
+
>
|
|
194
|
+
inserted_at
|
|
195
|
+
</th>
|
|
196
|
+
</tr>
|
|
197
|
+
</thead>
|
|
198
|
+
<tbody
|
|
224
199
|
class=""
|
|
225
200
|
>
|
|
226
|
-
<
|
|
201
|
+
<tr
|
|
227
202
|
class=""
|
|
228
203
|
>
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
204
|
+
<td
|
|
205
|
+
class=""
|
|
206
|
+
>
|
|
207
|
+
null
|
|
208
|
+
</td>
|
|
209
|
+
<td
|
|
210
|
+
class=""
|
|
211
|
+
/>
|
|
212
|
+
<td
|
|
213
|
+
class=""
|
|
214
|
+
>
|
|
215
|
+
|
|
216
|
+
</td>
|
|
217
|
+
<td
|
|
218
|
+
class="center aligned"
|
|
219
|
+
/>
|
|
220
|
+
</tr>
|
|
221
|
+
<tr
|
|
235
222
|
class=""
|
|
236
223
|
>
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
224
|
+
<td
|
|
225
|
+
class=""
|
|
226
|
+
>
|
|
227
|
+
null
|
|
228
|
+
</td>
|
|
229
|
+
<td
|
|
230
|
+
class=""
|
|
231
|
+
/>
|
|
232
|
+
<td
|
|
233
|
+
class=""
|
|
234
|
+
>
|
|
235
|
+
|
|
236
|
+
</td>
|
|
237
|
+
<td
|
|
238
|
+
class="center aligned"
|
|
239
|
+
/>
|
|
240
|
+
</tr>
|
|
241
|
+
</tbody>
|
|
242
|
+
</table>
|
|
243
|
+
</div>
|
|
245
244
|
</div>
|
|
246
245
|
</div>
|
|
247
246
|
</div>
|
|
@@ -36,7 +36,7 @@ describe("reducers: grantRequestPermissions", () => {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
describe("reducers: grantRequestPermissionsLoading", () => {
|
|
39
|
-
const initialState =
|
|
39
|
+
const initialState = false;
|
|
40
40
|
|
|
41
41
|
it("should provide the initial state", () => {
|
|
42
42
|
expect(grantRequestPermissionsLoading(undefined, {})).toEqual(initialState);
|
|
@@ -17,7 +17,12 @@ const grantRequestPermissions = (state = initialState, { type, payload }) => {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const
|
|
20
|
+
const initialStateLoading = false;
|
|
21
|
+
|
|
22
|
+
const grantRequestPermissionsLoading = (
|
|
23
|
+
state = initialStateLoading,
|
|
24
|
+
{ type }
|
|
25
|
+
) => {
|
|
21
26
|
switch (type) {
|
|
22
27
|
case fetchGrantRequestsSearch.TRIGGER:
|
|
23
28
|
return true;
|