@flightctl/ui-components 0.7.2 → 0.8.0-rc1
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.
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts +1 -1
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts.map +1 -1
- package/dist/src/components/DetailsPage/DetailsPageActions.js +1 -1
- package/dist/src/components/DetailsPage/DetailsPageActions.js.map +1 -1
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts.map +1 -1
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js +18 -14
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +10 -11
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js +31 -10
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js +2 -2
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.js +2 -2
- package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +4 -2
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +29 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts +2 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js +6 -5
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts +3 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js +13 -9
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts +3 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js +20 -17
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts +2 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +18 -14
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts +2 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js +21 -14
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts +3 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js +34 -20
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +2 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +14 -15
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts +3 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js +6 -36
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.js +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.js +2 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.d.ts +4 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.js +19 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +1 -14
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.js +3 -3
- package/dist/src/components/Device/EditDeviceWizard/utils.js.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.d.ts.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.js +28 -26
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +11 -16
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
- package/dist/src/components/Events/EventItem.d.ts +7 -0
- package/dist/src/components/Events/EventItem.d.ts.map +1 -0
- package/dist/src/components/Events/EventItem.js +25 -0
- package/dist/src/components/Events/EventItem.js.map +1 -0
- package/dist/src/components/Events/EventsCard.css +5 -0
- package/dist/src/components/Events/EventsCard.d.ts +11 -0
- package/dist/src/components/Events/EventsCard.d.ts.map +1 -0
- package/dist/src/components/Events/EventsCard.js +81 -0
- package/dist/src/components/Events/EventsCard.js.map +1 -0
- package/dist/src/components/Events/useEvents.d.ts +21 -0
- package/dist/src/components/Events/useEvents.d.ts.map +1 -0
- package/dist/src/components/Events/useEvents.js +105 -0
- package/dist/src/components/Events/useEvents.js.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js +27 -9
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts +2 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js +13 -2
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts +3 -33
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js +7 -21
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts +4 -2
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +10 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts +5 -3
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js +4 -4
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js +10 -9
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts +3 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js +8 -86
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.d.ts +3 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.js +4 -4
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.d.ts +3 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js +16 -13
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts +3 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js +20 -20
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.js +37 -23
- package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts.map +1 -1
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.js +20 -16
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js +8 -5
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/{FleetDetails.d.ts → FleetDetailsPage.d.ts} +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsPage.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/{FleetDetails.js → FleetDetailsPage.js} +23 -17
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsPage.js.map +1 -0
- package/dist/src/components/Fleet/FleetRow.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetRow.js +9 -12
- package/dist/src/components/Fleet/FleetRow.js.map +1 -1
- package/dist/src/components/Masthead/UserPreferencesModal.d.ts.map +1 -1
- package/dist/src/components/Masthead/UserPreferencesModal.js +14 -15
- package/dist/src/components/Masthead/UserPreferencesModal.js.map +1 -1
- package/dist/src/components/Masthead/UserPreferencesProvider.d.ts +8 -5
- package/dist/src/components/Masthead/UserPreferencesProvider.d.ts.map +1 -1
- package/dist/src/components/Masthead/UserPreferencesProvider.js +7 -5
- package/dist/src/components/Masthead/UserPreferencesProvider.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +11 -7
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/utils.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/utils.js +2 -3
- package/dist/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js +25 -24
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js +22 -8
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +18 -15
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/src/components/common/CodeEditor/CodeEditorTheme.d.ts +5 -0
- package/dist/src/components/common/CodeEditor/CodeEditorTheme.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/CodeEditorTheme.js +52 -0
- package/dist/src/components/common/CodeEditor/CodeEditorTheme.js.map +1 -0
- package/dist/src/components/common/CodeEditor/Shortcut.css +22 -0
- package/dist/src/components/common/CodeEditor/Shortcut.d.ts +20 -0
- package/dist/src/components/common/CodeEditor/Shortcut.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/Shortcut.js +46 -0
- package/dist/src/components/common/CodeEditor/Shortcut.js.map +1 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.css +12 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.d.ts +16 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.js +48 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.js.map +1 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.css +3 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.d.ts +11 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.js +75 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.js.map +1 -0
- package/dist/src/components/common/CodeEditor/useShortcutPopover.d.ts +3 -0
- package/dist/src/components/common/CodeEditor/useShortcutPopover.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/useShortcutPopover.js +26 -0
- package/dist/src/components/common/CodeEditor/useShortcutPopover.js.map +1 -0
- package/dist/src/components/common/LabelsView.d.ts +1 -3
- package/dist/src/components/common/LabelsView.d.ts.map +1 -1
- package/dist/src/components/common/LabelsView.js +2 -4
- package/dist/src/components/common/LabelsView.js.map +1 -1
- package/dist/src/components/common/LeaveFormConfirmation.d.ts.map +1 -1
- package/dist/src/components/common/LeaveFormConfirmation.js +8 -7
- package/dist/src/components/common/LeaveFormConfirmation.js.map +1 -1
- package/dist/src/components/common/TechPreviewBadge.d.ts.map +1 -1
- package/dist/src/components/common/TechPreviewBadge.js +3 -2
- package/dist/src/components/common/TechPreviewBadge.js.map +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.d.ts +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.d.ts.map +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.js.map +1 -1
- package/dist/src/components/form/FormSelect.d.ts +4 -2
- package/dist/src/components/form/FormSelect.d.ts.map +1 -1
- package/dist/src/components/form/FormSelect.js +12 -1
- package/dist/src/components/form/FormSelect.js.map +1 -1
- package/dist/src/components/form/FormSelectTypeahead.d.ts +4 -3
- package/dist/src/components/form/FormSelectTypeahead.d.ts.map +1 -1
- package/dist/src/components/form/FormSelectTypeahead.js +18 -1
- package/dist/src/components/form/FormSelectTypeahead.js.map +1 -1
- package/dist/src/components/form/LabelsField.d.ts +4 -3
- package/dist/src/components/form/LabelsField.d.ts.map +1 -1
- package/dist/src/components/form/LabelsField.js +15 -5
- package/dist/src/components/form/LabelsField.js.map +1 -1
- package/dist/src/components/form/NameField.d.ts +2 -2
- package/dist/src/components/form/NameField.d.ts.map +1 -1
- package/dist/src/components/form/NameField.js +14 -4
- package/dist/src/components/form/NameField.js.map +1 -1
- package/dist/src/components/form/RichValidationTextField.d.ts +2 -2
- package/dist/src/components/form/RichValidationTextField.d.ts.map +1 -1
- package/dist/src/components/form/RichValidationTextField.js +13 -1
- package/dist/src/components/form/RichValidationTextField.js.map +1 -1
- package/dist/src/components/form/TextListField.d.ts +4 -2
- package/dist/src/components/form/TextListField.d.ts.map +1 -1
- package/dist/src/components/form/TextListField.js +13 -3
- package/dist/src/components/form/TextListField.js.map +1 -1
- package/dist/src/components/form/UploadField.d.ts +3 -2
- package/dist/src/components/form/UploadField.d.ts.map +1 -1
- package/dist/src/components/form/UploadField.js +10 -1
- package/dist/src/components/form/UploadField.js.map +1 -1
- package/dist/src/components/form/validations.js +1 -1
- package/dist/src/components/form/validations.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js +4 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts.map +1 -1
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js +5 -3
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js.map +1 -1
- package/dist/src/components/modals/DecommissionModal/DecommissionModal.d.ts.map +1 -1
- package/dist/src/components/modals/DecommissionModal/DecommissionModal.js +32 -29
- package/dist/src/components/modals/DecommissionModal/DecommissionModal.js.map +1 -1
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts.map +1 -1
- package/dist/src/components/modals/DeleteModal/DeleteModal.js +18 -15
- package/dist/src/components/modals/DeleteModal/DeleteModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js +33 -30
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js +27 -24
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js +26 -23
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js +30 -25
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js +29 -26
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts +1 -1
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.js +28 -25
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.js.map +1 -1
- package/dist/src/constants.d.ts +2 -1
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/constants.js +3 -1
- package/dist/src/constants.js.map +1 -1
- package/dist/src/hooks/useAppLinks.d.ts +5 -0
- package/dist/src/hooks/useAppLinks.d.ts.map +1 -0
- package/dist/src/hooks/useAppLinks.js +45 -0
- package/dist/src/hooks/useAppLinks.js.map +1 -0
- package/dist/src/{components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.d.ts → hooks/useDeviceSpecSystemInfo.d.ts} +2 -2
- package/dist/src/hooks/useDeviceSpecSystemInfo.d.ts.map +1 -0
- package/dist/src/{components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.js → hooks/useDeviceSpecSystemInfo.js} +18 -10
- package/dist/src/hooks/useDeviceSpecSystemInfo.js.map +1 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts +2 -2
- package/dist/src/hooks/useFetchPeriodically.d.ts.map +1 -1
- package/dist/src/hooks/useFetchPeriodically.js +1 -1
- package/dist/src/hooks/useFetchPeriodically.js.map +1 -1
- package/dist/src/hooks/useThemePreferences.d.ts +6 -3
- package/dist/src/hooks/useThemePreferences.d.ts.map +1 -1
- package/dist/src/hooks/useThemePreferences.js +46 -23
- package/dist/src/hooks/useThemePreferences.js.map +1 -1
- package/dist/src/types/deviceSpec.d.ts +7 -1
- package/dist/src/types/deviceSpec.d.ts.map +1 -1
- package/dist/src/types/deviceSpec.js +16 -12
- package/dist/src/types/deviceSpec.js.map +1 -1
- package/dist/src/types/extraTypes.d.ts +3 -2
- package/dist/src/types/extraTypes.d.ts.map +1 -1
- package/dist/src/types/extraTypes.js.map +1 -1
- package/dist/src/utils/dates.d.ts +2 -1
- package/dist/src/utils/dates.d.ts.map +1 -1
- package/dist/src/utils/dates.js +20 -20
- package/dist/src/utils/dates.js.map +1 -1
- package/dist/src/utils/patch.d.ts.map +1 -1
- package/dist/src/utils/patch.js +2 -1
- package/dist/src/utils/patch.js.map +1 -1
- package/package.json +6 -2
- package/src/components/DetailsPage/DetailsPageActions.tsx +2 -1
- package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +27 -22
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +10 -19
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +65 -21
- package/src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx +2 -2
- package/src/components/Device/DevicesPage/EnrolledDevicesTable.tsx +2 -2
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +6 -1
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +28 -1
- package/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.tsx +19 -5
- package/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx +53 -23
- package/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx +68 -53
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +40 -25
- package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +39 -5
- package/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx +81 -38
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +15 -19
- package/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx +7 -47
- package/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx +1 -1
- package/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx +1 -1
- package/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx +2 -2
- package/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx +30 -2
- package/src/components/Device/EditDeviceWizard/utils.ts +6 -7
- package/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.tsx +38 -35
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +8 -19
- package/src/components/Events/EventItem.tsx +38 -0
- package/src/components/Events/EventsCard.css +5 -0
- package/src/components/Events/EventsCard.tsx +157 -0
- package/src/components/Events/useEvents.ts +136 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +29 -13
- package/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.tsx +25 -10
- package/src/components/Fleet/CreateFleet/fleetSpecUtils.ts +9 -23
- package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +12 -1
- package/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx +10 -5
- package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +20 -17
- package/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.tsx +18 -122
- package/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.tsx +4 -1
- package/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.tsx +50 -31
- package/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.tsx +57 -12
- package/src/components/Fleet/CreateFleet/utils.ts +40 -22
- package/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.tsx +28 -28
- package/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx +10 -9
- package/src/components/Fleet/FleetDetails/{FleetDetails.tsx → FleetDetailsPage.tsx} +40 -25
- package/src/components/Fleet/FleetRow.tsx +10 -11
- package/src/components/Masthead/UserPreferencesModal.tsx +43 -56
- package/src/components/Masthead/UserPreferencesProvider.tsx +15 -10
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +14 -15
- package/src/components/Repository/CreateRepository/utils.ts +2 -3
- package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +54 -55
- package/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx +47 -14
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +28 -25
- package/src/components/common/CodeEditor/CodeEditorTheme.ts +53 -0
- package/src/components/common/CodeEditor/Shortcut.css +22 -0
- package/src/components/common/CodeEditor/Shortcut.tsx +90 -0
- package/src/components/common/CodeEditor/YamlEditor.css +12 -0
- package/src/components/common/CodeEditor/YamlEditor.tsx +81 -0
- package/src/components/common/CodeEditor/YamlEditorBase.css +3 -0
- package/src/components/common/CodeEditor/YamlEditorBase.tsx +124 -0
- package/src/components/common/CodeEditor/useShortcutPopover.tsx +39 -0
- package/src/components/common/LabelsView.tsx +2 -11
- package/src/components/common/LeaveFormConfirmation.tsx +14 -18
- package/src/components/common/TechPreviewBadge.tsx +3 -1
- package/src/components/form/FlightCtlActionGroup.tsx +1 -1
- package/src/components/form/FormSelect.tsx +14 -3
- package/src/components/form/FormSelectTypeahead.tsx +24 -3
- package/src/components/form/LabelsField.tsx +20 -20
- package/src/components/form/NameField.tsx +18 -4
- package/src/components/form/RichValidationTextField.tsx +20 -1
- package/src/components/form/TextListField.tsx +19 -3
- package/src/components/form/UploadField.tsx +16 -2
- package/src/components/form/validations.ts +1 -1
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +12 -7
- package/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.tsx +6 -3
- package/src/components/modals/DecommissionModal/DecommissionModal.tsx +60 -56
- package/src/components/modals/DeleteModal/DeleteModal.tsx +25 -27
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx +81 -92
- package/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx +64 -67
- package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +60 -62
- package/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx +80 -87
- package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +70 -73
- package/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx +62 -63
- package/src/constants.ts +2 -1
- package/src/hooks/useAppLinks.ts +49 -0
- package/src/{components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.tsx → hooks/useDeviceSpecSystemInfo.tsx} +15 -7
- package/src/hooks/useFetchPeriodically.ts +3 -3
- package/src/hooks/useThemePreferences.ts +48 -21
- package/src/types/deviceSpec.ts +25 -12
- package/src/types/extraTypes.ts +7 -4
- package/src/utils/dates.ts +23 -24
- package/src/utils/patch.ts +3 -1
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +0 -3
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts +0 -9
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts.map +0 -1
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.js +0 -34
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.js.map +0 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.d.ts.map +0 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.js.map +0 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts +0 -9
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts.map +0 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js +0 -61
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js.map +0 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts.map +0 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.js.map +0 -1
- package/dist/src/components/common/LabelsView.css +0 -9
- package/dist/src/links.d.ts +0 -7
- package/dist/src/links.d.ts.map +0 -1
- package/dist/src/links.js +0 -14
- package/dist/src/links.js.map +0 -1
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +0 -3
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.tsx +0 -60
- package/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.tsx +0 -96
- package/src/components/common/LabelsView.css +0 -9
- package/src/links.ts +0 -16
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Formik } from 'formik';
|
|
3
|
-
import { Alert, Button,
|
|
3
|
+
import { Alert, Button, Stack, StackItem } from '@patternfly/react-core';
|
|
4
|
+
import { Modal, ModalBody, ModalHeader } from '@patternfly/react-core/next';
|
|
4
5
|
|
|
5
6
|
import { DeviceDecommissionTargetType } from '@flightctl/types';
|
|
6
7
|
|
|
@@ -30,64 +31,67 @@ const DecommissionModal = ({ onDecommission, onClose }: DecommissionModalProps)
|
|
|
30
31
|
}, []);
|
|
31
32
|
|
|
32
33
|
return (
|
|
33
|
-
<Modal
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<
|
|
62
|
-
{t(
|
|
63
|
-
|
|
34
|
+
<Modal isOpen onClose={onClose} variant="small">
|
|
35
|
+
<ModalHeader title={t('Decommission device?')} titleIconVariant="warning" />
|
|
36
|
+
<ModalBody>
|
|
37
|
+
<Formik<DecommissionFormValues>
|
|
38
|
+
initialValues={{
|
|
39
|
+
doFactoryReset: false,
|
|
40
|
+
}}
|
|
41
|
+
onSubmit={({ doFactoryReset }) => {
|
|
42
|
+
const doSubmit = async () => {
|
|
43
|
+
setError(undefined);
|
|
44
|
+
try {
|
|
45
|
+
setIsDecommissioning(true);
|
|
46
|
+
await onDecommission(
|
|
47
|
+
doFactoryReset
|
|
48
|
+
? DeviceDecommissionTargetType.DeviceDecommissionTargetTypeFactoryReset
|
|
49
|
+
: DeviceDecommissionTargetType.DeviceDecommissionTargetTypeUnenroll,
|
|
50
|
+
);
|
|
51
|
+
onClose();
|
|
52
|
+
} catch (err) {
|
|
53
|
+
setError(getErrorMessage(err));
|
|
54
|
+
setIsDecommissioning(false);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
void doSubmit();
|
|
58
|
+
}}
|
|
59
|
+
>
|
|
60
|
+
{({ submitForm }) => {
|
|
61
|
+
return (
|
|
62
|
+
<Stack hasGutter>
|
|
63
|
+
<StackItem>{t('Are you sure you want to proceed with decommissioning this device?')}</StackItem>
|
|
64
|
+
<StackItem>
|
|
65
|
+
{t(
|
|
66
|
+
'Decommissioned devices will not be able to communicate with the edge management system anymore, and they will be removed from any fleet they were associated to. Once decommissioned, the device cannot be managed further.',
|
|
67
|
+
)}
|
|
68
|
+
</StackItem>
|
|
69
|
+
{error && (
|
|
70
|
+
<StackItem>
|
|
71
|
+
<Alert isInline variant="danger" title={t('An error occurred')}>
|
|
72
|
+
{error}
|
|
73
|
+
</Alert>
|
|
74
|
+
</StackItem>
|
|
64
75
|
)}
|
|
65
|
-
</StackItem>
|
|
66
|
-
{error && (
|
|
67
76
|
<StackItem>
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
|
|
77
|
+
<Button
|
|
78
|
+
key="confirm"
|
|
79
|
+
variant="danger"
|
|
80
|
+
isDisabled={isDecommissioning}
|
|
81
|
+
isLoading={isDecommissioning}
|
|
82
|
+
onClick={submitForm}
|
|
83
|
+
>
|
|
84
|
+
{t('Decommission device')}
|
|
85
|
+
</Button>
|
|
86
|
+
<Button key="cancel" variant="link" onClick={onClose} isDisabled={isDecommissioning}>
|
|
87
|
+
{t('Cancel')}
|
|
88
|
+
</Button>
|
|
71
89
|
</StackItem>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
isDisabled={isDecommissioning}
|
|
78
|
-
isLoading={isDecommissioning}
|
|
79
|
-
onClick={submitForm}
|
|
80
|
-
>
|
|
81
|
-
{t('Decommission device')}
|
|
82
|
-
</Button>
|
|
83
|
-
<Button key="cancel" variant="link" onClick={onClose} isDisabled={isDecommissioning}>
|
|
84
|
-
{t('Cancel')}
|
|
85
|
-
</Button>
|
|
86
|
-
</StackItem>
|
|
87
|
-
</Stack>
|
|
88
|
-
);
|
|
89
|
-
}}
|
|
90
|
-
</Formik>
|
|
90
|
+
</Stack>
|
|
91
|
+
);
|
|
92
|
+
}}
|
|
93
|
+
</Formik>
|
|
94
|
+
</ModalBody>
|
|
91
95
|
</Modal>
|
|
92
96
|
);
|
|
93
97
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { getErrorMessage } from '../../../utils/error';
|
|
2
|
-
import { Alert, Button, Modal, Stack, StackItem } from '@patternfly/react-core';
|
|
3
1
|
import * as React from 'react';
|
|
4
2
|
import { Trans } from 'react-i18next';
|
|
3
|
+
import { Alert, Button, Stack, StackItem } from '@patternfly/react-core';
|
|
4
|
+
import { Modal, ModalBody, ModalFooter, ModalHeader } from '@patternfly/react-core/next';
|
|
5
|
+
import { getErrorMessage } from '../../../utils/error';
|
|
5
6
|
import { useTranslation } from '../../../hooks/useTranslation';
|
|
6
7
|
|
|
7
8
|
type DeleteModalProps = {
|
|
@@ -16,13 +17,25 @@ const DeleteModal: React.FC<DeleteModalProps> = ({ onDelete, onClose, resourceTy
|
|
|
16
17
|
const [isDeleting, setIsDeleting] = React.useState(false);
|
|
17
18
|
const [error, setError] = React.useState<string>();
|
|
18
19
|
return (
|
|
19
|
-
<Modal
|
|
20
|
-
title={t('Delete {{resourceType}} ?', { resourceType })}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
<Modal isOpen onClose={onClose} variant="small">
|
|
21
|
+
<ModalHeader title={t('Delete {{resourceType}} ?', { resourceType })} titleIconVariant="warning" />
|
|
22
|
+
<ModalBody>
|
|
23
|
+
<Stack hasGutter>
|
|
24
|
+
<StackItem>
|
|
25
|
+
<Trans t={t}>
|
|
26
|
+
Are you sure you want to delete {resourceType} <b>{resourceName}</b>?
|
|
27
|
+
</Trans>
|
|
28
|
+
</StackItem>
|
|
29
|
+
{error && (
|
|
30
|
+
<StackItem>
|
|
31
|
+
<Alert isInline variant="danger" title={t('An error occurred')}>
|
|
32
|
+
{error}
|
|
33
|
+
</Alert>
|
|
34
|
+
</StackItem>
|
|
35
|
+
)}
|
|
36
|
+
</Stack>
|
|
37
|
+
</ModalBody>
|
|
38
|
+
<ModalFooter>
|
|
26
39
|
<Button
|
|
27
40
|
key="confirm"
|
|
28
41
|
variant="danger"
|
|
@@ -41,26 +54,11 @@ const DeleteModal: React.FC<DeleteModalProps> = ({ onDelete, onClose, resourceTy
|
|
|
41
54
|
}}
|
|
42
55
|
>
|
|
43
56
|
{t('Delete {{ resourceType }}', { resourceType })}
|
|
44
|
-
</Button
|
|
57
|
+
</Button>
|
|
45
58
|
<Button key="cancel" variant="link" onClick={onClose} isDisabled={isDeleting}>
|
|
46
59
|
{t('Cancel')}
|
|
47
|
-
</Button
|
|
48
|
-
|
|
49
|
-
>
|
|
50
|
-
<Stack hasGutter>
|
|
51
|
-
<StackItem>
|
|
52
|
-
<Trans t={t}>
|
|
53
|
-
Are you sure you want to delete {resourceType} <b>{resourceName}</b>?
|
|
54
|
-
</Trans>
|
|
55
|
-
</StackItem>
|
|
56
|
-
{error && (
|
|
57
|
-
<StackItem>
|
|
58
|
-
<Alert isInline variant="danger" title={t('An error occurred')}>
|
|
59
|
-
{error}
|
|
60
|
-
</Alert>
|
|
61
|
-
</StackItem>
|
|
62
|
-
)}
|
|
63
|
-
</Stack>
|
|
60
|
+
</Button>
|
|
61
|
+
</ModalFooter>
|
|
64
62
|
</Modal>
|
|
65
63
|
);
|
|
66
64
|
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { EnrollmentRequest, EnrollmentRequestApproval } from '@flightctl/types';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
Button,
|
|
6
|
-
FormGroup,
|
|
7
|
-
Modal,
|
|
8
|
-
Progress,
|
|
9
|
-
ProgressMeasureLocation,
|
|
10
|
-
Stack,
|
|
11
|
-
StackItem,
|
|
12
|
-
} from '@patternfly/react-core';
|
|
3
|
+
import { Alert, Button, FormGroup, Progress, ProgressMeasureLocation, Stack, StackItem } from '@patternfly/react-core';
|
|
4
|
+
import { Modal, ModalBody, ModalFooter, ModalHeader } from '@patternfly/react-core/next';
|
|
13
5
|
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
|
14
6
|
import { Formik } from 'formik';
|
|
15
7
|
|
|
@@ -89,13 +81,82 @@ const MassApproveDeviceModal: React.FC<MassApproveDeviceModalProps> = ({
|
|
|
89
81
|
onSubmit={approveEnrollments}
|
|
90
82
|
>
|
|
91
83
|
{({ isSubmitting, values, submitForm, isValid }) => (
|
|
92
|
-
<Modal
|
|
93
|
-
title={t('Approve pending devices')}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
84
|
+
<Modal isOpen onClose={isSubmitting ? undefined : onClose} variant="medium">
|
|
85
|
+
<ModalHeader title={t('Approve pending devices')} />
|
|
86
|
+
<ModalBody>
|
|
87
|
+
<Stack hasGutter>
|
|
88
|
+
<StackItem>
|
|
89
|
+
{t(
|
|
90
|
+
'Make sure you recognise and expect the following devices before approving them. Are you sure you want to approve the listed devices?',
|
|
91
|
+
)}
|
|
92
|
+
</StackItem>
|
|
93
|
+
<StackItem className="fctl-mass-approve__table">
|
|
94
|
+
<Table>
|
|
95
|
+
<Thead>
|
|
96
|
+
<Tr>
|
|
97
|
+
<Th width={60}>{t('Name')}</Th>
|
|
98
|
+
<Th width={40}>{t('Alias')}</Th>
|
|
99
|
+
</Tr>
|
|
100
|
+
</Thead>
|
|
101
|
+
<Tbody>
|
|
102
|
+
{pendingEnrollments.map((pendingEr, index) => (
|
|
103
|
+
<Tr key={pendingEr.metadata.name}>
|
|
104
|
+
<Td dataLabel={t('Name')}>
|
|
105
|
+
<ResourceLink id={pendingEr.metadata.name as string} />
|
|
106
|
+
</Td>
|
|
107
|
+
<Td dataLabel={t('Alias')}>{templateToName(index, values.deviceAlias)}</Td>
|
|
108
|
+
</Tr>
|
|
109
|
+
))}
|
|
110
|
+
</Tbody>
|
|
111
|
+
</Table>
|
|
112
|
+
</StackItem>
|
|
113
|
+
<StackItem>
|
|
114
|
+
<FlightCtlForm>
|
|
115
|
+
<FormGroup label={t('Labels')}>
|
|
116
|
+
<LabelsField name="labels" />
|
|
117
|
+
</FormGroup>
|
|
118
|
+
<FormGroup label={t('Alias')}>
|
|
119
|
+
<TextField
|
|
120
|
+
name="deviceAlias"
|
|
121
|
+
aria-label={t('Alias')}
|
|
122
|
+
placeholder="device-{{n}}"
|
|
123
|
+
helperText={
|
|
124
|
+
<>
|
|
125
|
+
{t('Alias devices using a custom template. Add a number using')}
|
|
126
|
+
<strong> {`{{n}}`}</strong>
|
|
127
|
+
</>
|
|
128
|
+
}
|
|
129
|
+
/>
|
|
130
|
+
</FormGroup>
|
|
131
|
+
</FlightCtlForm>
|
|
132
|
+
</StackItem>
|
|
133
|
+
{isSubmitting && (
|
|
134
|
+
<StackItem>
|
|
135
|
+
<Progress
|
|
136
|
+
value={progress}
|
|
137
|
+
min={0}
|
|
138
|
+
max={totalProgress}
|
|
139
|
+
title={t('Approving...')}
|
|
140
|
+
measureLocation={ProgressMeasureLocation.top}
|
|
141
|
+
label={t('{{progress}} of {{totalProgress}}', { progress, totalProgress })}
|
|
142
|
+
valueText={t('{{progress}} of {{totalProgress}}', { progress, totalProgress })}
|
|
143
|
+
/>
|
|
144
|
+
</StackItem>
|
|
145
|
+
)}
|
|
146
|
+
{errors?.length && (
|
|
147
|
+
<StackItem>
|
|
148
|
+
<Alert isInline variant="danger" title={t('An error occurred')}>
|
|
149
|
+
<Stack hasGutter>
|
|
150
|
+
{errors.map((e, index) => (
|
|
151
|
+
<StackItem key={index}>{e}</StackItem>
|
|
152
|
+
))}
|
|
153
|
+
</Stack>
|
|
154
|
+
</Alert>
|
|
155
|
+
</StackItem>
|
|
156
|
+
)}
|
|
157
|
+
</Stack>
|
|
158
|
+
</ModalBody>
|
|
159
|
+
<ModalFooter>
|
|
99
160
|
<Button
|
|
100
161
|
key="approve"
|
|
101
162
|
variant="primary"
|
|
@@ -104,83 +165,11 @@ const MassApproveDeviceModal: React.FC<MassApproveDeviceModalProps> = ({
|
|
|
104
165
|
isDisabled={isSubmitting || !isValid}
|
|
105
166
|
>
|
|
106
167
|
{t('Approve')}
|
|
107
|
-
</Button
|
|
168
|
+
</Button>
|
|
108
169
|
<Button key="cancel" variant="link" onClick={onClose} isDisabled={isSubmitting}>
|
|
109
170
|
{t('Cancel')}
|
|
110
|
-
</Button
|
|
111
|
-
|
|
112
|
-
>
|
|
113
|
-
<Stack hasGutter>
|
|
114
|
-
<StackItem>
|
|
115
|
-
{t(
|
|
116
|
-
'Make sure you recognise and expect the following devices before approving them. Are you sure you want to approve the listed devices?',
|
|
117
|
-
)}
|
|
118
|
-
</StackItem>
|
|
119
|
-
<StackItem className="fctl-mass-approve__table">
|
|
120
|
-
<Table>
|
|
121
|
-
<Thead>
|
|
122
|
-
<Tr>
|
|
123
|
-
<Th width={60}>{t('Name')}</Th>
|
|
124
|
-
<Th width={40}>{t('Alias')}</Th>
|
|
125
|
-
</Tr>
|
|
126
|
-
</Thead>
|
|
127
|
-
<Tbody>
|
|
128
|
-
{pendingEnrollments.map((pendingEr, index) => (
|
|
129
|
-
<Tr key={pendingEr.metadata.name}>
|
|
130
|
-
<Td dataLabel={t('Name')}>
|
|
131
|
-
<ResourceLink id={pendingEr.metadata.name as string} />
|
|
132
|
-
</Td>
|
|
133
|
-
<Td dataLabel={t('Alias')}>{templateToName(index, values.deviceAlias)}</Td>
|
|
134
|
-
</Tr>
|
|
135
|
-
))}
|
|
136
|
-
</Tbody>
|
|
137
|
-
</Table>
|
|
138
|
-
</StackItem>
|
|
139
|
-
<StackItem>
|
|
140
|
-
<FlightCtlForm>
|
|
141
|
-
<FormGroup label={t('Labels')}>
|
|
142
|
-
<LabelsField name="labels" />
|
|
143
|
-
</FormGroup>
|
|
144
|
-
<FormGroup label={t('Alias')}>
|
|
145
|
-
<TextField
|
|
146
|
-
name="deviceAlias"
|
|
147
|
-
aria-label={t('Alias')}
|
|
148
|
-
placeholder="device-{{n}}"
|
|
149
|
-
helperText={
|
|
150
|
-
<>
|
|
151
|
-
{t('Alias devices using a custom template. Add a number using')}
|
|
152
|
-
<strong> {`{{n}}`}</strong>
|
|
153
|
-
</>
|
|
154
|
-
}
|
|
155
|
-
/>
|
|
156
|
-
</FormGroup>
|
|
157
|
-
</FlightCtlForm>
|
|
158
|
-
</StackItem>
|
|
159
|
-
{isSubmitting && (
|
|
160
|
-
<StackItem>
|
|
161
|
-
<Progress
|
|
162
|
-
value={progress}
|
|
163
|
-
min={0}
|
|
164
|
-
max={totalProgress}
|
|
165
|
-
title={t('Approving...')}
|
|
166
|
-
measureLocation={ProgressMeasureLocation.top}
|
|
167
|
-
label={t('{{progress}} of {{totalProgress}}', { progress, totalProgress })}
|
|
168
|
-
valueText={t('{{progress}} of {{totalProgress}}', { progress, totalProgress })}
|
|
169
|
-
/>
|
|
170
|
-
</StackItem>
|
|
171
|
-
)}
|
|
172
|
-
{errors?.length && (
|
|
173
|
-
<StackItem>
|
|
174
|
-
<Alert isInline variant="danger" title={t('An error occurred')}>
|
|
175
|
-
<Stack hasGutter>
|
|
176
|
-
{errors.map((e, index) => (
|
|
177
|
-
<StackItem key={index}>{e}</StackItem>
|
|
178
|
-
))}
|
|
179
|
-
</Stack>
|
|
180
|
-
</Alert>
|
|
181
|
-
</StackItem>
|
|
182
|
-
)}
|
|
183
|
-
</Stack>
|
|
171
|
+
</Button>
|
|
172
|
+
</ModalFooter>
|
|
184
173
|
</Modal>
|
|
185
174
|
)}
|
|
186
175
|
</Formik>
|
package/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Alert, Button,
|
|
2
|
+
import { Alert, Button, Progress, ProgressMeasureLocation, Stack, StackItem } from '@patternfly/react-core';
|
|
3
|
+
import { Modal, ModalBody, ModalFooter, ModalHeader } from '@patternfly/react-core/next';
|
|
3
4
|
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
|
4
5
|
|
|
5
6
|
import { Device, DeviceDecommission, DeviceDecommissionTargetType } from '@flightctl/types';
|
|
@@ -47,14 +48,65 @@ const MassDecommissionDeviceModal = ({ onClose, devices, onSuccess }: MassDecomm
|
|
|
47
48
|
};
|
|
48
49
|
|
|
49
50
|
return (
|
|
50
|
-
<Modal
|
|
51
|
-
title={t('Decommission devices ?')}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
<Modal isOpen onClose={isSubmitting ? undefined : onClose} variant="medium">
|
|
52
|
+
<ModalHeader title={t('Decommission devices ?')} titleIconVariant="warning" />
|
|
53
|
+
<ModalBody>
|
|
54
|
+
<Stack hasGutter>
|
|
55
|
+
<StackItem>{t('Are you sure you want to proceed with decommissioning these devices?')}</StackItem>
|
|
56
|
+
<StackItem>
|
|
57
|
+
{t(
|
|
58
|
+
'Decommissioned devices will not be able to communicate with the edge management system anymore, and they will be removed from any fleet they were associated to. Once decommissioned, the devices cannot be managed further.',
|
|
59
|
+
)}
|
|
60
|
+
</StackItem>
|
|
61
|
+
<StackItem>
|
|
62
|
+
<Table>
|
|
63
|
+
<Thead>
|
|
64
|
+
<Tr>
|
|
65
|
+
<Th>{t('Alias')}</Th>
|
|
66
|
+
<Th>{t('Name')}</Th>
|
|
67
|
+
</Tr>
|
|
68
|
+
</Thead>
|
|
69
|
+
<Tbody>
|
|
70
|
+
{devices.map((device) => {
|
|
71
|
+
return (
|
|
72
|
+
<Tr key={device.metadata.name}>
|
|
73
|
+
<Td dataLabel={t('Alias')}>{device.metadata.labels?.alias || '-'}</Td>
|
|
74
|
+
<Td dataLabel={t('Name')}>
|
|
75
|
+
<ResourceLink id={device.metadata.name as string} />
|
|
76
|
+
</Td>
|
|
77
|
+
</Tr>
|
|
78
|
+
);
|
|
79
|
+
})}
|
|
80
|
+
</Tbody>
|
|
81
|
+
</Table>
|
|
82
|
+
</StackItem>
|
|
83
|
+
{isSubmitting && (
|
|
84
|
+
<StackItem>
|
|
85
|
+
<Progress
|
|
86
|
+
value={progress}
|
|
87
|
+
min={0}
|
|
88
|
+
max={totalProgress}
|
|
89
|
+
title={t('Decommissioning...')}
|
|
90
|
+
measureLocation={ProgressMeasureLocation.top}
|
|
91
|
+
label={t('{{progress}} of {{totalProgress}}', { progress, totalProgress })}
|
|
92
|
+
valueText={t('{{progress}} of {{totalProgress}}', { progress, totalProgress })}
|
|
93
|
+
/>
|
|
94
|
+
</StackItem>
|
|
95
|
+
)}
|
|
96
|
+
{errors?.length && (
|
|
97
|
+
<StackItem>
|
|
98
|
+
<Alert isInline variant="danger" title={t('An error occurred')}>
|
|
99
|
+
<Stack hasGutter>
|
|
100
|
+
{errors.map((e, index) => (
|
|
101
|
+
<StackItem key={index}>{e}</StackItem>
|
|
102
|
+
))}
|
|
103
|
+
</Stack>
|
|
104
|
+
</Alert>
|
|
105
|
+
</StackItem>
|
|
106
|
+
)}
|
|
107
|
+
</Stack>
|
|
108
|
+
</ModalBody>
|
|
109
|
+
<ModalFooter>
|
|
58
110
|
<Button
|
|
59
111
|
key="decommission"
|
|
60
112
|
variant="danger"
|
|
@@ -63,66 +115,11 @@ const MassDecommissionDeviceModal = ({ onClose, devices, onSuccess }: MassDecomm
|
|
|
63
115
|
isDisabled={isSubmitting}
|
|
64
116
|
>
|
|
65
117
|
{t('Decommission')}
|
|
66
|
-
</Button
|
|
118
|
+
</Button>
|
|
67
119
|
<Button key="cancel" variant="link" onClick={onClose} isDisabled={isSubmitting}>
|
|
68
120
|
{t('Cancel')}
|
|
69
|
-
</Button
|
|
70
|
-
|
|
71
|
-
>
|
|
72
|
-
<Stack hasGutter>
|
|
73
|
-
<StackItem>{t('Are you sure you want to proceed with decommissioning these devices ?')}</StackItem>
|
|
74
|
-
<StackItem>
|
|
75
|
-
{t(
|
|
76
|
-
'Decommissioned devices will not be able to communicate with the edge management system anymore, and they will be removed from any fleet they were associated to. Once decommissioned, the devices cannot be managed further.',
|
|
77
|
-
)}
|
|
78
|
-
</StackItem>
|
|
79
|
-
<StackItem>
|
|
80
|
-
<Table>
|
|
81
|
-
<Thead>
|
|
82
|
-
<Tr>
|
|
83
|
-
<Th>{t('Alias')}</Th>
|
|
84
|
-
<Th>{t('Name')}</Th>
|
|
85
|
-
</Tr>
|
|
86
|
-
</Thead>
|
|
87
|
-
<Tbody>
|
|
88
|
-
{devices.map((device) => {
|
|
89
|
-
return (
|
|
90
|
-
<Tr key={device.metadata.name}>
|
|
91
|
-
<Td dataLabel={t('Alias')}>{device.metadata.labels?.alias || '-'}</Td>
|
|
92
|
-
<Td dataLabel={t('Name')}>
|
|
93
|
-
<ResourceLink id={device.metadata.name as string} />
|
|
94
|
-
</Td>
|
|
95
|
-
</Tr>
|
|
96
|
-
);
|
|
97
|
-
})}
|
|
98
|
-
</Tbody>
|
|
99
|
-
</Table>
|
|
100
|
-
</StackItem>
|
|
101
|
-
{isSubmitting && (
|
|
102
|
-
<StackItem>
|
|
103
|
-
<Progress
|
|
104
|
-
value={progress}
|
|
105
|
-
min={0}
|
|
106
|
-
max={totalProgress}
|
|
107
|
-
title={t('Decommissioning...')}
|
|
108
|
-
measureLocation={ProgressMeasureLocation.top}
|
|
109
|
-
label={t('{{progress}} of {{totalProgress}}', { progress, totalProgress })}
|
|
110
|
-
valueText={t('{{progress}} of {{totalProgress}}', { progress, totalProgress })}
|
|
111
|
-
/>
|
|
112
|
-
</StackItem>
|
|
113
|
-
)}
|
|
114
|
-
{errors?.length && (
|
|
115
|
-
<StackItem>
|
|
116
|
-
<Alert isInline variant="danger" title={t('An error occurred')}>
|
|
117
|
-
<Stack hasGutter>
|
|
118
|
-
{errors.map((e, index) => (
|
|
119
|
-
<StackItem key={index}>{e}</StackItem>
|
|
120
|
-
))}
|
|
121
|
-
</Stack>
|
|
122
|
-
</Alert>
|
|
123
|
-
</StackItem>
|
|
124
|
-
)}
|
|
125
|
-
</Stack>
|
|
121
|
+
</Button>
|
|
122
|
+
</ModalFooter>
|
|
126
123
|
</Modal>
|
|
127
124
|
);
|
|
128
125
|
};
|