@truedat/audit 4.44.2 → 4.44.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.
Files changed (31) hide show
  1. package/package.json +5 -5
  2. package/src/components/EventsLoader.js +15 -11
  3. package/src/components/NotificationEvent.js +12 -1
  4. package/src/components/ShareLinkForm.js +1 -1
  5. package/src/components/Subscription.js +43 -22
  6. package/src/components/SubscriptionEdit.js +33 -18
  7. package/src/components/SubscriptionForm.js +6 -2
  8. package/src/components/SubscriptionLoader.js +26 -14
  9. package/src/components/SubscriptionNew.js +20 -8
  10. package/src/components/Subscriptions.js +22 -7
  11. package/src/components/SubscriptionsLoader.js +26 -13
  12. package/src/components/__tests__/NotificationEvent.spec.js +8 -9
  13. package/src/components/__tests__/ShareLinkForm.spec.js +14 -34
  14. package/src/components/__tests__/Subscription.spec.js +18 -27
  15. package/src/components/__tests__/SubscriptionEdit.spec.js +12 -20
  16. package/src/components/__tests__/SubscriptionForm.spec.js +51 -156
  17. package/src/components/__tests__/SubscriptionLoader.spec.js +4 -12
  18. package/src/components/__tests__/SubscriptionNew.spec.js +6 -13
  19. package/src/components/__tests__/Subscriptions.spec.js +26 -38
  20. package/src/components/__tests__/SubscriptionsLoader.spec.js +10 -9
  21. package/src/components/__tests__/__snapshots__/NotificationEvent.spec.js.snap +25 -44
  22. package/src/components/__tests__/__snapshots__/ShareLinkForm.spec.js.snap +6 -6
  23. package/src/components/__tests__/__snapshots__/Subscription.spec.js.snap +144 -75
  24. package/src/components/__tests__/__snapshots__/SubscriptionEdit.spec.js.snap +372 -22
  25. package/src/components/__tests__/__snapshots__/SubscriptionForm.spec.js.snap +22 -22
  26. package/src/components/__tests__/__snapshots__/SubscriptionLoader.spec.js.snap +16 -1
  27. package/src/components/__tests__/__snapshots__/SubscriptionNew.spec.js.snap +373 -16
  28. package/src/components/__tests__/__snapshots__/Subscriptions.spec.js.snap +339 -407
  29. package/src/components/__tests__/__snapshots__/SubscriptionsLoader.spec.js.snap +18 -1
  30. package/src/messages/en.js +0 -2
  31. package/src/messages/es.js +0 -2
@@ -10,7 +10,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
10
10
  class="required field subscription-form-radio-group"
11
11
  >
12
12
  <label>
13
- subscriptions.subscriber
13
+ Subscriber
14
14
  </label>
15
15
  <div
16
16
  class="ui checked radio checkbox"
@@ -30,7 +30,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
30
30
  aria-hidden="true"
31
31
  class="student icon"
32
32
  />
33
- subscription.subscriber_type.role
33
+ Role
34
34
  </label>
35
35
  </div>
36
36
  <div
@@ -50,7 +50,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
50
50
  aria-hidden="true"
51
51
  class="student icon"
52
52
  />
53
- subscription.subscriber_type.taxonomy_role
53
+ Role in taxonomy
54
54
  </label>
55
55
  </div>
56
56
  <div
@@ -70,7 +70,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
70
70
  aria-hidden="true"
71
71
  class="envelope icon"
72
72
  />
73
- subscription.subscriber_type.email
73
+ Email
74
74
  </label>
75
75
  </div>
76
76
  <div
@@ -90,7 +90,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
90
90
  aria-hidden="true"
91
91
  class="user icon"
92
92
  />
93
- subscription.subscriber_type.user
93
+ User
94
94
  </label>
95
95
  </div>
96
96
  </div>
@@ -117,7 +117,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
117
117
  class="divider default text"
118
118
  role="alert"
119
119
  >
120
- role.search.placeholder
120
+ Search Roles…
121
121
  </div>
122
122
  <i
123
123
  aria-hidden="true"
@@ -160,7 +160,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
160
160
  class="required field subscription-form-radio-group"
161
161
  >
162
162
  <label>
163
- subscriptions.resource
163
+ Resource
164
164
  </label>
165
165
  <div
166
166
  class="ui radio checkbox"
@@ -178,7 +178,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
178
178
  aria-hidden="true"
179
179
  class="sitemap icon"
180
180
  />
