foreman_ansible 15.0.5 → 16.0.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.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_ansible/locale/ca/foreman_ansible.js +10 -1
  3. data/app/assets/javascripts/foreman_ansible/locale/cs_CZ/foreman_ansible.js +10 -1
  4. data/app/assets/javascripts/foreman_ansible/locale/de/foreman_ansible.js +10 -1
  5. data/app/assets/javascripts/foreman_ansible/locale/es/foreman_ansible.js +10 -1
  6. data/app/assets/javascripts/foreman_ansible/locale/fr/foreman_ansible.js +10 -1
  7. data/app/assets/javascripts/foreman_ansible/locale/gl/foreman_ansible.js +10 -1
  8. data/app/assets/javascripts/foreman_ansible/locale/it/foreman_ansible.js +10 -1
  9. data/app/assets/javascripts/foreman_ansible/locale/ja/foreman_ansible.js +13 -4
  10. data/app/assets/javascripts/foreman_ansible/locale/ka/foreman_ansible.js +10 -1
  11. data/app/assets/javascripts/foreman_ansible/locale/ko/foreman_ansible.js +242 -233
  12. data/app/assets/javascripts/foreman_ansible/locale/nl_NL/foreman_ansible.js +10 -1
  13. data/app/assets/javascripts/foreman_ansible/locale/pl/foreman_ansible.js +10 -1
  14. data/app/assets/javascripts/foreman_ansible/locale/pt_BR/foreman_ansible.js +10 -1
  15. data/app/assets/javascripts/foreman_ansible/locale/ru/foreman_ansible.js +10 -1
  16. data/app/assets/javascripts/foreman_ansible/locale/sv_SE/foreman_ansible.js +10 -1
  17. data/app/assets/javascripts/foreman_ansible/locale/zh_CN/foreman_ansible.js +10 -1
  18. data/app/assets/javascripts/foreman_ansible/locale/zh_TW/foreman_ansible.js +10 -1
  19. data/app/controllers/concerns/foreman/controller/parameters/job_template_extensions.rb +1 -1
  20. data/app/controllers/foreman_ansible/api/v2/job_templates_controller_extensions.rb +1 -0
  21. data/app/models/foreman_ansible/ansible_provider.rb +1 -0
  22. data/app/views/api/v2/job_templates/job_templates.json.rabl +1 -1
  23. data/app/views/job_templates/_job_template_callback_tab_content.html.erb +1 -0
  24. data/db/migrate/20241022000000_add_ansible_check_mode_to_templates.rb +5 -0
  25. data/lib/foreman_ansible/register.rb +1 -1
  26. data/lib/foreman_ansible/version.rb +1 -1
  27. data/locale/ca/LC_MESSAGES/foreman_ansible.mo +0 -0
  28. data/locale/ca/foreman_ansible.po +10 -1
  29. data/locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo +0 -0
  30. data/locale/cs_CZ/foreman_ansible.po +10 -1
  31. data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
  32. data/locale/de/foreman_ansible.po +10 -1
  33. data/locale/en/LC_MESSAGES/foreman_ansible.mo +0 -0
  34. data/locale/en_GB/LC_MESSAGES/foreman_ansible.mo +0 -0
  35. data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
  36. data/locale/es/foreman_ansible.po +11 -2
  37. data/locale/foreman_ansible.pot +20 -7
  38. data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
  39. data/locale/fr/foreman_ansible.po +10 -1
  40. data/locale/gl/LC_MESSAGES/foreman_ansible.mo +0 -0
  41. data/locale/gl/foreman_ansible.po +10 -1
  42. data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
  43. data/locale/it/foreman_ansible.po +10 -1
  44. data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
  45. data/locale/ja/foreman_ansible.po +14 -5
  46. data/locale/ka/LC_MESSAGES/foreman_ansible.mo +0 -0
  47. data/locale/ka/foreman_ansible.po +10 -1
  48. data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
  49. data/locale/ko/foreman_ansible.po +244 -233
  50. data/locale/nl_NL/LC_MESSAGES/foreman_ansible.mo +0 -0
  51. data/locale/nl_NL/foreman_ansible.po +10 -1
  52. data/locale/pl/LC_MESSAGES/foreman_ansible.mo +0 -0
  53. data/locale/pl/foreman_ansible.po +10 -1
  54. data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
  55. data/locale/pt_BR/foreman_ansible.po +10 -1
  56. data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
  57. data/locale/ru/foreman_ansible.po +10 -1
  58. data/locale/sv_SE/LC_MESSAGES/foreman_ansible.mo +0 -0
  59. data/locale/sv_SE/foreman_ansible.po +10 -1
  60. data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
  61. data/locale/zh_CN/foreman_ansible.po +10 -1
  62. data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
  63. data/locale/zh_TW/foreman_ansible.po +10 -1
  64. data/webpack/components/AnsibleHostDetail/AnsibleHostDetail.scss +1 -1
  65. data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/AnsibleVariableOverridesTable.js +4 -11
  66. data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/EditableValue.js +2 -6
  67. data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/EditableValueHelper.js +11 -5
  68. data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/__test__/AnsibleVariableOverrides.test.js +1 -1
  69. data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/__test__/AnsibleVariableOverridesDelete.test.js +2 -2
  70. data/webpack/components/AnsibleHostDetail/components/JobsTab/NewRecurringJobModal.scss +2 -2
  71. data/webpack/components/AnsibleHostDetail/components/JobsTab/PreviousJobsTable.js +3 -10
  72. data/webpack/components/AnsibleHostDetail/components/JobsTab/RecurringJobsTable.js +3 -10
  73. data/webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTab.test.js +2 -1
  74. data/webpack/components/AnsibleHostDetail/components/RolesTab/AllRolesModal/AllRolesTable.js +3 -10
  75. data/webpack/components/AnsibleHostDetail/components/RolesTab/EditRolesModal/EditRolesModal.scss +1 -1
  76. data/webpack/components/AnsibleHostDetail/components/RolesTab/RolesTable.js +3 -10
  77. data/webpack/components/AnsibleRolesAndVariables/AnsibleRolesAndVariables.js +3 -3
  78. data/webpack/components/DualList/ListControls.js +9 -9
  79. data/webpack/components/DualList/ListHeader.js +5 -3
  80. data/webpack/components/DualList/ListItem.js +9 -9
  81. data/webpack/components/DualList/ListPane.js +3 -3
  82. data/webpack/components/DualList/SelectedStatus.js +2 -2
  83. data/webpack/components/DualList/index.js +1 -1
  84. data/webpack/formHelper.js +26 -29
  85. data/webpack/routes/HostgroupJobs/__test__/HostgroupJobs.test.js +1 -0
  86. metadata +10 -16
  87. data/app/assets/javascripts/foreman_ansible/locale/en/foreman_ansible.js +0 -910
  88. data/app/assets/javascripts/foreman_ansible/locale/en_GB/foreman_ansible.js +0 -910
  89. data/locale/en/foreman_ansible.po +0 -908
  90. data/locale/en_GB/foreman_ansible.po +0 -912
