@flightctl/ui-components 0.0.3 → 0.0.5
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/__mocks__/fileMock.d.ts +3 -0
- package/dist/__mocks__/fileMock.d.ts.map +1 -0
- package/dist/__mocks__/styleMock.d.ts +2 -0
- package/dist/__mocks__/styleMock.d.ts.map +1 -0
- package/dist/jest.config.d.ts +12 -0
- package/dist/jest.config.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsNotFound.d.ts +8 -0
- package/dist/src/components/DetailsPage/DetailsNotFound.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPage.d.ts +18 -0
- package/dist/src/components/DetailsPage/DetailsPage.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts +2 -0
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts +17 -0
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPageCard.d.ts +7 -0
- package/dist/src/components/DetailsPage/DetailsPageCard.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts +8 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js +2 -3
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/ConditionsTable.d.ts +9 -0
- package/dist/src/components/DetailsPage/Tables/ConditionsTable.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.d.ts +8 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.js +2 -1
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts +12 -0
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts.map +1 -0
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts +6 -0
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts +4 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +10 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts +12 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js +24 -22
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.d.ts +8 -0
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.js +3 -3
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceOs.d.ts +7 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.js +24 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.js.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts +9 -0
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts +10 -0
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts +7 -0
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.d.ts +17 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js +61 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts +14 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/DeviceTableRow.js +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts +21 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/DeviceTableToolbar.js +5 -6
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.css +16 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts +18 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js +127 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts +22 -0
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList/DeviceList.js → DevicesPage/DevicesPage.js} +20 -47
- package/dist/src/components/Device/DevicesPage/DevicesPage.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts +13 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.js +104 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.d.ts +11 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.js +18 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/types.d.ts +18 -0
- package/dist/src/components/Device/DevicesPage/types.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/types.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.d.ts +12 -0
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/useDeviceBackendFilters.js +1 -1
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.d.ts +8 -0
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/useDeviceFilters.js +3 -3
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts +21 -0
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDevices.js +83 -0
- package/dist/src/components/Device/DevicesPage/useDevices.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts +5 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts +10 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +87 -21
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.css +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts +5 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.js +61 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +88 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js +3 -3
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.js +26 -31
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts +11 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +10 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +14 -12
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js +26 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js +9 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts +20 -0
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/useEditDevice.d.ts +3 -0
- package/dist/src/components/Device/EditDeviceWizard/useEditDevice.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +44 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.js +6 -4
- package/dist/src/components/Device/EditDeviceWizard/utils.js.map +1 -1
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts +11 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts.map +1 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.d.ts +17 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts +5 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +2 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts +15 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js +9 -13
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js.map +1 -1
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +6 -0
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts +5 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts +7 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts +4 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +4 -5
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts +10 -0
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts +7 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js +11 -6
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/types.d.ts +8 -0
- package/dist/src/components/Fleet/CreateFleet/types.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/useEditFleet.d.ts +3 -0
- package/dist/src/components/Fleet/CreateFleet/useEditFleet.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts +9 -0
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/utils.js +8 -3
- package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts +7 -0
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts +4 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts +7 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js +10 -20
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.d.ts +9 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.js +18 -12
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.d.ts +7 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.js +13 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.js.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts +13 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.js +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.js.map +1 -1
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts +7 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.js +115 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.js.map +1 -0
- package/dist/src/components/Fleet/FleetRow.d.ts +13 -0
- package/dist/src/components/Fleet/FleetRow.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetRow.js +5 -5
- package/dist/src/components/Fleet/FleetRow.js.map +1 -1
- package/dist/src/components/Fleet/FleetStatus.d.ts +7 -0
- package/dist/src/components/Fleet/FleetStatus.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetsPage.d.ts +4 -0
- package/dist/src/components/Fleet/FleetsPage.d.ts.map +1 -0
- package/dist/src/components/Fleet/{FleetList.js → FleetsPage.js} +28 -42
- package/dist/src/components/Fleet/FleetsPage.js.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts +5 -0
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts +12 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts +8 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts +7 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/types.d.ts +6 -0
- package/dist/src/components/Fleet/ImportFleetWizard/types.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPage.d.ts +10 -0
- package/dist/src/components/ListPage/ListPage.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPage.js +2 -2
- package/dist/src/components/ListPage/ListPage.js.map +1 -1
- package/dist/src/components/ListPage/ListPageActions.d.ts +17 -0
- package/dist/src/components/ListPage/ListPageActions.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPageActions.js +13 -2
- package/dist/src/components/ListPage/ListPageActions.js.map +1 -1
- package/dist/src/components/ListPage/ListPageBody.d.ts +9 -0
- package/dist/src/components/ListPage/ListPageBody.d.ts.map +1 -0
- package/dist/src/components/ListPage/types.d.ts +16 -0
- package/dist/src/components/ListPage/types.d.ts.map +1 -0
- package/dist/src/components/NavItem/NavItem.d.ts +8 -0
- package/dist/src/components/NavItem/NavItem.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.js +5 -17
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.js +7 -20
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js +11 -10
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts +14 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js +22 -51
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.js +5 -17
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/utils.d.ts +15 -0
- package/dist/src/components/OverviewPage/Cards/Status/utils.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/utils.js +9 -26
- package/dist/src/components/OverviewPage/Cards/Status/utils.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js +2 -3
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Overview.d.ts +4 -0
- package/dist/src/components/OverviewPage/Overview.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/OverviewPage.d.ts +4 -0
- package/dist/src/components/OverviewPage/OverviewPage.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts +4 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts +21 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +8 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts +9 -0
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js +18 -11
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/types.d.ts +42 -0
- package/dist/src/components/Repository/CreateRepository/types.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/utils.d.ts +75 -0
- package/dist/src/components/Repository/CreateRepository/utils.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/utils.js +40 -7
- package/dist/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts +9 -0
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts +4 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js +3 -2
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.d.ts +7 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.js +14 -13
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts +6 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.d.ts +22 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.js +43 -11
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.d.ts +7 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.js +30 -33
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.js.map +1 -1
- package/dist/src/components/Repository/RepositoryList.d.ts +5 -0
- package/dist/src/components/Repository/RepositoryList.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryList.js +3 -3
- package/dist/src/components/Repository/RepositoryList.js.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.css +7 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts +7 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +72 -25
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/src/components/ResourceSync/ResourceSyncStatus.d.ts +9 -0
- package/dist/src/components/ResourceSync/ResourceSyncStatus.d.ts.map +1 -0
- package/dist/src/components/ResourceSync/ResourceSyncStatus.js +9 -18
- package/dist/src/components/ResourceSync/ResourceSyncStatus.js.map +1 -1
- package/dist/src/components/ResourceSync/ResourceSyncToRepository.d.ts +4 -0
- package/dist/src/components/ResourceSync/ResourceSyncToRepository.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationStatus.d.ts +13 -0
- package/dist/src/components/Status/ApplicationStatus.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.d.ts +13 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.js.map +1 -1
- package/dist/src/components/Status/DeviceResourceStatus.d.ts +9 -0
- package/dist/src/components/Status/DeviceResourceStatus.d.ts.map +1 -0
- package/dist/src/components/Status/DeviceStatus.d.ts +7 -0
- package/dist/src/components/Status/DeviceStatus.d.ts.map +1 -0
- package/dist/src/components/Status/EnrollmentRequestStatus.d.ts +7 -0
- package/dist/src/components/Status/EnrollmentRequestStatus.d.ts.map +1 -0
- package/dist/src/components/Status/IntegrityStatus.d.ts +7 -0
- package/dist/src/components/Status/IntegrityStatus.d.ts.map +1 -0
- package/dist/src/components/Status/RepositoryStatus.d.ts +10 -0
- package/dist/src/components/Status/RepositoryStatus.d.ts.map +1 -0
- package/dist/src/components/Status/StatusDisplay.css +3 -0
- package/dist/src/components/Status/StatusDisplay.d.ts +23 -0
- package/dist/src/components/Status/StatusDisplay.d.ts.map +1 -0
- package/dist/src/components/Status/SystemUpdateStatus.d.ts +7 -0
- package/dist/src/components/Status/SystemUpdateStatus.d.ts.map +1 -0
- package/dist/src/components/Status/SystemdStatus.d.ts +6 -0
- package/dist/src/components/Status/SystemdStatus.d.ts.map +1 -0
- package/dist/src/components/Status/utils.d.ts +5 -0
- package/dist/src/components/Status/utils.d.ts.map +1 -0
- package/dist/src/components/Table/Table.d.ts +25 -0
- package/dist/src/components/Table/Table.d.ts.map +1 -0
- package/dist/src/components/Table/TableActions.d.ts +7 -0
- package/dist/src/components/Table/TableActions.d.ts.map +1 -0
- package/dist/src/components/Table/TableActions.js +3 -3
- package/dist/src/components/Table/TableActions.js.map +1 -1
- package/dist/src/components/Table/TableTextSearch.d.ts +9 -0
- package/dist/src/components/Table/TableTextSearch.d.ts.map +1 -0
- package/dist/src/components/Table/TableTextSearch.js +2 -4
- package/dist/src/components/Table/TableTextSearch.js.map +1 -1
- package/dist/src/components/Terminal/Terminal.d.ts +15 -0
- package/dist/src/components/Terminal/Terminal.d.ts.map +1 -0
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts +7 -0
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts.map +1 -0
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts +11 -0
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts.map +1 -0
- package/dist/src/components/charts/DonutChart.d.ts +17 -0
- package/dist/src/components/charts/DonutChart.d.ts.map +1 -0
- package/dist/src/components/charts/utils.d.ts +15 -0
- package/dist/src/components/charts/utils.d.ts.map +1 -0
- package/dist/src/components/charts/utils.js +30 -0
- package/dist/src/components/charts/utils.js.map +1 -0
- package/dist/src/components/common/CopyButton.d.ts +10 -0
- package/dist/src/components/common/CopyButton.d.ts.map +1 -0
- package/dist/src/components/common/CopyButton.js +3 -3
- package/dist/src/components/common/CopyButton.js.map +1 -1
- package/dist/src/components/common/EditableLabelControl.d.ts +10 -0
- package/dist/src/components/common/EditableLabelControl.d.ts.map +1 -0
- package/dist/src/components/common/ErrorBoundary.d.ts +9 -0
- package/dist/src/components/common/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/components/common/FlightCtlDescriptionList.d.ts +5 -0
- package/dist/src/components/common/FlightCtlDescriptionList.d.ts.map +1 -0
- package/dist/src/components/common/FlightCtlDescriptionList.js +13 -0
- package/dist/src/components/common/FlightCtlDescriptionList.js.map +1 -0
- package/dist/src/components/common/HelperTextItems.d.ts +3 -0
- package/dist/src/components/common/HelperTextItems.d.ts.map +1 -0
- package/dist/src/components/common/HelperTextItems.js +1 -9
- package/dist/src/components/common/HelperTextItems.js.map +1 -1
- package/dist/src/components/common/LabelsView.d.ts +10 -0
- package/dist/src/components/common/LabelsView.d.ts.map +1 -0
- package/dist/src/components/common/LeaveFormConfirmation.d.ts +4 -0
- package/dist/src/components/common/LeaveFormConfirmation.d.ts.map +1 -0
- package/dist/src/components/common/LeaveFormConfirmation.js +4 -1
- package/dist/src/components/common/LeaveFormConfirmation.js.map +1 -1
- package/dist/src/components/common/ResourceLink.d.ts +13 -0
- package/dist/src/components/common/ResourceLink.d.ts.map +1 -0
- package/dist/src/components/common/ResourceListEmptyState.d.ts +8 -0
- package/dist/src/components/common/ResourceListEmptyState.d.ts.map +1 -0
- package/dist/src/components/common/WithHelperText.d.ts +11 -0
- package/dist/src/components/common/WithHelperText.d.ts.map +1 -0
- package/dist/src/components/common/WithTooltip.d.ts +10 -0
- package/dist/src/components/common/WithTooltip.d.ts.map +1 -0
- package/dist/src/components/form/CheckboxField.d.ts +10 -0
- package/dist/src/components/form/CheckboxField.d.ts.map +1 -0
- package/dist/src/components/{Device/EditDeviceWizard/steps/ConfigTemplateForm.css → form/ExpandableFormSection.css} +2 -2
- package/dist/src/components/form/ExpandableFormSection.d.ts +11 -0
- package/dist/src/components/form/ExpandableFormSection.d.ts.map +1 -0
- package/dist/src/components/form/ExpandableFormSection.js +30 -0
- package/dist/src/components/form/ExpandableFormSection.js.map +1 -0
- package/dist/src/components/form/FieldHelperText.d.ts +14 -0
- package/dist/src/components/form/FieldHelperText.d.ts.map +1 -0
- package/dist/src/components/form/FilterSelect.css +11 -1
- package/dist/src/components/form/FilterSelect.d.ts +16 -0
- package/dist/src/components/form/FilterSelect.d.ts.map +1 -0
- package/dist/src/components/form/FilterSelect.js +14 -9
- package/dist/src/components/form/FilterSelect.js.map +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.d.ts +5 -0
- package/dist/src/components/form/FlightCtlActionGroup.d.ts.map +1 -0
- package/dist/src/components/form/FlightCtlForm.d.ts +6 -0
- package/dist/src/components/form/FlightCtlForm.d.ts.map +1 -0
- package/dist/src/components/form/FormSelect.css +8 -0
- package/dist/src/components/form/FormSelect.d.ts +16 -0
- package/dist/src/components/form/FormSelect.d.ts.map +1 -0
- package/dist/src/components/form/FormSelectTypeahead.d.ts +19 -0
- package/dist/src/components/form/FormSelectTypeahead.d.ts.map +1 -0
- package/dist/src/components/form/FormSelectTypeahead.js +116 -0
- package/dist/src/components/form/FormSelectTypeahead.js.map +1 -0
- package/dist/src/components/form/LabelsField.d.ts +12 -0
- package/dist/src/components/form/LabelsField.d.ts.map +1 -0
- package/dist/src/components/form/NameField.d.ts +10 -0
- package/dist/src/components/form/NameField.d.ts.map +1 -0
- package/dist/src/components/form/RadioField.d.ts +12 -0
- package/dist/src/components/form/RadioField.d.ts.map +1 -0
- package/dist/src/components/form/RichValidationTextField.d.ts +13 -0
- package/dist/src/components/form/RichValidationTextField.d.ts.map +1 -0
- package/dist/src/components/form/SwitchField.d.ts +9 -0
- package/dist/src/components/form/SwitchField.d.ts.map +1 -0
- package/dist/src/components/form/SwitchField.js +24 -0
- package/dist/src/components/form/SwitchField.js.map +1 -0
- package/dist/src/components/form/TextAreaField.d.ts +11 -0
- package/dist/src/components/form/TextAreaField.d.ts.map +1 -0
- package/dist/src/components/form/TextField.d.ts +10 -0
- package/dist/src/components/form/TextField.d.ts.map +1 -0
- package/dist/src/components/form/UploadField.d.ts +13 -0
- package/dist/src/components/form/UploadField.d.ts.map +1 -0
- package/dist/src/components/form/UploadField.js +74 -0
- package/dist/src/components/form/UploadField.js.map +1 -0
- package/dist/src/components/form/validations.d.ts +82 -0
- package/dist/src/components/form/validations.d.ts.map +1 -0
- package/dist/src/components/form/validations.js +54 -19
- package/dist/src/components/form/validations.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts +16 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts.map +1 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts +6 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.d.ts +8 -0
- package/dist/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.d.ts.map +1 -0
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts +11 -0
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts +10 -0
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts.map +1 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts +9 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts.map +1 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js +1 -2
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js.map +1 -1
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts +11 -0
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js +3 -41
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js +4 -4
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js +22 -21
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts.map +1 -0
- package/dist/src/constants.d.ts +4 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/hooks/useAppContext.d.ts +70 -0
- package/dist/src/hooks/useAppContext.d.ts.map +1 -0
- package/dist/src/hooks/useDeviceLabelMatch.d.ts +9 -0
- package/dist/src/hooks/useDeviceLabelMatch.d.ts.map +1 -0
- package/dist/src/hooks/useDocumentTitle.d.ts +2 -0
- package/dist/src/hooks/useDocumentTitle.d.ts.map +1 -0
- package/dist/src/hooks/useFetch.d.ts +12 -0
- package/dist/src/hooks/useFetch.d.ts.map +1 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts +3 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts.map +1 -0
- package/dist/src/hooks/useNavigate.d.ts +38 -0
- package/dist/src/hooks/useNavigate.d.ts.map +1 -0
- package/dist/src/hooks/useTableSelect.d.ts +13 -0
- package/dist/src/hooks/useTableSelect.d.ts.map +1 -0
- package/dist/src/hooks/useTableSort.d.ts +7 -0
- package/dist/src/hooks/useTableSort.d.ts.map +1 -0
- package/dist/src/hooks/useTableTextSearch.d.ts +6 -0
- package/dist/src/hooks/useTableTextSearch.d.ts.map +1 -0
- package/dist/src/hooks/useTemplateVersion.d.ts +3 -0
- package/dist/src/hooks/useTemplateVersion.d.ts.map +1 -0
- package/dist/src/hooks/useThemePreferences.d.ts +8 -0
- package/dist/src/hooks/useThemePreferences.d.ts.map +1 -0
- package/dist/src/hooks/useTranslation.d.ts +2 -0
- package/dist/src/hooks/useTranslation.d.ts.map +1 -0
- package/dist/src/hooks/useUserPreferences.d.ts +2 -0
- package/dist/src/hooks/useUserPreferences.d.ts.map +1 -0
- package/dist/src/hooks/useWebSocket.d.ts +8 -0
- package/dist/src/hooks/useWebSocket.d.ts.map +1 -0
- package/dist/src/setupTests.d.ts +2 -0
- package/dist/src/setupTests.d.ts.map +1 -0
- package/dist/src/tests/test-utils.d.ts +7 -0
- package/dist/src/tests/test-utils.d.ts.map +1 -0
- package/dist/src/types/deviceSpec.d.ts +57 -0
- package/dist/src/types/deviceSpec.d.ts.map +1 -0
- package/dist/src/types/deviceSpec.js +41 -9
- package/dist/src/types/deviceSpec.js.map +1 -1
- package/dist/src/types/extraTypes.d.ts +36 -0
- package/dist/src/types/extraTypes.d.ts.map +1 -0
- package/dist/src/types/extraTypes.js +1 -3
- package/dist/src/types/extraTypes.js.map +1 -1
- package/dist/src/types/typeUtils.d.ts +3 -0
- package/dist/src/types/typeUtils.d.ts.map +1 -0
- package/dist/src/utils/api.d.ts +24 -0
- package/dist/src/utils/api.d.ts.map +1 -0
- package/dist/src/utils/dates.d.ts +5 -0
- package/dist/src/utils/dates.d.ts.map +1 -0
- package/dist/src/utils/devices.d.ts +4 -0
- package/dist/src/utils/devices.d.ts.map +1 -0
- package/dist/src/utils/devices.js +1 -27
- package/dist/src/utils/devices.js.map +1 -1
- package/dist/src/utils/error.d.ts +4 -0
- package/dist/src/utils/error.d.ts.map +1 -0
- package/dist/src/utils/labels.d.ts +11 -0
- package/dist/src/utils/labels.d.ts.map +1 -0
- package/dist/src/utils/labels.js +4 -14
- package/dist/src/utils/labels.js.map +1 -1
- package/dist/src/utils/metrics.d.ts +9 -0
- package/dist/src/utils/metrics.d.ts.map +1 -0
- package/dist/src/utils/patch.d.ts +15 -0
- package/dist/src/utils/patch.d.ts.map +1 -0
- package/dist/src/utils/patch.js +71 -1
- package/dist/src/utils/patch.js.map +1 -1
- package/dist/src/utils/resource.d.ts +6 -0
- package/dist/src/utils/resource.d.ts.map +1 -0
- package/dist/src/utils/search.d.ts +3 -0
- package/dist/src/utils/search.d.ts.map +1 -0
- package/dist/src/utils/search.js +15 -1
- package/dist/src/utils/search.js.map +1 -1
- package/dist/src/utils/sort/device.d.ts +4 -0
- package/dist/src/utils/sort/device.d.ts.map +1 -0
- package/dist/src/utils/sort/device.js +3 -43
- package/dist/src/utils/sort/device.js.map +1 -1
- package/dist/src/utils/sort/fleet.d.ts +4 -0
- package/dist/src/utils/sort/fleet.d.ts.map +1 -0
- package/dist/src/utils/sort/fleet.js +6 -8
- package/dist/src/utils/sort/fleet.js.map +1 -1
- package/dist/src/utils/sort/generic.d.ts +8 -0
- package/dist/src/utils/sort/generic.d.ts.map +1 -0
- package/dist/src/utils/sort/generic.js +14 -11
- package/dist/src/utils/sort/generic.js.map +1 -1
- package/dist/src/utils/sort/repository.d.ts +6 -0
- package/dist/src/utils/sort/repository.d.ts.map +1 -0
- package/dist/src/utils/sort/repository.js +2 -2
- package/dist/src/utils/sort/repository.js.map +1 -1
- package/dist/src/utils/sort/resourceSync.d.ts +6 -0
- package/dist/src/utils/sort/resourceSync.d.ts.map +1 -0
- package/dist/src/utils/status/applications.d.ts +7 -0
- package/dist/src/utils/status/applications.d.ts.map +1 -0
- package/dist/src/utils/status/applications.js +19 -21
- package/dist/src/utils/status/applications.js.map +1 -1
- package/dist/src/utils/status/common.d.ts +12 -0
- package/dist/src/utils/status/common.d.ts.map +1 -0
- package/dist/src/utils/status/devices.d.ts +17 -0
- package/dist/src/utils/status/devices.d.ts.map +1 -0
- package/dist/src/utils/status/devices.js +9 -19
- package/dist/src/utils/status/devices.js.map +1 -1
- package/dist/src/utils/status/enrollmentRequest.d.ts +12 -0
- package/dist/src/utils/status/enrollmentRequest.d.ts.map +1 -0
- package/dist/src/utils/status/fleet.d.ts +15 -0
- package/dist/src/utils/status/fleet.d.ts.map +1 -0
- package/dist/src/utils/status/integrity.d.ts +5 -0
- package/dist/src/utils/status/integrity.d.ts.map +1 -0
- package/dist/src/utils/status/repository.d.ts +24 -0
- package/dist/src/utils/status/repository.d.ts.map +1 -0
- package/dist/src/utils/status/repository.js +9 -5
- package/dist/src/utils/status/repository.js.map +1 -1
- package/dist/src/utils/status/system.d.ts +6 -0
- package/dist/src/utils/status/system.d.ts.map +1 -0
- package/dist/src/utils/status/system.js +5 -5
- package/dist/src/utils/status/system.js.map +1 -1
- package/package.json +11 -3
- package/src/components/DetailsPage/DetailsNotFound.tsx +114 -0
- package/src/components/DetailsPage/DetailsPage.css +3 -0
- package/src/components/DetailsPage/DetailsPage.spec.tsx +128 -0
- package/src/components/DetailsPage/DetailsPage.tsx +99 -0
- package/src/components/DetailsPage/DetailsPageActions.tsx +73 -0
- package/src/components/DetailsPage/DetailsPageCard.css +8 -0
- package/src/components/DetailsPage/DetailsPageCard.tsx +12 -0
- package/src/components/DetailsPage/Tables/ApplicationsTable.tsx +44 -0
- package/src/components/DetailsPage/Tables/ConditionsTable.tsx +40 -0
- package/src/components/DetailsPage/Tables/IntegrityDetails.tsx +44 -0
- package/src/components/DetailsPage/Tables/SystemdDetailsTable.tsx +63 -0
- package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +146 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +117 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.css +4 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +216 -0
- package/src/components/Device/DeviceDetails/DeviceFleet.css +3 -0
- package/src/components/Device/DeviceDetails/DeviceFleet.tsx +76 -0
- package/src/components/Device/DeviceDetails/DeviceOs.tsx +43 -0
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +3 -0
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.tsx +60 -0
- package/src/components/Device/DeviceDetails/SystemdTable.tsx +65 -0
- package/src/components/Device/DeviceDetails/TerminalTab.tsx +53 -0
- package/src/components/Device/DevicesPage/DeviceFilterSelect.tsx +111 -0
- package/src/components/Device/DevicesPage/DeviceTableRow.tsx +95 -0
- package/src/components/Device/DevicesPage/DeviceTableToolbar.tsx +195 -0
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.css +16 -0
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.tsx +305 -0
- package/src/components/Device/DevicesPage/DevicesPage.tsx +265 -0
- package/src/components/Device/DevicesPage/EnrollmentRequestList.tsx +183 -0
- package/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.tsx +35 -0
- package/src/components/Device/DevicesPage/types.ts +22 -0
- package/src/components/Device/DevicesPage/useDeviceBackendFilters.ts +119 -0
- package/src/components/Device/DevicesPage/useDeviceFilters.ts +15 -0
- package/src/components/Device/DevicesPage/useDevices.ts +112 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.css +4 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +150 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.tsx +52 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.tsx +66 -0
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +278 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.css +4 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.tsx +140 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +161 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx +50 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.tsx +174 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +229 -0
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +75 -0
- package/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx +61 -0
- package/src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx +35 -0
- package/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx +83 -0
- package/src/components/Device/EditDeviceWizard/types.ts +19 -0
- package/src/components/Device/EditDeviceWizard/useEditDevice.ts +36 -0
- package/src/components/Device/EditDeviceWizard/utils.ts +79 -0
- package/src/components/Device/MatchPatternsModal/MatchPatternsForm.tsx +92 -0
- package/src/components/Device/MatchPatternsModal/MatchPatternsModal.tsx +62 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.css +3 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +226 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestTableRow.tsx +69 -0
- package/src/components/ErrorAlert/ErrorAlert.tsx +15 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.css +3 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +152 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.tsx +56 -0
- package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +114 -0
- package/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx +55 -0
- package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +83 -0
- package/src/components/Fleet/CreateFleet/types.ts +8 -0
- package/src/components/Fleet/CreateFleet/useEditFleet.ts +35 -0
- package/src/components/Fleet/CreateFleet/utils.ts +160 -0
- package/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.tsx +89 -0
- package/src/components/Fleet/FleetDetails/FleetDetails.tsx +97 -0
- package/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx +97 -0
- package/src/components/Fleet/FleetDetails/FleetDevices.tsx +115 -0
- package/src/components/Fleet/FleetDetails/FleetDevicesLink.tsx +16 -0
- package/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx +51 -0
- package/src/components/Fleet/FleetResourceSyncs.tsx +161 -0
- package/src/components/Fleet/FleetRow.tsx +86 -0
- package/src/components/Fleet/FleetStatus.tsx +37 -0
- package/src/components/Fleet/FleetsPage.tsx +204 -0
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.css +3 -0
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx +216 -0
- package/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx +115 -0
- package/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.tsx +42 -0
- package/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.tsx +70 -0
- package/src/components/Fleet/ImportFleetWizard/types.ts +6 -0
- package/src/components/ListPage/ListPage.tsx +22 -0
- package/src/components/ListPage/ListPageActions.tsx +68 -0
- package/src/components/ListPage/ListPageBody.tsx +34 -0
- package/src/components/ListPage/types.ts +13 -0
- package/src/components/NavItem/NavItem.tsx +42 -0
- package/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.tsx +39 -0
- package/src/components/OverviewPage/Cards/Status/DeviceStatusChart.tsx +38 -0
- package/src/components/OverviewPage/Cards/Status/StatusCard.tsx +115 -0
- package/src/components/OverviewPage/Cards/Status/StatusCardFilters.tsx +111 -0
- package/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.tsx +39 -0
- package/src/components/OverviewPage/Cards/Status/utils.ts +19 -0
- package/src/components/OverviewPage/Cards/ToDo/ToDoCard.tsx +72 -0
- package/src/components/OverviewPage/Overview.tsx +19 -0
- package/src/components/OverviewPage/OverviewPage.tsx +22 -0
- package/src/components/Repository/CreateRepository/CreateRepository.tsx +144 -0
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.css +7 -0
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +440 -0
- package/src/components/Repository/CreateRepository/CreateResourceSyncsForm.tsx +98 -0
- package/src/components/Repository/CreateRepository/types.ts +43 -0
- package/src/components/Repository/CreateRepository/utils.ts +539 -0
- package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +156 -0
- package/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx +78 -0
- package/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx +102 -0
- package/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.tsx +28 -0
- package/src/components/Repository/RepositoryDetails/RepositorySource.tsx +96 -0
- package/src/components/Repository/RepositoryDetails/RepositorySourceList.tsx +79 -0
- package/src/components/Repository/RepositoryList.tsx +216 -0
- package/src/components/ResourceSync/RepositoryResourceSyncList.css +14 -0
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +322 -0
- package/src/components/ResourceSync/ResourceSyncStatus.tsx +77 -0
- package/src/components/ResourceSync/ResourceSyncToRepository.tsx +73 -0
- package/src/components/Status/ApplicationStatus.tsx +25 -0
- package/src/components/Status/ApplicationSummaryStatus.tsx +24 -0
- package/src/components/Status/DeviceResourceStatus.tsx +112 -0
- package/src/components/Status/DeviceStatus.tsx +20 -0
- package/src/components/Status/EnrollmentRequestStatus.tsx +24 -0
- package/src/components/Status/IntegrityStatus.tsx +19 -0
- package/src/components/Status/RepositoryStatus.tsx +50 -0
- package/src/components/Status/StatusDisplay.css +12 -0
- package/src/components/Status/StatusDisplay.tsx +83 -0
- package/src/components/Status/SystemUpdateStatus.tsx +34 -0
- package/src/components/Status/SystemdStatus.tsx +22 -0
- package/src/components/Status/utils.ts +8 -0
- package/src/components/Table/Table.tsx +78 -0
- package/src/components/Table/TableActions.tsx +33 -0
- package/src/components/Table/TableTextSearch.tsx +23 -0
- package/src/components/Terminal/Terminal.css +1 -0
- package/src/components/Terminal/Terminal.tsx +100 -0
- package/src/components/UserPreferences/UserPreferencesModal.tsx +85 -0
- package/src/components/UserPreferences/UserPreferencesProvider.tsx +29 -0
- package/src/components/charts/DonutChart.css +10 -0
- package/src/components/charts/DonutChart.tsx +115 -0
- package/src/components/charts/utils.ts +38 -0
- package/src/components/common/CopyButton.tsx +36 -0
- package/src/components/common/EditableLabelControl.tsx +69 -0
- package/src/components/common/ErrorBoundary.tsx +53 -0
- package/src/components/common/FlightCtlDescriptionList.tsx +13 -0
- package/src/components/common/HelperTextItems.tsx +25 -0
- package/src/components/common/LabelsView.css +9 -0
- package/src/components/common/LabelsView.tsx +38 -0
- package/src/components/common/LeaveFormConfirmation.tsx +96 -0
- package/src/components/common/ResourceLink.css +29 -0
- package/src/components/common/ResourceLink.tsx +42 -0
- package/src/components/common/ResourceListEmptyState.tsx +19 -0
- package/src/components/common/WithHelperText.css +3 -0
- package/src/components/common/WithHelperText.tsx +34 -0
- package/src/components/common/WithTooltip.tsx +14 -0
- package/src/components/form/CheckboxField.tsx +39 -0
- package/src/components/form/ExpandableFormSection.css +3 -0
- package/src/components/form/ExpandableFormSection.tsx +59 -0
- package/src/components/form/FieldHelperText.tsx +45 -0
- package/src/components/form/FilterSelect.css +18 -0
- package/src/components/form/FilterSelect.tsx +92 -0
- package/src/components/form/FlightCtlActionGroup.css +9 -0
- package/src/components/form/FlightCtlActionGroup.tsx +11 -0
- package/src/components/form/FlightCtlForm.tsx +18 -0
- package/src/components/form/FormSelect.css +16 -0
- package/src/components/form/FormSelect.tsx +96 -0
- package/src/components/form/FormSelectTypeahead.tsx +212 -0
- package/src/components/form/LabelsField.tsx +116 -0
- package/src/components/form/NameField.tsx +73 -0
- package/src/components/form/RadioField.tsx +57 -0
- package/src/components/form/RichValidationTextField.tsx +142 -0
- package/src/components/form/SwitchField.tsx +32 -0
- package/src/components/form/TextAreaField.tsx +46 -0
- package/src/components/form/TextField.tsx +49 -0
- package/src/components/form/UploadField.tsx +133 -0
- package/src/components/form/validations.ts +386 -0
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.tsx +74 -0
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +65 -0
- package/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.css +24 -0
- package/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.tsx +101 -0
- package/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.tsx +25 -0
- package/src/components/modals/DeleteModal/DeleteModal.tsx +68 -0
- package/src/components/modals/EditLabelsModal/EditLabelsForm.tsx +101 -0
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.css +4 -0
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx +192 -0
- package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +117 -0
- package/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx +193 -0
- package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +172 -0
- package/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx +116 -0
- package/src/constants.ts +4 -0
- package/src/hooks/useAppContext.tsx +108 -0
- package/src/hooks/useDeviceLabelMatch.ts +101 -0
- package/src/hooks/useDocumentTitle.ts +12 -0
- package/src/hooks/useFetch.ts +10 -0
- package/src/hooks/useFetchPeriodically.ts +82 -0
- package/src/hooks/useNavigate.tsx +92 -0
- package/src/hooks/useTableSelect.ts +48 -0
- package/src/hooks/useTableSort.ts +42 -0
- package/src/hooks/useTableTextSearch.ts +23 -0
- package/src/hooks/useTemplateVersion.ts +23 -0
- package/src/hooks/useThemePreferences.ts +64 -0
- package/src/hooks/useTranslation.ts +8 -0
- package/src/hooks/useUserPreferences.ts +16 -0
- package/src/hooks/useWebSocket.ts +74 -0
- package/src/setupTests.ts +21 -0
- package/src/tests/test-utils.tsx +21 -0
- package/src/types/deviceSpec.ts +110 -0
- package/src/types/extraTypes.ts +52 -0
- package/src/types/typeUtils.ts +7 -0
- package/src/typings.d.ts +12 -0
- package/src/utils/api.ts +87 -0
- package/src/utils/dates.ts +60 -0
- package/src/utils/devices.ts +10 -0
- package/src/utils/error.ts +24 -0
- package/src/utils/labels.ts +40 -0
- package/src/utils/metrics.ts +49 -0
- package/src/utils/patch.ts +202 -0
- package/src/utils/resource.ts +4 -0
- package/src/utils/search.ts +25 -0
- package/src/utils/sort/device.ts +60 -0
- package/src/utils/sort/fleet.ts +16 -0
- package/src/utils/sort/generic.ts +37 -0
- package/src/utils/sort/repository.ts +28 -0
- package/src/utils/sort/resourceSync.ts +30 -0
- package/src/utils/status/applications.ts +58 -0
- package/src/utils/status/common.ts +71 -0
- package/src/utils/status/devices.ts +74 -0
- package/src/utils/status/enrollmentRequest.ts +49 -0
- package/src/utils/status/fleet.ts +47 -0
- package/src/utils/status/integrity.ts +26 -0
- package/src/utils/status/repository.ts +117 -0
- package/src/utils/status/system.ts +28 -0
- package/dist/src/components/Device/DeviceList/DeviceFilterSelect.js +0 -87
- package/dist/src/components/Device/DeviceList/DeviceFilterSelect.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceList.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceTableRow.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceTableToolbar.js.map +0 -1
- package/dist/src/components/Device/DeviceList/types.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceBackendFilters.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceFilters.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceLikeResources.js +0 -98
- package/dist/src/components/Device/DeviceList/useDeviceLikeResources.js.map +0 -1
- package/dist/src/components/Fleet/FleetDetails/chartUtils.js +0 -29
- package/dist/src/components/Fleet/FleetDetails/chartUtils.js.map +0 -1
- package/dist/src/components/Fleet/FleetList.js.map +0 -1
- package/dist/src/components/Fleet/ResourceSyncRow.js +0 -36
- package/dist/src/components/Fleet/ResourceSyncRow.js.map +0 -1
- /package/dist/src/components/Device/{DeviceList → DevicesPage}/types.js +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Bullseye,
|
|
4
|
+
DescriptionListDescription,
|
|
5
|
+
DescriptionListGroup,
|
|
6
|
+
DescriptionListTerm,
|
|
7
|
+
} from '@patternfly/react-core';
|
|
8
|
+
|
|
9
|
+
import { DeviceIntegrityStatus } from '@flightctl/types';
|
|
10
|
+
import { useTranslation } from '../../../hooks/useTranslation';
|
|
11
|
+
import IntegrityStatus from '../../Status/IntegrityStatus';
|
|
12
|
+
import FlightControlDescriptionList from '../../common/FlightCtlDescriptionList';
|
|
13
|
+
|
|
14
|
+
type IntegrityDetailsProps = {
|
|
15
|
+
integrity?: DeviceIntegrityStatus;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const IntegrityDetails = ({ integrity }: IntegrityDetailsProps) => {
|
|
19
|
+
const { t } = useTranslation();
|
|
20
|
+
const info = integrity?.summary.info;
|
|
21
|
+
const status = integrity?.summary.status;
|
|
22
|
+
return info || status ? (
|
|
23
|
+
<FlightControlDescriptionList columnModifier={{ lg: '3Col' }}>
|
|
24
|
+
{status && (
|
|
25
|
+
<DescriptionListGroup>
|
|
26
|
+
<DescriptionListTerm>{t('Status')}</DescriptionListTerm>
|
|
27
|
+
<DescriptionListDescription>
|
|
28
|
+
<IntegrityStatus status={status} />
|
|
29
|
+
</DescriptionListDescription>
|
|
30
|
+
</DescriptionListGroup>
|
|
31
|
+
)}
|
|
32
|
+
{info && (
|
|
33
|
+
<DescriptionListGroup>
|
|
34
|
+
<DescriptionListTerm>{t('Details')}</DescriptionListTerm>
|
|
35
|
+
<DescriptionListDescription>{info}</DescriptionListDescription>
|
|
36
|
+
</DescriptionListGroup>
|
|
37
|
+
)}
|
|
38
|
+
</FlightControlDescriptionList>
|
|
39
|
+
) : (
|
|
40
|
+
<Bullseye>{t('No system integrity details found.')}</Bullseye>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default IntegrityDetails;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Bullseye } from '@patternfly/react-core';
|
|
3
|
+
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
|
4
|
+
|
|
5
|
+
import { useTranslation } from '../../../hooks/useTranslation';
|
|
6
|
+
import SystemdStatus from '../../Status/SystemdStatus';
|
|
7
|
+
|
|
8
|
+
interface DeviceSystemdUnitStatus {
|
|
9
|
+
name: string;
|
|
10
|
+
status: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type SystemdDetailsTableProps = {
|
|
14
|
+
matchPatterns?: Array<string>;
|
|
15
|
+
systemdUnits: DeviceSystemdUnitStatus[] | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const SystemdDetailsTable = ({ matchPatterns, systemdUnits }: SystemdDetailsTableProps) => {
|
|
19
|
+
const { t } = useTranslation();
|
|
20
|
+
const hasPatterns = matchPatterns && matchPatterns.length > 0;
|
|
21
|
+
const hasUnits = systemdUnits && systemdUnits.length > 0;
|
|
22
|
+
|
|
23
|
+
if (!hasPatterns && !hasUnits) {
|
|
24
|
+
return <Bullseye>{t('No systemd units found')}</Bullseye>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const patterns: Record<string, DeviceSystemdUnitStatus> = {};
|
|
28
|
+
matchPatterns?.forEach((pattern) => {
|
|
29
|
+
patterns[pattern] = {
|
|
30
|
+
name: pattern,
|
|
31
|
+
status: '',
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
systemdUnits?.forEach((unit) => {
|
|
35
|
+
const name = unit.name;
|
|
36
|
+
patterns[name] = unit;
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<Table aria-label={t('Device systemd table')}>
|
|
41
|
+
<Thead>
|
|
42
|
+
<Tr>
|
|
43
|
+
<Th>{t('Name')}</Th>
|
|
44
|
+
<Th modifier="wrap">{t('Status')}</Th>
|
|
45
|
+
</Tr>
|
|
46
|
+
</Thead>
|
|
47
|
+
<Tbody>
|
|
48
|
+
{Object.entries(patterns).map(([patternName, systemUnitState]) => {
|
|
49
|
+
return (
|
|
50
|
+
<Tr key={patternName}>
|
|
51
|
+
<Td dataLabel={t('Name')}>{patternName}</Td>
|
|
52
|
+
<Td dataLabel={t('Status')}>
|
|
53
|
+
<SystemdStatus status={systemUnitState.status} />
|
|
54
|
+
</Td>
|
|
55
|
+
</Tr>
|
|
56
|
+
);
|
|
57
|
+
})}
|
|
58
|
+
</Tbody>
|
|
59
|
+
</Table>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default SystemdDetailsTable;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Alert,
|
|
4
|
+
Button,
|
|
5
|
+
ClipboardCopy,
|
|
6
|
+
FormGroup,
|
|
7
|
+
Grid,
|
|
8
|
+
GridItem,
|
|
9
|
+
Modal,
|
|
10
|
+
OrderType,
|
|
11
|
+
Radio,
|
|
12
|
+
Stack,
|
|
13
|
+
StackItem,
|
|
14
|
+
TextContent,
|
|
15
|
+
TextList,
|
|
16
|
+
TextListItem,
|
|
17
|
+
} from '@patternfly/react-core';
|
|
18
|
+
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
19
|
+
import FlightCtlForm from '../../form/FlightCtlForm';
|
|
20
|
+
|
|
21
|
+
import { useTranslation } from '../../../hooks/useTranslation';
|
|
22
|
+
import { useAppContext } from '../../../hooks/useAppContext';
|
|
23
|
+
|
|
24
|
+
const AddDeviceModal = ({ onClose }: { onClose: VoidFunction }) => {
|
|
25
|
+
const { t } = useTranslation();
|
|
26
|
+
const { qcow2ImgUrl, bootcImgUrl } = useAppContext();
|
|
27
|
+
const [imgType, setImgType] = React.useState<'bootc' | 'qcow2'>();
|
|
28
|
+
|
|
29
|
+
React.useEffect(() => {
|
|
30
|
+
if (!!bootcImgUrl) {
|
|
31
|
+
setImgType('bootc');
|
|
32
|
+
} else if (!!qcow2ImgUrl) {
|
|
33
|
+
setImgType('qcow2');
|
|
34
|
+
}
|
|
35
|
+
}, [qcow2ImgUrl, bootcImgUrl]);
|
|
36
|
+
|
|
37
|
+
const actions = [
|
|
38
|
+
<Button key="close" variant="secondary" onClick={onClose}>
|
|
39
|
+
{t('Close')}
|
|
40
|
+
</Button>,
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
if (imgType === 'qcow2') {
|
|
44
|
+
actions.unshift(
|
|
45
|
+
<Button key="download" onClick={() => window.open(qcow2ImgUrl, '_blank')}>
|
|
46
|
+
{t('Download disk')}
|
|
47
|
+
</Button>,
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
return (
|
|
51
|
+
<Modal variant="medium" title={t('Add device')} onClose={onClose} isOpen actions={actions}>
|
|
52
|
+
<Grid hasGutter>
|
|
53
|
+
<GridItem>
|
|
54
|
+
<Alert variant="info" isInline title={t('Learn how to build a bootable container image')}>
|
|
55
|
+
<Button
|
|
56
|
+
component="a"
|
|
57
|
+
variant="link"
|
|
58
|
+
isInline
|
|
59
|
+
href="https://github.com/flightctl/flightctl/blob/main/docs/user/getting-started.md#building-a-bootable-container-image-including-the-flight-control-agent"
|
|
60
|
+
target="_blank"
|
|
61
|
+
icon={<ExternalLinkAltIcon />}
|
|
62
|
+
iconPosition="end"
|
|
63
|
+
>
|
|
64
|
+
{t('View documentation')}
|
|
65
|
+
</Button>
|
|
66
|
+
</Alert>
|
|
67
|
+
</GridItem>
|
|
68
|
+
<GridItem>
|
|
69
|
+
<Radio
|
|
70
|
+
isChecked={imgType === 'bootc'}
|
|
71
|
+
name="bootc"
|
|
72
|
+
onChange={(_, checked) => checked && setImgType('bootc')}
|
|
73
|
+
label={
|
|
74
|
+
bootcImgUrl ? t('Use a container image (bootc)') : t('Use a container image (bootc) (Not available)')
|
|
75
|
+
}
|
|
76
|
+
id="bootc"
|
|
77
|
+
isDisabled={!bootcImgUrl}
|
|
78
|
+
/>
|
|
79
|
+
<Radio
|
|
80
|
+
isChecked={imgType === 'qcow2'}
|
|
81
|
+
name="qcow2"
|
|
82
|
+
onChange={(_, checked) => checked && setImgType('qcow2')}
|
|
83
|
+
label={qcow2ImgUrl ? t('Use a disk image (qcow2)') : t('Use a disk image (qcow2) (Not available)')}
|
|
84
|
+
id="qcow2"
|
|
85
|
+
isDisabled={!qcow2ImgUrl}
|
|
86
|
+
/>
|
|
87
|
+
</GridItem>
|
|
88
|
+
<GridItem>
|
|
89
|
+
{imgType === 'bootc' && (
|
|
90
|
+
<Alert isInline variant="info" title={t('Adding devices instructions')}>
|
|
91
|
+
<TextContent>
|
|
92
|
+
<TextList component="ol" type={OrderType.number} style={{ marginLeft: 0 }}>
|
|
93
|
+
<TextListItem>{t('Boot you device.')}</TextListItem>
|
|
94
|
+
<TextListItem>{t('Ensure that your device has a disk available for installation.')}</TextListItem>
|
|
95
|
+
<TextListItem>
|
|
96
|
+
{t('Execute the following podman command')}
|
|
97
|
+
<ClipboardCopy isReadOnly hoverTip={t('Copy')} clickTip={t('Copied')}>
|
|
98
|
+
{`podman run --rm --privileged --pid=host -v /var/lib/containers:/var/lib/containers --security-opt label=type:unconfined_t ${bootcImgUrl} bootc install to-disk /path/to/disk`}
|
|
99
|
+
</ClipboardCopy>
|
|
100
|
+
</TextListItem>
|
|
101
|
+
<TextListItem>{t('Ensure that your device will boot from `/path/to/disk`.')}</TextListItem>
|
|
102
|
+
<TextListItem>{t('Reboot the device.')}</TextListItem>
|
|
103
|
+
<TextListItem>
|
|
104
|
+
{t('Booted device should appear in the devices table. This might take a few minutes.')}
|
|
105
|
+
</TextListItem>
|
|
106
|
+
</TextList>
|
|
107
|
+
</TextContent>
|
|
108
|
+
</Alert>
|
|
109
|
+
)}
|
|
110
|
+
{imgType === 'qcow2' && (
|
|
111
|
+
<Stack hasGutter>
|
|
112
|
+
<StackItem>
|
|
113
|
+
<Alert isInline variant="info" title={t('Adding devices instructions')}>
|
|
114
|
+
<TextContent>
|
|
115
|
+
<TextList component="ol" type={OrderType.number} style={{ marginLeft: 0 }}>
|
|
116
|
+
<TextListItem>{t('Download the qcow2 disk and use it to boot your device.')}</TextListItem>
|
|
117
|
+
<TextListItem>
|
|
118
|
+
{t('Booted device should appear in the devices table. This might take a few minutes.')}
|
|
119
|
+
</TextListItem>
|
|
120
|
+
</TextList>
|
|
121
|
+
</TextContent>
|
|
122
|
+
</Alert>
|
|
123
|
+
</StackItem>
|
|
124
|
+
<StackItem>
|
|
125
|
+
<FlightCtlForm>
|
|
126
|
+
<FormGroup label={t('Disk URL')}>
|
|
127
|
+
<ClipboardCopy isReadOnly hoverTip={t('Copy')} clickTip={t('Copied')}>
|
|
128
|
+
{qcow2ImgUrl}
|
|
129
|
+
</ClipboardCopy>
|
|
130
|
+
</FormGroup>
|
|
131
|
+
<FormGroup label={t('Command to download the disk')}>
|
|
132
|
+
<ClipboardCopy isReadOnly hoverTip={t('Copy')} clickTip={t('Copied')}>
|
|
133
|
+
{`wget -O disk.qcow2 ${qcow2ImgUrl}`}
|
|
134
|
+
</ClipboardCopy>
|
|
135
|
+
</FormGroup>
|
|
136
|
+
</FlightCtlForm>
|
|
137
|
+
</StackItem>
|
|
138
|
+
</Stack>
|
|
139
|
+
)}
|
|
140
|
+
</GridItem>
|
|
141
|
+
</Grid>
|
|
142
|
+
</Modal>
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export default AddDeviceModal;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DropdownItem, DropdownList, Nav, NavList } from '@patternfly/react-core';
|
|
3
|
+
|
|
4
|
+
import { Device } from '@flightctl/types';
|
|
5
|
+
import { useFetchPeriodically } from '../../../hooks/useFetchPeriodically';
|
|
6
|
+
import { useFetch } from '../../../hooks/useFetch';
|
|
7
|
+
import DetailsPage from '../../DetailsPage/DetailsPage';
|
|
8
|
+
import DetailsPageActions, { useDeleteAction } from '../../DetailsPage/DetailsPageActions';
|
|
9
|
+
import { useTranslation } from '../../../hooks/useTranslation';
|
|
10
|
+
import { ROUTE, useNavigate } from '../../../hooks/useNavigate';
|
|
11
|
+
import { useAppContext } from '../../../hooks/useAppContext';
|
|
12
|
+
import DeviceDetailsTab from './DeviceDetailsTab';
|
|
13
|
+
import { useTemplateVersion } from '../../../hooks/useTemplateVersion';
|
|
14
|
+
import TerminalTab from './TerminalTab';
|
|
15
|
+
import NavItem from '../../NavItem/NavItem';
|
|
16
|
+
import DeviceStatusDebugModal from './DeviceStatusDebugModal';
|
|
17
|
+
import { getDeviceFleet } from '../../../utils/devices';
|
|
18
|
+
|
|
19
|
+
const DeviceDetailsPage = ({ children }: React.PropsWithChildren<Record<never, never>>) => {
|
|
20
|
+
const { t } = useTranslation();
|
|
21
|
+
const {
|
|
22
|
+
router: { useParams, Routes, Route, Navigate },
|
|
23
|
+
} = useAppContext();
|
|
24
|
+
const { deviceId } = useParams() as { deviceId: string };
|
|
25
|
+
const [device, loading, error, refetch] = useFetchPeriodically<Required<Device>>({ endpoint: `devices/${deviceId}` });
|
|
26
|
+
const [showDebugInfo, setShowDebugInfo] = React.useState<boolean>(false);
|
|
27
|
+
|
|
28
|
+
const [, /* useTv */ tv, loadingTv, errorTv] = useTemplateVersion(device);
|
|
29
|
+
|
|
30
|
+
const navigate = useNavigate();
|
|
31
|
+
const { remove } = useFetch();
|
|
32
|
+
|
|
33
|
+
const deviceAlias = device?.metadata.labels?.alias || deviceId;
|
|
34
|
+
|
|
35
|
+
const { deleteAction, deleteModal } = useDeleteAction({
|
|
36
|
+
onDelete: async () => {
|
|
37
|
+
await remove(`devices/${deviceId}`);
|
|
38
|
+
navigate(ROUTE.DEVICES);
|
|
39
|
+
},
|
|
40
|
+
resourceName: deviceAlias,
|
|
41
|
+
resourceType: 'device',
|
|
42
|
+
});
|
|
43
|
+
const editActionProps = getDeviceFleet(device?.metadata || {})
|
|
44
|
+
? {
|
|
45
|
+
isAriaDisabled: true,
|
|
46
|
+
tooltipProps: {
|
|
47
|
+
content: t('Device is bound to a fleet. Its configurations cannot be edited'),
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
: undefined;
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<DetailsPage
|
|
54
|
+
loading={loading || loadingTv}
|
|
55
|
+
error={error}
|
|
56
|
+
id={deviceId}
|
|
57
|
+
title={deviceAlias}
|
|
58
|
+
resourceLink={ROUTE.DEVICES}
|
|
59
|
+
resourceType="Devices"
|
|
60
|
+
resourceTypeLabel={t('Devices')}
|
|
61
|
+
nav={
|
|
62
|
+
<Nav variant="tertiary">
|
|
63
|
+
<NavList>
|
|
64
|
+
<NavItem to="details">{t('Details')}</NavItem>
|
|
65
|
+
<NavItem to="terminal">{t('Terminal')}</NavItem>
|
|
66
|
+
</NavList>
|
|
67
|
+
</Nav>
|
|
68
|
+
}
|
|
69
|
+
actions={
|
|
70
|
+
<DetailsPageActions>
|
|
71
|
+
<DropdownList>
|
|
72
|
+
<DropdownItem
|
|
73
|
+
onClick={() => navigate({ route: ROUTE.DEVICE_EDIT, postfix: deviceId })}
|
|
74
|
+
{...editActionProps}
|
|
75
|
+
>
|
|
76
|
+
{t('Edit device configurations')}
|
|
77
|
+
</DropdownItem>
|
|
78
|
+
{deleteAction}
|
|
79
|
+
<DropdownItem
|
|
80
|
+
onClick={() => {
|
|
81
|
+
setShowDebugInfo(!showDebugInfo);
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
{t('View status debug information')}
|
|
85
|
+
</DropdownItem>
|
|
86
|
+
</DropdownList>
|
|
87
|
+
</DetailsPageActions>
|
|
88
|
+
}
|
|
89
|
+
>
|
|
90
|
+
{device && (
|
|
91
|
+
<Routes>
|
|
92
|
+
<Route index element={<Navigate to="details" replace />} />
|
|
93
|
+
<Route
|
|
94
|
+
path="details"
|
|
95
|
+
element={
|
|
96
|
+
<DeviceDetailsTab device={device} errorTv={errorTv} tv={tv} refetch={refetch}>
|
|
97
|
+
{children}
|
|
98
|
+
</DeviceDetailsTab>
|
|
99
|
+
}
|
|
100
|
+
/>
|
|
101
|
+
<Route path="terminal" element={<TerminalTab device={device} />} />
|
|
102
|
+
</Routes>
|
|
103
|
+
)}
|
|
104
|
+
{deleteModal}
|
|
105
|
+
{device && showDebugInfo && (
|
|
106
|
+
<DeviceStatusDebugModal
|
|
107
|
+
status={device.status}
|
|
108
|
+
onClose={() => {
|
|
109
|
+
setShowDebugInfo(false);
|
|
110
|
+
}}
|
|
111
|
+
/>
|
|
112
|
+
)}
|
|
113
|
+
</DetailsPage>
|
|
114
|
+
);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export default DeviceDetailsPage;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Alert,
|
|
4
|
+
CardTitle,
|
|
5
|
+
DescriptionListDescription,
|
|
6
|
+
DescriptionListGroup,
|
|
7
|
+
DescriptionListTerm,
|
|
8
|
+
Flex,
|
|
9
|
+
FlexItem,
|
|
10
|
+
Grid,
|
|
11
|
+
GridItem,
|
|
12
|
+
Stack,
|
|
13
|
+
StackItem,
|
|
14
|
+
} from '@patternfly/react-core';
|
|
15
|
+
|
|
16
|
+
import { Device, TemplateVersion } from '@flightctl/types';
|
|
17
|
+
import { timeSinceText } from '../../../utils/dates';
|
|
18
|
+
import ApplicationsTable from '../../DetailsPage/Tables/ApplicationsTable';
|
|
19
|
+
import DeviceStatus from '../../Status/DeviceStatus';
|
|
20
|
+
import { useTranslation } from '../../../hooks/useTranslation';
|
|
21
|
+
import EditLabelsForm from '../../modals/EditLabelsModal/EditLabelsForm';
|
|
22
|
+
import ResourceLink from '../../common/ResourceLink';
|
|
23
|
+
import DeviceFleet from './DeviceFleet';
|
|
24
|
+
import DeviceOs from './DeviceOs';
|
|
25
|
+
import DetailsPageCard, { DetailsPageCardBody } from '../../DetailsPage/DetailsPageCard';
|
|
26
|
+
import SystemdTable from './SystemdTable';
|
|
27
|
+
import FlightControlDescriptionList from '../../common/FlightCtlDescriptionList';
|
|
28
|
+
import RepositorySourceList from '../../Repository/RepositoryDetails/RepositorySourceList';
|
|
29
|
+
import { getErrorMessage } from '../../../utils/error';
|
|
30
|
+
import ApplicationSummaryStatus from '../../Status/ApplicationSummaryStatus';
|
|
31
|
+
import WithHelperText from '../../common/WithHelperText';
|
|
32
|
+
import SystemUpdateStatus from '../../Status/SystemUpdateStatus';
|
|
33
|
+
import DeviceResourceStatus from '../../Status/DeviceResourceStatus';
|
|
34
|
+
|
|
35
|
+
import './DeviceDetailsTab.css';
|
|
36
|
+
|
|
37
|
+
type DeviceDetailsTabProps = {
|
|
38
|
+
device: Required<Device>;
|
|
39
|
+
refetch: VoidFunction;
|
|
40
|
+
tv: TemplateVersion | undefined;
|
|
41
|
+
errorTv: unknown;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const DeviceDetailsTab = ({
|
|
45
|
+
device,
|
|
46
|
+
refetch,
|
|
47
|
+
tv,
|
|
48
|
+
errorTv,
|
|
49
|
+
children,
|
|
50
|
+
}: React.PropsWithChildren<DeviceDetailsTabProps>) => {
|
|
51
|
+
const { t } = useTranslation();
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<Grid hasGutter>
|
|
55
|
+
{!!errorTv && (
|
|
56
|
+
<GridItem md={12}>
|
|
57
|
+
<Alert isInline variant="warning" title={t('Some device details could not be loaded.')}>
|
|
58
|
+
{getErrorMessage(errorTv)}
|
|
59
|
+
</Alert>
|
|
60
|
+
</GridItem>
|
|
61
|
+
)}
|
|
62
|
+
<GridItem md={12}>
|
|
63
|
+
<DetailsPageCard>
|
|
64
|
+
<DetailsPageCardBody>
|
|
65
|
+
<Flex alignItems={{ default: 'alignItemsFlexStart' }}>
|
|
66
|
+
<FlexItem flex={{ default: 'flex_1' }}>
|
|
67
|
+
<Stack>
|
|
68
|
+
<StackItem className="fctl-device-details-tab__label">{t('Name')}</StackItem>
|
|
69
|
+
</Stack>
|
|
70
|
+
<StackItem>
|
|
71
|
+
<ResourceLink id={device.metadata.name || '-'} />
|
|
72
|
+
</StackItem>
|
|
73
|
+
</FlexItem>
|
|
74
|
+
{!!children && <FlexItem flex={{ default: 'flex_1' }}>{children}</FlexItem>}
|
|
75
|
+
<FlexItem flex={{ default: 'flex_1' }}>
|
|
76
|
+
<Stack>
|
|
77
|
+
<StackItem className="fctl-device-details-tab__label">{t('Fleet name')}</StackItem>
|
|
78
|
+
<StackItem>
|
|
79
|
+
<DeviceFleet device={device} />
|
|
80
|
+
</StackItem>
|
|
81
|
+
</Stack>
|
|
82
|
+
</FlexItem>
|
|
83
|
+
<FlexItem flex={{ default: 'flex_4' }}>
|
|
84
|
+
<Stack>
|
|
85
|
+
<StackItem className="fctl-device-details-tab__label">{t('Labels')}</StackItem>
|
|
86
|
+
</Stack>
|
|
87
|
+
<StackItem>
|
|
88
|
+
<EditLabelsForm device={device} onDeviceUpdate={refetch} />
|
|
89
|
+
</StackItem>
|
|
90
|
+
</FlexItem>
|
|
91
|
+
</Flex>
|
|
92
|
+
</DetailsPageCardBody>
|
|
93
|
+
</DetailsPageCard>
|
|
94
|
+
</GridItem>
|
|
95
|
+
<GridItem md={12} lg={6}>
|
|
96
|
+
<DetailsPageCard>
|
|
97
|
+
<CardTitle>{t('System status')}</CardTitle>
|
|
98
|
+
<DetailsPageCardBody>
|
|
99
|
+
<FlightControlDescriptionList columnModifier={{ default: '3Col' }}>
|
|
100
|
+
<DescriptionListGroup>
|
|
101
|
+
<DescriptionListTerm>
|
|
102
|
+
<WithHelperText
|
|
103
|
+
content={t('Indicates the overall status of application workloads on the device.')}
|
|
104
|
+
ariaLabel={t('Application status')}
|
|
105
|
+
showLabel
|
|
106
|
+
/>
|
|
107
|
+
</DescriptionListTerm>
|
|
108
|
+
<DescriptionListDescription>
|
|
109
|
+
<ApplicationSummaryStatus statusSummary={device.status?.applicationsSummary} />
|
|
110
|
+
</DescriptionListDescription>
|
|
111
|
+
</DescriptionListGroup>
|
|
112
|
+
<DescriptionListGroup>
|
|
113
|
+
<DescriptionListTerm>
|
|
114
|
+
<WithHelperText
|
|
115
|
+
content={t('Indicates the overall status of the device hardware and operating system.')}
|
|
116
|
+
ariaLabel={t('Device status')}
|
|
117
|
+
showLabel
|
|
118
|
+
/>{' '}
|
|
119
|
+
</DescriptionListTerm>
|
|
120
|
+
<DescriptionListDescription>
|
|
121
|
+
<DeviceStatus deviceStatus={device.status} />
|
|
122
|
+
</DescriptionListDescription>
|
|
123
|
+
</DescriptionListGroup>
|
|
124
|
+
<DescriptionListGroup>
|
|
125
|
+
<DescriptionListTerm>
|
|
126
|
+
<WithHelperText
|
|
127
|
+
content={t(
|
|
128
|
+
'Indicates whether a system is running the latest target configuration or is updating towards it.',
|
|
129
|
+
)}
|
|
130
|
+
ariaLabel={t('Update status')}
|
|
131
|
+
showLabel
|
|
132
|
+
/>
|
|
133
|
+
</DescriptionListTerm>
|
|
134
|
+
<DescriptionListDescription>
|
|
135
|
+
<SystemUpdateStatus deviceStatus={device.status} />
|
|
136
|
+
</DescriptionListDescription>
|
|
137
|
+
</DescriptionListGroup>
|
|
138
|
+
<DescriptionListGroup>
|
|
139
|
+
<DescriptionListTerm>{t('Last seen')}</DescriptionListTerm>
|
|
140
|
+
<DescriptionListDescription>{timeSinceText(t, device.status.lastSeen)}</DescriptionListDescription>
|
|
141
|
+
</DescriptionListGroup>
|
|
142
|
+
</FlightControlDescriptionList>
|
|
143
|
+
</DetailsPageCardBody>
|
|
144
|
+
</DetailsPageCard>
|
|
145
|
+
</GridItem>
|
|
146
|
+
<GridItem md={12} lg={6}>
|
|
147
|
+
<DetailsPageCard>
|
|
148
|
+
<CardTitle>{t('Resource status')}</CardTitle>
|
|
149
|
+
<DetailsPageCardBody>
|
|
150
|
+
<FlightControlDescriptionList columnModifier={{ default: '3Col' }}>
|
|
151
|
+
<DescriptionListGroup>
|
|
152
|
+
<DescriptionListTerm>{t('CPU pressure')}</DescriptionListTerm>
|
|
153
|
+
<DescriptionListDescription>
|
|
154
|
+
<DeviceResourceStatus device={device} monitorType="cpu" />
|
|
155
|
+
</DescriptionListDescription>
|
|
156
|
+
</DescriptionListGroup>
|
|
157
|
+
<DescriptionListGroup>
|
|
158
|
+
<DescriptionListTerm>{t('Disk pressure')}</DescriptionListTerm>
|
|
159
|
+
<DescriptionListDescription>
|
|
160
|
+
<DeviceResourceStatus device={device} monitorType="disk" />
|
|
161
|
+
</DescriptionListDescription>
|
|
162
|
+
</DescriptionListGroup>
|
|
163
|
+
<DescriptionListGroup>
|
|
164
|
+
<DescriptionListTerm>{t('Memory pressure')}</DescriptionListTerm>
|
|
165
|
+
<DescriptionListDescription>
|
|
166
|
+
<DeviceResourceStatus device={device} monitorType="memory" />
|
|
167
|
+
</DescriptionListDescription>
|
|
168
|
+
</DescriptionListGroup>
|
|
169
|
+
</FlightControlDescriptionList>
|
|
170
|
+
</DetailsPageCardBody>
|
|
171
|
+
</DetailsPageCard>
|
|
172
|
+
</GridItem>
|
|
173
|
+
<GridItem md={12} lg={6}>
|
|
174
|
+
<DetailsPageCard>
|
|
175
|
+
<CardTitle>{t('Configurations')}</CardTitle>
|
|
176
|
+
<DetailsPageCardBody>
|
|
177
|
+
<FlightControlDescriptionList columnModifier={{ default: '2Col' }}>
|
|
178
|
+
<DescriptionListGroup>
|
|
179
|
+
<DescriptionListTerm>{t('System image (running)')}</DescriptionListTerm>
|
|
180
|
+
<DescriptionListDescription>
|
|
181
|
+
<DeviceOs desiredOsImage={device.spec?.os?.image} renderedOsImage={device.status?.os?.image} />
|
|
182
|
+
</DescriptionListDescription>
|
|
183
|
+
</DescriptionListGroup>
|
|
184
|
+
<DescriptionListGroup>
|
|
185
|
+
<DescriptionListTerm>
|
|
186
|
+
{t('Sources ({{size}})', { size: device.spec?.config?.length || 0 })}
|
|
187
|
+
</DescriptionListTerm>
|
|
188
|
+
<DescriptionListDescription>
|
|
189
|
+
<RepositorySourceList configs={device.spec.config || []} />
|
|
190
|
+
</DescriptionListDescription>
|
|
191
|
+
</DescriptionListGroup>
|
|
192
|
+
</FlightControlDescriptionList>
|
|
193
|
+
</DetailsPageCardBody>
|
|
194
|
+
</DetailsPageCard>
|
|
195
|
+
</GridItem>
|
|
196
|
+
<GridItem md={12} lg={6}>
|
|
197
|
+
<DetailsPageCard>
|
|
198
|
+
<CardTitle>{t('Applications')}</CardTitle>
|
|
199
|
+
<DetailsPageCardBody>
|
|
200
|
+
<ApplicationsTable appsStatus={device.status.applications} />
|
|
201
|
+
</DetailsPageCardBody>
|
|
202
|
+
</DetailsPageCard>
|
|
203
|
+
</GridItem>
|
|
204
|
+
<GridItem md={12} lg={6}>
|
|
205
|
+
<DetailsPageCard>
|
|
206
|
+
<CardTitle>{t('System services')}</CardTitle>
|
|
207
|
+
<DetailsPageCardBody>
|
|
208
|
+
<SystemdTable device={device} templateVersion={tv} onSystemdUnitsUpdate={refetch} />
|
|
209
|
+
</DetailsPageCardBody>
|
|
210
|
+
</DetailsPageCard>
|
|
211
|
+
</GridItem>
|
|
212
|
+
</Grid>
|
|
213
|
+
);
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export default DeviceDetailsTab;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Button, List, ListItem, Popover } from '@patternfly/react-core';
|
|
3
|
+
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons/dist/js/icons/outlined-question-circle-icon';
|
|
4
|
+
|
|
5
|
+
import { Condition, ConditionType, Device } from '@flightctl/types';
|
|
6
|
+
import { getDeviceFleet } from '../../../utils/devices';
|
|
7
|
+
import { getCondition } from '../../../utils/api';
|
|
8
|
+
import { useTranslation } from '../../../hooks/useTranslation';
|
|
9
|
+
import { Link, ROUTE } from '../../../hooks/useNavigate';
|
|
10
|
+
|
|
11
|
+
import './DeviceFleet.css';
|
|
12
|
+
|
|
13
|
+
const FleetLessDevice = ({ multipleOwnersCondition }: { multipleOwnersCondition?: Condition }) => {
|
|
14
|
+
const { t } = useTranslation();
|
|
15
|
+
|
|
16
|
+
let message = '';
|
|
17
|
+
let owners: string[] = [];
|
|
18
|
+
if (multipleOwnersCondition) {
|
|
19
|
+
message = t('Device is owned by more than one fleet');
|
|
20
|
+
owners = (multipleOwnersCondition.message || '').split(',');
|
|
21
|
+
} else {
|
|
22
|
+
message = t("Device labels don't match any fleet's selector labels");
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const hasMultipleOwners = owners.length > 1;
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<div className="fctl-device-fleet">
|
|
29
|
+
{hasMultipleOwners ? t('Multiple owners') : t('None')}
|
|
30
|
+
<Popover
|
|
31
|
+
bodyContent={
|
|
32
|
+
<span>
|
|
33
|
+
{message}
|
|
34
|
+
{hasMultipleOwners && (
|
|
35
|
+
<span>
|
|
36
|
+
{': '}
|
|
37
|
+
<List>
|
|
38
|
+
{owners.map((ownerFleet) => {
|
|
39
|
+
return (
|
|
40
|
+
<ListItem key={ownerFleet}>
|
|
41
|
+
<Link to={{ route: ROUTE.FLEET_DETAILS, postfix: ownerFleet }}>{ownerFleet}</Link>
|
|
42
|
+
</ListItem>
|
|
43
|
+
);
|
|
44
|
+
})}
|
|
45
|
+
</List>
|
|
46
|
+
</span>
|
|
47
|
+
)}
|
|
48
|
+
</span>
|
|
49
|
+
}
|
|
50
|
+
>
|
|
51
|
+
<Button
|
|
52
|
+
isInline
|
|
53
|
+
variant="plain"
|
|
54
|
+
icon={<OutlinedQuestionCircleIcon />}
|
|
55
|
+
aria-label={t('Ownership information')}
|
|
56
|
+
/>
|
|
57
|
+
</Popover>
|
|
58
|
+
</div>
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const DeviceFleet = ({ device }: { device?: Device }) => {
|
|
63
|
+
if (!device) {
|
|
64
|
+
return '-';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const fleetName = getDeviceFleet(device.metadata);
|
|
68
|
+
if (fleetName) {
|
|
69
|
+
return <Link to={{ route: ROUTE.FLEET_DETAILS, postfix: fleetName }}>{fleetName}</Link>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const multipleOwnersCondition = getCondition(device.status?.conditions, ConditionType.DeviceMultipleOwners);
|
|
73
|
+
return <FleetLessDevice multipleOwnersCondition={multipleOwnersCondition} />;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export default DeviceFleet;
|