foreman-tasks 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/.babelrc +9 -1
  3. data/.eslintrc +6 -0
  4. data/.gitignore +1 -0
  5. data/.rubocop.yml +6 -0
  6. data/.storybook/webpack.config.js +51 -54
  7. data/app/controllers/foreman_tasks/api/tasks_controller.rb +0 -2
  8. data/app/controllers/foreman_tasks/tasks_controller.rb +6 -1
  9. data/app/helpers/foreman_tasks/foreman_tasks_helper.rb +8 -0
  10. data/app/lib/actions/base.rb +7 -0
  11. data/app/lib/actions/helpers/lifecycle_logging.rb +21 -0
  12. data/app/lib/actions/proxy_action.rb +4 -2
  13. data/app/models/foreman_tasks/task.rb +23 -0
  14. data/app/models/foreman_tasks/task/summarizer.rb +96 -6
  15. data/app/models/foreman_tasks/triggering.rb +2 -2
  16. data/app/models/setting/foreman_tasks.rb +8 -1
  17. data/app/services/foreman_tasks/dashboard_table_filter.rb +47 -0
  18. data/app/services/foreman_tasks/troubleshooting_help_generator.rb +92 -0
  19. data/app/services/ui_notifications/tasks.rb +20 -0
  20. data/app/services/ui_notifications/tasks/task_paused_admin.rb +43 -0
  21. data/app/services/ui_notifications/tasks/task_paused_owner.rb +30 -0
  22. data/app/views/foreman_tasks/tasks/_details.html.erb +5 -3
  23. data/app/views/foreman_tasks/tasks/index.html.erb +13 -0
  24. data/config/routes.rb +1 -0
  25. data/db/migrate/20190318153925_add_task_state_updated_at.foreman_tasks.rb +5 -0
  26. data/db/migrate/20190404132157_add_implicit_varchar_uuid_cast.rb +25 -0
  27. data/db/seeds.d/30-notification_blueprints.rb +33 -0
  28. data/foreman-tasks.gemspec +1 -1
  29. data/lib/foreman_tasks/cleaner.rb +5 -4
  30. data/lib/foreman_tasks/engine.rb +1 -1
  31. data/lib/foreman_tasks/test_helpers.rb +10 -0
  32. data/lib/foreman_tasks/version.rb +1 -1
  33. data/package.json +14 -11
  34. data/test/controllers/tasks_controller_test.rb +10 -0
  35. data/test/foreman_tasks_test_helper.rb +4 -0
  36. data/test/support/dummy_dynflow_action.rb +29 -0
  37. data/test/support/history_tasks_builder.rb +42 -0
  38. data/test/unit/actions/action_with_sub_plans_test.rb +4 -1
  39. data/test/unit/actions/bulk_action_test.rb +2 -0
  40. data/test/unit/cleaner_test.rb +15 -0
  41. data/test/unit/dashboard_table_filter_test.rb +65 -0
  42. data/test/unit/summarizer_test.rb +39 -0
  43. data/test/unit/task_test.rb +14 -0
  44. data/test/unit/troubleshooting_help_generator_test.rb +71 -0
  45. data/test/unit/ui_notifications_test.rb +86 -0
  46. data/webpack/ForemanTasks/Components/Chart/Chart.js +128 -0
  47. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.js +20 -0
  48. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.stories.js +51 -0
  49. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.test.js +11 -0
  50. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/__snapshots__/PausedTasksCard.test.js.snap +36 -0
  51. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.js +20 -0
  52. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.stories.js +51 -0
  53. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.test.js +11 -0
  54. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/__snapshots__/RunningTasksCard.test.js.snap +36 -0
  55. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.js +64 -0
  56. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.scss +25 -0
  57. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.stories.js +28 -0
  58. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.test.js +18 -0
  59. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/__snapshots__/ScheduledTasksCard.test.js.snap +94 -0
  60. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js +89 -0
  61. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.scss +46 -0
  62. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.stories.js +72 -0
  63. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.test.js +48 -0
  64. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCardHelper.js +63 -0
  65. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/__snapshots__/StoppedTasksCard.test.js.snap +973 -0
  66. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js +96 -0
  67. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.scss +17 -0
  68. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.stories.js +46 -0
  69. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.test.js +43 -0
  70. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/__snapshots__/TasksDonutCard.test.js.snap +183 -0
  71. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.js +166 -0
  72. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.scss +24 -0
  73. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.stories.js +25 -0
  74. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.test.js +40 -0
  75. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartConstants.js +13 -0
  76. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.js +94 -0
  77. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.test.js +152 -0
  78. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChart.test.js.snap +302 -0
  79. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChartHelper.test.js.snap +21 -0
  80. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.fixtures.js +25 -0
  81. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.js +72 -0
  82. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.stories.js +52 -0
  83. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.test.js +21 -0
  84. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/__snapshots__/TasksCardsGrid.test.js.snap +223 -0
  85. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.js +57 -0
  86. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.scss +26 -0
  87. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.stories.js +22 -0
  88. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.test.js +57 -0
  89. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/__snapshots__/TasksLabelsRow.test.js.snap +47 -0
  90. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.js +51 -0
  91. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.stories.js +23 -0
  92. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.test.js +19 -0
  93. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/__snapshots__/TimeDropDown.test.js.snap +85 -0
  94. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.js +33 -0
  95. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.scss +11 -0
  96. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.stories.js +22 -0
  97. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.test.js +15 -0
  98. data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/__snapshots__/TasksTimeRow.test.js.snap +41 -0
  99. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.js +77 -0
  100. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.scss +6 -0
  101. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardActions.js +62 -0
  102. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardConstants.js +94 -0
  103. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardHelper.js +78 -0
  104. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardPropTypes.js +13 -0
  105. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardReducer.js +50 -0
  106. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardSelectors.js +44 -0
  107. data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboard.test.js +13 -0
  108. data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardActions.test.js +37 -0
  109. data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardHelper.test.js +36 -0
  110. data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardReducer.test.js +58 -0
  111. data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardSelectors.test..js +59 -0
  112. data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboard.test.js.snap +51 -0
  113. data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardActions.test.js.snap +61 -0
  114. data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardReducer.test.js.snap +280 -0
  115. data/webpack/ForemanTasks/Components/TasksDashboard/index.js +25 -0
  116. data/webpack/ForemanTasks/ForemanTasksReducers.js +10 -0
  117. data/webpack/ForemanTasks/ForemanTasksSelectors.js +1 -0
  118. data/webpack/__mocks__/foremanReact/API.js +7 -0
  119. data/webpack/__mocks__/foremanReact/common/I18n.js +5 -0
  120. data/webpack/__mocks__/foremanReact/common/helpers.js +3 -0
  121. data/webpack/index.js +13 -1
  122. data/webpack/stories/decorators/index.js +1 -0
  123. data/webpack/stories/decorators/withCardsDecorator.js +14 -0
  124. data/webpack/stories/index.js +1 -3
  125. data/webpack/stories/index.scss +6 -0
  126. metadata +101 -8
  127. data/webpack/ForemanTasks/components/Hello/Hello.stories.js +0 -5
  128. data/webpack/ForemanTasks/components/Hello/__tests__/Hello.test.js +0 -11
  129. data/webpack/ForemanTasks/components/Hello/__tests__/__snapshots__/Hello.test.js.snap +0 -7
  130. data/webpack/ForemanTasks/components/Hello/index.js +0 -5
