@truedat/cx 4.41.2 → 4.41.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 (108) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/package.json +4 -4
  3. package/src/jobs/components/Job.js +11 -11
  4. package/src/jobs/components/JobRoutes.js +2 -2
  5. package/src/jobs/components/JobRow.js +7 -3
  6. package/src/jobs/components/Jobs.js +16 -28
  7. package/src/jobs/components/JobsTable.js +80 -92
  8. package/src/jobs/components/JobsView.js +23 -0
  9. package/src/jobs/components/SourceJobs.js +29 -0
  10. package/src/jobs/components/__tests__/JobRow.spec.js +44 -23
  11. package/src/jobs/components/__tests__/Jobs.spec.js +33 -8
  12. package/src/jobs/components/__tests__/JobsTable.spec.js +50 -81
  13. package/src/jobs/components/__tests__/JobsView.spec.js +39 -0
  14. package/src/jobs/components/__tests__/SourceJobs.spec.js +38 -0
  15. package/src/jobs/components/__tests__/__snapshots__/Job.spec.js.snap +3 -4
  16. package/src/jobs/components/__tests__/__snapshots__/JobRow.spec.js.snap +40 -32
  17. package/src/jobs/components/__tests__/__snapshots__/Jobs.spec.js.snap +136 -35
  18. package/src/jobs/components/__tests__/__snapshots__/JobsTable.spec.js.snap +104 -227
  19. package/src/jobs/components/__tests__/__snapshots__/JobsView.spec.js.snap +167 -0
  20. package/src/jobs/components/__tests__/__snapshots__/SourceJobs.spec.js.snap +115 -0
  21. package/src/jobs/components/index.js +1 -3
  22. package/src/jobs/selectors/index.js +4 -2
  23. package/src/jobs/selectors/{getJobColumns.js → jobColumnsSelector.js} +11 -27
  24. package/src/jobs/selectors/jobRowsSelector.js +14 -0
  25. package/src/jobs/selectors/sourceJobColumnsSelector.js +35 -0
  26. package/src/messages/en.js +9 -1
  27. package/src/messages/es.js +9 -1
  28. package/src/reducers/cxMessage.js +15 -1
  29. package/src/sources/api/fragments.js +48 -0
  30. package/src/sources/api/mutations.js +51 -0
  31. package/src/sources/api/queries.js +52 -0
  32. package/src/sources/api.js +1 -2
  33. package/src/sources/components/EditSource.js +5 -29
  34. package/src/sources/components/JobForm.js +2 -2
  35. package/src/sources/components/NewJob.js +10 -23
  36. package/src/sources/components/Source.js +12 -76
  37. package/src/sources/components/SourceActions.js +13 -21
  38. package/src/sources/components/SourceBreadcrumbs.js +1 -1
  39. package/src/sources/components/SourceConfiguration.js +60 -0
  40. package/src/sources/components/SourceDetail.js +90 -0
  41. package/src/sources/components/SourceForm.js +50 -53
  42. package/src/sources/components/SourceHeader.js +29 -0
  43. package/src/sources/components/SourceRoutes.js +25 -89
  44. package/src/sources/components/SourceSelector.js +53 -44
  45. package/src/sources/components/SourceTabs.js +54 -0
  46. package/src/sources/components/Sources.js +7 -20
  47. package/src/sources/components/SourcesTable.js +3 -4
  48. package/src/sources/components/__tests__/EditSource.spec.js +1 -2
  49. package/src/sources/components/__tests__/Source.spec.js +1 -1
  50. package/src/sources/components/__tests__/SourceActions.spec.js +3 -1
  51. package/src/sources/components/__tests__/SourceDetail.spec.js +45 -0
  52. package/src/sources/components/__tests__/SourceForm.spec.js +16 -31
  53. package/src/sources/components/__tests__/SourceHeader.spec.js +16 -0
  54. package/src/sources/components/__tests__/SourceSelector.spec.js +44 -0
  55. package/src/sources/components/__tests__/SourceTabs.spec.js +21 -0
  56. package/src/sources/components/__tests__/Sources.spec.js +5 -2
  57. package/src/sources/components/__tests__/__snapshots__/EditSource.spec.js.snap +12 -35
  58. package/src/sources/components/__tests__/__snapshots__/NewSource.spec.js.snap +1 -1
  59. package/src/sources/components/__tests__/__snapshots__/Source.spec.js.snap +23 -65
  60. package/src/sources/components/__tests__/__snapshots__/SourceActions.spec.js.snap +1 -1
  61. package/src/sources/components/__tests__/__snapshots__/SourceDetail.spec.js.snap +154 -0
  62. package/src/sources/components/__tests__/__snapshots__/SourceForm.spec.js.snap +37 -14
  63. package/src/sources/components/__tests__/__snapshots__/SourceHeader.spec.js.snap +85 -0
  64. package/src/sources/components/__tests__/__snapshots__/SourceSelector.spec.js.snap +68 -0
  65. package/src/sources/components/__tests__/__snapshots__/SourceTabs.spec.js.snap +22 -0
  66. package/src/sources/components/__tests__/__snapshots__/Sources.spec.js.snap +2 -2
  67. package/src/sources/components/__tests__/__snapshots__/SourcesTable.spec.js.snap +5 -5
  68. package/src/sources/components/index.js +1 -4
  69. package/src/sources/reducers/__tests__/sourceRedirect.spec.js +26 -21
  70. package/src/sources/reducers/__tests__/sourceUpdateStatus.spec.js +9 -9
  71. package/src/sources/reducers/index.js +1 -12
  72. package/src/sources/reducers/sourceRedirect.js +20 -10
  73. package/src/sources/reducers/sourceUpdateStatus.js +5 -5
  74. package/src/sources/routines.js +0 -3
  75. package/src/sources/sagas/__tests__/createSource.spec.js +35 -20
  76. package/src/sources/sagas/__tests__/deleteSource.spec.js +29 -14
  77. package/src/sources/sagas/__tests__/disableSource.spec.js +2 -8
  78. package/src/sources/sagas/__tests__/enableSource.spec.js +2 -8
  79. package/src/sources/sagas/__tests__/updateSource.spec.js +33 -15
  80. package/src/sources/sagas/createSource.js +24 -14
  81. package/src/sources/sagas/deleteSource.js +14 -15
  82. package/src/sources/sagas/disableSource.js +1 -17
  83. package/src/sources/sagas/enableSource.js +1 -17
  84. package/src/sources/sagas/index.js +0 -9
  85. package/src/sources/sagas/updateSource.js +18 -15
  86. package/src/sources/components/DynamicSourceForm.js +0 -60
  87. package/src/sources/components/SourceLoader.js +0 -59
  88. package/src/sources/components/SourcesLoader.js +0 -39
  89. package/src/sources/components/__tests__/DynamicSourceForm.spec.js +0 -89
  90. package/src/sources/components/__tests__/SourceLoader.spec.js +0 -54
  91. package/src/sources/components/__tests__/SourcesLoader.spec.js +0 -53
  92. package/src/sources/components/__tests__/__snapshots__/DynamicSourceForm.spec.js.snap +0 -8
  93. package/src/sources/components/__tests__/__snapshots__/SourceLoader.spec.js.snap +0 -3
  94. package/src/sources/components/__tests__/__snapshots__/SourcesLoader.spec.js.snap +0 -3
  95. package/src/sources/reducers/__tests__/source.spec.js +0 -44
  96. package/src/sources/reducers/__tests__/sourceLoading.spec.js +0 -30
  97. package/src/sources/reducers/__tests__/sources.spec.js +0 -37
  98. package/src/sources/reducers/__tests__/sourcesLoading.spec.js +0 -30
  99. package/src/sources/reducers/source.js +0 -35
  100. package/src/sources/reducers/sourceLoading.js +0 -16
  101. package/src/sources/reducers/sources.js +0 -28
  102. package/src/sources/reducers/sourcesLoading.js +0 -16
  103. package/src/sources/sagas/__tests__/fetchSource.spec.js +0 -71
  104. package/src/sources/sagas/__tests__/fetchSources.spec.js +0 -69
  105. package/src/sources/sagas/__tests__/updateSourceConfig.spec.js +0 -73
  106. package/src/sources/sagas/fetchSource.js +0 -30
  107. package/src/sources/sagas/fetchSources.js +0 -26
  108. package/src/sources/sagas/updateSourceConfig.js +0 -29
