@truedat/dd 4.44.2 → 4.44.5

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.
Files changed (102) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +23 -19
  3. package/src/api/mutations.js +27 -0
  4. package/src/api/queries.js +24 -0
  5. package/src/api.js +2 -0
  6. package/src/components/DictionaryRoutes.js +7 -5
  7. package/src/components/EditDomainPopup.js +1 -1
  8. package/src/components/FilteredNav.js +9 -9
  9. package/src/components/GrantFilters.js +1 -5
  10. package/src/components/GrantRequestApprovalPopup.js +0 -1
  11. package/src/components/ImplementationStructuresLoader.js +14 -11
  12. package/src/components/PendingStructureNotes.js +11 -5
  13. package/src/components/ReferenceDataset.js +23 -0
  14. package/src/components/ReferenceDatasetActions.js +88 -0
  15. package/src/components/ReferenceDatasetBreadcrumbs.js +22 -0
  16. package/src/components/ReferenceDatasetCreate.js +36 -0
  17. package/src/components/ReferenceDatasetDetail.js +42 -0
  18. package/src/components/ReferenceDatasetForm.js +109 -0
  19. package/src/components/ReferenceDatasetHeader.js +32 -0
  20. package/src/components/ReferenceDatasetRoutes.js +56 -0
  21. package/src/components/ReferenceDatasetTable.js +42 -0
  22. package/src/components/ReferenceDatasets.js +61 -0
  23. package/src/components/ReferenceDatasetsTable.js +105 -0
  24. package/src/components/StructureConfidentialButton.js +1 -1
  25. package/src/components/StructureFilters.js +1 -5
  26. package/src/components/StructureNotesEdit.js +6 -6
  27. package/src/components/StructureProperties.js +4 -1
  28. package/src/components/StructureTagsRoutes.js +0 -1
  29. package/src/components/StructureTypesCrumbs.js +0 -1
  30. package/src/components/StructureVersionListItem.js +2 -2
  31. package/src/components/StructureView.js +1 -3
  32. package/src/components/SystemForm.js +1 -1
  33. package/src/components/__tests__/ImplementationStructuresLoader.spec.js +12 -54
  34. package/src/components/__tests__/LineageEventsTable.spec.js +2 -7
  35. package/src/components/__tests__/LineageRoutes.spec.js +4 -4
  36. package/src/components/__tests__/PendingStructureNoteRow.spec.js +1 -17
  37. package/src/components/__tests__/PendingStructureNotes.spec.js +5 -33
  38. package/src/components/__tests__/ReferenceDataset.spec.js +64 -0
  39. package/src/components/__tests__/ReferenceDatasetActions.spec.js +17 -0
  40. package/src/components/__tests__/ReferenceDatasetBreadcrumbs.spec.js +12 -0
  41. package/src/components/__tests__/ReferenceDatasetCreate.spec.js +12 -0
  42. package/src/components/__tests__/ReferenceDatasetDetail.spec.js +37 -0
  43. package/src/components/__tests__/ReferenceDatasetForm.spec.js +51 -0
  44. package/src/components/__tests__/ReferenceDatasetHeader.spec.js +17 -0
  45. package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +74 -0
  46. package/src/components/__tests__/ReferenceDatasetTable.spec.js +18 -0
  47. package/src/components/__tests__/ReferenceDatasets.spec.js +32 -0
  48. package/src/components/__tests__/ReferenceDatasetsTable.spec.js +22 -0
  49. package/src/components/__tests__/StructureConfidentialButton.spec.js +26 -30
  50. package/src/components/__tests__/StructureGrantRequestButton.spec.js +4 -23
  51. package/src/components/__tests__/StructureNoteActions.spec.js +2 -19
  52. package/src/components/__tests__/StructureNotes.spec.js +3 -15
  53. package/src/components/__tests__/StructureNotesEdit.spec.js +5 -25
  54. package/src/components/__tests__/StructureProperties.spec.js +6 -8
  55. package/src/components/__tests__/StructureTagForm.spec.js +1 -3
  56. package/src/components/__tests__/StructureVersionListItem.spec.js +4 -4
  57. package/src/components/__tests__/StructuresOptions.spec.js +1 -7
  58. package/src/components/__tests__/StructuresUploadEventsTable.spec.js +3 -4
  59. package/src/components/__tests__/__snapshots__/DictionaryRoutes.spec.js.snap +4 -0
  60. package/src/components/__tests__/__snapshots__/LineageRoutes.spec.js.snap +1 -20
  61. package/src/components/__tests__/__snapshots__/PendingStructureNotes.spec.js.snap +3 -3
  62. package/src/components/__tests__/__snapshots__/ProfileExecution.spec.js.snap +2 -1
  63. package/src/components/__tests__/__snapshots__/ReferenceDataset.spec.js.snap +365 -0
  64. package/src/components/__tests__/__snapshots__/ReferenceDatasetActions.spec.js.snap +65 -0
  65. package/src/components/__tests__/__snapshots__/ReferenceDatasetBreadcrumbs.spec.js.snap +25 -0
  66. package/src/components/__tests__/__snapshots__/ReferenceDatasetCreate.spec.js.snap +98 -0
  67. package/src/components/__tests__/__snapshots__/ReferenceDatasetDetail.spec.js.snap +135 -0
  68. package/src/components/__tests__/__snapshots__/ReferenceDatasetForm.spec.js.snap +61 -0
  69. package/src/components/__tests__/__snapshots__/ReferenceDatasetHeader.spec.js.snap +95 -0
  70. package/src/components/__tests__/__snapshots__/ReferenceDatasetRoutes.spec.js.snap +414 -0
  71. package/src/components/__tests__/__snapshots__/ReferenceDatasetTable.spec.js.snap +75 -0
  72. package/src/components/__tests__/__snapshots__/ReferenceDatasets.spec.js.snap +128 -0
  73. package/src/components/__tests__/__snapshots__/ReferenceDatasetsTable.spec.js.snap +86 -0
  74. package/src/components/__tests__/__snapshots__/StructureConfidentialButton.spec.js.snap +13 -33
  75. package/src/components/__tests__/__snapshots__/StructureNavClassified.spec.js.snap +2 -2
  76. package/src/components/__tests__/__snapshots__/StructureNotes.spec.js.snap +9 -9
  77. package/src/components/__tests__/__snapshots__/StructureNotesEdit.spec.js.snap +2 -2
  78. package/src/components/__tests__/__snapshots__/StructureProperties.spec.js.snap +76 -71
  79. package/src/components/__tests__/__snapshots__/StructureVersionListItem.spec.js.snap +31 -64
  80. package/src/messages/en.js +18 -0
  81. package/src/messages/es.js +20 -0
  82. package/src/reducers/__tests__/ddMessage.spec.js +26 -5
  83. package/src/reducers/__tests__/graph.spec.js +1 -6
  84. package/src/reducers/__tests__/referenceDatasetSaving.spec.js +44 -0
  85. package/src/reducers/__tests__/structureRedirect.spec.js +37 -13
  86. package/src/reducers/ddMessage.js +26 -1
  87. package/src/reducers/index.js +2 -0
  88. package/src/reducers/referenceDatasetSaving.js +16 -0
  89. package/src/reducers/structureRedirect.js +36 -15
  90. package/src/reducers/structuresUploadEvents.js +0 -1
  91. package/src/routines.js +35 -74
  92. package/src/sagas/__tests__/createReferenceDataset.spec.js +90 -0
  93. package/src/sagas/__tests__/deleteReferenceDataset.spec.js +81 -0
  94. package/src/sagas/__tests__/updateReferenceDataset.spec.js +116 -0
  95. package/src/sagas/createReferenceDataset.js +34 -0
  96. package/src/sagas/deleteReferenceDataset.js +29 -0
  97. package/src/sagas/downloadReferenceDataset.js +44 -0
  98. package/src/sagas/index.js +31 -22
  99. package/src/sagas/updateReferenceDataset.js +35 -0
  100. package/src/selectors/getRelationSortingCriteria.js +3 -5
  101. package/src/selectors/getTabVisibility.js +1 -4
  102. package/src/components/__tests__/__snapshots__/ImplementationStructuresLoader.spec.js.snap +0 -30