@@ -14,7 +14,7 @@
14
14
  #
15
15
  msgid ""
16
16
  msgstr ""
17
- "Project-Id-Version: foreman_ansible 15.0.0\n"
17
+ "Project-Id-Version: foreman_ansible 15.0.5\n"
18
18
  "Report-Msgid-Bugs-To: \n"
19
19
  "PO-Revision-Date: 2018-11-14 21:36+0000\n"
20
20
  "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
@@ -294,6 +294,12 @@ msgstr ""
294
294
  msgid "Enable Ansible Callback"
295
295
  msgstr ""
296
296
 
297
+ msgid "Enable Ansible Check Mode"
298
+ msgstr ""
299
+
300
+ msgid "Enable Ansible Check Mode for this template"
301
+ msgstr ""
302
+
297
303
  msgid "Enable the callback plugin for this template"
298
304
  msgstr ""
299
305
 
@@ -827,6 +833,9 @@ msgstr ""
827
833
  msgid "Update Smart Proxy"
828
834
  msgstr ""
829
835
 
836
+ msgid "Update an override value"
837
+ msgstr ""
838
+
830
839
  msgid "Updates Ansible variable"
831
840
  msgstr ""
832
841
 
@@ -9,7 +9,7 @@
9
9
  #
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: foreman_ansible 15.0.0\n"
12
+ "Project-Id-Version: foreman_ansible 15.0.5\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "PO-Revision-Date: 2018-11-14 21:36+0000\n"
15
15
  "Last-Translator: Michał Foryt <michal.foryt@gmail.com>, 2023\n"
