foreman-tasks 12.0.0 → 12.1.0
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.
- checksums.yaml +4 -4
- data/.github/workflows/ruby_tests.yml +1 -0
- data/app/assets/javascripts/foreman-tasks/locale/de/foreman_tasks.js +58 -22
- data/app/assets/javascripts/foreman-tasks/locale/en/foreman_tasks.js +56 -20
- data/app/assets/javascripts/foreman-tasks/locale/es/foreman_tasks.js +59 -23
- data/app/assets/javascripts/foreman-tasks/locale/fr/foreman_tasks.js +61 -25
- data/app/assets/javascripts/foreman-tasks/locale/ja/foreman_tasks.js +61 -25
- data/app/assets/javascripts/foreman-tasks/locale/ka/foreman_tasks.js +60 -24
- data/app/assets/javascripts/foreman-tasks/locale/ko/foreman_tasks.js +61 -25
- data/app/assets/javascripts/foreman-tasks/locale/pt_BR/foreman_tasks.js +59 -23
- data/app/assets/javascripts/foreman-tasks/locale/ru/foreman_tasks.js +58 -22
- data/app/assets/javascripts/foreman-tasks/locale/zh_CN/foreman_tasks.js +61 -25
- data/app/assets/javascripts/foreman-tasks/locale/zh_TW/foreman_tasks.js +57 -21
- data/app/controllers/foreman_tasks/api/tasks_controller.rb +4 -19
- data/app/controllers/foreman_tasks/tasks_controller.rb +4 -5
- data/app/models/foreman_tasks/task.rb +1 -1
- data/app/views/foreman_tasks/api/tasks/dependency_summary.json.rabl +1 -3
- data/app/views/foreman_tasks/api/tasks/show.json.rabl +4 -1
- data/config/routes.rb +3 -3
- data/foreman-tasks.gemspec +3 -1
- data/lib/foreman_tasks/engine.rb +1 -1
- data/lib/foreman_tasks/tasks/export_tasks.rake +1 -1
- data/lib/foreman_tasks/version.rb +1 -1
- data/locale/de/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/de/foreman_tasks.po +59 -23
- data/locale/en/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/en/foreman_tasks.po +56 -20
- data/locale/es/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/es/foreman_tasks.po +59 -23
- data/locale/foreman_tasks.pot +173 -100
- data/locale/fr/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/fr/foreman_tasks.po +61 -25
- data/locale/ja/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ja/foreman_tasks.po +61 -25
- data/locale/ka/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ka/foreman_tasks.po +60 -24
- data/locale/ko/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ko/foreman_tasks.po +61 -25
- data/locale/pt_BR/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/pt_BR/foreman_tasks.po +59 -23
- data/locale/ru/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ru/foreman_tasks.po +58 -22
- data/locale/zh_CN/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/zh_CN/foreman_tasks.po +61 -25
- data/locale/zh_TW/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/zh_TW/foreman_tasks.po +57 -21
- data/test/controllers/api/tasks_controller_test.rb +29 -3
- data/test/controllers/tasks_controller_test.rb +46 -2
- data/webpack/ForemanTasks/Components/TaskActions/TaskAction.test.js +8 -0
- data/webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js +8 -2
- data/webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.test.js +25 -33
- data/webpack/ForemanTasks/Components/TaskActions/index.js +24 -3
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/TaskInfo.test.js.snap +6 -6
- data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js +9 -0
- data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetailsActions.test.js.snap +16 -11
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.js +2 -3
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/__snapshots__/TasksTimeRow.test.js.snap +4 -8
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.js +2 -4
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.scss +0 -3
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboard.test.js.snap +2 -5
- data/webpack/ForemanTasks/Components/{common/ActionButtons/ActionButton.js → TasksTable/Components/CellActionButton.js} +36 -21
- data/webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/__test__/index.test.js +32 -29
- data/webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/createBulkTaskModal.js +14 -18
- data/webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/createTaskModal.js +13 -15
- data/webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js +7 -7
- data/webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js +16 -23
- data/webpack/ForemanTasks/Components/TasksTable/TasksColumns.js +56 -0
- data/webpack/ForemanTasks/Components/TasksTable/TasksIndexPage.js +277 -3
- data/webpack/ForemanTasks/Components/TasksTable/TasksModals.js +96 -0
- data/webpack/ForemanTasks/Components/TasksTable/TasksTableConstants.js +10 -18
- data/webpack/ForemanTasks/Components/TasksTable/TasksTableHelpers.js +3 -3
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksBulkActions.test.js +130 -63
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksIndexPage.test.js +315 -8
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js +214 -41
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTableHelpers.test.js +20 -12
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksBulkActions.test.js.snap +18 -35
- data/webpack/ForemanTasks/ForemanTasksReducers.js +0 -4
- data/webpack/Routes/routes.js +22 -0
- data/webpack/Routes/routes.test.js +95 -0
- data/webpack/global_index.js +10 -0
- data/webpack/index.js +0 -18
- data/webpack/test_setup.js +1 -0
- metadata +15 -89
- data/app/controllers/foreman_tasks/react_controller.rb +0 -17
- data/app/views/foreman_tasks/layouts/react.html.erb +0 -13
- data/webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/ConfirmModalSelectors.js +0 -30
- data/webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/__test__/ConfirmModalSelectors.test.js +0 -66
- data/webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/__test__/__snapshots__/ConfirmModalSelectors.test.js.snap +0 -33
- data/webpack/ForemanTasks/Components/TasksTable/Components/SelectAllAlert.js +0 -49
- data/webpack/ForemanTasks/Components/TasksTable/Components/TableSelectionCell.js +0 -32
- data/webpack/ForemanTasks/Components/TasksTable/Components/TableSelectionHeaderCell.js +0 -38
- data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/SelectAllAlert.test.js +0 -29
- data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/TableSelectionCell.test.js +0 -15
- data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/TableSelectionHeaderCell.test.js +0 -15
- data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/SelectAllAlert.test.js.snap +0 -81
- data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/TableSelectionCell.test.js.snap +0 -14
- data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/TableSelectionHeaderCell.test.js.snap +0 -15
- data/webpack/ForemanTasks/Components/TasksTable/SubTasksPage.js +0 -40
- data/webpack/ForemanTasks/Components/TasksTable/TasksTable.js +0 -163
- data/webpack/ForemanTasks/Components/TasksTable/TasksTableActions.js +0 -108
- data/webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js +0 -234
- data/webpack/ForemanTasks/Components/TasksTable/TasksTablePage.scss +0 -20
- data/webpack/ForemanTasks/Components/TasksTable/TasksTableReducer.js +0 -68
- data/webpack/ForemanTasks/Components/TasksTable/TasksTableSchema.js +0 -85
- data/webpack/ForemanTasks/Components/TasksTable/TasksTableSelectors.js +0 -63
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/SubTasksPage.test.js +0 -20
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.test.js +0 -9
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTableActions.test.js +0 -65
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js +0 -35
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTableReducer.test.js +0 -87
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/SubTasksPage.test.js.snap +0 -48
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksIndexPage.test.js.snap +0 -39
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTable.test.js.snap +0 -52
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTableActions.test.js.snap +0 -40
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTablePage.test.js.snap +0 -368
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTableReducer.test.js.snap +0 -116
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/actionCellFormatter.test.js.snap +0 -15
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/actionNameCellFormatter.test.js.snap +0 -10
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/dateCellFormmatter.test.js.snap +0 -9
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/durationCellFormmatter.test.js.snap +0 -18
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/selectionCellFormatter.test.js.snap +0 -12
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/selectionHeaderCellFormatter.test.js.snap +0 -11
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/actionCellFormatter.test.js +0 -11
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/actionNameCellFormatter.test.js +0 -8
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/dateCellFormmatter.test.js +0 -7
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/durationCellFormmatter.test.js +0 -12
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/selectionCellFormatter.test.js +0 -12
- data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/selectionHeaderCellFormatter.test.js +0 -12
- data/webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js +0 -19
- data/webpack/ForemanTasks/Components/TasksTable/formatters/actionNameCellFormatter.js +0 -9
- data/webpack/ForemanTasks/Components/TasksTable/formatters/dateCellFormmatter.js +0 -7
- data/webpack/ForemanTasks/Components/TasksTable/formatters/durationCellFormmatter.js +0 -7
- data/webpack/ForemanTasks/Components/TasksTable/formatters/index.js +0 -7
- data/webpack/ForemanTasks/Components/TasksTable/formatters/selectionCellFormatter.js +0 -17
- data/webpack/ForemanTasks/Components/TasksTable/formatters/selectionHeaderCellFormatter.js +0 -11
- data/webpack/ForemanTasks/Components/TasksTable/index.js +0 -42
- data/webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.test.js +0 -101
- data/webpack/ForemanTasks/Components/common/ActionButtons/__snapshots__/ActionButton.test.js.snap +0 -95
- data/webpack/ForemanTasks/ForemanTasks.js +0 -11
- data/webpack/ForemanTasks/ForemanTasks.test.js +0 -10
- data/webpack/ForemanTasks/Routes/ForemanTasksRouter.js +0 -14
- data/webpack/ForemanTasks/Routes/ForemanTasksRouter.test.js +0 -26
- data/webpack/ForemanTasks/Routes/ForemanTasksRoutes.js +0 -23
- data/webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js +0 -16
- data/webpack/ForemanTasks/Routes/__snapshots__/ForemanTasksRouter.test.js.snap +0 -16
- data/webpack/ForemanTasks/Routes/__snapshots__/ForemanTasksRoutes.test.js.snap +0 -37
- data/webpack/ForemanTasks/__snapshots__/ForemanTasks.test.js.snap +0 -7
- data/webpack/ForemanTasks/index.js +0 -1
- data/webpack/__mocks__/foremanReact/common/I18n.js +0 -7
- data/webpack/__mocks__/foremanReact/common/helpers.js +0 -6
- data/webpack/__mocks__/foremanReact/common/urlHelpers.js +0 -1
- data/webpack/__mocks__/foremanReact/components/Layout/LayoutActions.js +0 -2
- data/webpack/__mocks__/foremanReact/components/Pagination/index.js +0 -2
- data/webpack/__mocks__/foremanReact/components/ToastsList/index.js +0 -8
- data/webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js +0 -3
- data/webpack/__mocks__/foremanReact/components/common/MessageBox.js +0 -4
- data/webpack/__mocks__/foremanReact/components/common/dates/LongDateTime.js +0 -5
- data/webpack/__mocks__/foremanReact/components/common/dates/RelativeDateTime.js +0 -3
- data/webpack/__mocks__/foremanReact/components/common/table/actionsHelpers/actionTypeCreator.js +0 -7
- data/webpack/__mocks__/foremanReact/components/common/table.js +0 -5
- data/webpack/__mocks__/foremanReact/constants.js +0 -24
- data/webpack/__mocks__/foremanReact/redux/API/APISelectors.js +0 -10
- data/webpack/__mocks__/foremanReact/redux/API/index.js +0 -10
- data/webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware.js +0 -5
- data/webpack/__mocks__/foremanReact/routes/common/PageLayout/PageLayout.js +0 -10
- data/webpack/__mocks__/foremanReact/routes/common/PageLayout/components/ExportButton/ExportButton.js +0 -5
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman-tasks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 12.
|
|
4
|
+
version: 12.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nečas
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version:
|
|
18
|
+
version: 2.0.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version:
|
|
25
|
+
version: 2.0.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: fugit
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -155,7 +155,6 @@ files:
|
|
|
155
155
|
- app/controllers/foreman_tasks/concerns/hosts_controller_extension.rb
|
|
156
156
|
- app/controllers/foreman_tasks/concerns/parameters/recurring_logic.rb
|
|
157
157
|
- app/controllers/foreman_tasks/concerns/parameters/triggering.rb
|
|
158
|
-
- app/controllers/foreman_tasks/react_controller.rb
|
|
159
158
|
- app/controllers/foreman_tasks/recurring_logics_controller.rb
|
|
160
159
|
- app/controllers/foreman_tasks/tasks_controller.rb
|
|
161
160
|
- app/graphql/mutations/recurring_logics/cancel.rb
|
|
@@ -238,7 +237,6 @@ files:
|
|
|
238
237
|
- app/views/foreman_tasks/api/tasks/details.json.rabl
|
|
239
238
|
- app/views/foreman_tasks/api/tasks/index.json.rabl
|
|
240
239
|
- app/views/foreman_tasks/api/tasks/show.json.rabl
|
|
241
|
-
- app/views/foreman_tasks/layouts/react.html.erb
|
|
242
240
|
- app/views/foreman_tasks/recurring_logics/_tab_related.html.erb
|
|
243
241
|
- app/views/foreman_tasks/recurring_logics/index.html.erb
|
|
244
242
|
- app/views/foreman_tasks/recurring_logics/show.html.erb
|
|
@@ -499,116 +497,41 @@ files:
|
|
|
499
497
|
- webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardSelectors.test.js.snap
|
|
500
498
|
- webpack/ForemanTasks/Components/TasksDashboard/index.js
|
|
501
499
|
- webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js
|
|
502
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/
|
|
500
|
+
- webpack/ForemanTasks/Components/TasksTable/Components/CellActionButton.js
|
|
503
501
|
- webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/GenericConfirmModal.js
|
|
504
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/__test__/ConfirmModalSelectors.test.js
|
|
505
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/__test__/__snapshots__/ConfirmModalSelectors.test.js.snap
|
|
506
502
|
- webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/__test__/index.test.js
|
|
507
503
|
- webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/createBulkTaskModal.js
|
|
508
504
|
- webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/createTaskModal.js
|
|
509
505
|
- webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/index.js
|
|
510
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/SelectAllAlert.js
|
|
511
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/TableSelectionCell.js
|
|
512
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/TableSelectionHeaderCell.js
|
|
513
506
|
- webpack/ForemanTasks/Components/TasksTable/Components/__test__/ActionSelectButton.test.js
|
|
514
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/__test__/SelectAllAlert.test.js
|
|
515
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/__test__/TableSelectionCell.test.js
|
|
516
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/__test__/TableSelectionHeaderCell.test.js
|
|
517
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/SelectAllAlert.test.js.snap
|
|
518
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/TableSelectionCell.test.js.snap
|
|
519
|
-
- webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/TableSelectionHeaderCell.test.js.snap
|
|
520
|
-
- webpack/ForemanTasks/Components/TasksTable/SubTasksPage.js
|
|
521
507
|
- webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js
|
|
508
|
+
- webpack/ForemanTasks/Components/TasksTable/TasksColumns.js
|
|
522
509
|
- webpack/ForemanTasks/Components/TasksTable/TasksIndexPage.js
|
|
523
|
-
- webpack/ForemanTasks/Components/TasksTable/
|
|
524
|
-
- webpack/ForemanTasks/Components/TasksTable/TasksTableActions.js
|
|
510
|
+
- webpack/ForemanTasks/Components/TasksTable/TasksModals.js
|
|
525
511
|
- webpack/ForemanTasks/Components/TasksTable/TasksTableConstants.js
|
|
526
512
|
- webpack/ForemanTasks/Components/TasksTable/TasksTableHelpers.js
|
|
527
|
-
- webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js
|
|
528
|
-
- webpack/ForemanTasks/Components/TasksTable/TasksTablePage.scss
|
|
529
|
-
- webpack/ForemanTasks/Components/TasksTable/TasksTableReducer.js
|
|
530
|
-
- webpack/ForemanTasks/Components/TasksTable/TasksTableSchema.js
|
|
531
|
-
- webpack/ForemanTasks/Components/TasksTable/TasksTableSelectors.js
|
|
532
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/SubTasksPage.test.js
|
|
533
513
|
- webpack/ForemanTasks/Components/TasksTable/__tests__/TasksBulkActions.test.js
|
|
534
514
|
- webpack/ForemanTasks/Components/TasksTable/__tests__/TasksIndexPage.test.js
|
|
535
515
|
- webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
|
|
536
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.test.js
|
|
537
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTableActions.test.js
|
|
538
516
|
- webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTableHelpers.test.js
|
|
539
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js
|
|
540
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTableReducer.test.js
|
|
541
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/SubTasksPage.test.js.snap
|
|
542
517
|
- webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksBulkActions.test.js.snap
|
|
543
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksIndexPage.test.js.snap
|
|
544
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTable.test.js.snap
|
|
545
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTableActions.test.js.snap
|
|
546
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTablePage.test.js.snap
|
|
547
|
-
- webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTableReducer.test.js.snap
|
|
548
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/actionCellFormatter.test.js.snap
|
|
549
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/actionNameCellFormatter.test.js.snap
|
|
550
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/dateCellFormmatter.test.js.snap
|
|
551
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/durationCellFormmatter.test.js.snap
|
|
552
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/selectionCellFormatter.test.js.snap
|
|
553
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/selectionHeaderCellFormatter.test.js.snap
|
|
554
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/actionCellFormatter.test.js
|
|
555
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/actionNameCellFormatter.test.js
|
|
556
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/dateCellFormmatter.test.js
|
|
557
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/durationCellFormmatter.test.js
|
|
558
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/selectionCellFormatter.test.js
|
|
559
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/__test__/selectionHeaderCellFormatter.test.js
|
|
560
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js
|
|
561
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/actionNameCellFormatter.js
|
|
562
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/dateCellFormmatter.js
|
|
563
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/durationCellFormmatter.js
|
|
564
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/index.js
|
|
565
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/selectionCellFormatter.js
|
|
566
|
-
- webpack/ForemanTasks/Components/TasksTable/formatters/selectionHeaderCellFormatter.js
|
|
567
|
-
- webpack/ForemanTasks/Components/TasksTable/index.js
|
|
568
|
-
- webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.js
|
|
569
|
-
- webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.test.js
|
|
570
|
-
- webpack/ForemanTasks/Components/common/ActionButtons/__snapshots__/ActionButton.test.js.snap
|
|
571
518
|
- webpack/ForemanTasks/Components/common/ClickConfirmation/ClickConfirmation.test.js
|
|
572
519
|
- webpack/ForemanTasks/Components/common/ClickConfirmation/index.js
|
|
573
520
|
- webpack/ForemanTasks/Components/common/ToastsHelpers/ToastTypesConstants.js
|
|
574
521
|
- webpack/ForemanTasks/Components/common/ToastsHelpers/index.js
|
|
575
522
|
- webpack/ForemanTasks/Components/common/urlHelpers.js
|
|
576
|
-
- webpack/ForemanTasks/ForemanTasks.js
|
|
577
|
-
- webpack/ForemanTasks/ForemanTasks.test.js
|
|
578
523
|
- webpack/ForemanTasks/ForemanTasksReducers.js
|
|
579
524
|
- webpack/ForemanTasks/ForemanTasksSelectors.js
|
|
580
|
-
- webpack/ForemanTasks/Routes/ForemanTasksRouter.js
|
|
581
|
-
- webpack/ForemanTasks/Routes/ForemanTasksRouter.test.js
|
|
582
|
-
- webpack/ForemanTasks/Routes/ForemanTasksRoutes.js
|
|
583
|
-
- webpack/ForemanTasks/Routes/ForemanTasksRoutes.test.js
|
|
584
525
|
- webpack/ForemanTasks/Routes/ShowTask/ShowTask.js
|
|
585
526
|
- webpack/ForemanTasks/Routes/ShowTask/__tests__/ShowTask.test.js
|
|
586
527
|
- webpack/ForemanTasks/Routes/ShowTask/__tests__/__snapshots__/ShowTask.test.js.snap
|
|
587
528
|
- webpack/ForemanTasks/Routes/ShowTask/index.js
|
|
588
529
|
- webpack/ForemanTasks/Routes/ShowTask/showTask.scss
|
|
589
|
-
- webpack/
|
|
590
|
-
- webpack/
|
|
591
|
-
- webpack/
|
|
592
|
-
- webpack/ForemanTasks/index.js
|
|
593
|
-
- webpack/__mocks__/foremanReact/common/I18n.js
|
|
594
|
-
- webpack/__mocks__/foremanReact/common/helpers.js
|
|
595
|
-
- webpack/__mocks__/foremanReact/common/urlHelpers.js
|
|
596
|
-
- webpack/__mocks__/foremanReact/components/Layout/LayoutActions.js
|
|
597
|
-
- webpack/__mocks__/foremanReact/components/Pagination/index.js
|
|
598
|
-
- webpack/__mocks__/foremanReact/components/ToastsList/index.js
|
|
599
|
-
- webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js
|
|
600
|
-
- webpack/__mocks__/foremanReact/components/common/MessageBox.js
|
|
601
|
-
- webpack/__mocks__/foremanReact/components/common/dates/LongDateTime.js
|
|
602
|
-
- webpack/__mocks__/foremanReact/components/common/dates/RelativeDateTime.js
|
|
603
|
-
- webpack/__mocks__/foremanReact/components/common/table.js
|
|
604
|
-
- webpack/__mocks__/foremanReact/components/common/table/actionsHelpers/actionTypeCreator.js
|
|
605
|
-
- webpack/__mocks__/foremanReact/constants.js
|
|
606
|
-
- webpack/__mocks__/foremanReact/redux/API/APISelectors.js
|
|
607
|
-
- webpack/__mocks__/foremanReact/redux/API/index.js
|
|
608
|
-
- webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware.js
|
|
609
|
-
- webpack/__mocks__/foremanReact/routes/common/PageLayout/PageLayout.js
|
|
610
|
-
- webpack/__mocks__/foremanReact/routes/common/PageLayout/components/ExportButton/ExportButton.js
|
|
530
|
+
- webpack/Routes/routes.js
|
|
531
|
+
- webpack/Routes/routes.test.js
|
|
532
|
+
- webpack/global_index.js
|
|
611
533
|
- webpack/index.js
|
|
534
|
+
- webpack/test_setup.js
|
|
612
535
|
homepage: https://github.com/theforeman/foreman-tasks
|
|
613
536
|
licenses:
|
|
614
537
|
- GPL-3.0
|
|
@@ -620,14 +543,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
620
543
|
requirements:
|
|
621
544
|
- - ">="
|
|
622
545
|
- !ruby/object:Gem::Version
|
|
623
|
-
version: '0'
|
|
546
|
+
version: '3.0'
|
|
547
|
+
- - "<"
|
|
548
|
+
- !ruby/object:Gem::Version
|
|
549
|
+
version: '4'
|
|
624
550
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
625
551
|
requirements:
|
|
626
552
|
- - ">="
|
|
627
553
|
- !ruby/object:Gem::Version
|
|
628
554
|
version: '0'
|
|
629
555
|
requirements: []
|
|
630
|
-
rubygems_version: 4.0.
|
|
556
|
+
rubygems_version: 4.0.6
|
|
631
557
|
specification_version: 4
|
|
632
558
|
summary: Foreman plugin for showing tasks information for resources and users
|
|
633
559
|
test_files:
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
module ForemanTasks
|
|
2
|
-
class ReactController < ::ApplicationController
|
|
3
|
-
def index
|
|
4
|
-
render 'foreman_tasks/layouts/react', :layout => false
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
private
|
|
8
|
-
|
|
9
|
-
def controller_permission
|
|
10
|
-
:foreman_tasks
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def action_permission
|
|
14
|
-
:view
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<% content_for(:javascripts) do %>
|
|
2
|
-
<%= webpacked_plugins_js_for :'foreman-tasks' %>
|
|
3
|
-
<% end %>
|
|
4
|
-
<% content_for(:stylesheets) do %>
|
|
5
|
-
<%= webpacked_plugins_css_for :'foreman-tasks' %>
|
|
6
|
-
<% end %>
|
|
7
|
-
|
|
8
|
-
<% content_for(:content) do %>
|
|
9
|
-
<div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
|
|
10
|
-
<div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
|
|
11
|
-
<%= react_component('ForemanTasks') %>
|
|
12
|
-
<% end %>
|
|
13
|
-
<%= render template: "layouts/base" %>
|
data/webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/ConfirmModalSelectors.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
selectTasksTableQuery,
|
|
3
|
-
selectResults,
|
|
4
|
-
selectSelectedRows,
|
|
5
|
-
selectItemCount,
|
|
6
|
-
selectAllRowsSelected,
|
|
7
|
-
} from '../../TasksTableSelectors';
|
|
8
|
-
|
|
9
|
-
export const selectClicked = state =>
|
|
10
|
-
selectTasksTableQuery(state).clicked || {};
|
|
11
|
-
|
|
12
|
-
export const selectSelectedTasks = state => {
|
|
13
|
-
const selectedIDs = selectResults(state).filter(item =>
|
|
14
|
-
selectSelectedRows(state).includes(item.id)
|
|
15
|
-
);
|
|
16
|
-
return selectedIDs.map(item => ({
|
|
17
|
-
name: item.action,
|
|
18
|
-
id: item.id,
|
|
19
|
-
isCancellable: item.availableActions.cancellable,
|
|
20
|
-
isResumable: item.availableActions.resumable,
|
|
21
|
-
canEdit: item.canEdit,
|
|
22
|
-
}));
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const selectSelectedRowsLen = state => {
|
|
26
|
-
if (selectAllRowsSelected(state)) {
|
|
27
|
-
return selectItemCount(state);
|
|
28
|
-
}
|
|
29
|
-
return selectSelectedRows(state).length;
|
|
30
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
|
|
2
|
-
import {
|
|
3
|
-
selectClicked,
|
|
4
|
-
selectSelectedTasks,
|
|
5
|
-
selectSelectedRowsLen,
|
|
6
|
-
} from '../ConfirmModalSelectors';
|
|
7
|
-
import { CANCEL_MODAL } from '../../../TasksTableConstants';
|
|
8
|
-
|
|
9
|
-
const state = {
|
|
10
|
-
foremanTasks: {
|
|
11
|
-
tasksTable: {
|
|
12
|
-
tasksTableContent: {
|
|
13
|
-
results: [
|
|
14
|
-
{
|
|
15
|
-
id: 1,
|
|
16
|
-
action: 'action1',
|
|
17
|
-
available_actions: { cancellable: true },
|
|
18
|
-
can_edit: true,
|
|
19
|
-
},
|
|
20
|
-
{ id: 2, action: 'action2', available_actions: { resumable: true } },
|
|
21
|
-
],
|
|
22
|
-
itemCount: 10,
|
|
23
|
-
},
|
|
24
|
-
tasksTableQuery: {
|
|
25
|
-
selectedRows: [1, 2, 3],
|
|
26
|
-
clicked: { taskId: '1', taskName: 'test-task' },
|
|
27
|
-
allRowsSelected: false,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const fixtures = {
|
|
34
|
-
'should select clicked': () => selectClicked(state),
|
|
35
|
-
'should select selectedTasks': () => selectSelectedTasks(state),
|
|
36
|
-
'should select selectedRowsLen 1': () =>
|
|
37
|
-
selectSelectedRowsLen({
|
|
38
|
-
...state,
|
|
39
|
-
foremanTasks: {
|
|
40
|
-
tasksTable: {
|
|
41
|
-
...state.foremanTasks.tasksTable,
|
|
42
|
-
tasksTableQuery: {
|
|
43
|
-
...state.foremanTasks.tasksTable.tasksTableQuery,
|
|
44
|
-
clicked: { modalType: CANCEL_MODAL },
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
}),
|
|
49
|
-
'should select selectedRowsLen all': () => selectSelectedRowsLen(state),
|
|
50
|
-
'should select selectedRowsLen some': () =>
|
|
51
|
-
selectSelectedRowsLen({
|
|
52
|
-
...state,
|
|
53
|
-
foremanTasks: {
|
|
54
|
-
tasksTable: {
|
|
55
|
-
...state.foremanTasks.tasksTable,
|
|
56
|
-
tasksTableQuery: {
|
|
57
|
-
...state.foremanTasks.tasksTable.tasksTableQuery,
|
|
58
|
-
allRowsSelected: true,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
}),
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
describe('TasksDashboard - Selectors', () =>
|
|
66
|
-
testSelectorsSnapshotWithFixtures(fixtures));
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`TasksDashboard - Selectors should select clicked 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"taskId": "1",
|
|
6
|
-
"taskName": "test-task",
|
|
7
|
-
}
|
|
8
|
-
`;
|
|
9
|
-
|
|
10
|
-
exports[`TasksDashboard - Selectors should select selectedRowsLen 1 1`] = `3`;
|
|
11
|
-
|
|
12
|
-
exports[`TasksDashboard - Selectors should select selectedRowsLen all 1`] = `3`;
|
|
13
|
-
|
|
14
|
-
exports[`TasksDashboard - Selectors should select selectedRowsLen some 1`] = `0`;
|
|
15
|
-
|
|
16
|
-
exports[`TasksDashboard - Selectors should select selectedTasks 1`] = `
|
|
17
|
-
Array [
|
|
18
|
-
Object {
|
|
19
|
-
"canEdit": true,
|
|
20
|
-
"id": 1,
|
|
21
|
-
"isCancellable": true,
|
|
22
|
-
"isResumable": undefined,
|
|
23
|
-
"name": "action1",
|
|
24
|
-
},
|
|
25
|
-
Object {
|
|
26
|
-
"canEdit": undefined,
|
|
27
|
-
"id": 2,
|
|
28
|
-
"isCancellable": undefined,
|
|
29
|
-
"isResumable": true,
|
|
30
|
-
"name": "action2",
|
|
31
|
-
},
|
|
32
|
-
]
|
|
33
|
-
`;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { FormattedMessage } from 'react-intl';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import { Alert, Button } from 'patternfly-react';
|
|
5
|
-
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
|
|
6
|
-
|
|
7
|
-
export const SelectAllAlert = ({
|
|
8
|
-
itemCount,
|
|
9
|
-
perPage,
|
|
10
|
-
selectAllRows,
|
|
11
|
-
unselectAllRows,
|
|
12
|
-
allRowsSelected,
|
|
13
|
-
}) => {
|
|
14
|
-
const selectAllText = (
|
|
15
|
-
<React.Fragment>
|
|
16
|
-
{sprintf(
|
|
17
|
-
'All %s tasks on this page are selected',
|
|
18
|
-
Math.min(itemCount, perPage)
|
|
19
|
-
)}
|
|
20
|
-
<Button bsStyle="link" onClick={selectAllRows}>
|
|
21
|
-
<FormattedMessage
|
|
22
|
-
id="select-all-tasks"
|
|
23
|
-
values={{
|
|
24
|
-
count: <b>{itemCount}</b>,
|
|
25
|
-
}}
|
|
26
|
-
defaultMessage={__('Select all {count} tasks')}
|
|
27
|
-
/>
|
|
28
|
-
</Button>
|
|
29
|
-
</React.Fragment>
|
|
30
|
-
);
|
|
31
|
-
const undoSelectText = (
|
|
32
|
-
<React.Fragment>
|
|
33
|
-
{sprintf(__('All %s tasks are selected.'), itemCount)}
|
|
34
|
-
<Button bsStyle="link" onClick={unselectAllRows}>
|
|
35
|
-
{__('Undo selection')}
|
|
36
|
-
</Button>
|
|
37
|
-
</React.Fragment>
|
|
38
|
-
);
|
|
39
|
-
const selectAlertText = allRowsSelected ? undoSelectText : selectAllText;
|
|
40
|
-
return <Alert type="info">{selectAlertText}</Alert>;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
SelectAllAlert.propTypes = {
|
|
44
|
-
allRowsSelected: PropTypes.bool.isRequired,
|
|
45
|
-
itemCount: PropTypes.number.isRequired,
|
|
46
|
-
perPage: PropTypes.number.isRequired,
|
|
47
|
-
selectAllRows: PropTypes.func.isRequired,
|
|
48
|
-
unselectAllRows: PropTypes.func.isRequired,
|
|
49
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { Table } from 'patternfly-react';
|
|
4
|
-
import { translate as __ } from 'foremanReact/common/I18n';
|
|
5
|
-
import { noop } from 'foremanReact/common/helpers';
|
|
6
|
-
|
|
7
|
-
const TableSelectionCell = ({ id, label, checked, onChange, ...props }) => (
|
|
8
|
-
<Table.SelectionCell>
|
|
9
|
-
<Table.Checkbox
|
|
10
|
-
id={id}
|
|
11
|
-
label={label}
|
|
12
|
-
checked={checked}
|
|
13
|
-
onChange={onChange}
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
|
-
</Table.SelectionCell>
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
TableSelectionCell.propTypes = {
|
|
20
|
-
id: PropTypes.string.isRequired,
|
|
21
|
-
label: PropTypes.string,
|
|
22
|
-
checked: PropTypes.bool,
|
|
23
|
-
onChange: PropTypes.func,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
TableSelectionCell.defaultProps = {
|
|
27
|
-
label: __('Select row'),
|
|
28
|
-
checked: false,
|
|
29
|
-
onChange: noop,
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export default TableSelectionCell;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { Table } from 'patternfly-react';
|
|
4
|
-
import { noop } from 'foremanReact/common/helpers';
|
|
5
|
-
|
|
6
|
-
const TableSelectionHeaderCell = ({
|
|
7
|
-
id,
|
|
8
|
-
label,
|
|
9
|
-
checked,
|
|
10
|
-
onChange,
|
|
11
|
-
...props
|
|
12
|
-
}) => (
|
|
13
|
-
<Table.SelectionHeading aria-label={label}>
|
|
14
|
-
<Table.Checkbox
|
|
15
|
-
id={id}
|
|
16
|
-
label={label}
|
|
17
|
-
checked={checked}
|
|
18
|
-
onChange={onChange}
|
|
19
|
-
{...props}
|
|
20
|
-
/>
|
|
21
|
-
</Table.SelectionHeading>
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
TableSelectionHeaderCell.propTypes = {
|
|
25
|
-
id: PropTypes.string,
|
|
26
|
-
label: PropTypes.string,
|
|
27
|
-
checked: PropTypes.bool,
|
|
28
|
-
onChange: PropTypes.func,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
TableSelectionHeaderCell.defaultProps = {
|
|
32
|
-
id: 'selectAll',
|
|
33
|
-
label: '',
|
|
34
|
-
checked: false,
|
|
35
|
-
onChange: noop,
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default TableSelectionHeaderCell;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
|
|
2
|
-
|
|
3
|
-
import { SelectAllAlert } from '../SelectAllAlert';
|
|
4
|
-
|
|
5
|
-
const baseProps = {
|
|
6
|
-
itemCount: 7,
|
|
7
|
-
perPage: 5,
|
|
8
|
-
selectAllRows: jest.fn(),
|
|
9
|
-
unselectAllRows: jest.fn(),
|
|
10
|
-
};
|
|
11
|
-
const fixtures = {
|
|
12
|
-
'renders SelectAllAlert with perPage > itemCout': {
|
|
13
|
-
allRowsSelected: false,
|
|
14
|
-
itemCount: 7,
|
|
15
|
-
perPage: 10,
|
|
16
|
-
...baseProps,
|
|
17
|
-
},
|
|
18
|
-
'renders SelectAllAlert without all rows selected': {
|
|
19
|
-
allRowsSelected: false,
|
|
20
|
-
...baseProps,
|
|
21
|
-
},
|
|
22
|
-
'renders SelectAllAlert with all rows selected': {
|
|
23
|
-
allRowsSelected: true,
|
|
24
|
-
...baseProps,
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
describe('SelectAllAlert', () =>
|
|
29
|
-
testComponentSnapshotsWithFixtures(SelectAllAlert, fixtures));
|
data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/TableSelectionCell.test.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
|
|
2
|
-
|
|
3
|
-
import TableSelectionCell from '../TableSelectionCell';
|
|
4
|
-
|
|
5
|
-
const fixtures = {
|
|
6
|
-
'renders TableSelectionCell': {
|
|
7
|
-
id: 'some id',
|
|
8
|
-
label: 'some label',
|
|
9
|
-
checked: true,
|
|
10
|
-
onChange: jest.fn(),
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
describe('TableSelectionCell', () =>
|
|
15
|
-
testComponentSnapshotsWithFixtures(TableSelectionCell, fixtures));
|
data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/TableSelectionHeaderCell.test.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
|
|
2
|
-
|
|
3
|
-
import TableSelectionHeaderCell from '../TableSelectionHeaderCell';
|
|
4
|
-
|
|
5
|
-
const fixtures = {
|
|
6
|
-
'renders TableSelectionHeaderCell': {
|
|
7
|
-
id: 'some id',
|
|
8
|
-
label: 'some label',
|
|
9
|
-
checked: true,
|
|
10
|
-
onChange: jest.fn(),
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
describe('TableSelectionHeaderCell', () =>
|
|
15
|
-
testComponentSnapshotsWithFixtures(TableSelectionHeaderCell, fixtures));
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`SelectAllAlert renders SelectAllAlert with all rows selected 1`] = `
|
|
4
|
-
<Alert
|
|
5
|
-
className=""
|
|
6
|
-
onDismiss={null}
|
|
7
|
-
type="info"
|
|
8
|
-
>
|
|
9
|
-
All 7 tasks are selected.
|
|
10
|
-
<Button
|
|
11
|
-
active={false}
|
|
12
|
-
block={false}
|
|
13
|
-
bsClass="btn"
|
|
14
|
-
bsStyle="link"
|
|
15
|
-
disabled={false}
|
|
16
|
-
onClick={[MockFunction]}
|
|
17
|
-
>
|
|
18
|
-
Undo selection
|
|
19
|
-
</Button>
|
|
20
|
-
</Alert>
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
exports[`SelectAllAlert renders SelectAllAlert with perPage > itemCout 1`] = `
|
|
24
|
-
<Alert
|
|
25
|
-
className=""
|
|
26
|
-
onDismiss={null}
|
|
27
|
-
type="info"
|
|
28
|
-
>
|
|
29
|
-
All 5 tasks on this page are selected
|
|
30
|
-
<Button
|
|
31
|
-
active={false}
|
|
32
|
-
block={false}
|
|
33
|
-
bsClass="btn"
|
|
34
|
-
bsStyle="link"
|
|
35
|
-
disabled={false}
|
|
36
|
-
onClick={[MockFunction]}
|
|
37
|
-
>
|
|
38
|
-
<FormattedMessage
|
|
39
|
-
defaultMessage="Select all {count} tasks"
|
|
40
|
-
id="select-all-tasks"
|
|
41
|
-
values={
|
|
42
|
-
Object {
|
|
43
|
-
"count": <b>
|
|
44
|
-
7
|
|
45
|
-
</b>,
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/>
|
|
49
|
-
</Button>
|
|
50
|
-
</Alert>
|
|
51
|
-
`;
|
|
52
|
-
|
|
53
|
-
exports[`SelectAllAlert renders SelectAllAlert without all rows selected 1`] = `
|
|
54
|
-
<Alert
|
|
55
|
-
className=""
|
|
56
|
-
onDismiss={null}
|
|
57
|
-
type="info"
|
|
58
|
-
>
|
|
59
|
-
All 5 tasks on this page are selected
|
|
60
|
-
<Button
|
|
61
|
-
active={false}
|
|
62
|
-
block={false}
|
|
63
|
-
bsClass="btn"
|
|
64
|
-
bsStyle="link"
|
|
65
|
-
disabled={false}
|
|
66
|
-
onClick={[MockFunction]}
|
|
67
|
-
>
|
|
68
|
-
<FormattedMessage
|
|
69
|
-
defaultMessage="Select all {count} tasks"
|
|
70
|
-
id="select-all-tasks"
|
|
71
|
-
values={
|
|
72
|
-
Object {
|
|
73
|
-
"count": <b>
|
|
74
|
-
7
|
|
75
|
-
</b>,
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/>
|
|
79
|
-
</Button>
|
|
80
|
-
</Alert>
|
|
81
|
-
`;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`TableSelectionCell renders TableSelectionCell 1`] = `
|
|
4
|
-
<TableSelectionCell
|
|
5
|
-
className=""
|
|
6
|
-
>
|
|
7
|
-
<TableCheckbox
|
|
8
|
-
checked={true}
|
|
9
|
-
id="some id"
|
|
10
|
-
label="some label"
|
|
11
|
-
onChange={[MockFunction]}
|
|
12
|
-
/>
|
|
13
|
-
</TableSelectionCell>
|
|
14
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`TableSelectionHeaderCell renders TableSelectionHeaderCell 1`] = `
|
|
4
|
-
<TableSelectionHeading
|
|
5
|
-
aria-label="some label"
|
|
6
|
-
className=""
|
|
7
|
-
>
|
|
8
|
-
<TableCheckbox
|
|
9
|
-
checked={true}
|
|
10
|
-
id="some id"
|
|
11
|
-
label="some label"
|
|
12
|
-
onChange={[MockFunction]}
|
|
13
|
-
/>
|
|
14
|
-
</TableSelectionHeading>
|
|
15
|
-
`;
|