@truedat/cx 4.36.7 → 4.36.8

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 (37) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +7 -6
  3. package/src/configurations/components/ConfigurationActions.js +1 -1
  4. package/src/configurations/components/ConfigurationCards.js +1 -1
  5. package/src/configurations/components/__tests__/__snapshots__/ConfigurationCards.spec.js.snap +5 -5
  6. package/src/messages/en.js +32 -25
  7. package/src/messages/es.js +32 -25
  8. package/src/sources/components/EditSource.js +3 -3
  9. package/src/sources/components/Source.js +3 -3
  10. package/src/sources/components/SourceActions.js +107 -79
  11. package/src/sources/components/SourceForm.js +15 -24
  12. package/src/sources/components/SourceRoutes.js +8 -18
  13. package/src/sources/components/{SourcesSelector.js → SourceSelector.js} +0 -0
  14. package/src/sources/components/Sources.js +53 -47
  15. package/src/sources/components/SourcesTable.js +88 -0
  16. package/src/sources/components/__tests__/SourceActions.spec.js +27 -6
  17. package/src/sources/components/__tests__/Sources.spec.js +68 -18
  18. package/src/sources/components/__tests__/SourcesTable.spec.js +59 -0
  19. package/src/sources/components/__tests__/__snapshots__/EditSource.spec.js.snap +3 -3
  20. package/src/sources/components/__tests__/__snapshots__/Source.spec.js.snap +1 -1
  21. package/src/sources/components/__tests__/__snapshots__/SourceActions.spec.js.snap +53 -65
  22. package/src/sources/components/__tests__/__snapshots__/SourceForm.spec.js.snap +10 -8
  23. package/src/sources/components/__tests__/__snapshots__/Sources.spec.js.snap +170 -62
  24. package/src/sources/components/__tests__/__snapshots__/SourcesTable.spec.js.snap +217 -0
  25. package/src/sources/components/index.js +3 -3
  26. package/src/sources/reducers/__tests__/sourceRedirect.spec.js +28 -5
  27. package/src/sources/reducers/source.js +4 -3
  28. package/src/sources/reducers/sourceRedirect.js +7 -1
  29. package/src/sources/routines.js +6 -4
  30. package/src/sources/sagas/__tests__/disableSource.spec.js +82 -0
  31. package/src/sources/sagas/__tests__/enableSource.spec.js +82 -0
  32. package/src/sources/sagas/disableSource.js +39 -0
  33. package/src/sources/sagas/enableSource.js +39 -0
  34. package/src/sources/sagas/index.js +13 -7
  35. package/src/sources/components/SourceCards.js +0 -115
  36. package/src/sources/components/__tests__/SourceCards.spec.js +0 -45
  37. package/src/sources/components/__tests__/__snapshots__/SourceCards.spec.js.snap +0 -421