@@ -289,6 +289,12 @@ msgstr ""
289
289
  msgid "Enable Ansible Callback"
290
290
  msgstr ""
291
291
 
292
+ msgid "Enable Ansible Check Mode"
293
+ msgstr ""
294
+
295
+ msgid "Enable Ansible Check Mode for this template"
296
+ msgstr ""
297
+
292
298
  msgid "Enable the callback plugin for this template"
293
299
  msgstr ""
294
300
 
@@ -822,6 +828,9 @@ msgstr ""
822
828
  msgid "Update Smart Proxy"
823
829
  msgstr ""
824
830
 
831
+ msgid "Update an override value"
832
+ msgstr ""
833
+
825
834
  msgid "Updates Ansible variable"
826
835
  msgstr ""
827
836
 
@@ -14,7 +14,7 @@
14
14
  #
15
15
  msgid ""
16
16
  msgstr ""
17
- "Project-Id-Version: foreman_ansible 15.0.0\n"
17
+ "Project-Id-Version: foreman_ansible 15.0.5\n"
18
18
  "Report-Msgid-Bugs-To: \n"
19
19
  "PO-Revision-Date: 2018-11-14 21:36+0000\n"
20
20
  "Last-Translator: Luiz Henrique Vasconcelos <luizvasconceloss@yahoo.com.br>, 20"
@@ -295,6 +295,12 @@ msgstr "Editar Funções possíveis"
295
295
  msgid "Enable Ansible Callback"
296
296
  msgstr ""
297
297
 
298
+ msgid "Enable Ansible Check Mode"
299
+ msgstr ""
300
+
301
+ msgid "Enable Ansible Check Mode for this template"
302
+ msgstr ""
303
+
298
304
  msgid "Enable the callback plugin for this template"
299
305
  msgstr ""
300
306
 
@@ -830,6 +836,9 @@ msgstr "Atualização de variáveis de função"
830
836
  msgid "Update Smart Proxy"
831
837
  msgstr ""
832
838
 
839
+ msgid "Update an override value"
840
+ msgstr ""
841
+
833
842
  msgid "Updates Ansible variable"
834
843
  msgstr "Atualiza a variável do Ansible"
835
844
 
@@ -15,7 +15,7 @@
15
15
  #
16
16
  msgid ""
17
17
  msgstr ""
18
- "Project-Id-Version: foreman_ansible 15.0.0\n"
18
+ "Project-Id-Version: foreman_ansible 15.0.5\n"
19
19
  "Report-Msgid-Bugs-To: \n"
20
20
  "PO-Revision-Date: 2018-11-14 21:36+0000\n"
21
21
  "Last-Translator: 0868a4d1af5275b3f70b0a6dac4c99a4, 2023\n"
@@ -295,6 +295,12 @@ msgstr ""
295
295
  msgid "Enable Ansible Callback"
296
296
  msgstr ""
297
297
 
298
+ msgid "Enable Ansible Check Mode"
299
+ msgstr ""
300
+
301
+ msgid "Enable Ansible Check Mode for this template"
302
+ msgstr ""
303
+
298
304
  msgid "Enable the callback plugin for this template"
299
305
  msgstr ""
300
306
 
@@ -828,6 +834,9 @@ msgstr ""
828
834
  msgid "Update Smart Proxy"
829
835
  msgstr ""
830
836
 
837
+ msgid "Update an override value"
838
+ msgstr ""
839
+
831
840
  msgid "Updates Ansible variable"
