@flightctl/ui-components 1.1.0-rc1 → 1.1.0-rc3
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/Repository/CreateRepository/CreateRepositoryForm.css +5 -1
- package/dist/types/imagebuilder/index.d.ts +2 -0
- package/dist/types/imagebuilder/index.d.ts.map +1 -1
- package/dist/types/imagebuilder/index.js +3 -1
- package/dist/types/imagebuilder/index.js.map +1 -1
- package/dist/types/imagebuilder/models/ApiVersion.d.ts +8 -0
- package/dist/types/imagebuilder/models/ApiVersion.d.ts.map +1 -0
- package/dist/types/imagebuilder/models/ApiVersion.js +16 -0
- package/dist/types/imagebuilder/models/ApiVersion.js.map +1 -0
- package/dist/types/imagebuilder/models/ImageBuild.d.ts +2 -4
- package/dist/types/imagebuilder/models/ImageBuild.d.ts.map +1 -1
- package/dist/types/imagebuilder/models/ImageBuildList.d.ts +2 -4
- package/dist/types/imagebuilder/models/ImageBuildList.d.ts.map +1 -1
- package/dist/types/imagebuilder/models/ImageExport.d.ts +2 -4
- package/dist/types/imagebuilder/models/ImageExport.d.ts.map +1 -1
- package/dist/types/imagebuilder/models/ImageExportList.d.ts +2 -4
- package/dist/types/imagebuilder/models/ImageExportList.d.ts.map +1 -1
- package/dist/types/imagebuilder/models/Status.d.ts +28 -0
- package/dist/types/imagebuilder/models/Status.d.ts.map +1 -0
- package/dist/types/imagebuilder/models/Status.js +3 -0
- package/dist/types/imagebuilder/models/Status.js.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/models/ApiVersion.d.ts +9 -0
- package/dist/types/models/ApiVersion.d.ts.map +1 -0
- package/dist/types/models/ApiVersion.js +17 -0
- package/dist/types/models/ApiVersion.js.map +1 -0
- package/dist/types/models/ApplicationProviderBase.d.ts +12 -0
- package/dist/types/models/ApplicationProviderBase.d.ts.map +1 -0
- package/dist/types/models/ApplicationProviderBase.js +3 -0
- package/dist/types/models/ApplicationProviderBase.js.map +1 -0
- package/dist/types/models/ApplicationProviderSpec.d.ts +5 -15
- package/dist/types/models/ApplicationProviderSpec.d.ts.map +1 -1
- package/dist/types/models/ApplicationUser.d.ts +7 -0
- package/dist/types/models/ApplicationUser.d.ts.map +1 -0
- package/dist/types/models/ApplicationUser.js +3 -0
- package/dist/types/models/ApplicationUser.js.map +1 -0
- package/dist/types/models/AuthConfig.d.ts +2 -4
- package/dist/types/models/AuthConfig.d.ts.map +1 -1
- package/dist/types/models/AuthProvider.d.ts +2 -4
- package/dist/types/models/AuthProvider.d.ts.map +1 -1
- package/dist/types/models/AuthProviderList.d.ts +2 -4
- package/dist/types/models/AuthProviderList.d.ts.map +1 -1
- package/dist/types/models/CertificateSigningRequest.d.ts +2 -4
- package/dist/types/models/CertificateSigningRequest.d.ts.map +1 -1
- package/dist/types/models/CertificateSigningRequestList.d.ts +2 -4
- package/dist/types/models/CertificateSigningRequestList.d.ts.map +1 -1
- package/dist/types/models/ComposeApplication.d.ts +7 -0
- package/dist/types/models/ComposeApplication.d.ts.map +1 -0
- package/dist/types/models/ComposeApplication.js +3 -0
- package/dist/types/models/ComposeApplication.js.map +1 -0
- package/dist/types/models/ContainerApplication.d.ts +18 -0
- package/dist/types/models/ContainerApplication.d.ts.map +1 -0
- package/dist/types/models/ContainerApplication.js +3 -0
- package/dist/types/models/ContainerApplication.js.map +1 -0
- package/dist/types/models/ContainerApplicationProperties.d.ts +13 -0
- package/dist/types/models/ContainerApplicationProperties.d.ts.map +1 -0
- package/dist/types/models/ContainerApplicationProperties.js +3 -0
- package/dist/types/models/ContainerApplicationProperties.js.map +1 -0
- package/dist/types/models/Device.d.ts +2 -4
- package/dist/types/models/Device.d.ts.map +1 -1
- package/dist/types/models/DeviceList.d.ts +2 -4
- package/dist/types/models/DeviceList.d.ts.map +1 -1
- package/dist/types/models/EnrollmentRequest.d.ts +2 -4
- package/dist/types/models/EnrollmentRequest.d.ts.map +1 -1
- package/dist/types/models/EnrollmentRequestList.d.ts +2 -4
- package/dist/types/models/EnrollmentRequestList.d.ts.map +1 -1
- package/dist/types/models/Event.d.ts +2 -4
- package/dist/types/models/Event.d.ts.map +1 -1
- package/dist/types/models/Event.js.map +1 -1
- package/dist/types/models/EventList.d.ts +2 -4
- package/dist/types/models/EventList.d.ts.map +1 -1
- package/dist/types/models/Fleet.d.ts +2 -4
- package/dist/types/models/Fleet.d.ts.map +1 -1
- package/dist/types/models/FleetList.d.ts +2 -4
- package/dist/types/models/FleetList.d.ts.map +1 -1
- package/dist/types/models/HelmApplication.d.ts +20 -0
- package/dist/types/models/HelmApplication.d.ts.map +1 -0
- package/dist/types/models/HelmApplication.js +3 -0
- package/dist/types/models/HelmApplication.js.map +1 -0
- package/dist/types/models/ImageApplicationProviderSpec.d.ts +2 -22
- package/dist/types/models/ImageApplicationProviderSpec.d.ts.map +1 -1
- package/dist/types/models/InlineApplicationProviderSpec.d.ts +2 -3
- package/dist/types/models/InlineApplicationProviderSpec.d.ts.map +1 -1
- package/dist/types/models/Organization.d.ts +2 -4
- package/dist/types/models/Organization.d.ts.map +1 -1
- package/dist/types/models/OrganizationList.d.ts +2 -4
- package/dist/types/models/OrganizationList.d.ts.map +1 -1
- package/dist/types/models/QuadletApplication.d.ts +8 -0
- package/dist/types/models/QuadletApplication.d.ts.map +1 -0
- package/dist/types/models/QuadletApplication.js +3 -0
- package/dist/types/models/QuadletApplication.js.map +1 -0
- package/dist/types/models/Repository.d.ts +2 -4
- package/dist/types/models/Repository.d.ts.map +1 -1
- package/dist/types/models/RepositoryList.d.ts +2 -4
- package/dist/types/models/RepositoryList.d.ts.map +1 -1
- package/dist/types/models/ResourceSync.d.ts +2 -4
- package/dist/types/models/ResourceSync.d.ts.map +1 -1
- package/dist/types/models/ResourceSyncList.d.ts +2 -4
- package/dist/types/models/ResourceSyncList.d.ts.map +1 -1
- package/dist/types/models/Status.d.ts +2 -4
- package/dist/types/models/Status.d.ts.map +1 -1
- package/dist/types/models/TemplateVersion.d.ts +2 -4
- package/dist/types/models/TemplateVersion.d.ts.map +1 -1
- package/dist/types/models/TemplateVersionList.d.ts +2 -4
- package/dist/types/models/TemplateVersionList.d.ts.map +1 -1
- package/dist/ui-components/src/components/AuthProvider/CreateAuthProvider/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/AuthProvider/CreateAuthProvider/utils.js +51 -51
- package/dist/ui-components/src/components/AuthProvider/CreateAuthProvider/utils.js.map +1 -1
- package/dist/ui-components/src/components/DetailsPage/Tables/ApplicationsTable.js +1 -1
- package/dist/ui-components/src/components/DetailsPage/Tables/ApplicationsTable.js.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.js +5 -4
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/TerminalTab.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/TerminalTab.js +5 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/TerminalTab.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +310 -363
- package/dist/ui-components/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.d.ts +1 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.js +18 -19
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.d.ts +1 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js +5 -4
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts +1 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js +2 -2
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js +20 -23
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationIntegritySettings.js +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationIntegritySettings.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js +25 -45
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.d.ts +8 -0
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.d.ts.map +1 -0
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.js +37 -0
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.js.map +1 -0
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.d.ts +1 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js +5 -8
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/utils.d.ts +18 -18
- package/dist/ui-components/src/components/ErrorAlert/ErrorAlert.d.ts +4 -2
- package/dist/ui-components/src/components/ErrorAlert/ErrorAlert.d.ts.map +1 -1
- package/dist/ui-components/src/components/ErrorAlert/ErrorAlert.js +2 -2
- package/dist/ui-components/src/components/ErrorAlert/ErrorAlert.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/utils.d.ts +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/utils.js +3 -3
- package/dist/ui-components/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js +3 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.d.ts +7 -0
- package/dist/ui-components/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.d.ts.map +1 -0
- package/dist/ui-components/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.js +40 -0
- package/dist/ui-components/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.js.map +1 -0
- package/dist/ui-components/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.d.ts +8 -0
- package/dist/ui-components/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.d.ts.map +1 -0
- package/dist/ui-components/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.js +37 -0
- package/dist/ui-components/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.js.map +1 -0
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/CreateImageBuildWizard.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/CreateImageBuildWizard.js +4 -3
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/CreateImageBuildWizard.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/OutputImageStep.js +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/OutputImageStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/RegistrationStep.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/RegistrationStep.js +13 -10
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/RegistrationStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/ReviewStep.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/ReviewStep.js +4 -2
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/ReviewStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/SourceImageStep.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/SourceImageStep.js +7 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/SourceImageStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/types.d.ts +3 -5
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/types.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.d.ts +3 -2
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.js +139 -34
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsPage.js +23 -12
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsPage.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.js +115 -39
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.d.ts +1 -0
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.js +17 -18
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.d.ts +5 -2
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.js +22 -12
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.js +17 -8
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageExportCards.d.ts +10 -9
- package/dist/ui-components/src/components/ImageBuilds/ImageExportCards.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageExportCards.js +122 -26
- package/dist/ui-components/src/components/ImageBuilds/ImageExportCards.js.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts +2 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.js +10 -4
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.js +3 -4
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/ui-components/src/components/form/RepositorySelect.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/RepositorySelect.js +1 -1
- package/dist/ui-components/src/components/form/RepositorySelect.js.map +1 -1
- package/dist/ui-components/src/components/form/UploadField.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/UploadField.js +25 -16
- package/dist/ui-components/src/components/form/UploadField.js.map +1 -1
- package/dist/ui-components/src/components/form/validations.d.ts +25 -18
- package/dist/ui-components/src/components/form/validations.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/validations.js +79 -33
- package/dist/ui-components/src/components/form/validations.js.map +1 -1
- package/dist/ui-components/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts +2 -1
- package/dist/ui-components/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts.map +1 -1
- package/dist/ui-components/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js +2 -2
- package/dist/ui-components/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js.map +1 -1
- package/dist/ui-components/src/constants.d.ts +5 -6
- package/dist/ui-components/src/constants.d.ts.map +1 -1
- package/dist/ui-components/src/constants.js +19 -11
- package/dist/ui-components/src/constants.js.map +1 -1
- package/dist/ui-components/src/hooks/useWebSocket.d.ts.map +1 -1
- package/dist/ui-components/src/hooks/useWebSocket.js +25 -4
- package/dist/ui-components/src/hooks/useWebSocket.js.map +1 -1
- package/dist/ui-components/src/types/deviceSpec.d.ts +44 -76
- package/dist/ui-components/src/types/deviceSpec.d.ts.map +1 -1
- package/dist/ui-components/src/types/deviceSpec.js +13 -26
- package/dist/ui-components/src/types/deviceSpec.js.map +1 -1
- package/dist/ui-components/src/types/extraTypes.d.ts +1 -7
- package/dist/ui-components/src/types/extraTypes.d.ts.map +1 -1
- package/dist/ui-components/src/types/extraTypes.js.map +1 -1
- package/dist/ui-components/src/types/rbac.d.ts +7 -1
- package/dist/ui-components/src/types/rbac.d.ts.map +1 -1
- package/dist/ui-components/src/types/rbac.js +6 -0
- package/dist/ui-components/src/types/rbac.js.map +1 -1
- package/dist/ui-components/src/utils/imageBuilds.d.ts +1 -0
- package/dist/ui-components/src/utils/imageBuilds.d.ts.map +1 -1
- package/dist/ui-components/src/utils/imageBuilds.js +20 -29
- package/dist/ui-components/src/utils/imageBuilds.js.map +1 -1
- package/dist/ui-components/src/utils/search.d.ts +2 -1
- package/dist/ui-components/src/utils/search.d.ts.map +1 -1
- package/dist/ui-components/src/utils/search.js +2 -2
- package/dist/ui-components/src/utils/search.js.map +1 -1
- package/package.json +2 -2
- package/src/components/AuthProvider/CreateAuthProvider/utils.ts +2 -2
- package/src/components/DetailsPage/Tables/ApplicationsTable.tsx +2 -2
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +10 -4
- package/src/components/Device/DeviceDetails/TerminalTab.tsx +9 -1
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +361 -425
- package/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.tsx +19 -29
- package/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.tsx +5 -13
- package/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.tsx +2 -16
- package/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx +8 -7
- package/src/components/Device/EditDeviceWizard/steps/ApplicationIntegritySettings.tsx +5 -5
- package/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx +29 -101
- package/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.tsx +87 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.tsx +5 -10
- package/src/components/ErrorAlert/ErrorAlert.tsx +13 -3
- package/src/components/Fleet/CreateFleet/utils.ts +4 -5
- package/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx +11 -8
- package/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.tsx +81 -0
- package/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.tsx +61 -0
- package/src/components/ImageBuilds/CreateImageBuildWizard/CreateImageBuildWizard.tsx +8 -3
- package/src/components/ImageBuilds/CreateImageBuildWizard/steps/OutputImageStep.tsx +1 -1
- package/src/components/ImageBuilds/CreateImageBuildWizard/steps/RegistrationStep.tsx +18 -10
- package/src/components/ImageBuilds/CreateImageBuildWizard/steps/ReviewStep.tsx +5 -1
- package/src/components/ImageBuilds/CreateImageBuildWizard/steps/SourceImageStep.tsx +13 -1
- package/src/components/ImageBuilds/CreateImageBuildWizard/types.ts +3 -6
- package/src/components/ImageBuilds/CreateImageBuildWizard/utils.ts +161 -37
- package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsPage.tsx +36 -17
- package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.tsx +131 -44
- package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.tsx +22 -26
- package/src/components/ImageBuilds/ImageBuildRow.tsx +41 -20
- package/src/components/ImageBuilds/ImageBuildsPage.tsx +34 -15
- package/src/components/ImageBuilds/ImageExportCards.tsx +198 -80
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.css +5 -1
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +14 -4
- package/src/components/Repository/CreateRepository/utils.ts +4 -4
- package/src/components/form/RepositorySelect.tsx +1 -0
- package/src/components/form/UploadField.tsx +29 -30
- package/src/components/form/validations.ts +156 -106
- package/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.tsx +3 -1
- package/src/constants.ts +19 -6
- package/src/hooks/useWebSocket.ts +25 -3
- package/src/types/deviceSpec.ts +68 -108
- package/src/types/extraTypes.ts +2 -12
- package/src/types/rbac.ts +6 -0
- package/src/utils/imageBuilds.ts +22 -32
- package/src/utils/search.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBuildExportsGallery.js","sourceRoot":"","sources":["../../../../../../src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAiD;AACjD,2CAAoC;
|
|
1
|
+
{"version":3,"file":"ImageBuildExportsGallery.js","sourceRoot":"","sources":["../../../../../../src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAiD;AACjD,2CAAoC;AAEpC,gEAAyG;AAEzG,4DAAuE;AACvE,8CAAqD;AACrD,sDAAmD;AACnD,wEAAwE;AACxE,gDAAuD;AACvD,2DAAyE;AACzE,0DAAkF;AAClF,kEAAkE;AAClE,8CAAyD;AACzD,4DAA6G;AAC7G,4DAAgE;AAChE,2DAA4D;AAO5D,MAAM,yBAAyB,GAAG,GAAG,CAAC;AACtC,+DAA+D;AAC/D,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAM,mBAAmB,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;AAEjE,MAAM,kBAAkB,GAAG,CAAC,GAAW,EAAE,EAAE;IACzC,MAAM,I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AW,uBAAX,WAAW,CAAE,IAAI,CAAC,MAAM,MAAK,MAAM,CAAC,CAAC;QACvG,mEAAmE;QACnE,+EAA+E;QAC/E,MAAM,cAAc,GAAG,IAAA,+BAAiB,EAAC,aAAa,EAAE,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAErF,MAAM,QAAQ,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,MAAK,MAAM,CAAC;QAC1C,MAAM,YAAY,GAAG,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,MAAM,MAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;QACnG,OAAO,CACL,oBAAC,2CAAwB,IACvB,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAC9B,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,EACzC,YAAY,EAAE,gBAAgB,EAC9B,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC;IACJ,CAAC,CAAC,CACM,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,wBAAwB,CAAC"}
|
package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ImageBuildWithExports } from '../../../types/extraTypes';
|
|
3
|
+
export declare const IMAGE_EXPORT_ID_PARAM = "exportId";
|
|
3
4
|
declare const ImageBuildLogsTab: ({ imageBuild }: {
|
|
4
5
|
imageBuild: ImageBuildWithExports;
|
|
5
6
|
}) => React.JSX.Element;
|
package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBuildLogsTab.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageBuildLogsTab.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAMlE,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAqChD,QAAA,MAAM,iBAAiB;gBAAkC,qBAAqB;uBA+L7E,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMAGE_EXPORT_ID_PARAM = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const React = tslib_1.__importStar(require("react"));
|
|
5
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
@@ -8,18 +9,8 @@ const useTranslation_1 = require("../../../hooks/useTranslation");
|
|
|
8
9
|
const imageBuilds_1 = require("../../../utils/imageBuilds");
|
|
9
10
|
const useImageBuildLogs_1 = require("../useImageBuildLogs");
|
|
10
11
|
const StatusDisplay_1 = require("../../Status/StatusDisplay");
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
case imagebuilder_1.ExportFormatType.ExportFormatTypeVMDK:
|
|
14
|
-
return t('Virtualization (VMDK)');
|
|
15
|
-
case imagebuilder_1.ExportFormatType.ExportFormatTypeQCOW2:
|
|
16
|
-
return t('OpenStack/KVM (QCOW2)');
|
|
17
|
-
case imagebuilder_1.ExportFormatType.ExportFormatTypeQCOW2DiskContainer:
|
|
18
|
-
return t('OpenShift Virtualization (QCOW2)');
|
|
19
|
-
case imagebuilder_1.ExportFormatType.ExportFormatTypeISO:
|
|
20
|
-
return t('Metal installer (ISO)');
|
|
21
|
-
}
|
|
22
|
-
};
|
|
12
|
+
const useAppContext_1 = require("../../../hooks/useAppContext");
|
|
13
|
+
exports.IMAGE_EXPORT_ID_PARAM = 'exportId';
|
|
23
14
|
const ImageBuildAndExportLogStatus = ({ status, }) => {
|
|
24
15
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
25
16
|
let label;
|
|
@@ -45,16 +36,18 @@ const ImageBuildAndExportLogStatus = ({ status, }) => {
|
|
|
45
36
|
};
|
|
46
37
|
const ImageBuildLogsTab = ({ imageBuild }) => {
|
|
47
38
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
39
|
+
const { router: { useSearchParams }, } = (0, useAppContext_1.useAppContext)();
|
|
40
|
+
const [searchParams] = useSearchParams();
|
|
48
41
|
const [isLogSelectOpen, setIsLogSelectOpen] = React.useState(false);
|
|
49
42
|
const logsRef = React.useRef(null);
|
|
43
|
+
const buildName = imageBuild.metadata.name;
|
|
50
44
|
const { selectableEntities, hasExports } = React.useMemo(() => {
|
|
51
45
|
const entities = [];
|
|
52
|
-
const buildName = imageBuild.metadata.name;
|
|
53
46
|
const buildReason = (0, imageBuilds_1.getImageBuildStatusReason)(imageBuild);
|
|
54
47
|
entities.push({
|
|
55
48
|
type: useImageBuildLogs_1.LogResourceType.BUILD,
|
|
56
49
|
id: buildName,
|
|
57
|
-
label:
|
|
50
|
+
label: t('Image build'),
|
|
58
51
|
isActive: (0, imageBuilds_1.isImageBuildActiveReason)(buildReason),
|
|
59
52
|
status: buildReason,
|
|
60
53
|
});
|
|
@@ -71,7 +64,7 @@ const ImageBuildLogsTab = ({ imageBuild }) => {
|
|
|
71
64
|
entities.push({
|
|
72
65
|
type: useImageBuildLogs_1.LogResourceType.EXPORT,
|
|
73
66
|
id: ie.metadata.name,
|
|
74
|
-
label:
|
|
67
|
+
label: (0, imageBuilds_1.getExportFormatLabel)(t, format),
|
|
75
68
|
isActive: (0, imageBuilds_1.isImageExportActiveReason)(exportReason),
|
|
76
69
|
status: exportReason,
|
|
77
70
|
});
|
|
@@ -81,8 +74,14 @@ const ImageBuildLogsTab = ({ imageBuild }) => {
|
|
|
81
74
|
selectableEntities: entities,
|
|
82
75
|
hasExports,
|
|
83
76
|
};
|
|
84
|
-
}, [imageBuild, t]);
|
|
85
|
-
const [selectedEntityId, setSelectedEntityId] = React.useState(
|
|
77
|
+
}, [imageBuild, buildName, t]);
|
|
78
|
+
const [selectedEntityId, setSelectedEntityId] = React.useState(() => {
|
|
79
|
+
const selectedId = searchParams.get(exports.IMAGE_EXPORT_ID_PARAM);
|
|
80
|
+
if (selectedId && selectableEntities.some((e) => e.id === selectedId)) {
|
|
81
|
+
return selectedId;
|
|
82
|
+
}
|
|
83
|
+
return buildName;
|
|
84
|
+
});
|
|
86
85
|
const selectedEntity = selectableEntities.find((entity) => entity.id === selectedEntityId) || selectableEntities[0];
|
|
87
86
|
const { logs, isLoading, error, isStreaming } = (0, useImageBuildLogs_1.useImageBuildLogs)(selectedEntity.id, selectedEntity.type, selectedEntity.isActive);
|
|
88
87
|
const onLogSourceSelected = React.useCallback((_event, value) => {
|
|
@@ -122,7 +121,7 @@ const ImageBuildLogsTab = ({ imageBuild }) => {
|
|
|
122
121
|
React.createElement(react_core_1.MenuGroup, { label: t('Image build'), labelHeadingLevel: "h3" },
|
|
123
122
|
React.createElement(react_core_1.MenuList, null, selectableEntities
|
|
124
123
|
.filter((entity) => entity.type === useImageBuildLogs_1.LogResourceType.BUILD)
|
|
125
|
-
.map((entity) => (React.createElement(react_core_1.MenuItem, { key: entity.id, itemId: entity.id, isSelected: selectedEntityId === entity.id
|
|
124
|
+
.map((entity) => (React.createElement(react_core_1.MenuItem, { key: entity.id, itemId: entity.id, isSelected: selectedEntityId === entity.id }, entity.id))))),
|
|
126
125
|
React.createElement(react_core_1.Divider, null),
|
|
127
126
|
React.createElement(react_core_1.MenuGroup, { label: t('Export image'), labelHeadingLevel: "h3" },
|
|
128
127
|
React.createElement(react_core_1.MenuList, null,
|
package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBuildLogsTab.js","sourceRoot":"","sources":["../../../../../../src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageBuildLogsTab.js","sourceRoot":"","sources":["../../../../../../src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAoBgC;AAEhC,gEAAwH;AACxH,kEAA+D;AAC/D,4DAMoC;AAEpC,4DAA0E;AAC1E,8DAAkE;AAElE,gEAA6D;AAEhD,QAAA,qBAAqB,GAAG,UAAU,CAAC;AAUhD,MAAM,4BAA4B,GAAG,CAAC,EACpC,MAAM,GAGP,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,IAAI,KAAa,CAAC;IAClB,IAAI,KAAkB,CAAC;IACvB,IAAI,MAAM,KAAK,wCAAyB,CAAC,kCAAkC,EAAE,CAAC;QAC5E,KAAK,GAAG,SAAS,CAAC;QAClB,KAAK,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC;IACzB,CAAC;SAAM,IAAI,MAAM,KAAK,wCAAyB,CAAC,+BAA+B,EAAE,CAAC;QAChF,KAAK,GAAG,QAAQ,CAAC;QACjB,KAAK,GAAG,CAAC,CAAC,QAAQ,CAAC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AAkB,CAAC,EACjC,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EACzB,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,IAAI,IAAI,EAAE,EACjB,QAAQ,QACR,iBAAiB,EAAC,UAAU,GAC5B,CACQ,CACN,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -7,10 +7,13 @@ type ImageBuildRowProps = {
|
|
|
7
7
|
rowIndex: number;
|
|
8
8
|
onRowSelect: (imageBuild: ImageBuild) => OnSelect;
|
|
9
9
|
isRowSelected: (imageBuild: ImageBuild) => boolean;
|
|
10
|
-
|
|
10
|
+
canCreate: boolean;
|
|
11
11
|
onDeleteClick: VoidFunction;
|
|
12
|
+
canDelete: boolean;
|
|
13
|
+
onCancelClick: VoidFunction;
|
|
14
|
+
canCancel: boolean;
|
|
12
15
|
refetch: VoidFunction;
|
|
13
16
|
};
|
|
14
|
-
declare const ImageBuildRow: ({ imageBuild, rowIndex, onRowSelect, isRowSelected, onDeleteClick, canDelete, refetch, }: ImageBuildRowProps) => React.JSX.Element;
|
|
17
|
+
declare const ImageBuildRow: ({ imageBuild, rowIndex, onRowSelect, isRowSelected, onDeleteClick, canCreate, canDelete, onCancelClick, canCancel, refetch, }: ImageBuildRowProps) => React.JSX.Element;
|
|
15
18
|
export default ImageBuildRow;
|
|
16
19
|
//# sourceMappingURL=ImageBuildRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBuildRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageBuildRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAgD,QAAQ,EAAiB,MAAM,yBAAyB,CAAC;AAGhH,OAAO,EAAE,UAAU,EAA6B,MAAM,+BAA+B,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAS/D,KAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,qBAAqB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,QAAQ,CAAC;IAClD,aAAa,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,YAAY,CAAC;IAC5B,OAAO,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"ImageBuildRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageBuildRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAgD,QAAQ,EAAiB,MAAM,yBAAyB,CAAC;AAGhH,OAAO,EAAE,UAAU,EAA6B,MAAM,+BAA+B,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAS/D,KAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,qBAAqB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,QAAQ,CAAC;IAClD,aAAa,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,YAAY,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,YAAY,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,aAAa,kIAWhB,kBAAkB,sBAkIpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -13,7 +13,7 @@ const dates_1 = require("../../utils/dates");
|
|
|
13
13
|
const ResourceLink_1 = tslib_1.__importDefault(require("../common/ResourceLink"));
|
|
14
14
|
const ImageBuildExportsGallery_1 = tslib_1.__importDefault(require("./ImageBuildDetails/ImageBuildExportsGallery"));
|
|
15
15
|
const ImageBuildAndExportStatus_1 = require("./ImageBuildAndExportStatus");
|
|
16
|
-
const ImageBuildRow = ({ imageBuild, rowIndex, onRowSelect, isRowSelected, onDeleteClick, canDelete, refetch, }) => {
|
|
16
|
+
const ImageBuildRow = ({ imageBuild, rowIndex, onRowSelect, isRowSelected, onDeleteClick, canCreate, canDelete, onCancelClick, canCancel, refetch, }) => {
|
|
17
17
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
18
18
|
const navigate = (0, useNavigate_1.useNavigate)();
|
|
19
19
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
@@ -27,13 +27,21 @@ const ImageBuildRow = ({ imageBuild, rowIndex, onRowSelect, isRowSelected, onDel
|
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
];
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
if (canCreate) {
|
|
31
|
+
actions.push({
|
|
32
|
+
title: buildReason === imagebuilder_1.ImageBuildConditionReason.ImageBuildConditionReasonFailed ? t('Retry') : t('Duplicate'),
|
|
33
|
+
onClick: () => {
|
|
34
|
+
navigate({ route: useNavigate_1.ROUTE.IMAGE_BUILD_EDIT, postfix: imageBuildName });
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
if (canCancel && (0, imageBuilds_1.isImageBuildCancelable)(buildReason)) {
|
|
39
|
+
actions.push({
|
|
40
|
+
title: t('Cancel image build'),
|
|
41
|
+
onClick: onCancelClick,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
else if (canDelete) {
|
|
37
45
|
actions.push({
|
|
38
46
|
title: t('Delete image build'),
|
|
39
47
|
onClick: onDeleteClick,
|
|
@@ -75,10 +83,12 @@ const ImageBuildRow = ({ imageBuild, rowIndex, onRowSelect, isRowSelected, onDel
|
|
|
75
83
|
React.createElement(react_core_1.FlexItem, null,
|
|
76
84
|
React.createElement(react_core_1.Icon, { status: "danger" },
|
|
77
85
|
React.createElement(exclamation_circle_icon_1.ExclamationCircleIcon, null))),
|
|
78
|
-
React.createElement(
|
|
79
|
-
React.createElement(react_core_1.
|
|
80
|
-
|
|
81
|
-
React.createElement(react_core_1.
|
|
86
|
+
canCreate ? (React.createElement(React.Fragment, null,
|
|
87
|
+
React.createElement(react_core_1.FlexItem, null,
|
|
88
|
+
React.createElement(react_core_1.Content, null, t('Build failed. Please retry.'))),
|
|
89
|
+
React.createElement(react_core_1.FlexItem, null,
|
|
90
|
+
React.createElement(react_core_1.Button, { variant: "link", onClick: () => navigate({ route: useNavigate_1.ROUTE.IMAGE_BUILD_EDIT, postfix: imageBuildName }) }, t('Retry'))))) : (React.createElement(react_core_1.FlexItem, null,
|
|
91
|
+
React.createElement(react_core_1.Content, null, t('Build failed.')))))),
|
|
82
92
|
React.createElement(react_core_1.StackItem, null,
|
|
83
93
|
React.createElement(react_core_1.Button, { variant: "link", onClick: () => navigate({ route: useNavigate_1.ROUTE.IMAGE_BUILD_DETAILS, postfix: imageBuildName }) }, t('View more'))))),
|
|
84
94
|
React.createElement(react_core_1.StackItem, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBuildRow.js","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageBuildRow.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAwG;AACxG,yDAAgH;AAChH,2GAAsG;AAEtG,gEAAsF;AAEtF,+DAA4D;AAC5D,yDAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"ImageBuildRow.js","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageBuildRow.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAwG;AACxG,yDAAgH;AAChH,2GAAsG;AAEtG,gEAAsF;AAE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BAAM,IACL,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,mBAAK,CAAC,gBAAgB,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,IAElF,CAAC,CAAC,OAAO,CAAC,CACJ,CACA,CACV,CACJ,CAAC,CAAC,CAAC,CACF,oBAAC,qBAAQ;wCACP,oBAAC,oBAAO,QAAE,CAAC,CAAC,eAAe,CAAC,CAAW,CAC9B,CACZ,CACI,CACR;gCACD,oBAAC,sBAAS;oCACR,oBAAC,mBAAM,IACL,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,mBAAK,CAAC,mBAAmB,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,IAErF,CAAC,CAAC,WAAW,CAAC,CACR,CACC,CACN,CACE;wBACZ,oBAAC,sBAAS;4BACR,oBAAC,kCAAwB,IAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,CAC5D,CACN,CACa,CACpB,CACF,CACC,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBuildsPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageBuildsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageBuildsPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageBuildsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgN/B,QAAA,MAAM,8BAA8B,yBAWnC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
|
@@ -18,6 +18,7 @@ const TablePagination_1 = tslib_1.__importDefault(require("../Table/TablePaginat
|
|
|
18
18
|
const TableTextSearch_1 = tslib_1.__importDefault(require("../Table/TableTextSearch"));
|
|
19
19
|
const Table_1 = tslib_1.__importDefault(require("../Table/Table"));
|
|
20
20
|
const MassDeleteImageBuildModal_1 = tslib_1.__importDefault(require("../modals/massModals/MassDeleteImageBuildModal/MassDeleteImageBuildModal"));
|
|
21
|
+
const CancelImageBuildModal_1 = tslib_1.__importDefault(require("./CancelImageBuildModal/CancelImageBuildModal"));
|
|
21
22
|
const DeleteImageBuildModal_1 = tslib_1.__importDefault(require("./DeleteImageBuildModal/DeleteImageBuildModal"));
|
|
22
23
|
const useImageBuilds_1 = require("./useImageBuilds");
|
|
23
24
|
const ImageBuildRow_1 = tslib_1.__importDefault(require("./ImageBuildRow"));
|
|
@@ -44,15 +45,16 @@ const getColumns = (t) => [
|
|
|
44
45
|
];
|
|
45
46
|
const imageBuildTablePermissions = [
|
|
46
47
|
{ kind: rbac_1.RESOURCE.IMAGE_BUILD, verb: rbac_1.VERB.CREATE },
|
|
48
|
+
{ kind: rbac_1.RESOURCE.IMAGE_BUILD_CANCEL, verb: rbac_1.VERB.CREATE },
|
|
47
49
|
{ kind: rbac_1.RESOURCE.IMAGE_BUILD, verb: rbac_1.VERB.DELETE },
|
|
48
50
|
];
|
|
49
51
|
const ImageBuildsEmptyState = ({ onCreateClick }) => {
|
|
50
52
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
51
53
|
return (React.createElement(ResourceListEmptyState_1.default, { icon: plus_circle_icon_1.default, titleText: t('There are no image builds in your environment.') },
|
|
52
54
|
React.createElement(react_core_1.EmptyStateBody, null, t('Generate system images for consistent deployment to edge devices.')),
|
|
53
|
-
React.createElement(react_core_1.EmptyStateFooter, null,
|
|
55
|
+
onCreateClick && (React.createElement(react_core_1.EmptyStateFooter, null,
|
|
54
56
|
React.createElement(react_core_1.EmptyStateActions, null,
|
|
55
|
-
React.createElement(react_core_1.Button, { variant: "primary", onClick: onCreateClick, icon: React.createElement(plus_icon_1.default, null) }, t('Build new image'))))));
|
|
57
|
+
React.createElement(react_core_1.Button, { variant: "primary", onClick: onCreateClick, icon: React.createElement(plus_icon_1.default, null) }, t('Build new image')))))));
|
|
56
58
|
};
|
|
57
59
|
const ImageBuildTable = () => {
|
|
58
60
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
@@ -60,11 +62,12 @@ const ImageBuildTable = () => {
|
|
|
60
62
|
const imageBuildColumns = React.useMemo(() => getColumns(t), [t]);
|
|
61
63
|
const { name, setName, hasFiltersEnabled } = (0, useImageBuilds_1.useImageBuildsBackendFilters)();
|
|
62
64
|
const { imageBuilds, isLoading, error, isUpdating, refetch, pagination } = (0, useImageBuilds_1.useImageBuilds)({ name });
|
|
63
|
-
const [imageBuildToDeleteId, setImageBuildToDeleteId] = React.useState();
|
|
64
|
-
const [isMassDeleteModalOpen, setIsMassDeleteModalOpen] = React.useState(false);
|
|
65
65
|
const { onRowSelect, isAllSelected, hasSelectedRows, isRowSelected, setAllSelected } = (0, useTableSelect_1.useTableSelect)();
|
|
66
66
|
const { checkPermissions } = (0, PermissionsContext_1.usePermissionsContext)();
|
|
67
|
-
const [canCreate, canDelete] = checkPermissions(imageBuildTablePermissions);
|
|
67
|
+
const [canCreate, canCancel, canDelete] = checkPermissions(imageBuildTablePermissions);
|
|
68
|
+
const [imageBuildToDeleteId, setImageBuildToDeleteId] = React.useState();
|
|
69
|
+
const [imageBuildToCancelId, setImageBuildToCancelId] = React.useState();
|
|
70
|
+
const [isMassDeleteModalOpen, setIsMassDeleteModalOpen] = React.useState(false);
|
|
68
71
|
const handleCreateClick = React.useCallback(() => {
|
|
69
72
|
navigate(useNavigate_1.ROUTE.IMAGE_BUILD_CREATE);
|
|
70
73
|
}, [navigate]);
|
|
@@ -80,12 +83,18 @@ const ImageBuildTable = () => {
|
|
|
80
83
|
React.createElement(react_core_1.Button, { isDisabled: !hasSelectedRows, onClick: () => setIsMassDeleteModalOpen(true), variant: "secondary" }, t('Delete image builds')))))),
|
|
81
84
|
React.createElement(Table_1.default, { "aria-label": t('Image builds table'), loading: isUpdating, columns: imageBuildColumns, hasFilters: hasFiltersEnabled, emptyData: imageBuilds.length === 0, clearFilters: () => setName(''), isAllSelected: isAllSelected, onSelectAll: setAllSelected, isExpandable: true }, imageBuilds.map((imageBuild, rowIndex) => {
|
|
82
85
|
const name = imageBuild.metadata.name || '';
|
|
83
|
-
return (React.createElement(ImageBuildRow_1.default, { key: name, imageBuild: imageBuild, rowIndex: rowIndex, canDelete: canDelete, onDeleteClick: () => {
|
|
86
|
+
return (React.createElement(ImageBuildRow_1.default, { key: name, imageBuild: imageBuild, rowIndex: rowIndex, canCreate: canCreate, canDelete: canDelete, canCancel: canCancel, onDeleteClick: () => {
|
|
84
87
|
setImageBuildToDeleteId(name);
|
|
85
|
-
}, isRowSelected: () => isRowSelected(imageBuild), onRowSelect: () => onRowSelect(imageBuild), refetch: refetch }));
|
|
88
|
+
}, onCancelClick: () => setImageBuildToCancelId(name), isRowSelected: () => isRowSelected(imageBuild), onRowSelect: () => onRowSelect(imageBuild), refetch: refetch }));
|
|
86
89
|
})),
|
|
87
90
|
React.createElement(TablePagination_1.default, { pagination: pagination, isUpdating: isUpdating }),
|
|
88
|
-
!isUpdating && imageBuilds.length === 0 && !name && React.createElement(ImageBuildsEmptyState, { onCreateClick: handleCreateClick }),
|
|
91
|
+
!isUpdating && imageBuilds.length === 0 && !name && (React.createElement(ImageBuildsEmptyState, { onCreateClick: canCreate ? handleCreateClick : undefined })),
|
|
92
|
+
imageBuildToCancelId && (React.createElement(CancelImageBuildModal_1.default, { imageBuildId: imageBuildToCancelId, onClose: (confirmed) => {
|
|
93
|
+
setImageBuildToCancelId(undefined);
|
|
94
|
+
if (confirmed) {
|
|
95
|
+
refetch();
|
|
96
|
+
}
|
|
97
|
+
} })),
|
|
89
98
|
imageBuildToDeleteId && (React.createElement(DeleteImageBuildModal_1.default, { imageBuildId: imageBuildToDeleteId, onClose: (hasDeleted) => {
|
|
90
99
|
setImageBuildToDeleteId(undefined);
|
|
91
100
|
if (hasDeleted) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBuildsPage.js","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageBuildsPage.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,uDASgC;AAChC,sHAAoF;AACpF,wGAAuE;AAEvE,2CAAkD;AAClD,+DAA4D;AAC5D,+DAA4D;AAC5D,yDAA6D;AAC7D,sGAAsE;AACtE,gGAAgE;AAChE,qEAAqE;AACrE,4EAA4C;AAC5C,oFAAoD;AACpD,uFAAuD;AACvD,uFAAuD;AACvD,mEAA2D;AAE3D,iJAAiH;AACjH,kHAAkF;AAClF,qDAAgF;AAChF,4EAA4C;AAC5C,iEAAsE;AAEtE,MAAM,UAAU,GAAG,CAAC,CAAY,EAAwB,EAAE,CAAC;IACzD;QACE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;KAChB;IACD;QACE,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC;KACtB;IACD;QACE,IAAI,EAAE,CAAC,CAAC,cAAc,CAAC;KACxB;IACD;QACE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC;KAClB;IACD;QACE,IAAI,EAAE,CAAC,CAAC,eAAe,CAAC;KACzB;IACD;QACE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;KAChB;CACF,CAAC;AAEF,MAAM,0BAA0B,GAAG;IACjC,EAAE,IAAI,EAAE,eAAQ,CAAC,WAAW,EAAE,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;IACjD,EAAE,IAAI,EAAE,eAAQ,CAAC,WAAW,EAAE,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;CAClD,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"ImageBuildsPage.js","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageBuildsPage.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,uDASgC;A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AAC;AAEF,kBAAe,8BAA8B,CAAC"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ExportFormatType, ImageExport } from '@flightctl/types/imagebuilder';
|
|
3
3
|
import './ImageExportCards.css';
|
|
4
|
+
export type ImageExportAction = 'cancel' | 'delete' | 'viewLogs' | 'download' | 'retry' | 'rebuild' | 'createExport';
|
|
4
5
|
export type ImageExportFormatCardProps = {
|
|
5
|
-
imageBuildId: string;
|
|
6
6
|
imageReference: string | undefined;
|
|
7
7
|
format: ExportFormatType;
|
|
8
|
+
imageExport?: ImageExport;
|
|
9
|
+
actionPermissions: ImageExportAction[];
|
|
10
|
+
activeAction: ImageExportAction | undefined;
|
|
11
|
+
onCardAction: ({ format, action }: {
|
|
12
|
+
format: ExportFormatType;
|
|
13
|
+
action: ImageExportAction;
|
|
14
|
+
}) => void;
|
|
8
15
|
error?: {
|
|
9
16
|
message: string;
|
|
10
|
-
|
|
17
|
+
action: ImageExportAction;
|
|
11
18
|
} | null;
|
|
12
|
-
imageExport?: ImageExport;
|
|
13
|
-
onExportImage: (format: ExportFormatType) => void;
|
|
14
|
-
onDownload: (format: ExportFormatType) => void;
|
|
15
19
|
onDismissError: VoidFunction;
|
|
16
|
-
isCreating: boolean;
|
|
17
|
-
isDownloading?: boolean;
|
|
18
|
-
isDisabled?: boolean;
|
|
19
20
|
};
|
|
20
21
|
type SelectImageBuildExportCardProps = {
|
|
21
22
|
format: ExportFormatType;
|
|
@@ -23,6 +24,6 @@ type SelectImageBuildExportCardProps = {
|
|
|
23
24
|
onToggle: (format: ExportFormatType, isChecked: boolean) => void;
|
|
24
25
|
};
|
|
25
26
|
export declare const SelectImageBuildExportCard: ({ format, isChecked, onToggle }: SelectImageBuildExportCardProps) => React.JSX.Element;
|
|
26
|
-
export declare const ViewImageBuildExportCard: ({
|
|
27
|
+
export declare const ViewImageBuildExportCard: ({ format, imageExport, imageReference, actionPermissions, onCardAction, activeAction, error, onDismissError, }: ImageExportFormatCardProps) => React.JSX.Element;
|
|
27
28
|
export {};
|
|
28
29
|
//# sourceMappingURL=ImageExportCards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageExportCards.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageExportCards.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageExportCards.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageBuilds/ImageExportCards.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8B/B,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAA8B,MAAM,+BAA+B,CAAC;AAU1G,OAAO,wBAAwB,CAAC;AAEhC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAC;AA8ErH,MAAM,MAAM,0BAA0B,GAAG;IACvC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;IACvC,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC5C,YAAY,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,gBAAgB,CAAC;QAAC,MAAM,EAAE,iBAAiB,CAAA;KAAE,KAAK,IAAI,CAAC;IACpG,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,iBAAiB,CAAA;KAAE,GAAG,IAAI,CAAC;IAC9D,cAAc,EAAE,YAAY,CAAC;CAC9B,CAAC;AAEF,KAAK,+BAA+B,GAAG;IACrC,MAAM,EAAE,gBAAgB,CAAC;IACzB,SAA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