@@ -1,421 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<SourceCards /> matches the latest snapshot 1`] = `
4
- <CardGroup>
5
- <Card
6
- key="0"
7
- >
8
- <CardContent>
9
- <CardHeader
10
- as={
11
- Object {
12
- "$$typeof": Symbol(react.forward_ref),
13
- "displayName": "Link",
14
- "propTypes": Object {
15
- "innerRef": [Function],
16
- "onClick": [Function],
17
- "replace": [Function],
18
- "target": [Function],
19
- "to": [Function],
20
- },
21
- "render": [Function],
22
- }
23
- }
24
- to="/sources/con_url"
25
- >
26
- <MemoizedFormattedMessage
27
- defaultMessage="con_url"
28
- id="source.con_url"
29
- />
30
- </CardHeader>
31
- <CardMeta>
32
- <MemoizedFormattedMessage
33
- id="source.deactivated"
34
- />
35
- </CardMeta>
36
- <CardDescription>
37
- <MemoizedFormattedMessage
38
- defaultMessage="a"
39
- id="a"
40
- />
41
- </CardDescription>
42
- </CardContent>
43
- <CardContent
44
- extra={true}
45
- >
46
- <div
47
- className="ui actions"
48
- >
49
- <Button
50
- as="button"
51
- basic={true}
52
- data-tooltip="sources.actions.activate.tooltip"
53
- icon="play"
54
- onClick={[Function]}
55
- />
56
- <ConfirmModal
57
- content={
58
- <Memo(MemoizedFormattedMessage)
59
- id="sources.actions.delete.confirmation.content"
60
- values={
61
- Object {
62
- "external_id": <b>
63
- con_url
64
- </b>,
65
- }
66
- }
67
- />
68
- }
69
- handleSubmit={[Function]}
70
- header={
71
- <Memo(MemoizedFormattedMessage)
72
- id="sources.actions.delete.confirmation.header"
73
- />
74
- }
75
- icon="trash"
76
- trigger={
77
- <Button
78
- as="button"
79
- basic={true}
80
- color="red"
81
- icon="trash"
82
- />
83
- }
84
- />
85
- </div>
86
- </CardContent>
87
- </Card>
88
- <Card
89
- key="1"
90
- >
91
- <CardContent>
92
- <CardHeader
93
- as={
94
- Object {
95
- "$$typeof": Symbol(react.forward_ref),
96
- "displayName": "Link",
97
- "propTypes": Object {
98
- "innerRef": [Function],
99
- "onClick": [Function],
100
- "replace": [Function],
101
- "target": [Function],
102
- "to": [Function],
103
- },
104
- "render": [Function],
105
- }
106
- }
107
- to="/sources/id1"
108
- >
109
- <MemoizedFormattedMessage
110
- defaultMessage="id1"
111
- id="source.id1"
112
- />
113
- </CardHeader>
114
- <CardMeta>
115
- <MemoizedFormattedMessage
116
- id="source.deactivated"
117
- />
118
- </CardMeta>
119
- <CardDescription>
120
- <MemoizedFormattedMessage
121
- defaultMessage="app-admin"
122
- id="app-admin"
123
- />
124
- </CardDescription>
125
- </CardContent>
126
- <CardContent
127
- extra={true}
128
- >
129
- <div
130
- className="ui actions"
131
- >
132
- <Button
133
- as="button"
134
- basic={true}
135
- data-tooltip="sources.actions.activate.tooltip"
136
- icon="play"
137
- onClick={[Function]}
138
- />
139
- <ConfirmModal
140
- content={
141
- <Memo(MemoizedFormattedMessage)
142
- id="sources.actions.delete.confirmation.content"
143
- values={
144
- Object {
145
- "external_id": <b>
146
- id1
147
- </b>,
148
- }
149
- }
150
- />
151
- }
152
- handleSubmit={[Function]}
153
- header={
154
- <Memo(MemoizedFormattedMessage)
155
- id="sources.actions.delete.confirmation.header"
156
- />
157
- }
158
- icon="trash"
159
- trigger={
160
- <Button
161
- as="button"
162
- basic={true}
163
- color="red"
164
- icon="trash"
165
- />
166
- }
167
- />
168
- </div>
169
- </CardContent>
170
- </Card>
171
- <Card
172
- key="2"
173
- >
174
- <CardContent>
175
- <CardHeader
176
- as={
177
- Object {
178
- "$$typeof": Symbol(react.forward_ref),
179
- "displayName": "Link",
180
- "propTypes": Object {
181
- "innerRef": [Function],
182
- "onClick": [Function],
183
- "replace": [Function],
184
- "target": [Function],
185
- "to": [Function],
186
- },
187
- "render": [Function],
188
- }
189
- }
190
- to="/sources/id2"
191
- >
192
- <MemoizedFormattedMessage
193
- defaultMessage="id2"
194
- id="source.id2"
195
- />
196
- </CardHeader>
197
- <CardMeta>
198
- <MemoizedFormattedMessage
199
- id="source.deactivated"
200
- />
201
- </CardMeta>
202
- <CardDescription>
203
- <MemoizedFormattedMessage
204
- defaultMessage="app-admin"
205
- id="app-admin"
206
- />
207
- </CardDescription>
208
- </CardContent>
209
- <CardContent
210
- extra={true}
211
- >
212
- <div
213
- className="ui actions"
214
- >
215
- <Button
216
- as="button"
217
- basic={true}
218
- data-tooltip="sources.actions.activate.tooltip"
219
- icon="play"
220
- onClick={[Function]}
221
- />
222
- <ConfirmModal
223
- content={
224
- <Memo(MemoizedFormattedMessage)
225
- id="sources.actions.delete.confirmation.content"
226
- values={
227
- Object {
228
- "external_id": <b>
229
- id2
230
- </b>,
231
- }
232
- }
233
- />
234
- }
235
- handleSubmit={[Function]}
236
- header={
237
- <Memo(MemoizedFormattedMessage)
238
- id="sources.actions.delete.confirmation.header"
239
- />
240
- }
241
- icon="trash"
242
- trigger={
243
- <Button
244
- as="button"
245
- basic={true}
246
- color="red"
247
- icon="trash"
248
- />
249
- }
250
- />
251
- </div>
252
- </CardContent>
253
- </Card>
254
- <Card
255
- key="3"
256
- >
257
- <CardContent>
258
- <CardHeader
259
- as={
260
- Object {
261
- "$$typeof": Symbol(react.forward_ref),
262
- "displayName": "Link",
263
- "propTypes": Object {
264
- "innerRef": [Function],
265
- "onClick": [Function],
266
- "replace": [Function],
267
- "target": [Function],
268
- "to": [Function],
269
- },
270
- "render": [Function],
271
- }
272
- }
273
- to="/sources/id3"
274
- >
275
- <MemoizedFormattedMessage
276
- defaultMessage="id3"
277
- id="source.id3"
278
- />
279
- </CardHeader>
280
- <CardMeta>
281
- <MemoizedFormattedMessage
282
- id="source.deactivated"
283
- />
284
- </CardMeta>
285
- <CardDescription>
286
- <MemoizedFormattedMessage
287
- defaultMessage="app-admin"
288
- id="app-admin"
289
- />
290
- </CardDescription>
291
- </CardContent>
292
- <CardContent
293
- extra={true}
294
- >
295
- <div
296
- className="ui actions"
297
- >
298
- <Button
299
- as="button"
300
- basic={true}
301
- data-tooltip="sources.actions.activate.tooltip"
302
- icon="play"
303
- onClick={[Function]}
304
- />
305
- <ConfirmModal
306
- content={
307
- <Memo(MemoizedFormattedMessage)
308
- id="sources.actions.delete.confirmation.content"
309
- values={
310
- Object {
311
- "external_id": <b>
312
- id3
313
- </b>,
314
- }
315
- }
316
- />
317
- }
318
- handleSubmit={[Function]}
319
- header={
320
- <Memo(MemoizedFormattedMessage)
321
- id="sources.actions.delete.confirmation.header"
322
- />
323
- }
324
- icon="trash"
325
- trigger={
326
- <Button
327
- as="button"
328
- basic={true}
329
- color="red"
330
- icon="trash"
331
- />
332
- }
333
- />
334
- </div>
335
- </CardContent>
336
- </Card>
337
- <Card
338
- key="4"
339
- >
340
- <CardContent>
341
- <CardHeader
342
- as={
343
- Object {
344
- "$$typeof": Symbol(react.forward_ref),
345
- "displayName": "Link",
346
- "propTypes": Object {
347
- "innerRef": [Function],
348
- "onClick": [Function],
349
- "replace": [Function],
350
- "target": [Function],
351
- "to": [Function],
352
- },
353
- "render": [Function],
354
- }
355
- }
356
- to="/sources/id4"
357
- >
358
- <MemoizedFormattedMessage
359
- defaultMessage="id4"
360
- id="source.id4"
361
- />
362
- </CardHeader>
363
- <CardMeta>
364
- <MemoizedFormattedMessage
365
- id="source.deactivated"
366
- />
367
- </CardMeta>
368
- <CardDescription>
369
- <MemoizedFormattedMessage
370
- defaultMessage="a"
371
- id="a"
372
- />
373
- </CardDescription>
374
- </CardContent>
375
- <CardContent
376
- extra={true}
377
- >
378
- <div
379
- className="ui actions"
380
- >
381
- <Button
382
- as="button"
383
- basic={true}
384
- data-tooltip="sources.actions.activate.tooltip"
385
- icon="play"
386
- onClick={[Function]}
387
- />
388
- <ConfirmModal
389
- content={
390
- <Memo(MemoizedFormattedMessage)
391
- id="sources.actions.delete.confirmation.content"
392
- values={
393
- Object {
394
- "external_id": <b>
395
- id4
396
- </b>,
397
- }
398
- }
399
- />
400
- }
401
- handleSubmit={[Function]}
402
- header={
403
- <Memo(MemoizedFormattedMessage)
404
- id="sources.actions.delete.confirmation.header"
405
- />
406
- }
407
- icon="trash"
408
- trigger={
409
- <Button
410
- as="button"
411
- basic={true}
412
- color="red"
413
- icon="trash"
414
- />
415
- }
416
- />
417
- </div>
418
- </CardContent>
419
- </Card>
420
- </CardGroup>
421
- `;