181
- subscriptions.resource.type.domain
181
+ Domain
182
182
  </label>
183
183
  </div>
184
184
  <div
@@ -197,7 +197,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
197
197
  aria-hidden="true"
198
198
  class="sitemap icon"
199
199
  />
200
- subscriptions.resource.type.domains
200
+ Domain and children
201
201
  </label>
202
202
  </div>
203
203
  <div
@@ -216,7 +216,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
216
216
  aria-hidden="true"
217
217
  class="book icon"
218
218
  />
219
- subscriptions.resource.type.concept
219
+ Concept
220
220
  </label>
221
221
  </div>
222
222
  <div
@@ -235,7 +235,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
235
235
  aria-hidden="true"
236
236
  class="block layout icon"
237
237
  />
238
- subscriptions.resource.type.data_structure
238
+ Structure
239
239
  </label>
240
240
  </div>
241
241
  <div
@@ -255,7 +255,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
255
255
  aria-hidden="true"
256
256
  class="plug icon"
257
257
  />
258
- subscriptions.resource.type.source
258
+ Source
259
259
  </label>
260
260
  </div>
261
261
  <div
@@ -275,7 +275,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
275
275
  aria-hidden="true"
276
276
  class="clipboard check icon"
277
277
  />
278
- subscriptions.resource.type.rule
278
+ Quality Rule
279
279
  </label>
280
280
  </div>
281
281
  </div>
@@ -283,7 +283,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
283
283
  class="required field"
284
284
  >
285
285
  <label>
286
- subscriptions.periodicity
286
+ Notifications periodicity
287
287
  </label>
288
288
  <div
289
289
  aria-expanded="false"
@@ -298,7 +298,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
298
298
  class="divider default text"
299
299
  role="alert"
300
300
  >
301
- subscriptions.periodicity
301
+ Notifications periodicity
302
302
  </div>
303
303
  <i
304
304
  aria-hidden="true"
@@ -317,7 +317,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
317
317
  <span
318
318
  class="text"
319
319
  >
320
- subscriptions.periodicity.daily
320
+ Daily
321
321
  </span>
322
322
  </div>
323
323
  <div
@@ -330,7 +330,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
330
330
  <span
331
331
  class="text"
332
332
  >
333
- subscriptions.periodicity.minutely
333
+ Immediately
334
334
  </span>
335
335
  </div>
336
336
  <div
@@ -343,7 +343,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
343
343
  <span
344
344
  class="text"
345
345
  >
346
- subscriptions.periodicity.hourly
346
+ Hourly
347
347
  </span>
348
348
  </div>
349
349
  </div>
@@ -353,7 +353,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
353
353
  class="disabled required field"
354
354
  >
355
355
  <label>
356
- subscriptions.events
356
+ Events
357
357
  </label>
358
358
  <div
359
359
  aria-disabled="true"
@@ -370,7 +370,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
370
370
  class="divider default text"
371
371
  role="alert"
372
372
  >
373
- subscriptions.events
373
+ Events
374
374
  </div>
375
375
  <i
376
376
  aria-hidden="true"
@@ -389,7 +389,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
389
389
  href="/"
390
390
  role="button"
391
391
  >
392
- actions.cancel
392
+ Cancel
393
393
  </a>
394
394
  <button
395
395
  class="ui primary disabled button"