@@ -0,0 +1,25 @@
1
+ import { bindActionCreators } from 'redux';
2
+ import { connect } from 'react-redux';
3
+ import TasksDashboard from './TasksDashboard';
4
+ import * as actions from './TasksDashboardActions';
5
+ import reducer from './TasksDashboardReducer';
6
+ import {
7
+ selectTime,
8
+ selectQuery,
9
+ selectTasksSummary,
10
+ } from './TasksDashboardSelectors';
11
+
12
+ const mapStateToProps = state => ({
13
+ time: selectTime(state),
14
+ query: selectQuery(state),
15
+ tasksSummary: selectTasksSummary(state),
16
+ });
17
+
18
+ const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);
19
+
20
+ export const reducers = { tasksDashboard: reducer };
21
+
22
+ export default connect(
23
+ mapStateToProps,
24
+ mapDispatchToProps
25
+ )(TasksDashboard);
@@ -0,0 +1,10 @@
1
+ import { combineReducers } from 'redux';
2
+ import { reducers as tasksDashboardReducers } from './Components/TasksDashboard';
3
+
4
+ const reducers = {
5
+ foremanTasks: combineReducers({
6
+ ...tasksDashboardReducers,
7
+ }),
8
+ };
9
+
10
+ export default reducers;
@@ -0,0 +1 @@
1
+ export const selectForemanTasks = state => state.foremanTasks || {};
@@ -0,0 +1,7 @@
1
+ export default {
2
+ get: jest.fn(),
3
+ put: jest.fn(),
4
+ post: jest.fn(),
5
+ delete: jest.fn(),
6
+ patch: jest.fn(),
7
+ };
@@ -0,0 +1,5 @@
1
+ export { sprintf } from 'jed';
2
+
3
+ export const translate = s => s;
4
+
5
+ export const ngettext = s => s;
@@ -0,0 +1,3 @@
1
+ export const getURIQuery = jest.fn(() => ({}));
2
+
3
+ export const noop = Function.prototype;
data/webpack/index.js CHANGED
@@ -1,11 +1,23 @@
1
1
  /* eslint import/no-unresolved: [2, { ignore: [foremanReact/*] }] */
