@truedat/df 7.3.1 → 7.3.3

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/df",
3
- "version": "7.3.1",
3
+ "version": "7.3.3",
4
4
  "description": "Truedat Web Data Quality Module",
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": "7.3.1",
37
+ "@truedat/test": "7.3.3",
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",
@@ -87,8 +87,8 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@apollo/client": "^3.7.1",
90
- "@truedat/auth": "7.3.1",
91
- "@truedat/core": "7.3.1",
90
+ "@truedat/auth": "7.3.3",
91
+ "@truedat/core": "7.3.3",
92
92
  "decode-uri-component": "^0.2.2",
93
93
  "path-to-regexp": "^1.7.0",
94
94
  "prop-types": "^15.8.1",
@@ -109,5 +109,5 @@
109
109
  "react-dom": ">= 16.8.6 < 17",
110
110
  "semantic-ui-react": ">= 2.0.3 < 2.2"
111
111
  },
112
- "gitHead": "7101536d0432c47d5045efaf2cbb3f87d77c4c95"
112
+ "gitHead": "23b3cc6b8c2749a173f779390866b715d653d377"
113
113
  }
@@ -262,6 +262,19 @@ exports[`<Template /> matches the latest snapshot 1`] = `
262
262
  Remediation plan
263
263
  </span>
264
264
  </div>
265
+ <div
266
+ aria-checked="false"
267
+ aria-selected="false"
268
+ class="item"
269
+ role="option"
270
+ style="pointer-events: all;"
271
+ >
272
+ <span
273
+ class="text"
274
+ >
275
+ template.scope.qxe
276
+ </span>
277
+ </div>
265
278
  </div>
266
279
  </div>
267
280
  </div>
@@ -26,6 +26,7 @@ const scopeOptions = (formatMessage) =>
26
26
  "qe",
27
27
  "remediation",
28
28
  "quality_control",
29
+ "qxe",
29
30
  ]);
30
31
 
31
32
  export const TemplateForm = ({ loading, template, onSubmit }) => {
@@ -8,35 +8,11 @@ const template = {
8
8
  label: "Label",
9
9
  scope: "bg",
10
10
  };
11
- const messages = {
12
- en: {
13
- "actions.cancel": "actions.cancel",
14
- "actions.save": "actions.save",
15
- "template.form.fieldGroups": "template.form.fieldGroups",
16
- "template.form.header": "template.form.header",
17
- "template.form.label": "template.form.label",
18
- "template.form.name": "template.form.name",
19
- "template.form.newGroup": "template.form.newGroup",
20
- "template.form.scope": "template.form.scope",
21
- "template.form.scope.placeholder": "template.form.scope.placeholder",
22
- "template.form.subscope": "template.form.subscope",
23
- "template.form.subscope.placeholder": "template.form.subscope.placeholder",
24
- "template.scope.bg": "bg",
25
- "template.scope.dd": "dd",
26
- "template.scope.dq": "dq",
27
- "template.scope.gr": "gr",
28
- "template.scope.ie": "ie",
29
- "template.scope.ri": "ri",
30
- "template.scope.qe": "qe",
31
- "template.scope.remediation": "Remediation plan",
32
- "template.scope.quality_control": "Quality control",
33
- },
34
- };
35
11
 
36
12
  describe("<TemplateForm />", () => {
37
13
  it("matches the latest snapshot", () => {
38
14
  const state = { templateSaving: false, templateDeleting: false };
39
- const renderOpts = { messages, state };
15
+ const renderOpts = { state };
40
16
  const props = { template, onSubmit: jest.fn() };
41
17
  const { container } = render(<TemplateForm {...props} />, renderOpts);
42
18
  expect(container).toMatchSnapshot();
@@ -44,7 +20,7 @@ describe("<TemplateForm />", () => {
44
20
 
45
21
  it("matches the latest snapshot (loading)", () => {
46
22
  const state = { templateSaving: true, templateDeleting: false };
47
- const renderOpts = { messages, state };
23
+ const renderOpts = { state };
48
24
  const props = { template, onSubmit: jest.fn() };
49
25
  const { container } = render(<TemplateForm {...props} />, renderOpts);
50
26
  expect(container).toMatchSnapshot();
@@ -11,7 +11,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
11
11
  <h4
12
12
  class="ui header"
13
13
  >
14
- template.form.header
14
+ Template
15
15
  </h4>
16
16
  </div>
17
17
  <div
@@ -21,7 +21,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
21
21
  class="required six wide field"
22
22
  >
23
23
  <label>
24
- template.form.name
24
+ Name
25
25
  </label>
26
26
  <div
27
27
  class="ui input"
@@ -39,7 +39,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
39
39
  class="required six wide field"
40
40
  >
41
41
  <label>
42
- template.form.label
42
+ Label
43
43
  </label>
44
44
  <div
45
45
  class="ui input"
@@ -56,7 +56,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
56
56
  class="required four wide field"
57
57
  >
58
58
  <label>
59
- template.form.scope
59
+ Scope
60
60
  </label>
61
61
  <div
62
62
  aria-expanded="false"
@@ -72,7 +72,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
72
72
  class="divider text"
73
73
  role="alert"
74
74
  >
75
- bg
75
+ Business Concept
76
76
  </div>
77
77
  <i
78
78
  aria-hidden="true"
@@ -81,6 +81,19 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
81
81
  <div
82
82
  class="menu transition"
83
83
  >
84
+ <div
85
+ aria-checked="true"
86
+ aria-selected="true"
87
+ class="active selected item"
88
+ role="option"
89
+ style="pointer-events: all;"
90
+ >
91
+ <span
92
+ class="text"
93
+ >
94
+ Business Concept
95
+ </span>
96
+ </div>
84
97
  <div
85
98
  aria-checked="false"
86
99
  aria-selected="false"
@@ -91,7 +104,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
91
104
  <span
92
105
  class="text"
93
106
  >
94
- Quality control
107
+ Data Catalog
95
108
  </span>
96
109
  </div>
97
110
  <div
@@ -104,20 +117,20 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
104
117
  <span
105
118
  class="text"
106
119
  >
107
- Remediation plan
120
+ Data Request
108
121
  </span>
109
122
  </div>
110
123
  <div
111
- aria-checked="true"
112
- aria-selected="true"
113
- class="active selected item"
124
+ aria-checked="false"
125
+ aria-selected="false"
126
+ class="item"
114
127
  role="option"
115
128
  style="pointer-events: all;"
116
129
  >
117
130
  <span
118
131
  class="text"
119
132
  >
120
- bg
133
+ Grants
121
134
  </span>
122
135
  </div>
123
136
  <div
@@ -130,7 +143,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
130
143
  <span
131
144
  class="text"
132
145
  >
133
- dd
146
+ Quality Control
134
147
  </span>
135
148
  </div>
136
149
  <div
@@ -143,7 +156,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
143
156
  <span
144
157
  class="text"
145
158
  >
146
- dq
159
+ Quality Executions
147
160
  </span>
148
161
  </div>
149
162
  <div
@@ -156,7 +169,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
156
169
  <span
157
170
  class="text"
158
171
  >
159
- gr
172
+ Quality Implementation
160
173
  </span>
161
174
  </div>
162
175
  <div
@@ -169,7 +182,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
169
182
  <span
170
183
  class="text"
171
184
  >
172
- ie
185
+ Quality Rule
173
186
  </span>
174
187
  </div>
175
188
  <div
@@ -182,7 +195,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
182
195
  <span
183
196
  class="text"
184
197
  >
185
- qe
198
+ Remediation plan
186
199
  </span>
187
200
  </div>
188
201
  <div
@@ -195,7 +208,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
195
208
  <span
196
209
  class="text"
197
210
  >
198
- ri
211
+ template.scope.qxe
199
212
  </span>
200
213
  </div>
201
214
  </div>
@@ -205,14 +218,14 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
205
218
  class="six wide field"
206
219
  >
207
220
  <label>
208
- template.form.subscope
221
+ Subscope
209
222
  </label>
210
223
  <div
211
224
  class="ui input"
212
225
  >
213
226
  <input
214
227
  name="subscope"
215
- placeholder="template.form.subscope.placeholder"
228
+ placeholder="Type a subscope..."
216
229
  type="text"
217
230
  value=""
218
231
  />
@@ -225,7 +238,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
225
238
  <h4
226
239
  class="ui header"
227
240
  >
228
- template.form.fieldGroups
241
+ Field Groups
229
242
  </h4>
230
243
  </div>
231
244
  <div
@@ -244,7 +257,7 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
244
257
  aria-hidden="true"
245
258
  class="square plus icon"
246
259
  />
247
- template.form.newGroup
260
+ Add Group
248
261
  </a>
249
262
  </div>
250
263
  </div>
@@ -263,12 +276,12 @@ exports[`<TemplateForm /> matches the latest snapshot (loading) 1`] = `
263
276
  disabled=""