@@ -397,7 +397,7 @@ exports[`<SubscriptionForm /> matches the latest snapshot 1`] = `
397
397
  tabindex="-1"
398
398
  type="submit"
399
399
  >
400
- actions.submit
400
+ Save
401
401
  </button>
402
402
  </div>
403
403
  </form>
@@ -1,3 +1,18 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<SubscriptionLoader /> matches the latest snapshot 1`] = `""`;
3
+ exports[`<SubscriptionLoader /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <div
6
+ class="ui active transition visible inverted dimmer"
7
+ style="display: flex;"
8
+ >
9
+ <div
10
+ class="content"
11
+ >
12
+ <div
13
+ class="ui massive inverted loader"
14
+ />
15
+ </div>
16
+ </div>
17
+ </div>
18
+ `;
@@ -1,22 +1,379 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<SubscriptionNew /> matches the latest snapshot 1`] = `
4
- <Fragment>
5
- <SubscriptionCrumbs
6
- title="subscriptions.actions.create"
7
- />
8
- <Container
9
- as={[Function]}
4
+ <div>
5
+ <div
6
+ class="ui breadcrumb"
10
7
  >
11
- <Header
12
- as="h2"
13
- content="subscriptions.actions.create"
14
- icon="check"
8
+ <a
9
+ class="section"
10
+ href="/subscriptions"
11
+ >
12
+ Subscriptions
13
+ </a>
14
+ <i
15
+ aria-hidden="true"
16
+ class="right angle icon divider"
15
17
  />
16
- <SubscriptionForm
17
- isLoading={false}
18
- onSubmit={[Function]}
19
- />
20
- </Container>
21
- </Fragment>
18
+ <div
19
+ class="active section"
20
+ >
21
+ New Subscription
22
+ </div>
23
+ </div>
24
+ <div
25
+ class="ui segment ui container"
26
+ >
27
+ <h2
28
+ class="ui header"
29
+ >
30
+ <i
31
+ aria-hidden="true"
32
+ class="check icon"
33
+ />
34
+ <div
35
+ class="content"
36
+ >
37
+ New Subscription
38
+ </div>
39
+ </h2>
40
+ <form
41
+ class="ui form"
42
+ style="display: none;"
43
+ >
44
+ <div
45
+ class="required field subscription-form-radio-group"
46
+ >
47
+ <label>
48
+ Subscriber
49
+ </label>
50
+ <div
51
+ class="ui checked radio checkbox"
52
+ >
53
+ <input
54
+ checked=""
55
+ class="hidden"
56
+ name="role"
57
+ readonly=""
58
+ role="radio"
59
+ tabindex="0"
60
+ type="radio"
61
+ value="role"
62
+ />
63
+ <label>
64
+ <i
65
+ aria-hidden="true"
66
+ class="student icon"
67
+ />
68
+ Role
69
+ </label>
70
+ </div>
71
+ <div
72
+ class="ui radio checkbox"
73
+ >
74
+ <input
75
+ class="hidden"
76
+ name="taxonomy_role"
77
+ readonly=""
78
+ role="radio"
79
+ tabindex="0"
80
+ type="radio"
81
+ value="taxonomy_role"
82
+ />
83
+ <label>
84
+ <i
85
+ aria-hidden="true"
86
+ class="student icon"
87
+ />
88
+ Role in taxonomy
89
+ </label>
90
+ </div>
91
+ <div
92
+ class="ui radio checkbox"
93
+ >
94
+ <input
95
+ class="hidden"
96
+ name="email"
97
+ readonly=""
98
+ role="radio"
99
+ tabindex="0"
100
+ type="radio"
101
+ value="email"
102
+ />
103
+ <label>
104
+ <i
105
+ aria-hidden="true"
106
+ class="envelope icon"
107
+ />
108
+ Email
109
+ </label>
110
+ </div>
111
+ <div
112
+ class="ui radio checkbox"
113
+ >
114
+ <input
115
+ class="hidden"
116
+ name="user"
117
+ readonly=""
118
+ role="radio"
119
+ tabindex="0"
120
+ type="radio"
121
+ value="user"
122
+ />
123
+ <label>
124
+ <i
125
+ aria-hidden="true"
126
+ class="user icon"
127
+ />
128
+ User
129
+ </label>
130
+ </div>
131
+ </div>
132
+ <div
133
+ class="required field subscription-form-radio-group"
134
+ >
135
+ <label>
136
+ Resource
137
+ </label>
138
+ <div
139
+ class="ui radio checkbox"
140
+ >
141
+ <input
142
+ class="hidden"
143
+ readonly=""
144
+ role="radio"
145
+ tabindex="0"
146
+ type="radio"
147
+ value="domain"
148
+ />
149
+ <label>
150
+ <i
151
+ aria-hidden="true"
152
+ class="sitemap icon"
153
+ />
154
+ Domain
155
+ </label>
156
+ </div>
157
+ <div
158
+ class="ui radio checkbox"
159
+ >
160
+ <input
161
+ class="hidden"
162
+ readonly=""
163
+ role="radio"
164
+ tabindex="0"
165
+ type="radio"
166
+ value="domains"
167
+ />
168
+ <label>
169
+ <i
170
+ aria-hidden="true"
171
+ class="sitemap icon"
172
+ />
173
+ Domain and children
174
+ </label>
175
+ </div>
176
+ <div
177
+ class="ui radio checkbox"
178
+ >
179
+ <input
180
+ class="hidden"
181
+ readonly=""
182
+ role="radio"
183
+ tabindex="0"
184
+ type="radio"
185
+ value="concept"
186
+ />
187
+ <label>
188
+ <i
189
+ aria-hidden="true"
190
+ class="book icon"
191
+ />
192
+ Concept
193
+ </label>
194
+ </div>
195
+ <div
196
+ class="ui radio checkbox"
197
+ >
198
+ <input
199
+ class="hidden"
200
+ readonly=""
201
+ role="radio"
202
+ tabindex="0"
203
+ type="radio"
204
+ value="data_structure"
205
+ />
206
+ <label>
207
+ <i
208
+ aria-hidden="true"
209
+ class="block layout icon"
210
+ />
211
+ Structure
212
+ </label>
213
+ </div>
214
+ <div
215
+ class="ui disabled radio checkbox"
216
+ >
217
+ <input
218
+ class="hidden"
219
+ disabled=""
220
+ readonly=""
221
+ role="radio"
222
+ tabindex="-1"
223
+ type="radio"
224
+ value="source"
225
+ />
226
+ <label>
227
+ <i
228
+ aria-hidden="true"
229
+ class="plug icon"
230
+ />
231
+ Source
232
+ </label>
233
+ </div>
234
+ <div
235
+ class="ui disabled radio checkbox"
236
+ >
237
+ <input
238
+ class="hidden"
239
+ disabled=""
240
+ readonly=""
241
+ role="radio"
242
+ tabindex="-1"
243
+ type="radio"
244
+ value="rule"
245
+ />
246
+ <label>
247
+ <i
248
+ aria-hidden="true"
249
+ class="clipboard check icon"
250
+ />
251
+ Quality Rule
252
+ </label>
253
+ </div>
254
+ </div>
255
+ <div
256
+ class="required field"
257
+ >
258
+ <label>
259
+ Notifications periodicity
260
+ </label>
261
+ <div
262
+ aria-expanded="false"
263
+ class="ui selection dropdown"
264
+ required=""
265
+ role="listbox"
266
+ tabindex="0"
267
+ >
268
+ <div
269
+ aria-atomic="true"
270
+ aria-live="polite"
271
+ class="divider default text"
272
+ role="alert"
273
+ >
274
+ Notifications periodicity
275
+ </div>
276
+ <i
277
+ aria-hidden="true"
278
+ class="dropdown icon"
279
+ />
280
+ <div
281
+ class="menu transition"
282
+ >
283
+ <div
284
+ aria-checked="false"
285
+ aria-selected="true"
286
+ class="selected item"
287
+ role="option"
288
+ style="pointer-events: all;"
289
+ >
290
+ <span
291
+ class="text"
292
+ >
293
+ Daily
294
+ </span>
295
+ </div>
296
+ <div
297
+ aria-checked="false"
298
+ aria-selected="false"
299
+ class="item"
300
+ role="option"
301
+ style="pointer-events: all;"
302
+ >
303
+ <span
304
+ class="text"
305
+ >
306
+ Immediately
307
+ </span>
308
+ </div>
309
+ <div
310
+ aria-checked="false"
311
+ aria-selected="false"
312
+ class="item"
313
+ role="option"
314
+ style="pointer-events: all;"
315
+ >
316
+ <span
317
+ class="text"
318
+ >
319
+ Hourly
320
+ </span>
321
+ </div>
322
+ </div>
323
+ </div>
324
+ </div>
325
+ <div
326
+ class="disabled required field"
327
+ >
328
+ <label>
329
+ Events
330
+ </label>
331
+ <div
332
+ aria-disabled="true"
333
+ aria-expanded="false"
334
+ aria-multiselectable="true"
335
+ class="ui disabled multiple selection dropdown"
336
+ required=""
337
+ role="listbox"
338
+ tabindex="-1"
339
+ >
340
+ <div
341
+ aria-atomic="true"
342
+ aria-live="polite"
343
+ class="divider default text"
344
+ role="alert"
345
+ >
346
+ Events
347
+ </div>
348
+ <i
349
+ aria-hidden="true"
350
+ class="dropdown icon"
351
+ />
352
+ <div
353
+ class="menu transition"
354
+ />
355
+ </div>
356
+ </div>
357
+ <div
358
+ class="actions"
359
+ >
360
+ <a
361
+ class="ui secondary button"
362
+ href="/"
363
+ role="button"
364
+ >
365
+ Cancel
366
+ </a>
367
+ <button
368
+ class="ui primary disabled button"
369
+ disabled=""
370
+ tabindex="-1"
371
+ type="submit"
372
+ >
373
+ Save
374
+ </button>
375
+ </div>
376
+ </form>
377
+ </div>
378
+ </div>
22
379
  `;