@@ -0,0 +1,414 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (create route) 1`] = `
4
+ <div>
5
+ <div
6
+ class="ui breadcrumb"
7
+ >
8
+ <a
9
+ class="section"
10
+ href="/referenceDatasets"
11
+ >
12
+ Reference Data
13
+ </a>
14
+ <i
15
+ aria-hidden="true"
16
+ class="right angle icon divider"
17
+ />
18
+ <div
19
+ class="active section"
20
+ >
21
+ New Dataset
22
+ </div>
23
+ </div>
24
+ <div
25
+ class="ui segment ui text container"
26
+ >
27
+ <h2
28
+ class="ui header"
29
+ >
30
+ <i
31
+ aria-hidden="true"
32
+ class="list ol icon"
33
+ />
34
+ <div
35
+ class="content"
36
+ >
37
+ New Dataset
38
+ </div>
39
+ </h2>
40
+ <form
41
+ class="ui form"
42
+ >
43
+ <div
44
+ class="required field"
45
+ >
46
+ <label>
47
+ Name
48
+ </label>
49
+ <div
50
+ class="ui input"
51
+ >
52
+ <input
53
+ autocomplete="off"
54
+ required=""
55
+ type="text"
56
+ value=""
57
+ />
58
+ </div>
59
+ </div>
60
+ <div
61
+ class="required field"
62
+ >
63
+ <label>
64
+ Dataset File
65
+ </label>
66
+ <div
67
+ class="ui input"
68
+ >
69
+ <input
70
+ accept="text/*,.csv,.txt"
71
+ required=""
72
+ type="file"
73
+ />
74
+ </div>
75
+ </div>
76
+ <div
77
+ class="actions"
78
+ >
79
+ <button
80
+ class="ui primary disabled right floated button"
81
+ disabled=""
82
+ tabindex="-1"
83
+ type="submit"
84
+ >
85
+ Save
86
+ </button>
87
+ <a
88
+ class="ui secondary button"
89
+ href="/referenceDatasets/new"
90
+ role="button"
91
+ >
92
+ Cancel
93
+ </a>
94
+ </div>
95
+ </form>
96
+ </div>
97
+ </div>
98
+ `;
99
+
100
+ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (list route) 1`] = `
101
+ <div>
102
+ <div
103
+ class="ui segment"
104
+ >
105
+ <h2
106
+ class="ui header"
107
+ >
108
+ <a
109
+ class="ui primary right floated button"
110
+ href="/referenceDatasets/new"
111
+ role="button"
112
+ >
113
+ New Dataset
114
+ </a>
115
+ <i
116
+ aria-hidden="true"
117
+ class="list ol circular icon"
118
+ />
119
+ <div
120
+ class="content"
121
+ >
122
+ Reference Data
123
+ <div
124
+ class="sub header"
125
+ >
126
+ Manage reference datasets
127
+ </div>
128
+ </div>
129
+ </h2>
130
+ <div
131
+ class="ui icon input"
132
+ >
133
+ <input
134
+ placeholder="Search datasets..."
135
+ type="text"
136
+ value=""
137
+ />
138
+ <i
139
+ aria-hidden="true"
140
+ class="search link icon"
141
+ />
142
+ </div>
143
+ <table
144
+ class="ui table"
145
+ >
146
+ <caption
147
+ class="text-right"
148
+ >
149
+ One dataset found
150
+ </caption>
151
+ <thead
152
+ class=""
153
+ >
154
+ <tr
155
+ class=""
156
+ >
157
+ <th
158
+ class=""
159
+ >
160
+ Name
161
+ </th>
162
+ <th
163
+ class=""
164
+ >
165
+ Headers
166
+ </th>
167
+ <th
168
+ class="right aligned"
169
+ >
170
+ Rows
171
+ </th>
172
+ <th
173
+ class="right aligned"
174
+ >
175
+ Updated
176
+
177
+ <a>
178
+ <i
179
+ aria-hidden="true"
180
+ class="calendar outline icon"
181
+ />
182
+ </a>
183
+ </th>
184
+ </tr>
185
+ </thead>
186
+ <tbody
187
+ class=""
188
+ >
189
+ <tr
190
+ class=""
191
+ >
192
+ <td
193
+ class=""
194
+ >
195
+ <a
196
+ href="/referenceDatasets/123"
197
+ >
198
+ foo
199
+ </a>
200
+ </td>
201
+ <td
202
+ class=""
203
+ >
204
+ foo, bar, baz
205
+ </td>
206
+ <td
207
+ class="right aligned one wide"
208
+ >
209
+ 2
210
+ </td>
211
+ <td
212
+ class="right aligned three wide"
213
+ >
214
+ <time
215
+ datetime="1577836800000"
216
+ >
217
+ 2 years ago
218
+ </time>
219
+ </td>
220
+ </tr>
221
+ </tbody>
222
+ </table>
223
+ </div>
224
+ </div>
225
+ `;
226
+
227
+ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (view route) 1`] = `
228
+ <div>
229
+ <div
230
+ class="ui breadcrumb"
231
+ >
232
+ <a
233
+ class="section"
234
+ href="/referenceDatasets"
235
+ >
236
+ Reference Data
237
+ </a>
238
+ <i
239
+ aria-hidden="true"
240
+ class="right angle icon divider"
241
+ />
242
+ <div
243
+ class="active section"
244
+ >
245
+ foo
246
+ </div>
247
+ </div>
248
+ <div
249
+ class="ui segment"
250
+ >
251
+ <div
252
+ class="ui grid"
253
+ >
254
+ <div
255
+ class="eight wide column"
256
+ >
257
+ <h2
258
+ class="ui header"
259
+ >
260
+ <i
261
+ aria-hidden="true"
262
+ class="list ol circular icon"
263
+ />
264
+ <div
265
+ class="content"
266
+ >
267
+ foo
268
+ <div
269
+ class="sub header"
270
+ >
271
+ Reference Dataset
272
+ </div>
273
+ </div>
274
+ </h2>
275
+ </div>
276
+ <div
277
+ class="right aligned eight wide column"
278
+ >
279
+ <div
280
+ aria-expanded="false"
281
+ class="ui floating dropdown button icon group-actions"
282
+ role="listbox"
283
+ tabindex="0"
284
+ >
285
+ <i
286
+ aria-hidden="true"
287
+ class="ellipsis vertical icon"
288
+ />
289
+ <div
290
+ class="left menu transition"
291
+ >
292
+ <a
293
+ aria-checked="false"
294
+ aria-selected="true"
295
+ class="selected item"
296
+ href="/referenceDatasets/123/edit"
297
+ role="option"
298
+ style="pointer-events: all;"
299
+ >
300
+ <i
301
+ aria-hidden="true"
302
+ class="edit icon"
303
+ />
304
+ <span
305
+ class="text"
306
+ >
307
+ Edit
308
+ </span>
309
+ </a>
310
+ <a
311
+ aria-checked="false"
312
+ aria-selected="false"
313
+ class="item"
314
+ role="option"
315
+ style="pointer-events: all;"
316
+ >
317
+ <i
318
+ aria-hidden="true"
319
+ class="download icon"
320
+ />
321
+ <span
322
+ class="text"
323
+ >
324
+ Download
325
+ </span>
326
+ </a>
327
+ <button
328
+ class="ui button"
329
+ >
330
+ <i
331
+ aria-hidden="true"
332
+ class="trash icon"
333
+ />
334
+ Delete
335
+ </button>
336
+ </div>
337
+ </div>
338
+ </div>
339
+ </div>
340
+ <div
341
+ class="ui hidden divider"
342
+ />
343
+ <table
344
+ class="ui very basic compact table"
345
+ >
346
+ <thead
347
+ class=""
348
+ >
349
+ <tr
350
+ class=""
351
+ >
352
+ <th
353
+ class=""
354
+ >
355
+ foo
356
+ </th>
357
+ <th
358
+ class=""
359
+ >
360
+ bar
361
+ </th>
362
+ <th
363
+ class=""
364
+ >
365
+ baz
366
+ </th>
367
+ </tr>
368
+ </thead>
369
+ <tbody
370
+ class=""
371
+ >
372
+ <tr
373
+ class=""
374
+ >
375
+ <td
376
+ class=""
377
+ >
378
+ foo1
379
+ </td>
380
+ <td
381
+ class=""
382
+ >
383
+ bar1
384
+ </td>
385
+ <td
386
+ class=""
387
+ >
388
+ baz1
389
+ </td>
390
+ </tr>
391
+ <tr
392
+ class=""
393
+ >
394
+ <td
395
+ class=""
396
+ >
397
+ foo2
398
+ </td>
399
+ <td
400
+ class=""
401
+ >
402
+ bar2
403
+ </td>
404
+ <td
405
+ class=""
406
+ >
407
+ baz2
408
+ </td>
409
+ </tr>
410
+ </tbody>
411
+ </table>
412
+ </div>
413
+ </div>
414
+ `;
@@ -0,0 +1,75 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ReferenceDatasetTable /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <table
6
+ class="ui very basic compact table"
7
+ >
8
+ <thead
9
+ class=""
10
+ >
11
+ <tr
12
+ class=""
13
+ >
14
+ <th
15
+ class=""
16
+ >
17
+ foo
18
+ </th>
19
+ <th
20
+ class=""
21
+ >
22
+ bar
23
+ </th>
24
+ <th
25
+ class=""
26
+ >
27
+ baz
28
+ </th>
29
+ </tr>
30
+ </thead>
31
+ <tbody
32
+ class=""
33
+ >
34
+ <tr
35
+ class=""
36
+ >
37
+ <td
38
+ class=""
39
+ >
40
+ foo1
41
+ </td>
42
+ <td
43
+ class=""
44
+ >
45
+ bar1
46
+ </td>
47
+ <td
48
+ class=""
49
+ >
50
+ baz1
51
+ </td>
52
+ </tr>
53
+ <tr
54
+ class=""
55
+ >
56
+ <td
57
+ class=""
58
+ >
59
+ foo2
60
+ </td>
61
+ <td
62
+ class=""
63
+ >
64
+ bar2
65
+ </td>
66
+ <td
67
+ class=""
68
+ >
69
+ baz2
70
+ </td>
71
+ </tr>
72
+ </tbody>
73
+ </table>
74
+ </div>
75
+ `;
@@ -0,0 +1,128 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ReferenceDatasets /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <div
6
+ class="ui segment"
7
+ >
8
+ <h2
9
+ class="ui header"
10
+ >
11
+ <a
12
+ class="ui primary right floated button"
13
+ href="/referenceDatasets/new"
14
+ role="button"
15
+ >
16
+ New Dataset
17
+ </a>
18
+ <i
19
+ aria-hidden="true"
20
+ class="list ol circular icon"
21
+ />
22
+ <div
23
+ class="content"
24
+ >
25
+ Reference Data
26
+ <div
27
+ class="sub header"
28
+ >
29
+ Manage reference datasets
30
+ </div>
31
+ </div>
32
+ </h2>
33
+ <div
34
+ class="ui icon input"
35
+ >
36
+ <input
37
+ placeholder="Search datasets..."
38
+ type="text"
39
+ value=""
40
+ />
41
+ <i
42
+ aria-hidden="true"
43
+ class="search link icon"
44
+ />
45
+ </div>
46
+ <table
47
+ class="ui table"
48
+ >
49
+ <caption
50
+ class="text-right"
51
+ >
52
+ One dataset found
53
+ </caption>
54
+ <thead
55
+ class=""
56
+ >
57
+ <tr
58
+ class=""
59
+ >
60
+ <th
61
+ class=""
62
+ >
63
+ Name
64
+ </th>
65
+ <th
66
+ class=""
67
+ >
68
+ Headers
69
+ </th>
70
+ <th
71
+ class="right aligned"
72
+ >
73
+ Rows
74
+ </th>
75
+ <th
76
+ class="right aligned"
77
+ >
78
+ Updated
79
+
80
+ <a>
81
+ <i
82
+ aria-hidden="true"
83
+ class="calendar outline icon"
84
+ />
85
+ </a>
86
+ </th>
87
+ </tr>
88
+ </thead>
89
+ <tbody
90
+ class=""
91
+ >
92
+ <tr
93
+ class=""
94
+ >
95
+ <td
96
+ class=""
97
+ >
98
+ <a
99
+ href="/referenceDatasets/123"
100
+ >
101
+ foo
102
+ </a>
103
+ </td>
104
+ <td
105
+ class=""
106
+ >
107
+ foo, bar, baz
108
+ </td>
109
+ <td
110
+ class="right aligned one wide"
111
+ >
112
+ 2
113
+ </td>
114
+ <td
115
+ class="right aligned three wide"
116
+ >
117
+ <time
118
+ datetime="1577836800000"
119
+ >
120
+ 2 years ago
121
+ </time>
122
+ </td>
123
+ </tr>
124
+ </tbody>
125
+ </table>
126
+ </div>
127
+ </div>
128
+ `;
@@ -0,0 +1,86 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ReferenceDatasetsTable /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <table
6
+ class="ui table"
7
+ >
8
+ <caption
9
+ class="text-right"
10
+ >
11
+ One dataset found
12
+ </caption>
13
+ <thead
14
+ class=""
15
+ >
16
+ <tr
17
+ class=""
18
+ >
19
+ <th
20
+ class=""
21
+ >
22
+ Name
23
+ </th>
24
+ <th
25
+ class=""
26
+ >
27
+ Headers
28
+ </th>
29
+ <th
30
+ class="right aligned"
31
+ >
32
+ Rows
33
+ </th>
34
+ <th
35
+ class="right aligned"
36
+ >
37
+ Updated
38
+
39
+ <a>
40
+ <i
41
+ aria-hidden="true"
42
+ class="calendar outline icon"
43
+ />
44
+ </a>
45
+ </th>
46
+ </tr>
47
+ </thead>
48
+ <tbody
49
+ class=""
50
+ >
51
+ <tr
52
+ class=""
53
+ >
54
+ <td
55
+ class=""
56
+ >
57
+ <a
58
+ href="/referenceDatasets/123"
59
+ >
60
+ foo
61
+ </a>
62
+ </td>
63
+ <td
64
+ class=""
65
+ >
66
+ foo, bar, baz
67
+ </td>
68
+ <td
69
+ class="right aligned one wide"
70
+ >
71
+ 2
72
+ </td>
73
+ <td
74
+ class="right aligned three wide"
75
+ >
76
+ <time
77
+ datetime="1577836800000"
78
+ >
79
+ 2 years ago
80
+ </time>
81
+ </td>
82
+ </tr>
83
+ </tbody>
84
+ </table>
85
+ </div>
86
+ `;