@@ -1,245 +1,122 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<JobsTable /> matches the latest snapshot (no jobs) 1`] = `
4
- <Fragment>
5
- <Header
6
- as="h4"
4
+ <div>
5
+ <h4
6
+ class="ui header"
7
7
  >
8
- <Icon
9
- as="i"
10
- name="search"
8
+ <i
9
+ aria-hidden="true"
10
+ class="search icon"
11
11
  />
12
- <HeaderContent>
13
- <MemoizedFormattedMessage
14
- id="jobs.search.results.empty"
15
- />
16
- </HeaderContent>
17
- </Header>
18
- </Fragment>
12
+ <div
13
+ class="content"
14
+ >
15
+ No jobs found
16
+ </div>
17
+ </h4>
18
+ </div>
19
19
  `;
20
20
 
21
21
  exports[`<JobsTable /> matches the latest snapshot 1`] = `
22
- <Fragment>
23
- <Table
24
- as="table"
25
- selectable={true}
26
- sortable={true}
22
+ <div>
23
+ <table
24
+ class="ui selectable sortable table"
27
25
  >
28
- <TableHeader
29
- as="thead"
26
+ <thead
27
+ class=""
28
+ >
29
+ <tr
30
+ class=""
31
+ >
32
+ <th
33
+ class="two wide"
34
+ >
35
+ Source
36
+ </th>
37
+ <th
38
+ class="two wide"
39
+ >
40
+ Source Type
41
+ </th>
42
+ <th
43
+ class="two wide"
44
+ >
45
+ Type
46
+ </th>
47
+ <th
48
+ class="two wide"
49
+ >
50
+ Status
51
+ </th>
52
+ <th
53
+ class="two wide disabled"
54
+ >
55
+ Message
56
+ </th>
57
+ <th
58
+ class="two wide descending sorted"
59
+ >
60
+ Updated At
61
+ </th>
62
+ </tr>
63
+ </thead>
64
+ <tbody
65
+ class=""
30
66
  >
