@elevasis/ui 1.19.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.js +2 -2
- package/dist/auth/guards/AdminGuard.d.ts +32 -0
- package/dist/auth/guards/AdminGuard.d.ts.map +1 -0
- package/dist/auth/guards/ProtectedRoute.d.ts +60 -0
- package/dist/auth/guards/ProtectedRoute.d.ts.map +1 -0
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +12 -0
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +1 -0
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +14 -0
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +1 -0
- package/dist/auth/index.d.ts +14 -174
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +3 -3
- package/dist/charts/index.css +14 -0
- package/dist/charts/index.js +8 -6
- package/dist/chunk-4SY4EQSK.js +68 -0
- package/dist/{chunk-7ATCF6UL.js → chunk-ACD2QA6E.js} +11 -4
- package/dist/{chunk-2Z7LYTIX.js → chunk-AQ5MQDSS.js} +30 -17
- package/dist/chunk-AWMZCYKH.js +639 -0
- package/dist/chunk-BX565EOK.js +2921 -0
- package/dist/{chunk-WAPZN2U3.js → chunk-EMN755L5.js} +7 -41
- package/dist/{chunk-LBY7FVFD.js → chunk-ERVB3QJQ.js} +31 -715
- package/dist/chunk-GBMNCNHX.js +105 -0
- package/dist/{chunk-BVNAC4SQ.js → chunk-GH7ZO4VD.js} +38 -48
- package/dist/{chunk-KNJKCD73.js → chunk-I6EVLOP3.js} +4 -4
- package/dist/{chunk-MBZDE6UT.js → chunk-IOKL7BKE.js} +9 -1
- package/dist/{chunk-35UWYH2A.js → chunk-JFRG2JJE.js} +8 -2
- package/dist/{chunk-NUULWBAD.js → chunk-JHMJKDVU.js} +1 -1
- package/dist/chunk-JZEXFQ6N.js +671 -0
- package/dist/chunk-LGKLC5MG.js +44 -0
- package/dist/chunk-MG3NF7QL.js +63 -0
- package/dist/{chunk-KBLGVZBD.js → chunk-NNKKBSJN.js} +2 -22
- package/dist/{chunk-JNBHUCKW.js → chunk-NVOCKXUQ.js} +1 -1
- package/dist/chunk-PDHTXPSF.js +12 -0
- package/dist/chunk-QJ2S46NI.js +23 -0
- package/dist/{chunk-UANJP5P7.js → chunk-R7WLWGPO.js} +5 -5
- package/dist/{chunk-CC3SDRIF.js → chunk-RWQIFKMJ.js} +1 -1
- package/dist/chunk-U4CHEPIL.js +2622 -0
- package/dist/chunk-UMFPUM7Q.js +1281 -0
- package/dist/chunk-WWEMNIHW.js +37 -0
- package/dist/{chunk-UTWJZEOJ.js → chunk-XOTN3X3Z.js} +3 -3
- package/dist/{chunk-ZFCG5SHW.js → chunk-Z2BXCFAG.js} +1 -1
- package/dist/components/charts/ActivityTrendChart.d.ts +13 -0
- package/dist/components/charts/ActivityTrendChart.d.ts.map +1 -0
- package/dist/components/charts/CombinedTrendChart.d.ts +22 -0
- package/dist/components/charts/CombinedTrendChart.d.ts.map +1 -0
- package/dist/components/charts/CostTrendChart.d.ts +13 -0
- package/dist/components/charts/CostTrendChart.d.ts.map +1 -0
- package/dist/components/charts/HeroStatsRow.d.ts +15 -0
- package/dist/components/charts/HeroStatsRow.d.ts.map +1 -0
- package/dist/components/charts/index.d.ts +9 -0
- package/dist/components/charts/index.d.ts.map +1 -0
- package/dist/components/command-queue/TaskCard.d.ts +18 -0
- package/dist/components/command-queue/TaskCard.d.ts.map +1 -0
- package/dist/components/command-queue/index.d.ts +5 -0
- package/dist/components/command-queue/index.d.ts.map +1 -0
- package/dist/components/display/PageNotFound.d.ts +2 -0
- package/dist/components/display/PageNotFound.d.ts.map +1 -0
- package/dist/components/display/index.d.ts +26 -0
- package/dist/components/display/index.d.ts.map +1 -0
- package/dist/components/execution/ExecutionStats.d.ts +16 -0
- package/dist/components/execution/ExecutionStats.d.ts.map +1 -0
- package/dist/components/execution/index.d.ts +18 -0
- package/dist/components/execution/index.d.ts.map +1 -0
- package/dist/components/index.css +14 -0
- package/dist/components/index.d.ts +22 -5674
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +564 -5023
- package/dist/components/layout/backgrounds/AuroraBackground.d.ts +16 -0
- package/dist/components/layout/backgrounds/AuroraBackground.d.ts.map +1 -0
- package/dist/components/layout/backgrounds/AuroraBackground.js +169 -0
- package/dist/components/layout/backgrounds/EmberBackground.d.ts +16 -0
- package/dist/components/layout/backgrounds/EmberBackground.d.ts.map +1 -0
- package/dist/components/layout/backgrounds/EmberBackground.js +169 -0
- package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts +16 -0
- package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts.map +1 -0
- package/dist/components/layout/backgrounds/RoseGoldBackground.js +169 -0
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts +12 -0
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +1 -0
- package/dist/components/monitoring/ResourceHealthPanel.d.ts +8 -0
- package/dist/components/monitoring/ResourceHealthPanel.d.ts.map +1 -0
- package/dist/components/monitoring/index.d.ts +16 -0
- package/dist/components/monitoring/index.d.ts.map +1 -0
- package/dist/components/navigation/index.js +2 -63
- package/dist/components/notifications/NotificationBell.d.ts +9 -0
- package/dist/components/notifications/NotificationBell.d.ts.map +1 -0
- package/dist/components/notifications/NotificationItem.d.ts +9 -0
- package/dist/components/notifications/NotificationItem.d.ts.map +1 -0
- package/dist/components/notifications/NotificationList.d.ts +10 -0
- package/dist/components/notifications/NotificationList.d.ts.map +1 -0
- package/dist/components/notifications/NotificationPanel.d.ts +10 -0
- package/dist/components/notifications/NotificationPanel.d.ts.map +1 -0
- package/dist/components/notifications/index.d.ts +5 -0
- package/dist/components/notifications/index.d.ts.map +1 -0
- package/dist/components/operations/calibration/CreateProjectModal.d.ts +9 -0
- package/dist/components/operations/calibration/CreateProjectModal.d.ts.map +1 -0
- package/dist/components/operations/calibration/ProjectCard.d.ts +9 -0
- package/dist/components/operations/calibration/ProjectCard.d.ts.map +1 -0
- package/dist/components/operations/command-queue/index.d.ts +3 -0
- package/dist/components/operations/command-queue/index.d.ts.map +1 -0
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts +17 -0
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts.map +1 -0
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts +17 -0
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts.map +1 -0
- package/dist/components/operations/command-queue/sidebar/index.d.ts +5 -0
- package/dist/components/operations/command-queue/sidebar/index.d.ts.map +1 -0
- package/dist/components/operations/command-view/CommandViewGraph.d.ts +22 -0
- package/dist/components/operations/command-view/CommandViewGraph.d.ts.map +1 -0
- package/dist/components/operations/command-view/index.d.ts +4 -0
- package/dist/components/operations/command-view/index.d.ts.map +1 -0
- package/dist/components/operations/executions/AgentExecutionLogs.d.ts +13 -0
- package/dist/components/operations/executions/AgentExecutionLogs.d.ts.map +1 -0
- package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts +13 -0
- package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts.map +1 -0
- package/dist/components/operations/executions/index.d.ts +4 -0
- package/dist/components/operations/executions/index.d.ts.map +1 -0
- package/dist/components/operations/index.d.ts +8 -0
- package/dist/components/operations/index.d.ts.map +1 -0
- package/dist/components/operations/knowledge-base/DocTreeNav.d.ts +14 -0
- package/dist/components/operations/knowledge-base/DocTreeNav.d.ts.map +1 -0
- package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts +16 -0
- package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts.map +1 -0
- package/dist/components/operations/knowledge-base/index.d.ts +3 -0
- package/dist/components/operations/knowledge-base/index.d.ts.map +1 -0
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts +16 -0
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts.map +1 -0
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts +12 -0
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts.map +1 -0
- package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts +12 -0
- package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts.map +1 -0
- package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts +7 -0
- package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts.map +1 -0
- package/dist/components/operations/shared/index.d.ts +5 -0
- package/dist/components/operations/shared/index.d.ts.map +1 -0
- package/dist/components/operations/shared/layouts/ResourceHeader.d.ts +11 -0
- package/dist/components/operations/shared/layouts/ResourceHeader.d.ts.map +1 -0
- package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts +8 -0
- package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts.map +1 -0
- package/dist/components/operations/shared/layouts/index.d.ts +4 -0
- package/dist/components/operations/shared/layouts/index.d.ts.map +1 -0
- package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts +7 -0
- package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts.map +1 -0
- package/dist/components/operations/task-scheduler/TaskScheduler.d.ts +2 -0
- package/dist/components/operations/task-scheduler/TaskScheduler.d.ts.map +1 -0
- package/dist/components/operations/task-scheduler/index.d.ts +11 -0
- package/dist/components/operations/task-scheduler/index.d.ts.map +1 -0
- package/dist/components/sdk-barrel.d.ts +26 -0
- package/dist/components/sdk-barrel.d.ts.map +1 -0
- package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts +9 -0
- package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts.map +1 -0
- package/dist/components/settings/api-keys/ApiKeyList.d.ts +8 -0
- package/dist/components/settings/api-keys/ApiKeyList.d.ts.map +1 -0
- package/dist/components/settings/api-keys/ApiKeySettings.d.ts +2 -0
- package/dist/components/settings/api-keys/ApiKeySettings.d.ts.map +1 -0
- package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts +9 -0
- package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts.map +1 -0
- package/dist/components/settings/api-keys/EditApiKeyModal.d.ts +8 -0
- package/dist/components/settings/api-keys/EditApiKeyModal.d.ts.map +1 -0
- package/dist/components/settings/api-keys/index.d.ts +6 -0
- package/dist/components/settings/api-keys/index.d.ts.map +1 -0
- package/dist/components/settings/credentials/CreateCredentialModal.d.ts +9 -0
- package/dist/components/settings/credentials/CreateCredentialModal.d.ts.map +1 -0
- package/dist/components/settings/credentials/CredentialList.d.ts +10 -0
- package/dist/components/settings/credentials/CredentialList.d.ts.map +1 -0
- package/dist/components/settings/credentials/CredentialSettings.d.ts +7 -0
- package/dist/components/settings/credentials/CredentialSettings.d.ts.map +1 -0
- package/dist/components/settings/credentials/index.d.ts +5 -0
- package/dist/components/settings/credentials/index.d.ts.map +1 -0
- package/dist/components/settings/deployments/DeploymentList.d.ts +8 -0
- package/dist/components/settings/deployments/DeploymentList.d.ts.map +1 -0
- package/dist/components/settings/deployments/DeploymentSettings.d.ts +2 -0
- package/dist/components/settings/deployments/DeploymentSettings.d.ts.map +1 -0
- package/dist/components/settings/deployments/index.d.ts +5 -0
- package/dist/components/settings/deployments/index.d.ts.map +1 -0
- package/dist/components/settings/index.d.ts +6 -0
- package/dist/components/settings/index.d.ts.map +1 -0
- package/dist/components/table/SortableHeader.d.ts +12 -0
- package/dist/components/table/SortableHeader.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +4 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/features/auth/AdminGuard.d.ts +38 -0
- package/dist/features/auth/AdminGuard.d.ts.map +1 -0
- package/dist/features/auth/FeatureGuard.d.ts +45 -0
- package/dist/features/auth/FeatureGuard.d.ts.map +1 -0
- package/dist/features/auth/ProtectedRoute.d.ts +43 -0
- package/dist/features/auth/ProtectedRoute.d.ts.map +1 -0
- package/dist/features/auth/index.css +579 -0
- package/dist/features/auth/index.d.ts +9 -0
- package/dist/features/auth/index.d.ts.map +1 -0
- package/dist/features/auth/index.js +125 -0
- package/dist/features/auth/useUserProfile.d.ts +10 -0
- package/dist/features/auth/useUserProfile.d.ts.map +1 -0
- package/dist/features/dashboard/Dashboard.d.ts +57 -0
- package/dist/features/dashboard/Dashboard.d.ts.map +1 -0
- package/dist/features/dashboard/RecentExecutionsByResource.d.ts +11 -0
- package/dist/features/dashboard/RecentExecutionsByResource.d.ts.map +1 -0
- package/dist/features/dashboard/ResourceOverview.d.ts +21 -0
- package/dist/features/dashboard/ResourceOverview.d.ts.map +1 -0
- package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts +7 -0
- package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts.map +1 -0
- package/dist/features/dashboard/index.css +579 -0
- package/dist/features/dashboard/index.d.ts +9 -0
- package/dist/features/dashboard/index.d.ts.map +1 -0
- package/dist/features/dashboard/index.js +650 -0
- package/dist/features/monitoring/ActivityFeed.d.ts +37 -0
- package/dist/features/monitoring/ActivityFeed.d.ts.map +1 -0
- package/dist/features/monitoring/ActivityLog.d.ts +8 -0
- package/dist/features/monitoring/ActivityLog.d.ts.map +1 -0
- package/dist/features/monitoring/CostAnalytics.d.ts +13 -0
- package/dist/features/monitoring/CostAnalytics.d.ts.map +1 -0
- package/dist/features/monitoring/ErrorDetailsModal.d.ts +13 -0
- package/dist/features/monitoring/ErrorDetailsModal.d.ts.map +1 -0
- package/dist/features/monitoring/ExecutionHealth.d.ts +9 -0
- package/dist/features/monitoring/ExecutionHealth.d.ts.map +1 -0
- package/dist/features/monitoring/ExecutionLogsPage.d.ts +20 -0
- package/dist/features/monitoring/ExecutionLogsPage.d.ts.map +1 -0
- package/dist/features/monitoring/NotificationCenter.d.ts +5 -0
- package/dist/features/monitoring/NotificationCenter.d.ts.map +1 -0
- package/dist/features/monitoring/index.css +579 -0
- package/dist/features/monitoring/index.d.ts +15 -0
- package/dist/features/monitoring/index.d.ts.map +1 -0
- package/dist/features/monitoring/index.js +538 -0
- package/dist/features/operations/CalibrationPage.d.ts +9 -0
- package/dist/features/operations/CalibrationPage.d.ts.map +1 -0
- package/dist/features/operations/CalibrationProjectDetailPage.d.ts +43 -0
- package/dist/features/operations/CalibrationProjectDetailPage.d.ts.map +1 -0
- package/dist/features/operations/CalibrationProjectsPage.d.ts +10 -0
- package/dist/features/operations/CalibrationProjectsPage.d.ts.map +1 -0
- package/dist/features/operations/CalibrationRunDetailPage.d.ts +35 -0
- package/dist/features/operations/CalibrationRunDetailPage.d.ts.map +1 -0
- package/dist/features/operations/CommandQueueDetailPage.d.ts +16 -0
- package/dist/features/operations/CommandQueueDetailPage.d.ts.map +1 -0
- package/dist/features/operations/CommandQueuePage.d.ts +13 -0
- package/dist/features/operations/CommandQueuePage.d.ts.map +1 -0
- package/dist/features/operations/CommandViewPage.d.ts +6 -0
- package/dist/features/operations/CommandViewPage.d.ts.map +1 -0
- package/dist/features/operations/CommandViewSidebarContent.d.ts +19 -0
- package/dist/features/operations/CommandViewSidebarContent.d.ts.map +1 -0
- package/dist/features/operations/ResourceDetailPage.d.ts +25 -0
- package/dist/features/operations/ResourceDetailPage.d.ts.map +1 -0
- package/dist/features/operations/ResourcesPage.d.ts +15 -0
- package/dist/features/operations/ResourcesPage.d.ts.map +1 -0
- package/dist/features/operations/ResourcesSidebar.d.ts +9 -0
- package/dist/features/operations/ResourcesSidebar.d.ts.map +1 -0
- package/dist/features/operations/calibration-components/ComparisonTable.d.ts +9 -0
- package/dist/features/operations/calibration-components/ComparisonTable.d.ts.map +1 -0
- package/dist/features/operations/executions/AgentExecutionPanel.d.ts +12 -0
- package/dist/features/operations/executions/AgentExecutionPanel.d.ts.map +1 -0
- package/dist/features/operations/executions/ExecutionPanel.d.ts +13 -0
- package/dist/features/operations/executions/ExecutionPanel.d.ts.map +1 -0
- package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts +12 -0
- package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts.map +1 -0
- package/dist/features/operations/executions/index.d.ts +7 -0
- package/dist/features/operations/executions/index.d.ts.map +1 -0
- package/dist/features/operations/index.css +14 -0
- package/dist/features/operations/index.d.ts +29 -98
- package/dist/features/operations/index.d.ts.map +1 -0
- package/dist/features/operations/index.js +2148 -28
- package/dist/features/operations/layouts/components/ResourceHeader.d.ts +11 -0
- package/dist/features/operations/layouts/components/ResourceHeader.d.ts.map +1 -0
- package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts +8 -0
- package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts.map +1 -0
- package/dist/features/operations/layouts/components/index.d.ts +4 -0
- package/dist/features/operations/layouts/components/index.d.ts.map +1 -0
- package/dist/features/settings/AccountSettings.d.ts +20 -0
- package/dist/features/settings/AccountSettings.d.ts.map +1 -0
- package/dist/features/settings/AppearanceSettings.d.ts +23 -0
- package/dist/features/settings/AppearanceSettings.d.ts.map +1 -0
- package/dist/features/settings/CreateWebhookEndpointModal.d.ts +8 -0
- package/dist/features/settings/CreateWebhookEndpointModal.d.ts.map +1 -0
- package/dist/features/settings/EditCredentialModal.d.ts +9 -0
- package/dist/features/settings/EditCredentialModal.d.ts.map +1 -0
- package/dist/features/settings/EditWebhookEndpointModal.d.ts +8 -0
- package/dist/features/settings/EditWebhookEndpointModal.d.ts.map +1 -0
- package/dist/features/settings/MemberConfigModal.d.ts +14 -0
- package/dist/features/settings/MemberConfigModal.d.ts.map +1 -0
- package/dist/features/settings/OAuthIntegrationsCard.d.ts +6 -0
- package/dist/features/settings/OAuthIntegrationsCard.d.ts.map +1 -0
- package/dist/features/settings/OrgMembersList.d.ts +5 -0
- package/dist/features/settings/OrgMembersList.d.ts.map +1 -0
- package/dist/features/settings/OrganizationSettings.d.ts +30 -0
- package/dist/features/settings/OrganizationSettings.d.ts.map +1 -0
- package/dist/features/settings/WebhookEndpointList.d.ts +9 -0
- package/dist/features/settings/WebhookEndpointList.d.ts.map +1 -0
- package/dist/features/settings/WebhookEndpointSettings.d.ts +6 -0
- package/dist/features/settings/WebhookEndpointSettings.d.ts.map +1 -0
- package/dist/features/settings/index.css +579 -0
- package/dist/features/settings/index.d.ts +23 -0
- package/dist/features/settings/index.d.ts.map +1 -0
- package/dist/features/settings/index.js +1437 -0
- package/dist/hooks/command-queue/index.d.ts +7 -0
- package/dist/hooks/command-queue/index.d.ts.map +1 -0
- package/dist/hooks/command-queue/useCommandQueue.d.ts +33 -0
- package/dist/hooks/command-queue/useCommandQueue.d.ts.map +1 -0
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +17 -0
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +1 -0
- package/dist/hooks/command-queue/useDeleteTask.d.ts +5 -0
- package/dist/hooks/command-queue/useDeleteTask.d.ts.map +1 -0
- package/dist/hooks/command-queue/usePatchTask.d.ts +6 -0
- package/dist/hooks/command-queue/usePatchTask.d.ts.map +1 -0
- package/dist/hooks/command-queue/useSubmitAction.d.ts +29 -0
- package/dist/hooks/command-queue/useSubmitAction.d.ts.map +1 -0
- package/dist/hooks/executions/index.d.ts +17 -0
- package/dist/hooks/executions/index.d.ts.map +1 -0
- package/dist/hooks/executions/useArchivedLogs.d.ts +14 -0
- package/dist/hooks/executions/useArchivedLogs.d.ts.map +1 -0
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +15 -0
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +1 -0
- package/dist/hooks/executions/useCancelExecution.d.ts +20 -0
- package/dist/hooks/executions/useCancelExecution.d.ts.map +1 -0
- package/dist/hooks/executions/useDeleteExecution.d.ts +13 -0
- package/dist/hooks/executions/useDeleteExecution.d.ts.map +1 -0
- package/dist/hooks/executions/useExecuteAsync.d.ts +21 -0
- package/dist/hooks/executions/useExecuteAsync.d.ts.map +1 -0
- package/dist/hooks/executions/useExecution.d.ts +10 -0
- package/dist/hooks/executions/useExecution.d.ts.map +1 -0
- package/dist/hooks/executions/useExecutions.d.ts +16 -0
- package/dist/hooks/executions/useExecutions.d.ts.map +1 -0
- package/dist/hooks/executions/useResourceDefinition.d.ts +9 -0
- package/dist/hooks/executions/useResourceDefinition.d.ts.map +1 -0
- package/dist/hooks/executions/useResources.d.ts +15 -0
- package/dist/hooks/executions/useResources.d.ts.map +1 -0
- package/dist/hooks/executions/useRetryExecution.d.ts +16 -0
- package/dist/hooks/executions/useRetryExecution.d.ts.map +1 -0
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +41 -0
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +1 -0
- package/dist/hooks/feature-access/index.d.ts +2 -0
- package/dist/hooks/feature-access/index.d.ts.map +1 -0
- package/dist/hooks/index.css +14 -0
- package/dist/hooks/index.d.ts +22 -6593
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +13 -13
- package/dist/hooks/monitoring/index.d.ts +11 -0
- package/dist/hooks/monitoring/index.d.ts.map +1 -0
- package/dist/hooks/monitoring/useActivities.d.ts +52 -0
- package/dist/hooks/monitoring/useActivities.d.ts.map +1 -0
- package/dist/hooks/monitoring/useCostSummary.d.ts +7 -0
- package/dist/hooks/monitoring/useCostSummary.d.ts.map +1 -0
- package/dist/hooks/monitoring/useExecutionHealth.d.ts +10 -0
- package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +1 -0
- package/dist/hooks/monitoring/useExecutionLogs.d.ts +56 -0
- package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +1 -0
- package/dist/hooks/monitoring/useNotificationCount.d.ts +26 -0
- package/dist/hooks/monitoring/useNotificationCount.d.ts.map +1 -0
- package/dist/hooks/monitoring/useNotifications.d.ts +11 -0
- package/dist/hooks/monitoring/useNotifications.d.ts.map +1 -0
- package/dist/hooks/notifications/index.d.ts +8 -0
- package/dist/hooks/notifications/index.d.ts.map +1 -0
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts +2 -0
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +1 -0
- package/dist/hooks/notifications/useMarkAsRead.d.ts +2 -0
- package/dist/hooks/notifications/useMarkAsRead.d.ts.map +1 -0
- package/dist/hooks/notifications/useTestNotification.d.ts +16 -0
- package/dist/hooks/notifications/useTestNotification.d.ts.map +1 -0
- package/dist/hooks/observability/index.d.ts +25 -0
- package/dist/hooks/observability/index.d.ts.map +1 -0
- package/dist/hooks/observability/useBatchedResourcesHealth.d.ts +15 -0
- package/dist/hooks/observability/useBatchedResourcesHealth.d.ts.map +1 -0
- package/dist/hooks/observability/useBusinessImpact.d.ts +9 -0
- package/dist/hooks/observability/useBusinessImpact.d.ts.map +1 -0
- package/dist/hooks/observability/useCostBreakdown.d.ts +10 -0
- package/dist/hooks/observability/useCostBreakdown.d.ts.map +1 -0
- package/dist/hooks/observability/useCostByModel.d.ts +3 -0
- package/dist/hooks/observability/useCostByModel.d.ts.map +1 -0
- package/dist/hooks/observability/useCostTrends.d.ts +3 -0
- package/dist/hooks/observability/useCostTrends.d.ts.map +1 -0
- package/dist/hooks/observability/useDashboardMetrics.d.ts +3 -0
- package/dist/hooks/observability/useDashboardMetrics.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorAnalysis.d.ts +7 -0
- package/dist/hooks/observability/useErrorAnalysis.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorDetails.d.ts +20 -0
- package/dist/hooks/observability/useErrorDetails.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorDistribution.d.ts +12 -0
- package/dist/hooks/observability/useErrorDistribution.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorTrends.d.ts +12 -0
- package/dist/hooks/observability/useErrorTrends.d.ts.map +1 -0
- package/dist/hooks/observability/useRecentExecutionsByResource.d.ts +18 -0
- package/dist/hooks/observability/useRecentExecutionsByResource.d.ts.map +1 -0
- package/dist/hooks/observability/useResolveError.d.ts +17 -0
- package/dist/hooks/observability/useResolveError.d.ts.map +1 -0
- package/dist/hooks/observability/useResourcesHealth.d.ts +13 -0
- package/dist/hooks/observability/useResourcesHealth.d.ts.map +1 -0
- package/dist/hooks/observability/useTopFailingResources.d.ts +13 -0
- package/dist/hooks/observability/useTopFailingResources.d.ts.map +1 -0
- package/dist/hooks/observability/useUnresolvedErrors.d.ts +15 -0
- package/dist/hooks/observability/useUnresolvedErrors.d.ts.map +1 -0
- package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts +24 -0
- package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts.map +1 -0
- package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts +3 -0
- package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts.map +1 -0
- package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts +35 -0
- package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/index.d.ts +8 -0
- package/dist/hooks/operations/command-view/index.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts +24 -0
- package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useCommandViewData.d.ts +11 -0
- package/dist/hooks/operations/command-view/useCommandViewData.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useCommandViewStats.d.ts +12 -0
- package/dist/hooks/operations/command-view/useCommandViewStats.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useResourceErrors.d.ts +22 -0
- package/dist/hooks/operations/command-view/useResourceErrors.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useResourceExecutions.d.ts +22 -0
- package/dist/hooks/operations/command-view/useResourceExecutions.d.ts.map +1 -0
- package/dist/hooks/operations/index.d.ts +4 -0
- package/dist/hooks/operations/index.d.ts.map +1 -0
- package/dist/hooks/operations/knowledge-base/index.d.ts +3 -0
- package/dist/hooks/operations/knowledge-base/index.d.ts.map +1 -0
- package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts +27 -0
- package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts.map +1 -0
- package/dist/hooks/operations/settings/index.d.ts +4 -0
- package/dist/hooks/operations/settings/index.d.ts.map +1 -0
- package/dist/hooks/operations/settings/useOAuthFlow.d.ts +17 -0
- package/dist/hooks/operations/settings/useOAuthFlow.d.ts.map +1 -0
- package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts +17 -0
- package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts.map +1 -0
- package/dist/hooks/operations/shared/index.d.ts +6 -0
- package/dist/hooks/operations/shared/index.d.ts.map +1 -0
- package/dist/hooks/operations/shared/queryKeys.d.ts +23 -0
- package/dist/hooks/operations/shared/queryKeys.d.ts.map +1 -0
- package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts +11 -0
- package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts.map +1 -0
- package/dist/hooks/operations/shared/useExecutionPanelState.d.ts +46 -0
- package/dist/hooks/operations/shared/useExecutionPanelState.d.ts.map +1 -0
- package/dist/hooks/published.css +14 -0
- package/dist/hooks/published.d.ts +21 -6037
- package/dist/hooks/published.d.ts.map +1 -0
- package/dist/hooks/published.js +12 -12
- package/dist/hooks/scheduling/index.d.ts +7 -0
- package/dist/hooks/scheduling/index.d.ts.map +1 -0
- package/dist/hooks/scheduling/useScheduledTasks.d.ts +19 -0
- package/dist/hooks/scheduling/useScheduledTasks.d.ts.map +1 -0
- package/dist/hooks/scheduling/useSchedules.d.ts +185 -0
- package/dist/hooks/scheduling/useSchedules.d.ts.map +1 -0
- package/dist/hooks/sessions/index.d.ts +8 -0
- package/dist/hooks/sessions/index.d.ts.map +1 -0
- package/dist/hooks/sessions/useSessionExecutions.d.ts +13 -0
- package/dist/hooks/sessions/useSessionExecutions.d.ts.map +1 -0
- package/dist/hooks/sessions/useSessionMessages.d.ts +7 -0
- package/dist/hooks/sessions/useSessionMessages.d.ts.map +1 -0
- package/dist/hooks/sessions/useSessions.d.ts +26 -0
- package/dist/hooks/sessions/useSessions.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/index.d.ts +7 -0
- package/dist/hooks/settings/api-keys/index.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts +3 -0
- package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts +2 -0
- package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/useListApiKeys.d.ts +2 -0
- package/dist/hooks/settings/api-keys/useListApiKeys.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts +5 -0
- package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/index.d.ts +7 -0
- package/dist/hooks/settings/credentials/index.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/useCreateCredential.d.ts +3 -0
- package/dist/hooks/settings/credentials/useCreateCredential.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/useCredentials.d.ts +8 -0
- package/dist/hooks/settings/credentials/useCredentials.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/useDeleteCredential.d.ts +2 -0
- package/dist/hooks/settings/credentials/useDeleteCredential.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/useUpdateCredential.d.ts +10 -0
- package/dist/hooks/settings/credentials/useUpdateCredential.d.ts.map +1 -0
- package/dist/hooks/settings/deployments/index.d.ts +5 -0
- package/dist/hooks/settings/deployments/index.d.ts.map +1 -0
- package/dist/hooks/settings/deployments/useDeploymentActions.d.ts +4 -0
- package/dist/hooks/settings/deployments/useDeploymentActions.d.ts.map +1 -0
- package/dist/hooks/settings/deployments/useListDeployments.d.ts +2 -0
- package/dist/hooks/settings/deployments/useListDeployments.d.ts.map +1 -0
- package/dist/hooks/settings/index.d.ts +6 -0
- package/dist/hooks/settings/index.d.ts.map +1 -0
- package/dist/hooks/settings/organization/index.d.ts +6 -0
- package/dist/hooks/settings/organization/index.d.ts.map +1 -0
- package/dist/hooks/settings/organization/useDeactivateMembership.d.ts +11 -0
- package/dist/hooks/settings/organization/useDeactivateMembership.d.ts.map +1 -0
- package/dist/hooks/settings/organization/useReactivateMembership.d.ts +11 -0
- package/dist/hooks/settings/organization/useReactivateMembership.d.ts.map +1 -0
- package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts +8 -0
- package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts.map +1 -0
- package/dist/hooks/settings/organization/useUserMemberships.d.ts +3 -0
- package/dist/hooks/settings/organization/useUserMemberships.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/index.d.ts +7 -0
- package/dist/hooks/settings/webhooks/index.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts +18 -0
- package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts +2 -0
- package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts +14 -0
- package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts +18 -0
- package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts +27 -0
- package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts.map +1 -0
- package/dist/hooks/useOrganizationMembers.d.ts +18 -0
- package/dist/hooks/useOrganizationMembers.d.ts.map +1 -0
- package/dist/index.css +14 -0
- package/dist/index.d.ts +15 -8494
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -15
- package/dist/initialization/InitializationProvider.d.ts +48 -0
- package/dist/initialization/InitializationProvider.d.ts.map +1 -0
- package/dist/initialization/hooks/useAppInitialization.d.ts +32 -0
- package/dist/initialization/hooks/useAppInitialization.d.ts.map +1 -0
- package/dist/initialization/index.d.ts +23 -2526
- package/dist/initialization/index.d.ts.map +1 -0
- package/dist/initialization/index.js +2 -2
- package/dist/layout/index.d.ts +7 -1
- package/dist/layout/index.js +7 -5
- package/dist/organization/context/OrganizationProvider.d.ts +24 -0
- package/dist/organization/context/OrganizationProvider.d.ts.map +1 -0
- package/dist/organization/hooks/useOrgInitialization.d.ts +56 -0
- package/dist/organization/hooks/useOrgInitialization.d.ts.map +1 -0
- package/dist/organization/index.d.ts +23 -274
- package/dist/organization/index.d.ts.map +1 -0
- package/dist/organization/index.js +2 -2
- package/dist/profile/context/ProfileProvider.d.ts +31 -0
- package/dist/profile/context/ProfileProvider.d.ts.map +1 -0
- package/dist/profile/hooks/useUserProfile.d.ts +38 -0
- package/dist/profile/hooks/useUserProfile.d.ts.map +1 -0
- package/dist/profile/index.d.ts +15 -2477
- package/dist/profile/index.d.ts.map +1 -0
- package/dist/provider/CoreAuthKitInner.d.ts +12 -0
- package/dist/provider/CoreAuthKitInner.d.ts.map +1 -0
- package/dist/provider/ElevasisCoreProvider.d.ts +25 -0
- package/dist/provider/ElevasisCoreProvider.d.ts.map +1 -0
- package/dist/provider/ElevasisServiceContext.d.ts +31 -0
- package/dist/provider/ElevasisServiceContext.d.ts.map +1 -0
- package/dist/provider/ElevasisUIProvider.d.ts +28 -0
- package/dist/provider/ElevasisUIProvider.d.ts.map +1 -0
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +2 -0
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +1 -0
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +2 -0
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +1 -0
- package/dist/provider/index.css +14 -0
- package/dist/provider/index.d.ts +11 -334
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +10 -10
- package/dist/provider/published.d.ts +11 -309
- package/dist/provider/published.d.ts.map +1 -0
- package/dist/provider/published.js +6 -6
- package/dist/provider/types.d.ts +151 -0
- package/dist/provider/types.d.ts.map +1 -0
- package/dist/sdk-barrel.d.ts +20 -0
- package/dist/sdk-barrel.d.ts.map +1 -0
- package/dist/theme/PresetsContext.d.ts +4 -0
- package/dist/theme/PresetsContext.d.ts.map +1 -0
- package/dist/theme/cssVariables.d.ts +12 -0
- package/dist/theme/cssVariables.d.ts.map +1 -0
- package/dist/theme/index.d.ts +10 -148
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/__tests__/getPreset.test.d.ts +2 -0
- package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +1 -0
- package/dist/theme/presets/abyss.d.ts +3 -0
- package/dist/theme/presets/abyss.d.ts.map +1 -0
- package/dist/theme/presets/aurora.d.ts +12 -0
- package/dist/theme/presets/aurora.d.ts.map +1 -0
- package/dist/theme/presets/canopy.d.ts +12 -0
- package/dist/theme/presets/canopy.d.ts.map +1 -0
- package/dist/theme/presets/canyon.d.ts +11 -0
- package/dist/theme/presets/canyon.d.ts.map +1 -0
- package/dist/theme/presets/cortex.d.ts +3 -0
- package/dist/theme/presets/cortex.d.ts.map +1 -0
- package/dist/theme/presets/cyber-punk.d.ts +11 -0
- package/dist/theme/presets/cyber-punk.d.ts.map +1 -0
- package/dist/theme/presets/cyber-strike.d.ts +13 -0
- package/dist/theme/presets/cyber-strike.d.ts.map +1 -0
- package/dist/theme/presets/cyber-volt.d.ts +12 -0
- package/dist/theme/presets/cyber-volt.d.ts.map +1 -0
- package/dist/theme/presets/default.d.ts +4 -0
- package/dist/theme/presets/default.d.ts.map +1 -0
- package/dist/theme/presets/ember.d.ts +12 -0
- package/dist/theme/presets/ember.d.ts.map +1 -0
- package/dist/theme/presets/helios.d.ts +3 -0
- package/dist/theme/presets/helios.d.ts.map +1 -0
- package/dist/theme/presets/honey.d.ts +12 -0
- package/dist/theme/presets/honey.d.ts.map +1 -0
- package/dist/theme/presets/index.d.ts +8 -0
- package/dist/theme/presets/index.d.ts.map +1 -0
- package/dist/theme/presets/midnight.d.ts +12 -0
- package/dist/theme/presets/midnight.d.ts.map +1 -0
- package/dist/theme/presets/nirvana.d.ts +16 -0
- package/dist/theme/presets/nirvana.d.ts.map +1 -0
- package/dist/theme/presets/obsidian.d.ts +3 -0
- package/dist/theme/presets/obsidian.d.ts.map +1 -0
- package/dist/theme/presets/regal.d.ts +8 -0
- package/dist/theme/presets/regal.d.ts.map +1 -0
- package/dist/theme/presets/rose-gold.d.ts +12 -0
- package/dist/theme/presets/rose-gold.d.ts.map +1 -0
- package/dist/theme/presets/slate.d.ts +3 -0
- package/dist/theme/presets/slate.d.ts.map +1 -0
- package/dist/theme/presets/synapse.d.ts +10 -0
- package/dist/theme/presets/synapse.d.ts.map +1 -0
- package/dist/theme/presets/tactical.d.ts +8 -0
- package/dist/theme/presets/tactical.d.ts.map +1 -0
- package/dist/theme/presets/types.d.ts +43 -0
- package/dist/theme/presets/types.d.ts.map +1 -0
- package/dist/theme/presets/verdant.d.ts +3 -0
- package/dist/theme/presets/verdant.d.ts.map +1 -0
- package/dist/theme/presets/wave.d.ts +14 -0
- package/dist/theme/presets/wave.d.ts.map +1 -0
- package/dist/theme/useAvailablePresets.d.ts +16 -0
- package/dist/theme/useAvailablePresets.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.ts +12 -1
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +80 -0
- package/dist/zustand/index.js +105 -0
- package/package.json +53 -2
- package/dist/chunk-2YW3LDFT.js +0 -1542
- package/dist/theme/presets/cyber-void.js +0 -75
- package/dist/{chunk-DVKEEY5J.js → chunk-TUXTSEAF.js} +1 -1
- package/dist/{chunk-U2522LSW.js → chunk-V7XHGJQZ.js} +1 -1
package/dist/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../chunk-XCYKC6OZ.js';
|
|
2
|
-
export { ApiClientProvider, useApiClient, useApiClientContext } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { ApiClientProvider, useApiClient, useApiClientContext } from '../chunk-NVOCKXUQ.js';
|
|
3
|
+
import '../chunk-IOKL7BKE.js';
|
|
4
4
|
import '../chunk-DD3CCMCZ.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface AdminGuardProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Path to redirect non-admin users to.
|
|
6
|
+
* @default '/'
|
|
7
|
+
*/
|
|
8
|
+
redirectTo?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Rendered while user readiness is being determined.
|
|
11
|
+
* When not provided, nothing is rendered during initialization.
|
|
12
|
+
*/
|
|
13
|
+
fallback?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Headless route guard for platform admin pages.
|
|
17
|
+
*
|
|
18
|
+
* Reads `profile.is_platform_admin` from the nearest InitializationProvider.
|
|
19
|
+
* Non-admin users are redirected to `redirectTo` (default: '/').
|
|
20
|
+
*
|
|
21
|
+
* Must be nested inside a ProtectedRoute (or equivalent) so that
|
|
22
|
+
* `userReady` is guaranteed to be true when this guard runs.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* <ProtectedRoute>
|
|
26
|
+
* <AdminGuard fallback={<AppShellLoader />}>
|
|
27
|
+
* <AdminDashboard />
|
|
28
|
+
* </AdminGuard>
|
|
29
|
+
* </ProtectedRoute>
|
|
30
|
+
*/
|
|
31
|
+
export declare function AdminGuard({ children, redirectTo, fallback }: AdminGuardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
+
//# sourceMappingURL=AdminGuard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminGuard.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/AdminGuard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,SAAS,CAAA;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,UAAgB,EAAE,QAAe,EAAE,EAAE,eAAe,kDA0B1F"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { InitializationError } from '../../initialization/hooks/useAppInitialization';
|
|
3
|
+
export interface ProtectedRouteProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Path to redirect to when user is unauthenticated and the auth adapter
|
|
7
|
+
* does not provide a `signIn` function.
|
|
8
|
+
* @default '/login'
|
|
9
|
+
*/
|
|
10
|
+
redirectTo?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Rendered while initialization is in progress.
|
|
13
|
+
* When not provided, nothing is rendered during initialization.
|
|
14
|
+
*/
|
|
15
|
+
fallback?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Rendered when initialization fails with a non-organization error.
|
|
18
|
+
* Receives the error and a retry callback.
|
|
19
|
+
* When not provided, the error is silently swallowed (children not rendered).
|
|
20
|
+
*/
|
|
21
|
+
errorFallback?: (error: InitializationError, retry: () => void) => ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* When true (default), waits for both user AND organization to be ready
|
|
24
|
+
* before rendering children. When false, only waits for user readiness.
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
waitForOrganization?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Headless route guard for authenticated pages.
|
|
31
|
+
*
|
|
32
|
+
* Reads initialization state from the nearest InitializationProvider.
|
|
33
|
+
*
|
|
34
|
+
* When `canRecover()` returns true (refresh token exists), unauthenticated users
|
|
35
|
+
* are sent directly to WorkOS AuthKit via `signIn()`. WorkOS checks its
|
|
36
|
+
* server-side session and either signs the user in immediately (page-reload case)
|
|
37
|
+
* or shows a login form (logged-out case). Explicit logout destroys the
|
|
38
|
+
* server-side session, so the next auto-signIn correctly presents a login form
|
|
39
|
+
* rather than looping.
|
|
40
|
+
*
|
|
41
|
+
* When `canRecover()` returns false, falls back to navigating to `redirectTo`
|
|
42
|
+
* (default: '/login') with a `returnTo` search param.
|
|
43
|
+
*
|
|
44
|
+
* Organization-layer errors are allowed through -- routes like /invitations
|
|
45
|
+
* must be accessible even when the user has no org membership.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* // With custom fallback (your Mantine loader):
|
|
49
|
+
* <ProtectedRoute fallback={<AppShellLoader />}>
|
|
50
|
+
* <DashboardPage />
|
|
51
|
+
* </ProtectedRoute>
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* // Wait only for user, not org (e.g. /invitations route):
|
|
55
|
+
* <ProtectedRoute waitForOrganization={false}>
|
|
56
|
+
* <InvitationsPage />
|
|
57
|
+
* </ProtectedRoute>
|
|
58
|
+
*/
|
|
59
|
+
export declare function ProtectedRoute({ children, redirectTo, fallback, errorFallback, waitForOrganization }: ProtectedRouteProps): import("react/jsx-runtime").JSX.Element | null;
|
|
60
|
+
//# sourceMappingURL=ProtectedRoute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProtectedRoute.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/ProtectedRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAA;AAE1F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IAC5E;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,UAAqB,EACrB,QAAe,EACf,aAAa,EACb,mBAA0B,EAC3B,EAAE,mBAAmB,kDAyDrB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AdminGuard Tests (shared @repo/ui guard)
|
|
3
|
+
*
|
|
4
|
+
* Tests role-based access control for platform admin pages:
|
|
5
|
+
* - Shows fallback while user is not ready
|
|
6
|
+
* - Renders children for platform admin users
|
|
7
|
+
* - Redirects non-admin users to redirectTo (default: '/')
|
|
8
|
+
* - Handles missing profile gracefully
|
|
9
|
+
* - Supports custom redirectTo
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=AdminGuard.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminGuard.test.d.ts","sourceRoot":"","sources":["../../../../src/auth/guards/__tests__/AdminGuard.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProtectedRoute Tests (shared @repo/ui guard)
|
|
3
|
+
*
|
|
4
|
+
* Tests headless authentication guard behavior:
|
|
5
|
+
* - Shows fallback while initializing
|
|
6
|
+
* - Redirects unauthenticated users to login with returnTo
|
|
7
|
+
* - Renders children when user is ready
|
|
8
|
+
* - Renders children when org error (allows /invitations route pattern)
|
|
9
|
+
* - Shows errorFallback for non-organization errors
|
|
10
|
+
* - Waits for org readiness when waitForOrganization=true (default)
|
|
11
|
+
* - Renders after user ready when waitForOrganization=false
|
|
12
|
+
*/
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ProtectedRoute.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProtectedRoute.test.d.ts","sourceRoot":"","sources":["../../../../src/auth/guards/__tests__/ProtectedRoute.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,176 +1,16 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
interface AuthContextValue {
|
|
6
|
-
user: {
|
|
7
|
-
id: string;
|
|
8
|
-
} | null;
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
getAccessToken: () => Promise<string>;
|
|
11
|
-
organizationId?: string | null;
|
|
12
|
-
/**
|
|
13
|
-
* Trigger WorkOS AuthKit's sign-in flow (redirect to WorkOS hosted auth page).
|
|
14
|
-
* Used by ProtectedRoute for auto-recovery when `canRecover()` returns true.
|
|
15
|
-
*/
|
|
16
|
-
signIn: (options?: {
|
|
17
|
-
state?: {
|
|
18
|
-
returnTo?: string;
|
|
19
|
-
};
|
|
20
|
-
}) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Returns true when a previous session can be recovered (refresh token
|
|
23
|
-
* exists in storage). ProtectedRoute calls `signIn()` only when this returns
|
|
24
|
-
* true; otherwise it navigates to the login page.
|
|
25
|
-
*
|
|
26
|
-
* Explicit logout clears the stored token, so canRecover() returns false
|
|
27
|
-
* and the user sees the login page as expected.
|
|
28
|
-
*/
|
|
29
|
-
canRecover: () => boolean;
|
|
30
|
-
}
|
|
31
|
-
declare function useAuthContext(): AuthContextValue;
|
|
32
|
-
declare function AuthProvider({ value, children }: {
|
|
33
|
-
value: AuthContextValue;
|
|
34
|
-
children: ReactNode;
|
|
35
|
-
}): react.FunctionComponentElement<react.ProviderProps<AuthContextValue | null>>;
|
|
36
|
-
|
|
37
1
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* useEffect(() => {
|
|
48
|
-
* fetchEventSourceWithTokenRefresh({
|
|
49
|
-
* getToken: getAccessToken,
|
|
50
|
-
* // ...
|
|
51
|
-
* })
|
|
52
|
-
* }, [getAccessToken]) // Won't re-run on every render
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
declare function useStableAccessToken(): () => Promise<string>;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Checks WorkOS session validity when window/tab regains focus
|
|
59
|
-
*
|
|
60
|
-
* When window or tab becomes visible after inactivity, validates session
|
|
61
|
-
* by attempting to get access token. If session expired (WorkOS inactivity
|
|
62
|
-
* timeout exceeded), signs out user and redirects to login.
|
|
63
|
-
*
|
|
64
|
-
* How it works:
|
|
65
|
-
* 1. Window/tab regains focus after inactivity
|
|
66
|
-
* 2. Cancel all pending queries to prevent 401 error cascade
|
|
67
|
-
* 3. Attempt to get access token from WorkOS
|
|
68
|
-
* 4. If successful: Resume queries with fresh token
|
|
69
|
-
* 5. If failed (session expired): Sign out and redirect to login
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* // In __root.tsx
|
|
73
|
-
* export function RootLayoutComponent() {
|
|
74
|
-
* useSessionCheck()
|
|
75
|
-
* return <YourApp />
|
|
76
|
-
* }
|
|
77
|
-
*/
|
|
78
|
-
declare function useSessionCheck(): void;
|
|
79
|
-
|
|
80
|
-
interface InitializationError {
|
|
81
|
-
layer: 'auth' | 'profile' | 'organization';
|
|
82
|
-
message: string;
|
|
83
|
-
originalError?: Error;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
interface ProtectedRouteProps {
|
|
87
|
-
children: ReactNode;
|
|
88
|
-
/**
|
|
89
|
-
* Path to redirect to when user is unauthenticated and the auth adapter
|
|
90
|
-
* does not provide a `signIn` function.
|
|
91
|
-
* @default '/login'
|
|
92
|
-
*/
|
|
93
|
-
redirectTo?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Rendered while initialization is in progress.
|
|
96
|
-
* When not provided, nothing is rendered during initialization.
|
|
97
|
-
*/
|
|
98
|
-
fallback?: ReactNode;
|
|
99
|
-
/**
|
|
100
|
-
* Rendered when initialization fails with a non-organization error.
|
|
101
|
-
* Receives the error and a retry callback.
|
|
102
|
-
* When not provided, the error is silently swallowed (children not rendered).
|
|
103
|
-
*/
|
|
104
|
-
errorFallback?: (error: InitializationError, retry: () => void) => ReactNode;
|
|
105
|
-
/**
|
|
106
|
-
* When true (default), waits for both user AND organization to be ready
|
|
107
|
-
* before rendering children. When false, only waits for user readiness.
|
|
108
|
-
* @default true
|
|
109
|
-
*/
|
|
110
|
-
waitForOrganization?: boolean;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Headless route guard for authenticated pages.
|
|
114
|
-
*
|
|
115
|
-
* Reads initialization state from the nearest InitializationProvider.
|
|
116
|
-
*
|
|
117
|
-
* When `canRecover()` returns true (refresh token exists), unauthenticated users
|
|
118
|
-
* are sent directly to WorkOS AuthKit via `signIn()`. WorkOS checks its
|
|
119
|
-
* server-side session and either signs the user in immediately (page-reload case)
|
|
120
|
-
* or shows a login form (logged-out case). Explicit logout destroys the
|
|
121
|
-
* server-side session, so the next auto-signIn correctly presents a login form
|
|
122
|
-
* rather than looping.
|
|
123
|
-
*
|
|
124
|
-
* When `canRecover()` returns false, falls back to navigating to `redirectTo`
|
|
125
|
-
* (default: '/login') with a `returnTo` search param.
|
|
126
|
-
*
|
|
127
|
-
* Organization-layer errors are allowed through -- routes like /invitations
|
|
128
|
-
* must be accessible even when the user has no org membership.
|
|
129
|
-
*
|
|
130
|
-
* @example
|
|
131
|
-
* // With custom fallback (your Mantine loader):
|
|
132
|
-
* <ProtectedRoute fallback={<AppShellLoader />}>
|
|
133
|
-
* <DashboardPage />
|
|
134
|
-
* </ProtectedRoute>
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* // Wait only for user, not org (e.g. /invitations route):
|
|
138
|
-
* <ProtectedRoute waitForOrganization={false}>
|
|
139
|
-
* <InvitationsPage />
|
|
140
|
-
* </ProtectedRoute>
|
|
141
|
-
*/
|
|
142
|
-
declare function ProtectedRoute({ children, redirectTo, fallback, errorFallback, waitForOrganization }: ProtectedRouteProps): react_jsx_runtime.JSX.Element | null;
|
|
143
|
-
|
|
144
|
-
interface AdminGuardProps {
|
|
145
|
-
children: ReactNode;
|
|
146
|
-
/**
|
|
147
|
-
* Path to redirect non-admin users to.
|
|
148
|
-
* @default '/'
|
|
149
|
-
*/
|
|
150
|
-
redirectTo?: string;
|
|
151
|
-
/**
|
|
152
|
-
* Rendered while user readiness is being determined.
|
|
153
|
-
* When not provided, nothing is rendered during initialization.
|
|
154
|
-
*/
|
|
155
|
-
fallback?: ReactNode;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Headless route guard for platform admin pages.
|
|
159
|
-
*
|
|
160
|
-
* Reads `profile.is_platform_admin` from the nearest InitializationProvider.
|
|
161
|
-
* Non-admin users are redirected to `redirectTo` (default: '/').
|
|
162
|
-
*
|
|
163
|
-
* Must be nested inside a ProtectedRoute (or equivalent) so that
|
|
164
|
-
* `userReady` is guaranteed to be true when this guard runs.
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* <ProtectedRoute>
|
|
168
|
-
* <AdminGuard fallback={<AppShellLoader />}>
|
|
169
|
-
* <AdminDashboard />
|
|
170
|
-
* </AdminGuard>
|
|
171
|
-
* </ProtectedRoute>
|
|
2
|
+
* Auth module - Pure authentication concerns
|
|
3
|
+
*
|
|
4
|
+
* Exports:
|
|
5
|
+
* - AuthContextValue: Interface for auth state (user, isLoading, getAccessToken, organizationId, signIn, canRecover)
|
|
6
|
+
* - AuthProvider: React context provider for AuthContextValue
|
|
7
|
+
* - useAuthContext: Hook to consume AuthContextValue from context
|
|
8
|
+
* - useStableAccessToken: Stable reference to getAccessToken for SSE connections
|
|
9
|
+
* - useSessionCheck: Validates session on tab refocus
|
|
172
10
|
*/
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
export
|
|
176
|
-
export
|
|
11
|
+
export { AuthProvider, useAuthContext, type AuthContextValue } from './context';
|
|
12
|
+
export * from './hooks/useStableAccessToken';
|
|
13
|
+
export * from './hooks/useSessionCheck';
|
|
14
|
+
export { ProtectedRoute, type ProtectedRouteProps } from './guards/ProtectedRoute';
|
|
15
|
+
export { AdminGuard, type AdminGuardProps } from './guards/AdminGuard';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC/E,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClF,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/auth/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck } from '../chunk-
|
|
1
|
+
export { AdminGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck } from '../chunk-RWQIFKMJ.js';
|
|
2
2
|
export { useStableAccessToken } from '../chunk-ALA56RGZ.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-QEPXAWE2.js';
|
|
3
|
+
import '../chunk-TUXTSEAF.js';
|
|
5
4
|
import '../chunk-DD3CCMCZ.js';
|
|
5
|
+
import '../chunk-QEPXAWE2.js';
|
|
6
6
|
export { AuthProvider, useAuthContext } from '../chunk-BRJ3QZ4E.js';
|
package/dist/charts/index.css
CHANGED
|
@@ -91,6 +91,9 @@
|
|
|
91
91
|
animation: chevronPulse 2s ease-in-out infinite;
|
|
92
92
|
filter: drop-shadow(0 0 1.5px var(--loader-color));
|
|
93
93
|
}
|
|
94
|
+
[data-mantine-color-scheme=light] .chevron {
|
|
95
|
+
filter: none;
|
|
96
|
+
}
|
|
94
97
|
.c1 {
|
|
95
98
|
animation-delay: 0s;
|
|
96
99
|
}
|
|
@@ -110,3 +113,14 @@
|
|
|
110
113
|
filter: drop-shadow(0 0 3px var(--loader-color));
|
|
111
114
|
}
|
|
112
115
|
}
|
|
116
|
+
[data-mantine-color-scheme=light] .chevron {
|
|
117
|
+
animation-name: chevronPulseLight;
|
|
118
|
+
}
|
|
119
|
+
@keyframes chevronPulseLight {
|
|
120
|
+
0%, 100% {
|
|
121
|
+
opacity: 0.2;
|
|
122
|
+
}
|
|
123
|
+
40%, 60% {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
package/dist/charts/index.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-ERVB3QJQ.js';
|
|
2
|
+
import '../chunk-AWMZCYKH.js';
|
|
3
|
+
import '../chunk-NNKKBSJN.js';
|
|
4
|
+
import '../chunk-QJ2S46NI.js';
|
|
3
5
|
import '../chunk-LXHZYSMQ.js';
|
|
4
6
|
import '../chunk-MHW43EOH.js';
|
|
5
7
|
import '../chunk-ELJIFLCB.js';
|
|
6
8
|
import '../chunk-SZHARWKU.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-IOKL7BKE.js';
|
|
10
|
+
import '../chunk-RWQIFKMJ.js';
|
|
9
11
|
import '../chunk-ALA56RGZ.js';
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-QEPXAWE2.js';
|
|
12
|
+
import '../chunk-TUXTSEAF.js';
|
|
12
13
|
import '../chunk-DD3CCMCZ.js';
|
|
14
|
+
import '../chunk-QEPXAWE2.js';
|
|
13
15
|
import '../chunk-BRJ3QZ4E.js';
|
|
14
16
|
import '../chunk-Q7DJKLEN.js';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { useCyberColors, CyberLegendItem, CyberAreaChart } from './chunk-ERVB3QJQ.js';
|
|
2
|
+
import { CardHeader, EmptyState } from './chunk-AWMZCYKH.js';
|
|
3
|
+
import { useResourcesHealth } from './chunk-AQ5MQDSS.js';
|
|
4
|
+
import { getTimeRangeDates, formatBucketTime } from './chunk-LXHZYSMQ.js';
|
|
5
|
+
import { Paper, Center, Loader, Group } from '@mantine/core';
|
|
6
|
+
import { IconActivity, IconChartBar } from '@tabler/icons-react';
|
|
7
|
+
import { useMemo } from 'react';
|
|
8
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
function ResourceHealthPanel({ resourceId, resourceType, timeRange }) {
|
|
11
|
+
const colors = useCyberColors();
|
|
12
|
+
const { startDate, endDate } = useMemo(() => getTimeRangeDates(timeRange), [timeRange]);
|
|
13
|
+
const granularity = ["1h", "24h"].includes(timeRange) ? "hour" : "day";
|
|
14
|
+
const { data, isLoading } = useResourcesHealth({
|
|
15
|
+
resources: [{ entityType: resourceType, entityId: resourceId }],
|
|
16
|
+
startDate,
|
|
17
|
+
endDate,
|
|
18
|
+
granularity
|
|
19
|
+
});
|
|
20
|
+
const resourceHealth = data?.resources?.[0];
|
|
21
|
+
const chartData = useMemo(() => {
|
|
22
|
+
if (!resourceHealth?.trendData) return [];
|
|
23
|
+
return resourceHealth.trendData.map((point) => ({
|
|
24
|
+
time: point.time,
|
|
25
|
+
Success: (point.success || 0) - (point.warning || 0),
|
|
26
|
+
Warning: point.warning || 0,
|
|
27
|
+
Failed: point.failure || 0
|
|
28
|
+
}));
|
|
29
|
+
}, [resourceHealth?.trendData]);
|
|
30
|
+
const xTickFormatter = useMemo(() => (value) => formatBucketTime(value, granularity), [granularity]);
|
|
31
|
+
if (isLoading) {
|
|
32
|
+
return /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsx(Center, { p: "xl", children: /* @__PURE__ */ jsx(Loader, {}) }) });
|
|
33
|
+
}
|
|
34
|
+
const summary = resourceHealth?.summary;
|
|
35
|
+
return /* @__PURE__ */ jsxs(Paper, { withBorder: true, children: [
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
CardHeader,
|
|
38
|
+
{
|
|
39
|
+
icon: /* @__PURE__ */ jsx(IconActivity, { size: 18 }),
|
|
40
|
+
title: "Execution Health",
|
|
41
|
+
subtitle: `${summary?.total || 0} executions, ${summary?.successRate?.toFixed(1) || 0}% success rate`
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
chartData.length === 0 ? /* @__PURE__ */ jsx(EmptyState, { icon: IconChartBar, title: "No execution data for this time range" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45
|
+
/* @__PURE__ */ jsxs(Group, { gap: "lg", justify: "center", mb: "xs", h: 24, align: "center", children: [
|
|
46
|
+
/* @__PURE__ */ jsx(CyberLegendItem, { color: colors.green, label: "Success" }),
|
|
47
|
+
/* @__PURE__ */ jsx(CyberLegendItem, { color: colors.yellow, label: "Warning" }),
|
|
48
|
+
/* @__PURE__ */ jsx(CyberLegendItem, { color: colors.red, label: "Failed" })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ jsx(
|
|
51
|
+
CyberAreaChart,
|
|
52
|
+
{
|
|
53
|
+
data: chartData,
|
|
54
|
+
series: [
|
|
55
|
+
{ dataKey: "Success", color: "green", name: "Success" },
|
|
56
|
+
{ dataKey: "Warning", color: "yellow", name: "Warning" },
|
|
57
|
+
{ dataKey: "Failed", color: "red", name: "Failed" }
|
|
58
|
+
],
|
|
59
|
+
height: 200,
|
|
60
|
+
yDomain: [0, "auto"],
|
|
61
|
+
xTickFormatter
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
] })
|
|
65
|
+
] });
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { ResourceHealthPanel };
|
|
@@ -2,12 +2,18 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useComputedColorScheme } from '@mantine/core';
|
|
3
3
|
|
|
4
4
|
// src/components/layout/backgrounds/PerspectiveGrid.tsx
|
|
5
|
+
var SUBTLE_DEFAULT_GLOW = "color-mix(in srgb, color-mix(in srgb, var(--color-primary) 20%, var(--color-border)) 30%, transparent)";
|
|
6
|
+
var PROMINENT_DEFAULT_GLOW = "color-mix(in srgb, var(--color-primary) 28%, transparent)";
|
|
5
7
|
function PerspectiveGrid({
|
|
6
|
-
glowColor
|
|
8
|
+
glowColor: glowColorProp,
|
|
7
9
|
lineColor: lineColorProp,
|
|
10
|
+
prominentGlow = false,
|
|
8
11
|
className
|
|
9
12
|
}) {
|
|
10
13
|
const lineColor = lineColorProp ?? "color-mix(in srgb, var(--color-border) 50%, transparent)";
|
|
14
|
+
const glowColor = glowColorProp ?? (prominentGlow ? PROMINENT_DEFAULT_GLOW : SUBTLE_DEFAULT_GLOW);
|
|
15
|
+
const glowHeight = prominentGlow ? "70%" : "60%";
|
|
16
|
+
const glowGradient = prominentGlow ? `radial-gradient(ellipse 100% 80% at 50% 110%, ${glowColor} -10%, transparent 50%)` : `radial-gradient(ellipse 90% 75% at 50% 112%, ${glowColor} -15%, transparent 45%)`;
|
|
11
17
|
return /* @__PURE__ */ jsxs(
|
|
12
18
|
"div",
|
|
13
19
|
{
|
|
@@ -29,8 +35,8 @@ function PerspectiveGrid({
|
|
|
29
35
|
left: "50%",
|
|
30
36
|
transform: "translateX(-50%)",
|
|
31
37
|
width: "100%",
|
|
32
|
-
height:
|
|
33
|
-
background:
|
|
38
|
+
height: glowHeight,
|
|
39
|
+
background: glowGradient,
|
|
34
40
|
pointerEvents: "none"
|
|
35
41
|
}
|
|
36
42
|
}
|
|
@@ -477,8 +483,9 @@ function CyberParticles({ variant: _variant, className }) {
|
|
|
477
483
|
);
|
|
478
484
|
}
|
|
479
485
|
function CyberBackground({ variant }) {
|
|
486
|
+
const glowColor = variant === "volt" ? "color-mix(in srgb, var(--color-primary) 16%, transparent)" : void 0;
|
|
480
487
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
481
|
-
/* @__PURE__ */ jsx(PerspectiveGrid, { lineColor: "var(--color-border)" }),
|
|
488
|
+
/* @__PURE__ */ jsx(PerspectiveGrid, { lineColor: "var(--color-border)", prominentGlow: true, glowColor }),
|
|
482
489
|
/* @__PURE__ */ jsx(RadiantGlow, {}),
|
|
483
490
|
/* @__PURE__ */ jsx(FloatingOrbs, {}),
|
|
484
491
|
/* @__PURE__ */ jsx(CyberParticles, { variant }),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { getTimeRangeDates, observabilityKeys } from './chunk-LXHZYSMQ.js';
|
|
2
1
|
import { useSupabase } from './chunk-NJJ3NQ7B.js';
|
|
2
|
+
import { getTimeRangeDates, observabilityKeys } from './chunk-LXHZYSMQ.js';
|
|
3
3
|
import { GRAPH_CONSTANTS } from './chunk-F6RBK7NJ.js';
|
|
4
|
-
import { useNotificationAdapter } from './chunk-
|
|
5
|
-
import { HTTP_HEADERS } from './chunk-
|
|
6
|
-
import { STALE_TIME_MONITORING, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, STALE_TIME_DEFAULT, STALE_TIME_ADMIN } from './chunk-
|
|
4
|
+
import { useNotificationAdapter } from './chunk-R7WLWGPO.js';
|
|
5
|
+
import { HTTP_HEADERS } from './chunk-NVOCKXUQ.js';
|
|
6
|
+
import { STALE_TIME_MONITORING, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, STALE_TIME_DEFAULT, STALE_TIME_ADMIN } from './chunk-IOKL7BKE.js';
|
|
7
7
|
import { useStableAccessToken } from './chunk-ALA56RGZ.js';
|
|
8
|
-
import { useElevasisServices } from './chunk-QEPXAWE2.js';
|
|
9
8
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
9
|
+
import { useElevasisServices } from './chunk-QEPXAWE2.js';
|
|
10
10
|
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
11
11
|
import { useQuery, useQueryClient, useMutation, useQueries } from '@tanstack/react-query';
|
|
12
12
|
import { z } from 'zod';
|
|
@@ -891,6 +891,31 @@ function useExecutionHealth({ timeRange }) {
|
|
|
891
891
|
// 30s monitoring stale time
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
|
+
function useNotificationCount(args) {
|
|
895
|
+
const { notificationCount, notificationConnected, notificationError } = args;
|
|
896
|
+
const { apiRequest, isReady, organizationId } = useElevasisServices();
|
|
897
|
+
const query = useQuery({
|
|
898
|
+
queryKey: ["notifications", "unread-count", organizationId],
|
|
899
|
+
queryFn: async () => {
|
|
900
|
+
const response = await apiRequest("/notifications/unread-count");
|
|
901
|
+
return response.count;
|
|
902
|
+
},
|
|
903
|
+
enabled: isReady,
|
|
904
|
+
staleTime: Infinity
|
|
905
|
+
// SSE will keep it updated
|
|
906
|
+
});
|
|
907
|
+
return {
|
|
908
|
+
data: notificationCount !== null && notificationCount !== void 0 ? notificationCount : query.data,
|
|
909
|
+
isLoading: query.isLoading,
|
|
910
|
+
isError: query.isError,
|
|
911
|
+
error: query.error,
|
|
912
|
+
isSuccess: query.isSuccess,
|
|
913
|
+
status: query.status,
|
|
914
|
+
refetch: query.refetch,
|
|
915
|
+
sseConnected: notificationConnected,
|
|
916
|
+
sseError: notificationError
|
|
917
|
+
};
|
|
918
|
+
}
|
|
894
919
|
function useMarkAsRead() {
|
|
895
920
|
const queryClient = useQueryClient();
|
|
896
921
|
const { apiRequest } = useElevasisServices();
|
|
@@ -928,18 +953,6 @@ function useMarkAllAsRead() {
|
|
|
928
953
|
}
|
|
929
954
|
});
|
|
930
955
|
}
|
|
931
|
-
function useNotificationCount() {
|
|
932
|
-
const { apiRequest, isReady, organizationId } = useElevasisServices();
|
|
933
|
-
return useQuery({
|
|
934
|
-
queryKey: ["notifications", "unread-count", organizationId],
|
|
935
|
-
queryFn: async () => {
|
|
936
|
-
const response = await apiRequest("/notifications/unread-count");
|
|
937
|
-
return response.count;
|
|
938
|
-
},
|
|
939
|
-
enabled: isReady,
|
|
940
|
-
staleTime: 3e4
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
956
|
function useErrorNotification() {
|
|
944
957
|
const adapter = useNotificationAdapter();
|
|
945
958
|
return useCallback(
|