832
841
  msgstr ""
833
842
 
@@ -10,7 +10,7 @@
10
10
  #
11
11
  msgid ""
12
12
  msgstr ""
13
- "Project-Id-Version: foreman_ansible 15.0.0\n"
13
+ "Project-Id-Version: foreman_ansible 15.0.5\n"
14
14
  "Report-Msgid-Bugs-To: \n"
15
15
  "PO-Revision-Date: 2018-11-14 21:36+0000\n"
16
16
  "Last-Translator: johnny.westerlund <johnny.westerlund@gmail.com>, 2023\n"
@@ -289,6 +289,12 @@ msgstr ""
289
289
  msgid "Enable Ansible Callback"
290
290
  msgstr ""
291
291
 
292
+ msgid "Enable Ansible Check Mode"
293
+ msgstr ""
294
+
295
+ msgid "Enable Ansible Check Mode for this template"
296
+ msgstr ""
297
+
292
298
  msgid "Enable the callback plugin for this template"
293
299
  msgstr ""
294
300
 
@@ -822,6 +828,9 @@ msgstr ""
822
828
  msgid "Update Smart Proxy"
823
829
  msgstr ""
824
830
 
831
+ msgid "Update an override value"
832
+ msgstr ""
833
+
825
834
  msgid "Updates Ansible variable"
826
835
  msgstr ""
827
836
 
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Project-Id-Version: foreman_ansible 15.0.0\n"
15
+ "Project-Id-Version: foreman_ansible 15.0.5\n"
16
16
  "Report-Msgid-Bugs-To: \n"
17
17
  "PO-Revision-Date: 2018-11-14 21:36+0000\n"
18
18
  "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
@@ -292,6 +292,12 @@ msgstr "编辑 Ansible 角色"
292
292
  msgid "Enable Ansible Callback"
293
293
  msgstr "启用 Ansible 回调"
294
294
 
295
+ msgid "Enable Ansible Check Mode"
296
+ msgstr ""
297
+
298
+ msgid "Enable Ansible Check Mode for this template"
299
+ msgstr ""
300
+
295
301
  msgid "Enable the callback plugin for this template"
296
302
  msgstr "为此模板启用回调插件"
297
303
 
@@ -827,6 +833,9 @@ msgstr "更新角色变量"
827
833
  msgid "Update Smart Proxy"
828
834
  msgstr "更新智能代理"
829
835
 
836
+ msgid "Update an override value"
837
+ msgstr ""
838
+
830
839
  msgid "Updates Ansible variable"
831
840
  msgstr "更新 Ansible 变量"
832
841
 
@@ -9,7 +9,7 @@
9
9
  #
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: foreman_ansible 15.0.0\n"
12
+ "Project-Id-Version: foreman_ansible 15.0.5\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "PO-Revision-Date: 2018-11-14 21:36+0000\n"
15
15
  "Last-Translator: 0868a4d1af5275b3f70b0a6dac4c99a4, 2023\n"
@@ -288,6 +288,12 @@ msgstr ""
288
288
  msgid "Enable Ansible Callback"
289
289
  msgstr ""
290
290
 
291
+ msgid "Enable Ansible Check Mode"
292
+ msgstr ""
293
+
294
+ msgid "Enable Ansible Check Mode for this template"
295
+ msgstr ""
296
+
291
297
  msgid "Enable the callback plugin for this template"
292
298
  msgstr ""
293
299
 
@@ -821,6 +827,9 @@ msgstr ""
821
827
  msgid "Update Smart Proxy"
822
828
  msgstr ""
823
829
 
830
+ msgid "Update an override value"
831
+ msgstr ""
832
+
824
833
  msgid "Updates Ansible variable"
825
834
  msgstr ""
826
835
 
@@ -1,4 +1,4 @@
1
- @import '~@theforeman/vendor/scss/variables';
1
+ @import 'foremanReact/common/colors';
2
2
 