2
2
  /* eslint-disable import/no-extraneous-dependencies */
3
3
  /* eslint-disable import/extensions */
4
- /* eslint-disable import/no-unresolved */
5
4
  import componentRegistry from 'foremanReact/components/componentRegistry';
5
+ import { registerReducer } from 'foremanReact/common/MountingService';
6
+ import reducers from './ForemanTasks/ForemanTasksReducers';
6
7
  import ForemanTasks from './ForemanTasks';
8
+ import TasksDashboard from './ForemanTasks/Components/TasksDashboard';
7
9
 
10
+ // register reducers
11
+ Object.entries(reducers).forEach(([key, reducer]) =>
12
+ registerReducer(key, reducer)
13
+ );
14
+
15
+ // register components
8
16
  componentRegistry.register({
9
17
  name: 'ForemanTasks',
10
18
  type: ForemanTasks,
11
19
  });
20
+ componentRegistry.register({
21
+ name: 'TasksDashboard',
22
+ type: TasksDashboard,
23
+ });
@@ -0,0 +1 @@
1
+ export * from './withCardsDecorator';
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+
3
+ export const withCardsDecorator = storyFn => (
4
+ <div
5
+ style={{
6
+ width: '100%',
7
+ height: '100vh',
8
+ backgroundColor: '#F5F5F5',
9
+ padding: '50px',
10
+ }}
11
+ >
12
+ <div style={{ width: '300px', margin: 'auto' }}>{storyFn()}</div>
13
+ </div>
14
+ );
@@ -1,7 +1,5 @@
1
1
  import { configure } from '@storybook/react';
2
-
3
- require('patternfly/dist/css/patternfly.min.css');
4
- require('patternfly/dist/css/patternfly-additions.min.css');
2
+ import './index.scss';
5
3
 
6
4
  const req = require.context('../', true, /.stories.js$/);
7
5
 
@@ -0,0 +1,6 @@
1
+ $img-path: '~patternfly/dist/img/';
2
+ $font-path: '~patternfly/dist/fonts/';
3
+ $icon-font-path: '~patternfly/dist/fonts/';
4
+
5
+ @import '~patternfly/dist/sass/patternfly';
6
+ @import '~patternfly-react/dist/sass/patternfly-react';
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-15 00:00:00.000000000 Z
11
+ date: 2019-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks-core
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.2
33
+ version: 1.2.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2.2
40
+ version: 1.2.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sinatra
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -145,6 +145,7 @@ files:
145
145
  - app/lib/actions/foreman/puppetclass/import.rb
146
146
  - app/lib/actions/helpers/args_serialization.rb
147
147
  - app/lib/actions/helpers/humanizer.rb
148
+ - app/lib/actions/helpers/lifecycle_logging.rb
148
149
  - app/lib/actions/helpers/lock.rb
149
150
  - app/lib/actions/helpers/with_continuous_output.rb
150
151
  - app/lib/actions/helpers/with_delegated_action.rb
@@ -179,7 +180,12 @@ files:
179
180
  - app/models/foreman_tasks/task_groups/recurring_logic_task_group.rb
180
181
  - app/models/foreman_tasks/triggering.rb
181
182
  - app/models/setting/foreman_tasks.rb
183
+ - app/services/foreman_tasks/dashboard_table_filter.rb
182
184
  - app/services/foreman_tasks/proxy_selector.rb
185
+ - app/services/foreman_tasks/troubleshooting_help_generator.rb
186
+ - app/services/ui_notifications/tasks.rb
187
+ - app/services/ui_notifications/tasks/task_paused_admin.rb
188
+ - app/services/ui_notifications/tasks/task_paused_owner.rb
183
189
  - app/views/common/_trigger_form.html.erb