31
- <TableRow
32
- as="tr"
33
- cellAs="td"
67
+ <tr
68
+ class=""
34
69
  >
35
- <TableHeaderCell
36
- as="th"
37
- className=""
38
- content={
39
- <Memo(MemoizedFormattedMessage)
40
- id="jobs.props.source.external_id"
41
- />
42
- }
43
- key="0"
44
- onClick={[Function]}
45
- sorted={null}
46
- width={2}
70
+ <td
71
+ class=""
72
+ >
73
+ source external_id
74
+ </td>
75
+ <td
76
+ class=""
77
+ >
78
+ source_type
79
+ </td>
80
+ <td
81
+ class=""
47
82
  />
48
- <TableHeaderCell
49
- as="th"
50
- className=""
51
- content={
52
- <Memo(MemoizedFormattedMessage)
53
- id="jobs.props.source.type"
54
- />
55
- }
56
- key="1"
57
- onClick={[Function]}
58
- sorted={null}
59
- width={2}
83
+ <td
84
+ class=""
60
85
  />
61
- <TableHeaderCell
62
- as="th"
63
- className=""
64
- content={
65
- <Memo(MemoizedFormattedMessage)
66
- id="jobs.props.type"
67
- />
68
- }
69
- key="2"
70
- onClick={[Function]}
71
- sorted={null}
72
- width={2}
86
+ <td
87
+ class=""
73
88
  />