264
277
  tabindex="-1"
265
278
  >
266
- actions.save
279
+ Save
267
280
  </button>
268
281
  <button
269
282
  class="ui button"
270
283
  >
271
- actions.cancel
284
+ Cancel
272
285
  </button>
273
286
  </div>
274
287
  </form>
@@ -286,7 +299,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
286
299
  <h4
287
300
  class="ui header"
288
301
  >
289
- template.form.header
302
+ Template
290
303
  </h4>
291
304
  </div>
292
305
  <div
@@ -296,7 +309,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
296
309
  class="required six wide field"
297
310
  >
298
311
  <label>
299
- template.form.name
312
+ Name
300
313
  </label>
301
314
  <div
302
315
  class="ui input"
@@ -314,7 +327,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
314
327
  class="required six wide field"
315
328
  >
316
329
  <label>
317
- template.form.label
330
+ Label
318
331
  </label>
319
332
  <div
320
333
  class="ui input"
@@ -331,7 +344,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
331
344
  class="required four wide field"
332
345
  >
333
346
  <label>
334
- template.form.scope
347
+ Scope
335
348
  </label>
336
349
  <div
337
350
  aria-expanded="false"
@@ -347,7 +360,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
347
360
  class="divider text"
348
361
  role="alert"
349
362
  >