184
190
  - app/views/foreman_tasks/api/recurring_logics/base.json.rabl
185
191
  - app/views/foreman_tasks/api/recurring_logics/index.json.rabl
@@ -225,7 +231,10 @@ files:
225
231
  - db/migrate/20180207150921_add_remote_tasks.foreman_tasks.rb
226
232
  - db/migrate/20180216092715_use_uuid.rb
227
233
  - db/migrate/20181019135324_add_remote_task_operation.rb
234
+ - db/migrate/20190318153925_add_task_state_updated_at.foreman_tasks.rb
235
+ - db/migrate/20190404132157_add_implicit_varchar_uuid_cast.rb
228
236
  - db/seeds.d/20-foreman_tasks_permissions.rb
237
+ - db/seeds.d/30-notification_blueprints.rb
229
238
  - db/seeds.d/60-dynflow_proxy_feature.rb
230
239
  - db/seeds.d/61-foreman_tasks_bookmarks.rb
231
240
  - deploy/foreman-tasks.service
@@ -281,6 +290,7 @@ files:
281
290
  - test/support/dummy_proxy_action.rb
282
291
  - test/support/dummy_recurring_dynflow_action.rb
283
292
  - test/support/dummy_task_group.rb
293
+ - test/support/history_tasks_builder.rb
284
294
  - test/tasks/generate_task_actions_test.rb
285
295
  - test/unit/actions/action_with_sub_plans_test.rb
286
296
  - test/unit/actions/bulk_action_test.rb
@@ -288,17 +298,93 @@ files:
288
298
  - test/unit/actions/recurring_action_test.rb
289
299
  - test/unit/cleaner_test.rb
290
300
  - test/unit/config/environment.rb
301
+ - test/unit/dashboard_table_filter_test.rb
291
302
  - test/unit/dynflow_console_authorizer_test.rb
292
303
  - test/unit/lock_test.rb
293
304
  - test/unit/otp_manager_test.rb
294
305
  - test/unit/proxy_selector_test.rb
295
306
  - test/unit/recurring_logic_test.rb
296
307
  - test/unit/remote_task_test.rb
308
+ - test/unit/summarizer_test.rb
297
309
  - test/unit/task_groups_test.rb
298
310
  - test/unit/task_test.rb
299
311
  - test/unit/triggering_test.rb
312
+ - test/unit/troubleshooting_help_generator_test.rb
313
+ - test/unit/ui_notifications_test.rb
314
+ - webpack/ForemanTasks/Components/Chart/Chart.js
315
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.js
316
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.stories.js
317
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.test.js
318
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/__snapshots__/PausedTasksCard.test.js.snap
319
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.js
320
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.stories.js
321
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.test.js
322
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/__snapshots__/RunningTasksCard.test.js.snap
323
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.js
324
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.scss
325
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.stories.js
326
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.test.js
327
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/__snapshots__/ScheduledTasksCard.test.js.snap
328
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js
329
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.scss
330
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.stories.js
331
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.test.js
332
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCardHelper.js
333
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/__snapshots__/StoppedTasksCard.test.js.snap
334
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js
335
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.scss
336
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.stories.js
337
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.test.js
338
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/__snapshots__/TasksDonutCard.test.js.snap
339
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.js
340
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.scss
341
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.stories.js
342
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.test.js
343
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartConstants.js
344
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.js
345
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.test.js
346
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChart.test.js.snap
347
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChartHelper.test.js.snap
348
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.fixtures.js
349
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.js
350
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.stories.js
351
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.test.js
352
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/__snapshots__/TasksCardsGrid.test.js.snap
353
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.js
354
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.scss
355
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.stories.js
356
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.test.js
357
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/__snapshots__/TasksLabelsRow.test.js.snap
358
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.js
359
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.stories.js
360
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.test.js
361
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/__snapshots__/TimeDropDown.test.js.snap
362
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.js
363
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.scss
364
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.stories.js
365
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.test.js
366
+ - webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/__snapshots__/TasksTimeRow.test.js.snap
367
+ - webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.js
368
+ - webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.scss
369
+ - webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardActions.js
370
+ - webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardConstants.js
371
+ - webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardHelper.js
372
+ - webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardPropTypes.js
373
+ - webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardReducer.js
374
+ - webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardSelectors.js
375
+ - webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboard.test.js
376
+ - webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardActions.test.js
377
+ - webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardHelper.test.js
378
+ - webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardReducer.test.js
379
+ - webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardSelectors.test..js
380
+ - webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboard.test.js.snap
381
+ - webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardActions.test.js.snap
382
+ - webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardReducer.test.js.snap
383
+ - webpack/ForemanTasks/Components/TasksDashboard/index.js
300
384
  - webpack/ForemanTasks/ForemanTasks.js