3
3
  .ansible-host-detail {
4
4
  background-color: $pf-color-white;
@@ -5,14 +5,7 @@ import { useMutation } from '@apollo/client';
5
5
 
6
6
  import { sprintf, translate as __ } from 'foremanReact/common/I18n';
7
7
  import { openConfirmModal } from 'foremanReact/components/ConfirmModal';
8
- import {
9
- TableComposable,
10
- Thead,
11
- Tbody,
12
- Tr,
13
- Th,
14
- Td,
15
- } from '@patternfly/react-table';
8
+ import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
16
9
  import { Flex, FlexItem } from '@patternfly/react-core';
17
10
 
18
11
  import Pagination from 'foremanReact/components/Pagination';
@@ -77,7 +70,7 @@ const AnsibleVariableOverridesTable = ({
77
70
  innerDispatch({ idx, payload: { open: flag } });
78
71
  };
79
72
 
80
- const onValueChange = (idx, variable) => value => {
73
+ const onValueChange = (idx, variable) => (e, value) => {
81
74
  const payload = {
82
75
  value,
83
76
  validation: validateValue(variable, value),
@@ -156,7 +149,7 @@ const AnsibleVariableOverridesTable = ({
156
149
  />
157
150
  </FlexItem>
158
151
  <FlexItem>
159
- <TableComposable ouiaId="table-composable-compact" variant="compact">
152
+ <Table ouiaId="table-composable-compact" variant="compact">
160
153
  <Thead>
161
154
  <Tr ouiaId="row-header">
162
155
  {columns.map(col => (
@@ -203,7 +196,7 @@ const AnsibleVariableOverridesTable = ({
203
196
  </Tr>
204
197
  ))}
205
198
  </Tbody>
206
- </TableComposable>
199
+ </Table>
207
200
  </FlexItem>
208
201
  <FlexItem align={{ default: 'alignRight' }}>
209
202
  <Pagination
@@ -4,11 +4,7 @@ import { translate as __ } from 'foremanReact/common/I18n';
4
4
 
5
5
  import { formatValue } from './AnsibleVariableOverridesTableHelper';
6
6
 
7
- import {
8
- TextAreaField,
9
- TextInputField,
10
- SelectField,
11
- } from './EditableValueHelper';
7
+ import { TextAreaField, SelectField } from './EditableValueHelper';
12
8
 
13
9
  const EditableValue = props => {
14
10
  if (!props.editing) {
@@ -50,7 +46,7 @@ const EditableValue = props => {
50
46
  }
51
47
 
52
48
  return (
53
- <TextInputField
49
+ <TextAreaField
54
50
  onChange={props.onChange}
55
51
  value={props.value}
56
52
  validation={props.validation}
@@ -5,17 +5,23 @@ import {
5
5
  FormGroup,
6
6
  FormSelect,
7
7
  FormSelectOption,
8
+ FormHelperText,
9
+ HelperText,
10
+ HelperTextItem,
8
11
  } from '@patternfly/react-core';
9
12
 
10
13
  const withFormGroup = Component => componentProps => {
11
14
  const { validation, ...rest } = componentProps;
12
15
  return (
13
- <FormGroup
14
- label=""
15
- helperTextInvalid={validation.msg}
16
- validated={validation.key}
17
- >
16
+ <FormGroup label="">
18
17
  <Component {...rest} validated={validation.key} />
18
+ {validation.key === 'error' && (
19
+ <FormHelperText>
20
+ <HelperText>
21
+ <HelperTextItem>{validation.msg}</HelperTextItem>
22
+ </HelperText>
23
+ </FormHelperText>
24
+ )}
19
25
  </FormGroup>
20
26
  );
21
27
  };
@@ -67,7 +67,7 @@ describe('AnsibleVariableOverrides', () => {
67
67
  name: 'Edit override button',
68
68
  });
69
69
  expect(editBtns).toHaveLength(0);
70
- const actions = screen.queryAllByRole('button', { name: 'Actions' });
70
+ const actions = screen.queryAllByRole('button', { name: 'Kebab toggle' });
71
71
  expect(actions).toHaveLength(0);
72
72
  });
73
73
  });
@@ -33,7 +33,7 @@ describe('AnsibleVariableOverrides', () => {
33
33
  />
34
34
  );
35
35
  await waitFor(tick);
36
- userEvent.click(screen.getAllByRole('button', { name: 'Actions' })[0]);
36
+ userEvent.click(screen.getAllByRole('button', { name: 'Kebab toggle' })[0]);
37
37
  userEvent.click(screen.getByText('Delete'));
38
38
  await waitFor(tick);
39
39
  expect(
@@ -58,7 +58,7 @@ describe('AnsibleVariableOverrides', () => {
58
58
  );
59
59
  await waitFor(tick);
60
60
  expect(screen.queryByText('21')).toBeInTheDocument();
61
- userEvent.click(screen.getAllByRole('button', { name: 'Actions' })[0]);
61
+ userEvent.click(screen.getAllByRole('button', { name: 'Kebab toggle' })[0]);
62
62
  userEvent.click(screen.getByText('Delete'));
63
63
  await waitFor(tick);
64
64
  userEvent.click(screen.getByText('Confirm'));
@@ -1,4 +1,4 @@
1
- .pf-c-backdrop {
1
+ .pf-v5-c-backdrop {
2
2
  z-index: 1040;
3
3
  }
4
4
 
@@ -8,7 +8,7 @@
8
8
  height: 70vh;
9
9
  }
10
10
 
11
- .pf-c-form-control, .pf-c-date-picker, .pf-c-date-picker__input {
11
+ .pf-v5-c-form-control, .pf-v5-c-date-picker, .pf-v5-c-date-picker__input {
12
12
  width: 250px
13
13
  }
14
14
  }
@@ -3,14 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { translate as __ } from 'foremanReact/common/I18n';
4
4
  import RelativeDateTime from 'foremanReact/components/common/dates/RelativeDateTime';
5
5
 
6
- import {
7
- TableComposable,
8
- Thead,
9
- Tbody,
10
- Tr,
11
- Th,
12
- Td,
13
- } from '@patternfly/react-table';
6
+ import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
14
7
  import { Flex, FlexItem } from '@patternfly/react-core';
15
8
  import Pagination from 'foremanReact/components/Pagination';
16
9
 
@@ -40,7 +33,7 @@ const PreviousJobsTable = ({ history, totalCount, jobs, pagination }) => {
40
33
  />
41
34
  </FlexItem>
42
35
  <FlexItem>
43
- <TableComposable ouiaId="table-composable-compact" variant="compact">
36
+ <Table ouiaId="table-composable-compact" variant="compact">
44
37
  <Thead>
45
38
  <Tr ouiaId="row-header">
46
39
  {columns.map(col => (
@@ -73,7 +66,7 @@ const PreviousJobsTable = ({ history, totalCount, jobs, pagination }) => {
73
66
  </Tr>
74
67
  ))}
75
68
  </Tbody>
76
- </TableComposable>
69
+ </Table>
77
70
  </FlexItem>
78
71
  <FlexItem align={{ default: 'alignRight' }}>
79
72
  <Pagination
@@ -5,14 +5,7 @@ import { translate as __ } from 'foremanReact/common/I18n';
5
5
  import RelativeDateTime from 'foremanReact/components/common/dates/RelativeDateTime';
6
6
  import { openConfirmModal } from 'foremanReact/components/ConfirmModal';
7
7
 
8
- import {
9
- TableComposable,
10
- Thead,
11
- Tbody,
12
- Tr,
13
- Th,
14
- Td,
15
- } from '@patternfly/react-table';
8
+ import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
16
9
 
17
10
  import {
18
11
  useCancelMutation,
@@ -60,7 +53,7 @@ const RecurringJobsTable = ({
60
53
  return (
61
54
  <React.Fragment>
62
55
  <h3>{__('Scheduled recurring jobs')}</h3>
63
- <TableComposable ouiaId="table-composable-compact" variant="compact">
56
+ <Table ouiaId="table-composable-compact" variant="compact">
64
57
  <Thead>
65
58
  <Tr ouiaId="row-header">
66
59
  {columns.map(col => (
@@ -93,7 +86,7 @@ const RecurringJobsTable = ({
93
86
  </Tr>
94
87
  ))}
95
88
  </Tbody>
96
- </TableComposable>
89
+ </Table>
97
90
  </React.Fragment>
98
91
  );
99
92
  };
@@ -102,6 +102,7 @@ describe('JobsTab', () => {
102
102
  />
103
103
  );
104
104
  await waitFor(tick);
105
+ await waitFor(tick);
105
106
  userEvent.click(
106
107
  screen.getByRole('button', { name: 'schedule recurring job' })
107
108
  );
@@ -156,7 +157,7 @@ describe('JobsTab', () => {
156
157
  expect(
157
158
  screen.queryByText('No config job for Ansible roles scheduled')
158
159
  ).not.toBeInTheDocument();
159
- userEvent.click(screen.getAllByRole('button', { name: 'Actions' })[0]);
160
+ userEvent.click(screen.getAllByRole('button', { name: 'Kebab toggle' })[0]);
160
161
  userEvent.click(screen.getByText('Cancel'));
161
162
  await waitFor(tick);
162
163
  expect(
@@ -2,14 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { translate as __ } from 'foremanReact/common/I18n';
4
4
 
5
- import {
6
- TableComposable,
7
- Thead,
8
- Tbody,
9
- Tr,
10
- Th,
11
- Td,
12
- } from '@patternfly/react-table';
5
+ import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
13
6
  import { Flex, FlexItem } from '@patternfly/react-core';
14
7
  import Pagination from 'foremanReact/components/Pagination';
15
8
  import withLoading from '../../../../withLoading';
@@ -28,7 +21,7 @@ const AllRolesTable = ({ allAnsibleRoles, totalCount }) => {
28
21
  variant="top"
29
22
  />
30
23
  </FlexItem>
31
- <TableComposable ouiaId="table-composable-compact" variant="compact">
24
+ <Table ouiaId="table-composable-compact" variant="compact">
32
25
  <Thead>
33
26
  <Tr ouiaId="row-header">
34
27
  <Th />
@@ -60,7 +53,7 @@ const AllRolesTable = ({ allAnsibleRoles, totalCount }) => {
60
53
  </Tr>
61
54
  ))}
62
55
  </Tbody>
63
- </TableComposable>
56
+ </Table>
64
57
  <FlexItem align={{ default: 'alignRight' }}>
65
58
  <Pagination
66
59
  ouiaId="pagination-bottom"
@@ -1,3 +1,3 @@
1
- .pf-c-backdrop {
1
+ .pf-v5-c-backdrop {
2
2
  z-index: 1040;
3
3
  }
@@ -4,14 +4,7 @@ import { translate as __ } from 'foremanReact/common/I18n';
4
4
  import { Route, Link } from 'react-router-dom';
5
5
  import Pagination from 'foremanReact/components/Pagination';
6
6
 
7
- import {
8
- TableComposable,
9
- Thead,
10
- Tbody,
11
- Tr,
12
- Th,
13
- Td,
14
- } from '@patternfly/react-table';
7
+ import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
15
8
  import { Flex, FlexItem, Button } from '@patternfly/react-core';
16
9
 
17
10
  import EditRolesModal from './EditRolesModal';
@@ -66,7 +59,7 @@ const RolesTable = ({
66
59
  </Flex>
67
60
  <Flex direction={{ default: 'column' }}>
68
61
  <FlexItem>
69
- <TableComposable variant="compact" ouiaId="table-composable-compact">
62
+ <Table variant="compact" ouiaId="table-composable-compact">
70
63
  <Thead>
71
64
  <Tr ouiaId="row-header">
72
65
  {columns.map(col => (
@@ -92,7 +85,7 @@ const RolesTable = ({
92
85
  </Tr>
93
86
  ))}
94
87
  </Tbody>
95
- </TableComposable>
88
+ </Table>
96
89
  </FlexItem>
97
90
  <FlexItem align={{ default: 'alignRight' }}>
98
91
  <Pagination
@@ -1,10 +1,10 @@
1
1
  import React, { useState } from 'react';
2
+ import { cellWidth } from '@patternfly/react-table';
2
3
  import {
3
4
  Table,
4
5
  TableHeader,
5
6
  TableBody,
6
- cellWidth,
7
- } from '@patternfly/react-table';
7
+ } from '@patternfly/react-table/deprecated';
8
8
  import {
9
9
  Button,
10
10
  Toolbar,
@@ -99,7 +99,7 @@ const ImportRolesAndVariablesTable = ({
99
99
  <Checkbox
100
100
  ouiaId="ansible-roles-and-variables-table-select-all-checkbox"
101
101
  isChecked={isChecked}
102
- onChange={SelectAll}
102
+ onChange={(_event, checked) => SelectAll(checked)}
103
103
  aria-label="select all checkbox"
104
104
  id="select-all"
105
105
  name="select-all"
@@ -3,10 +3,10 @@ import PropTypes from 'prop-types';
3
3
  import { translate as __ } from 'foremanReact/common/I18n';
4
4
 
5
5
  const ListControls = props => (
6
- <div className="pf-c-dual-list-selector__controls">
7
- <div className="pf-c-dual-list-selector__controls-item">
6
+ <div className="pf-v5-c-dual-list-selector__controls">
7
+ <div className="pf-v5-c-dual-list-selector__controls-item">
8
8
  <button
9
- className="pf-c-button pf-m-plain"
9
+ className="pf-v5-c-button pf-m-plain"
10
10
  type="button"
11
11
  disabled={props.addSelectedDisabled}
12
12
  onClick={props.onAddSelected}
@@ -15,9 +15,9 @@ const ListControls = props => (
15
15
  <i className="fas fa-fw fa-angle-right" />
16
16
  </button>
17
17
  </div>
18
- <div className="pf-c-dual-list-selector__controls-item">
18
+ <div className="pf-v5-c-dual-list-selector__controls-item">
19
19
  <button
20
- className="pf-c-button pf-m-plain"
20
+ className="pf-v5-c-button pf-m-plain"
21
21
  type="button"
22
22
  disabled={props.addAllDisabled}
23
23
  onClick={props.onAddAll}
@@ -26,9 +26,9 @@ const ListControls = props => (
26
26
  <i className="fas fa-fw fa-angle-double-right" />
27
27
  </button>
28
28
  </div>
29
- <div className="pf-c-dual-list-selector__controls-item">
29
+ <div className="pf-v5-c-dual-list-selector__controls-item">
30
30
  <button
31
- className="pf-c-button pf-m-plain"
31
+ className="pf-v5-c-button pf-m-plain"
32
32
  type="button"
33
33
  disabled={props.removeAllDisabled}
34
34
  onClick={props.onRemoveAll}
@@ -37,9 +37,9 @@ const ListControls = props => (
37
37
  <i className="fas fa-fw fa-angle-double-left" />
38
38
  </button>
39
39
  </div>
40
- <div className="pf-c-dual-list-selector__controls-item">
40
+ <div className="pf-v5-c-dual-list-selector__controls-item">
41
41
  <button
42
- className="pf-c-button pf-m-plain"
42
+ className="pf-v5-c-button pf-m-plain"
43
43
  type="button"
44
44
  disabled={props.removeSelectedDisabled}
45
45
  onClick={props.onRemoveSelected}
@@ -2,9 +2,11 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
4
  const ListHeader = props => (
5
- <div className="pf-c-dual-list-selector__header">
6
- <div className="pf-c-dual-list-selector__title">
7
- <div className="pf-c-dual-list-selector__title-text">{props.title}</div>
5
+ <div className="pf-v5-c-dual-list-selector__header">
6
+ <div className="pf-v5-c-dual-list-selector__title">
7
+ <div className="pf-v5-c-dual-list-selector__title-text">
8
+ {props.title}
9
+ </div>
8
10
  </div>
9
11
  </div>
10
12
  );