350
- bg
363
+ Business Concept
351
364
  </div>
352
365
  <i
353
366
  aria-hidden="true"
@@ -356,6 +369,19 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
356
369
  <div
357
370
  class="menu transition"
358
371
  >
372
+ <div
373
+ aria-checked="true"
374
+ aria-selected="true"
375
+ class="active selected item"
376
+ role="option"
377
+ style="pointer-events: all;"
378
+ >
379
+ <span
380
+ class="text"
381
+ >
382
+ Business Concept
383
+ </span>
384
+ </div>
359
385
  <div
360
386
  aria-checked="false"
361
387
  aria-selected="false"
@@ -366,7 +392,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
366
392
  <span
367
393
  class="text"
368
394
  >
369
- Quality control
395
+ Data Catalog
370
396
  </span>
371
397
  </div>
372
398
  <div
@@ -379,20 +405,20 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
379
405
  <span
380
406
  class="text"
381
407
  >
382
- Remediation plan
408
+ Data Request
383
409
  </span>
384
410
  </div>
385
411
  <div
386
- aria-checked="true"
387
- aria-selected="true"
388
- class="active selected item"
412
+ aria-checked="false"
413
+ aria-selected="false"
414
+ class="item"
389
415
  role="option"
390
416
  style="pointer-events: all;"
391
417
  >
392
418
  <span
393
419
  class="text"
394
420
  >
395
- bg
421
+ Grants
396
422
  </span>
397
423
  </div>
398
424
  <div
@@ -405,7 +431,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
405
431
  <span
406
432
  class="text"
407
433
  >
408
- dd
434
+ Quality Control
409
435
  </span>
410
436
  </div>
411
437
  <div
@@ -418,7 +444,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
418
444
  <span
419
445
  class="text"
420
446
  >
421
- dq
447
+ Quality Executions
422
448
  </span>
423
449
  </div>
424
450
  <div
@@ -431,7 +457,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
431
457
  <span
432
458
  class="text"
433
459
  >
434
- gr
460
+ Quality Implementation
435
461
  </span>
436
462
  </div>
437
463
  <div
@@ -444,7 +470,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
444
470
  <span
445
471
  class="text"
446
472
  >
447
- ie
473
+ Quality Rule
448
474
  </span>
449
475
  </div>
450
476
  <div
@@ -457,7 +483,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
457
483
  <span
458
484
  class="text"
459
485
  >
460
- qe
486
+ Remediation plan
461
487
  </span>
462
488
  </div>
463
489
  <div
@@ -470,7 +496,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
470
496
  <span
471
497
  class="text"
472
498
  >
473
- ri
499
+ template.scope.qxe
474
500
  </span>
475
501
  </div>
476
502
  </div>
@@ -480,14 +506,14 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
480
506
  class="six wide field"
481
507
  >
482
508
  <label>
483
- template.form.subscope
509
+ Subscope
484
510
  </label>
485
511
  <div
486
512
  class="ui input"
487
513
  >
488
514
  <input
489
515
  name="subscope"
490
- placeholder="template.form.subscope.placeholder"
516
+ placeholder="Type a subscope..."
491
517
  type="text"
492
518
  value=""
493
519
  />
@@ -500,7 +526,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
500
526
  <h4
501
527
  class="ui header"
502
528
  >
503
- template.form.fieldGroups
529
+ Field Groups
504
530
  </h4>
505
531
  </div>
506
532
  <div
@@ -519,7 +545,7 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
519
545
  aria-hidden="true"
520
546
  class="square plus icon"
521
547
  />
522
- template.form.newGroup
548
+ Add Group
523
549
  </a>
524
550
  </div>
525
551
  </div>
@@ -536,12 +562,12 @@ exports[`<TemplateForm /> matches the latest snapshot 1`] = `
536
562
  <button
537
563
  class="ui primary button"
538
564
  >
539
- actions.save
565
+ Save
540
566
  </button>
541
567
  <button
542
568
  class="ui button"
543
569
  >
544
- actions.cancel
570
+ Cancel
545
571
  </button>
546
572
  </div>
547
573
  </form>