301
385
  - webpack/ForemanTasks/ForemanTasks.test.js
386
+ - webpack/ForemanTasks/ForemanTasksReducers.js
387
+ - webpack/ForemanTasks/ForemanTasksSelectors.js
302
388
  - webpack/ForemanTasks/Routes/ForemanTasksRouter.js
303
389
  - webpack/ForemanTasks/Routes/ForemanTasksRouter.test.js
304
390
  - webpack/ForemanTasks/Routes/ForemanTasksRoutes.js
@@ -316,13 +402,15 @@ files:
316
402
  - webpack/ForemanTasks/Routes/__snapshots__/ForemanTasksRouter.test.js.snap
317
403
  - webpack/ForemanTasks/Routes/__snapshots__/ForemanTasksRoutes.test.js.snap
318
404
  - webpack/ForemanTasks/__snapshots__/ForemanTasks.test.js.snap
319
- - webpack/ForemanTasks/components/Hello/Hello.stories.js
320
- - webpack/ForemanTasks/components/Hello/__tests__/Hello.test.js
321
- - webpack/ForemanTasks/components/Hello/__tests__/__snapshots__/Hello.test.js.snap
322
- - webpack/ForemanTasks/components/Hello/index.js
323
405
  - webpack/ForemanTasks/index.js
406
+ - webpack/__mocks__/foremanReact/API.js
407
+ - webpack/__mocks__/foremanReact/common/I18n.js
408
+ - webpack/__mocks__/foremanReact/common/helpers.js
324
409
  - webpack/index.js
410
+ - webpack/stories/decorators/index.js
411
+ - webpack/stories/decorators/withCardsDecorator.js
325
412
  - webpack/stories/index.js
413
+ - webpack/stories/index.scss
326
414
  - webpack/test_setup.js
327
415
  homepage: https://github.com/theforeman/foreman-tasks
328
416
  licenses: []
@@ -370,6 +458,7 @@ test_files:
370
458
  - test/support/dummy_proxy_action.rb
371
459
  - test/support/dummy_recurring_dynflow_action.rb
372
460
  - test/support/dummy_task_group.rb
461
+ - test/support/history_tasks_builder.rb
373
462
  - test/tasks/generate_task_actions_test.rb
374
463
  - test/unit/actions/action_with_sub_plans_test.rb
375
464
  - test/unit/actions/bulk_action_test.rb
@@ -377,12 +466,16 @@ test_files:
377
466
  - test/unit/actions/recurring_action_test.rb
378
467
  - test/unit/cleaner_test.rb
379
468
  - test/unit/config/environment.rb
469
+ - test/unit/dashboard_table_filter_test.rb
380
470
  - test/unit/dynflow_console_authorizer_test.rb
381
471
  - test/unit/lock_test.rb
382
472
  - test/unit/otp_manager_test.rb
383
473
  - test/unit/proxy_selector_test.rb
384
474
  - test/unit/recurring_logic_test.rb
385
475
  - test/unit/remote_task_test.rb
476
+ - test/unit/summarizer_test.rb
386
477
  - test/unit/task_groups_test.rb
387
478
  - test/unit/task_test.rb
388
479
  - test/unit/triggering_test.rb
480
+ - test/unit/troubleshooting_help_generator_test.rb
481
+ - test/unit/ui_notifications_test.rb
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { storiesOf } from '@storybook/react';
3
- import Hello from './index';
4
-
5
- storiesOf('Hello React', module).add('Hello', () => <Hello />);
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { shallow } from 'enzyme';
3
- import toJson from 'enzyme-to-json';
4
- import Hello from '../index';
5
-
6
- describe('Hello component', () => {
7
- it('rendering', () => {
8
- const wrapper = shallow(<Hello />);
9
- expect(toJson(wrapper)).toMatchSnapshot();
10
- });
11
- });
@@ -1,7 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Hello component rendering 1`] = `
4
- <h1>
5
- Hello React
6
- </h1>
7
- `;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
-
3
- const Hello = () => <h1>Hello React</h1>;
4
-
5
- export default Hello;