74
- <TableHeaderCell
75
- as="th"
76
- className=""
77
- content={
78
- <Memo(MemoizedFormattedMessage)
79
- id="jobs.props.status"
80
- />
81
- }
82
- key="3"
83
- onClick={[Function]}
84
- sorted={null}
85
- width={2}
89
+ <td
90
+ class="center aligned"
86
91
  />
87
- <TableHeaderCell
88
- as="th"
89
- className="disabled"
90
- content={
91
- <Memo(MemoizedFormattedMessage)
92
- id="jobs.props.message"
93
- />
94
- }
95
- key="4"
96
- onClick={[Function]}
97
- sorted="ascending"
98
- width={2}
92
+ </tr>
93
+ <tr
94
+ class=""
95
+ >
96
+ <td
97
+ class=""
98
+ >
99
+ source external_id_2
100
+ </td>
101
+ <td
102
+ class=""
103
+ >
104
+ source_type_2
105
+ </td>
106
+ <td
107
+ class=""
99
108
  />
100
- <TableHeaderCell
101
- as="th"
102
- className=""
103
- content={
104
- <Memo(MemoizedFormattedMessage)
105
- id="jobs.props.end_date"
106
- />
107
- }
108
- key="5"
109
- onClick={[Function]}
110
- sorted={null}
111
- width={2}
109
+ <td
110
+ class=""
112
111
  />
113
- </TableRow>
114
- </TableHeader>
115
- <TableBody
116
- as="tbody"
117
- >
118
- <JobRow
119
- columns={
120
- Array [
121
- Object {
122
- "fieldSelector": [Function],
123
- "name": "source.external_id",
124
- "sort": Object {
125
- "name": "source.external_id.sort",
126
- },
127
- "width": 2,
128
- },
129
- Object {
130
- "fieldSelector": [Function],
131
- "name": "source.type",
132
- "sort": Object {
133
- "name": "source.type.sort",
134
- },
135
- "width": 2,
136
- },
137
- Object {
138
- "fieldSelector": [Function],
139
- "name": "type",
140
- "sort": Object {
141
- "name": "type.sort",
142
- },
143
- "width": 2,
144
- },
145
- Object {
146
- "fieldSelector": [Function],
147
- "name": "status",
148
- "sort": Object {
149
- "name": "status.sort",
150
- },
151
- "width": 2,
152
- },
153
- Object {
154
- "fieldSelector": [Function],
155
- "name": "message",
156
- "width": 2,
157
- },
158
- Object {
159
- "fieldDecorator": [Function],
160
- "name": "end_date",
161
- "sort": Object {
162
- "name": "end_date",
163
- },
164
- "textAlign": "center",
165
- "width": 2,
166
- },
167
- ]
168
- }
169
- job={
170
- Object {
171
- "external_id": "external_id",
172
- "source": Object {
173
- "external_id": "source external_id",
174
- "type": "source_type",
175
- },
176
- }
177
- }
178
- key="0"
179
- />
180
- <JobRow
181
- columns={
182
- Array [
183
- Object {
184
- "fieldSelector": [Function],
185
- "name": "source.external_id",
186
- "sort": Object {
187
- "name": "source.external_id.sort",
188
- },
189
- "width": 2,
190
- },
191
- Object {
192
- "fieldSelector": [Function],
193
- "name": "source.type",
194
- "sort": Object {
195
- "name": "source.type.sort",
196
- },
197
- "width": 2,
198
- },
199
- Object {
200
- "fieldSelector": [Function],
201
- "name": "type",
202
- "sort": Object {
203
- "name": "type.sort",
204
- },
205
- "width": 2,
206
- },
207
- Object {
208
- "fieldSelector": [Function],
209
- "name": "status",
210
- "sort": Object {
211
- "name": "status.sort",
212
- },
213
- "width": 2,
214
- },
215
- Object {
216
- "fieldSelector": [Function],
217
- "name": "message",
218
- "width": 2,
219
- },
220
- Object {
221
- "fieldDecorator": [Function],
222
- "name": "end_date",
223
- "sort": Object {
224
- "name": "end_date",
225
- },
226
- "textAlign": "center",
227
- "width": 2,
228
- },
229
- ]
230
- }
231
- job={
232
- Object {
233
- "external_id": "external_id_2",
234
- "source": Object {
235
- "external_id": "source external_id_2",
236
- "type": "source_type_2",
237
- },
238
- }
239
- }
240
- key="1"
241
- />
242
- </TableBody>
243
- </Table>
244
- </Fragment>
112
+ <td
113
+ class=""
114
+ />
115
+ <td
116
+ class="center aligned"
117
+ />
118
+ </tr>
119
+ </tbody>
120
+ </table>
121
+ </div>
245
122
  `;
@@ -0,0 +1,167 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<JobsView /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <div
6
+ class="ui segment"
7
+ style="display: none;"
8
+ >
9
+ <h2
10
+ class="ui header"
11
+ >
12
+ <i
13
+ aria-hidden="true"
14
+ class="cogs circular icon"
15
+ />
16
+ <div
17
+ class="content"
18
+ >
19
+ Jobs
20
+ <div
21
+ class="sub header"
22
+ >
23
+ Connectors execution by defined sources
24
+ </div>
25
+ </div>
26
+ </h2>
27
+ <div
28
+ class="ui bottom attached segment"
29
+ >
30
+ <div
31
+ class="ui action left icon input"
32
+ >
33
+ <input
34
+ placeholder="Search jobs..."
35
+ type="text"
36
+ value=""
37
+ />
38
+ <i
39
+ aria-hidden="true"
40
+ class="search link icon"
41
+ />
42
+ </div>
43
+ <div
44
+ class="selectedFilters"
45
+ />
46
+ <div
47
+ class="dimmable"
48
+ >
49
+ <div
50
+ class="ui inverted dimmer"
51
+ >
52
+ <div
53
+ class="content"
54
+ >
55
+ <div
56
+ class="ui loader"
57
+ />
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <div
62
+ class="ui label jobs-label-results"
63
+ >
64
+ jobs found
65
+ </div>
66
+ <table
67
+ class="ui selectable sortable table"
68
+ >
69
+ <thead
70
+ class=""
71
+ >
72
+ <tr
73
+ class=""
74
+ >
75
+ <th
76
+ class="two wide"
77
+ >
78
+ Source
79
+ </th>
80
+ <th
81
+ class="two wide"
82
+ >
83
+ Source Type
84
+ </th>
85
+ <th
86
+ class="two wide"
87
+ >
88
+ Type
89
+ </th>
90
+ <th
91
+ class="two wide"
92
+ >
93
+ Status
94
+ </th>
95
+ <th
96
+ class="two wide disabled"
97
+ >
98
+ Message
99
+ </th>
100
+ <th
101
+ class="two wide descending sorted"
102
+ >
103
+ Updated At
104
+ </th>
105
+ </tr>
106
+ </thead>
107
+ <tbody
108
+ class=""
109
+ >
110
+ <tr
111
+ class=""
112
+ >
113
+ <td
114
+ class=""
115
+ >
116
+ source external_id
117
+ </td>
118
+ <td
119
+ class=""
120
+ >
121
+ source_type
122
+ </td>
123
+ <td
124
+ class=""
125
+ />
126
+ <td
127
+ class=""
128
+ />
129
+ <td
130
+ class=""
131
+ />
132
+ <td
133
+ class="center aligned"
134
+ />
135
+ </tr>
136
+ <tr
137
+ class=""
138
+ >
139
+ <td
140
+ class=""
141
+ >
142
+ source external_id_2
143
+ </td>
144
+ <td
145
+ class=""
146
+ >
147
+ source_type_2
148
+ </td>
149
+ <td
150
+ class=""
151
+ />
152
+ <td
153
+ class=""
154
+ />
155
+ <td
156
+ class=""
157
+ />
158
+ <td
159
+ class="center aligned"
160
+ />
161
+ </tr>
162
+ </tbody>
163
+ </table>
164
+ </div>
165
+ </div>
166
+ </div>
167
+ `;
@@ -0,0 +1,115 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<SourceJobs /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <div
6
+ class="ui action left icon input"
7
+ style="display: none;"
8
+ >
9
+ <input
10
+ placeholder="Search jobs..."
11
+ type="text"
12
+ value=""
13
+ />
14
+ <i
15
+ aria-hidden="true"
16
+ class="search link icon"
17
+ />
18
+ </div>
19
+ <div
20
+ class="selectedFilters"
21
+ style="display: none;"
22
+ />
23
+ <div
24
+ class="dimmable"
25
+ style="display: none;"
26
+ >
27
+ <div
28
+ class="ui inverted dimmer"
29
+ >
30
+ <div
31
+ class="content"
32
+ >
33
+ <div
34
+ class="ui loader"
35
+ />
36
+ </div>
37
+ </div>
38
+ </div>
39
+ <div
40
+ class="ui label jobs-label-results"
41
+ style="display: none;"
42
+ >
43
+ 42 jobs found
44
+ </div>
45
+ <table
46
+ class="ui selectable sortable table"
47
+ style="display: none;"
48
+ >
49
+ <thead
50
+ class=""
51
+ >
52
+ <tr
53
+ class=""
54
+ >
55
+ <th
56
+ class="three wide"
57
+ >
58
+ Updated At
59
+ </th>
60
+ <th
61
+ class="two wide"
62
+ >
63
+ Type
64
+ </th>
65
+ <th
66
+ class="two wide"
67
+ >
68
+ Status
69
+ </th>
70
+ <th
71
+ class="nine wide ascending sorted disabled"
72
+ >
73
+ Message
74
+ </th>
75
+ </tr>
76
+ </thead>
77
+ <tbody
78
+ class=""
79
+ >
80
+ <tr
81
+ class=""
82
+ >
83
+ <td
84
+ class=""
85
+ />
86
+ <td
87
+ class=""
88
+ />
89
+ <td
90
+ class=""
91
+ />
92
+ <td
93
+ class=""
94
+ />
95
+ </tr>
96
+ <tr
97
+ class=""
98
+ >
99
+ <td
100
+ class=""
101
+ />
102
+ <td
103
+ class=""
104
+ />
105
+ <td
106
+ class=""
107
+ />
108
+ <td
109
+ class=""
110
+ />
111
+ </tr>
112
+ </tbody>
113
+ </table>
114
+ </div>
115
+ `;
@@ -1,5 +1,3 @@
1
1
  import JobRoutes from "./JobRoutes";
2
- import Jobs from "./Jobs";
3
- import JobsTable from "./JobsTable";
4
2
 
5
- export { JobRoutes, Jobs, JobsTable };
3
+ export { JobRoutes };
@@ -1,5 +1,7 @@
1
- export { getJobColumns, getJobsRows } from "./getJobColumns";
2
1
  export { getJobAvailableFilters } from "./getJobAvailableFilters";
3
- export { getJobSelectedFilters } from "./getJobSelectedFilters";
4
2
  export { getJobSelectedFilterActiveValues } from "./getJobSelectedFilterActiveValues";
3
+ export { getJobSelectedFilters } from "./getJobSelectedFilters";
5
4
  export { getJobSelectedFilterValues } from "./getJobSelectedFilterValues";
5
+ export { jobColumnsSelector } from "./jobColumnsSelector";
6
+ export { jobRowsSelector } from "./jobRowsSelector";
7
+ export { sourceJobColumnsSelector } from "./sourceJobColumnsSelector";