@oneuptime/common 11.4.0 → 11.5.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/Models/DatabaseModels/AIRun.ts +50 -0
- package/Models/DatabaseModels/AlertSeverity.ts +6 -0
- package/Models/DatabaseModels/IncidentSeverity.ts +6 -0
- package/Models/DatabaseModels/Index.ts +16 -0
- package/Models/DatabaseModels/IoTDeviceCredential.ts +471 -0
- package/Models/DatabaseModels/LlmLog.ts +56 -0
- package/Models/DatabaseModels/LlmProvider.ts +33 -0
- package/Models/DatabaseModels/NetworkDevice.ts +1385 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.ts +717 -0
- package/Models/DatabaseModels/NetworkDeviceLabelRule.ts +514 -0
- package/Models/DatabaseModels/NetworkDeviceOwnerRule.ts +596 -0
- package/Models/DatabaseModels/NetworkDeviceOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/NetworkDeviceOwnerUser.ts +486 -0
- package/Models/DatabaseModels/NetworkInterface.ts +563 -0
- package/Models/DatabaseModels/Project.ts +145 -0
- package/Models/DatabaseModels/TelemetryEntityRelationship.ts +54 -0
- package/Server/API/AIAgentTaskAPI.ts +10 -24
- package/Server/API/AIInvestigationAPI.ts +131 -63
- package/Server/API/AlertAPI.ts +5 -0
- package/Server/API/IncidentAPI.ts +10 -0
- package/Server/API/IncidentEpisodeAPI.ts +5 -0
- package/Server/API/LlmProviderAPI.ts +4 -0
- package/Server/API/ScheduledMaintenanceAPI.ts +5 -0
- package/Server/API/TelemetryAPI.ts +4 -3
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783650000000-AddAdditionalParamsToLlmProvider.ts +19 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783695782697-AddCacheTokenColumnsToLlmLog.ts +25 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783701585317-AddAlertInvestigationGating.ts +31 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783702431535-AddAiDailyAutonomousTokenLimitToProject.ts +19 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783720000000-AddNetworkDeviceTables.ts +105 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783721121260-AddAttemptCountToAIRun.ts +15 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783730000000-AddNetworkDeviceOwnersAndRules.ts +192 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783740000000-AddNetworkDeviceDiscoveryScan.ts +37 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783750000000-AddLldpNeighborsToNetworkDevice.ts +19 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783760576655-AddInvestigationTuningToProject.ts +25 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783762505482-AddTelemetryEntityRelationshipMetrics.ts +31 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783780000000-AddIoTDeviceCredentialTable.ts +79 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1783790000000-AddSnmpV3AuthColumnsToNetworkDevice.ts +49 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +24 -0
- package/Server/Services/AIAgentTaskService.ts +62 -0
- package/Server/Services/AIRunService.ts +58 -0
- package/Server/Services/AIService.ts +101 -0
- package/Server/Services/AnalyticsDatabaseService.ts +27 -0
- package/Server/Services/IncidentService.ts +14 -41
- package/Server/Services/Index.ts +14 -0
- package/Server/Services/IoTDeviceCredentialService.ts +351 -0
- package/Server/Services/IoTDeviceService.ts +64 -21
- package/Server/Services/LlmLogService.ts +26 -0
- package/Server/Services/LlmProviderService.ts +3 -0
- package/Server/Services/LogAggregationService.ts +29 -11
- package/Server/Services/MetricService.ts +603 -13
- package/Server/Services/MonitorService.ts +4 -1
- package/Server/Services/NetworkDeviceDiscoveryScanService.ts +10 -0
- package/Server/Services/NetworkDeviceLabelRuleEngineService.ts +204 -0
- package/Server/Services/NetworkDeviceLabelRuleService.ts +14 -0
- package/Server/Services/NetworkDeviceOwnerRuleEngineService.ts +222 -0
- package/Server/Services/NetworkDeviceOwnerRuleService.ts +14 -0
- package/Server/Services/NetworkDeviceOwnerTeamService.ts +10 -0
- package/Server/Services/NetworkDeviceOwnerUserService.ts +10 -0
- package/Server/Services/NetworkDeviceService.ts +50 -0
- package/Server/Services/NetworkInterfaceService.ts +10 -0
- package/Server/Services/TelemetryEntityRelationshipService.ts +23 -0
- package/Server/Services/TelemetryEntityService.ts +72 -2
- package/Server/Utils/AI/Sentinel/AlertInvestigationRunner.ts +244 -12
- package/Server/Utils/AI/Sentinel/IncidentInvestigationRunner.ts +92 -19
- package/Server/Utils/AI/Sentinel/InvestigationQueue.ts +493 -0
- package/Server/Utils/AI/Sentinel/README.md +10 -0
- package/Server/Utils/AI/Sentinel/SentinelInvestigationEngine.ts +88 -68
- package/Server/Utils/AI/Toolbox/Index.ts +2 -1
- package/Server/Utils/AI/Toolbox/MetricTools.ts +391 -0
- package/Server/Utils/LLM/LLMService.ts +21 -0
- package/Server/Utils/Monitor/Criteria/APIRequestCriteria.ts +44 -0
- package/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.ts +170 -2
- package/Server/Utils/Monitor/IoTDeviceAbsenceSeries.ts +101 -0
- package/Server/Utils/Monitor/MonitorAlert.ts +15 -3
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +1 -1
- package/Server/Utils/Monitor/MonitorIncident.ts +19 -3
- package/Server/Utils/Monitor/MonitorMetricUtil.ts +195 -2
- package/Server/Utils/Monitor/MonitorResource.ts +77 -21
- package/Server/Utils/Monitor/MonitorTemplateUtil.ts +1 -1
- package/Server/Utils/Monitor/NetworkDeviceHydrationUtil.ts +201 -0
- package/Server/Utils/Monitor/NetworkInventoryUtil.ts +215 -0
- package/Server/Utils/Monitor/SnmpInterfaceRateUtil.ts +169 -0
- package/Tests/Server/Services/AIAgentTaskServiceClaim.test.ts +146 -0
- package/Tests/Server/Services/AIServiceDailyBudget.test.ts +173 -0
- package/Tests/Server/Services/IncidentInternalNoteAnnouncement.test.ts +97 -0
- package/Tests/Server/Services/IoTDeviceService.test.ts +54 -0
- package/Tests/Server/Services/LogAggregationService.test.ts +22 -0
- package/Tests/Server/Services/MetricServiceAggregate.test.ts +194 -0
- package/Tests/Server/Utils/AI/BaselineAnomalyTool.test.ts +253 -0
- package/Tests/Server/Utils/AI/LLMServiceToolCalling.test.ts +44 -0
- package/Tests/Server/Utils/AI/SentinelAlertGating.test.ts +360 -0
- package/Tests/Server/Utils/AI/SentinelInvestigationQueue.test.ts +295 -0
- package/Tests/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.test.ts +59 -0
- package/Tests/Server/Utils/Monitor/IoTDeviceAbsenceSeries.test.ts +113 -0
- package/Tests/Server/Utils/Monitor/PerSeriesRecoveryResolution.test.ts +198 -0
- package/Tests/Types/AI/AIAgentTaskStatus.test.ts +86 -0
- package/Tests/Types/BaseDatabase/AggregationIntervalUtil.test.ts +127 -0
- package/Tests/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.test.ts +152 -0
- package/Tests/Types/Monitor/MonitorType.test.ts +1 -1
- package/Tests/Types/Trace/TraceRecordingRuleDefinition.test.ts +308 -0
- package/Tests/UI/Components/Dropdown.test.tsx +17 -0
- package/Tests/UI/Components/EntityDropdown.test.tsx +130 -0
- package/Tests/UI/Components/Modal.test.tsx +144 -2
- package/Tests/UI/Components/TelemetrySearchBar.test.tsx +90 -0
- package/Tests/UI/Utils/Theme.test.ts +161 -0
- package/Tests/Utils/Monitor/LatencyMatrixUtil.test.ts +111 -0
- package/Types/AI/AIRunStatus.ts +9 -0
- package/Types/BaseDatabase/AggregateBy.ts +12 -0
- package/Types/Dashboard/DashboardComponentType.ts +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardLogChartComponent.ts +24 -0
- package/Types/Dashboard/DashboardTemplates.ts +9 -1
- package/Types/LlmLogStatus.ts +1 -0
- package/Types/Monitor/CriteriaFilter.ts +9 -0
- package/Types/Monitor/HttpPhaseTimings.ts +16 -0
- package/Types/Monitor/IotAlertTemplates.ts +22 -3
- package/Types/Monitor/LatencyMatrix.ts +27 -0
- package/Types/Monitor/MonitorCriteriaInstance.ts +2 -2
- package/Types/Monitor/MonitorMetricType.ts +27 -0
- package/Types/Monitor/MonitorStep.ts +36 -11
- package/Types/Monitor/MonitorStepNetworkDeviceMonitor.ts +55 -0
- package/Types/Monitor/MonitorStepSnmpMonitor.ts +8 -0
- package/Types/Monitor/MonitorType.ts +14 -9
- package/Types/Monitor/PingMonitor/PingMonitorResponse.ts +20 -0
- package/Types/Monitor/SnmpMonitor/LldpNeighbor.ts +12 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.ts +116 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.ts +29 -0
- package/Types/Monitor/SnmpMonitor/SnmpInterface.ts +31 -0
- package/Types/Monitor/SnmpMonitor/SnmpMonitorResponse.ts +24 -0
- package/Types/Monitor/SnmpMonitor/SnmpTrap.ts +20 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorTemplate.ts +173 -0
- package/Types/Permission.ts +314 -0
- package/Types/Probe/ProbeMonitorResponse.ts +22 -0
- package/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.tsx +8 -5
- package/UI/Components/Charts/ChartLibrary/BarChart/BarChart.tsx +4 -1
- package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +6 -3
- package/UI/Components/CodeBlock/CodeBlock.tsx +2 -1
- package/UI/Components/CodeEditor/CodeEditor.tsx +3 -0
- package/UI/Components/Divider/Divider.tsx +1 -1
- package/UI/Components/Dropdown/Dropdown.tsx +13 -4
- package/UI/Components/EntityDropdown/EntityDropdown.tsx +110 -2
- package/UI/Components/ErrorBoundary.tsx +2 -1
- package/UI/Components/EventItem/EventItem.tsx +2 -2
- package/UI/Components/GanttChart/Bar/Index.tsx +1 -1
- package/UI/Components/Graphs/UptimeBarTooltip.tsx +30 -23
- package/UI/Components/Header/Header.tsx +7 -0
- package/UI/Components/Header/HeaderIconDropdownButton.tsx +2 -0
- package/UI/Components/Icon/Icon.tsx +8 -6
- package/UI/Components/Label/Label.tsx +2 -2
- package/UI/Components/LogsViewer/components/LogsAnalyticsView.tsx +22 -10
- package/UI/Components/LogsViewer/components/LogsHistogram.tsx +9 -3
- package/UI/Components/Markdown.tsx/MarkdownEditor.tsx +8 -8
- package/UI/Components/Markdown.tsx/MarkdownViewer.tsx +44 -20
- package/UI/Components/Modal/ConfirmModal.tsx +1 -1
- package/UI/Components/Modal/Modal.tsx +213 -121
- package/UI/Components/Modal/ModalFooter.tsx +33 -22
- package/UI/Components/ModelTable/TableView.tsx +1 -1
- package/UI/Components/MonitorGraphs/UptimeBarDayModal.tsx +20 -12
- package/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.ts +2 -2
- package/UI/Components/Pill/Pill.tsx +21 -13
- package/UI/Components/StatusBubble/StatusBubble.tsx +3 -3
- package/UI/Components/Tabs/Tabs.tsx +10 -1
- package/UI/Components/TelemetryViewer/TelemetryViewer.tsx +7 -1
- package/UI/Components/TelemetryViewer/components/TelemetryHistogram.tsx +9 -3
- package/UI/Components/TelemetryViewer/components/TelemetrySearchBar.tsx +62 -4
- package/UI/Components/Workflow/Component.tsx +53 -33
- package/UI/Components/Workflow/ComponentPortViewer.tsx +6 -6
- package/UI/Components/Workflow/ComponentReturnValueViewer.tsx +8 -8
- package/UI/Components/Workflow/ComponentsModal.tsx +16 -9
- package/UI/Components/Workflow/Workflow.tsx +13 -11
- package/UI/Utils/Navigation.ts +10 -1
- package/UI/Utils/Theme.ts +140 -0
- package/Utils/Dashboard/Components/DashboardLogChartComponent.ts +99 -0
- package/Utils/Dashboard/Components/Index.ts +7 -0
- package/Utils/Monitor/LatencyMatrixUtil.ts +162 -0
- package/Utils/Monitor/MonitorMetricType.ts +141 -3
- package/Utils/Monitor/NetworkTopologyUtil.ts +159 -0
- package/Utils/Telemetry/EntityRelationship.ts +11 -0
- package/build/dist/Models/DatabaseModels/AIRun.js +52 -0
- package/build/dist/Models/DatabaseModels/AIRun.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertSeverity.js +6 -0
- package/build/dist/Models/DatabaseModels/AlertSeverity.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentSeverity.js +6 -0
- package/build/dist/Models/DatabaseModels/IncidentSeverity.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +16 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IoTDeviceCredential.js +493 -0
- package/build/dist/Models/DatabaseModels/IoTDeviceCredential.js.map +1 -0
- package/build/dist/Models/DatabaseModels/LlmLog.js +58 -0
- package/build/dist/Models/DatabaseModels/LlmLog.js.map +1 -1
- package/build/dist/Models/DatabaseModels/LlmProvider.js +33 -0
- package/build/dist/Models/DatabaseModels/LlmProvider.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkDevice.js +1426 -0
- package/build/dist/Models/DatabaseModels/NetworkDevice.js.map +1 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +738 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js.map +1 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/NetworkInterface.js +589 -0
- package/build/dist/Models/DatabaseModels/NetworkInterface.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Project.js +147 -0
- package/build/dist/Models/DatabaseModels/Project.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TelemetryEntityRelationship.js +57 -0
- package/build/dist/Models/DatabaseModels/TelemetryEntityRelationship.js.map +1 -1
- package/build/dist/Server/API/AIAgentTaskAPI.js +8 -23
- package/build/dist/Server/API/AIAgentTaskAPI.js.map +1 -1
- package/build/dist/Server/API/AIInvestigationAPI.js +95 -55
- package/build/dist/Server/API/AIInvestigationAPI.js.map +1 -1
- package/build/dist/Server/API/AlertAPI.js +5 -0
- package/build/dist/Server/API/AlertAPI.js.map +1 -1
- package/build/dist/Server/API/IncidentAPI.js +10 -0
- package/build/dist/Server/API/IncidentAPI.js.map +1 -1
- package/build/dist/Server/API/IncidentEpisodeAPI.js +5 -0
- package/build/dist/Server/API/IncidentEpisodeAPI.js.map +1 -1
- package/build/dist/Server/API/LlmProviderAPI.js +5 -7
- package/build/dist/Server/API/LlmProviderAPI.js.map +1 -1
- package/build/dist/Server/API/ScheduledMaintenanceAPI.js +5 -0
- package/build/dist/Server/API/ScheduledMaintenanceAPI.js.map +1 -1
- package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783650000000-AddAdditionalParamsToLlmProvider.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783650000000-AddAdditionalParamsToLlmProvider.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783695782697-AddCacheTokenColumnsToLlmLog.js +14 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783695782697-AddCacheTokenColumnsToLlmLog.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783701585317-AddAlertInvestigationGating.js +18 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783701585317-AddAlertInvestigationGating.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783702431535-AddAiDailyAutonomousTokenLimitToProject.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783702431535-AddAiDailyAutonomousTokenLimitToProject.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783720000000-AddNetworkDeviceTables.js +51 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783720000000-AddNetworkDeviceTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783721121260-AddAttemptCountToAIRun.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783721121260-AddAttemptCountToAIRun.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783730000000-AddNetworkDeviceOwnersAndRules.js +101 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783730000000-AddNetworkDeviceOwnersAndRules.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783740000000-AddNetworkDeviceDiscoveryScan.js +18 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783740000000-AddNetworkDeviceDiscoveryScan.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783750000000-AddLldpNeighborsToNetworkDevice.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783750000000-AddLldpNeighborsToNetworkDevice.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783760576655-AddInvestigationTuningToProject.js +14 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783760576655-AddInvestigationTuningToProject.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783762505482-AddTelemetryEntityRelationshipMetrics.js +16 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783762505482-AddTelemetryEntityRelationshipMetrics.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783780000000-AddIoTDeviceCredentialTable.js +38 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783780000000-AddIoTDeviceCredentialTable.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783790000000-AddSnmpV3AuthColumnsToNetworkDevice.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1783790000000-AddSnmpV3AuthColumnsToNetworkDevice.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +24 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Services/AIAgentTaskService.js +59 -0
- package/build/dist/Server/Services/AIAgentTaskService.js.map +1 -1
- package/build/dist/Server/Services/AIRunService.js +33 -0
- package/build/dist/Server/Services/AIRunService.js.map +1 -1
- package/build/dist/Server/Services/AIService.js +82 -9
- package/build/dist/Server/Services/AIService.js.map +1 -1
- package/build/dist/Server/Services/AnalyticsDatabaseService.js +19 -0
- package/build/dist/Server/Services/AnalyticsDatabaseService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +14 -25
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +14 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/IoTDeviceCredentialService.js +321 -0
- package/build/dist/Server/Services/IoTDeviceCredentialService.js.map +1 -0
- package/build/dist/Server/Services/IoTDeviceService.js +49 -15
- package/build/dist/Server/Services/IoTDeviceService.js.map +1 -1
- package/build/dist/Server/Services/LlmLogService.js +29 -0
- package/build/dist/Server/Services/LlmLogService.js.map +1 -1
- package/build/dist/Server/Services/LlmProviderService.js +3 -0
- package/build/dist/Server/Services/LlmProviderService.js.map +1 -1
- package/build/dist/Server/Services/LogAggregationService.js +21 -7
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/MetricService.js +449 -7
- package/build/dist/Server/Services/MetricService.js.map +1 -1
- package/build/dist/Server/Services/MonitorService.js +2 -1
- package/build/dist/Server/Services/MonitorService.js.map +1 -1
- package/build/dist/Server/Services/NetworkDeviceDiscoveryScanService.js +9 -0
- package/build/dist/Server/Services/NetworkDeviceDiscoveryScanService.js.map +1 -0
- package/build/dist/Server/Services/NetworkDeviceLabelRuleEngineService.js +166 -0
- package/build/dist/Server/Services/NetworkDeviceLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/NetworkDeviceLabelRuleService.js +13 -0
- package/build/dist/Server/Services/NetworkDeviceLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerRuleEngineService.js +186 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerUserService.js +9 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/NetworkDeviceService.js +52 -0
- package/build/dist/Server/Services/NetworkDeviceService.js.map +1 -0
- package/build/dist/Server/Services/NetworkInterfaceService.js +9 -0
- package/build/dist/Server/Services/NetworkInterfaceService.js.map +1 -0
- package/build/dist/Server/Services/TelemetryEntityRelationshipService.js +22 -0
- package/build/dist/Server/Services/TelemetryEntityRelationshipService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryEntityService.js +64 -2
- package/build/dist/Server/Services/TelemetryEntityService.js.map +1 -1
- package/build/dist/Server/Utils/AI/Sentinel/AlertInvestigationRunner.js +189 -9
- package/build/dist/Server/Utils/AI/Sentinel/AlertInvestigationRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/Sentinel/IncidentInvestigationRunner.js +84 -17
- package/build/dist/Server/Utils/AI/Sentinel/IncidentInvestigationRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/Sentinel/InvestigationQueue.js +428 -0
- package/build/dist/Server/Utils/AI/Sentinel/InvestigationQueue.js.map +1 -0
- package/build/dist/Server/Utils/AI/Sentinel/SentinelInvestigationEngine.js +63 -47
- package/build/dist/Server/Utils/AI/Sentinel/SentinelInvestigationEngine.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/Index.js +2 -1
- package/build/dist/Server/Utils/AI/Toolbox/Index.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/MetricTools.js +300 -0
- package/build/dist/Server/Utils/AI/Toolbox/MetricTools.js.map +1 -1
- package/build/dist/Server/Utils/LLM/LLMService.js +16 -0
- package/build/dist/Server/Utils/LLM/LLMService.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/APIRequestCriteria.js +29 -0
- package/build/dist/Server/Utils/Monitor/Criteria/APIRequestCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.js +130 -2
- package/build/dist/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/IoTDeviceAbsenceSeries.js +81 -0
- package/build/dist/Server/Utils/Monitor/IoTDeviceAbsenceSeries.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js +18 -7
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +25 -10
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorMetricUtil.js +155 -5
- package/build/dist/Server/Utils/Monitor/MonitorMetricUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorResource.js +76 -30
- package/build/dist/Server/Utils/Monitor/MonitorResource.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/NetworkDeviceHydrationUtil.js +147 -0
- package/build/dist/Server/Utils/Monitor/NetworkDeviceHydrationUtil.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/NetworkInventoryUtil.js +167 -0
- package/build/dist/Server/Utils/Monitor/NetworkInventoryUtil.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/SnmpInterfaceRateUtil.js +93 -0
- package/build/dist/Server/Utils/Monitor/SnmpInterfaceRateUtil.js.map +1 -0
- package/build/dist/Types/AI/AIRunStatus.js +9 -0
- package/build/dist/Types/AI/AIRunStatus.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponentType.js +1 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogChartComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogChartComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardTemplates.js +9 -1
- package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -1
- package/build/dist/Types/LlmLogStatus.js +1 -0
- package/build/dist/Types/LlmLogStatus.js.map +1 -1
- package/build/dist/Types/Monitor/CriteriaFilter.js +9 -0
- package/build/dist/Types/Monitor/CriteriaFilter.js.map +1 -1
- package/build/dist/Types/Monitor/HttpPhaseTimings.js +2 -0
- package/build/dist/Types/Monitor/HttpPhaseTimings.js.map +1 -0
- package/build/dist/Types/Monitor/IotAlertTemplates.js +7 -7
- package/build/dist/Types/Monitor/IotAlertTemplates.js.map +1 -1
- package/build/dist/Types/Monitor/LatencyMatrix.js +2 -0
- package/build/dist/Types/Monitor/LatencyMatrix.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorCriteriaInstance.js +2 -2
- package/build/dist/Types/Monitor/MonitorCriteriaInstance.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorMetricType.js +24 -0
- package/build/dist/Types/Monitor/MonitorMetricType.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStep.js +22 -9
- package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStepNetworkDeviceMonitor.js +36 -0
- package/build/dist/Types/Monitor/MonitorStepNetworkDeviceMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStepSnmpMonitor.js +3 -0
- package/build/dist/Types/Monitor/MonitorStepSnmpMonitor.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorType.js +14 -9
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- package/build/dist/Types/Monitor/PingMonitor/PingMonitorResponse.js +2 -0
- package/build/dist/Types/Monitor/PingMonitor/PingMonitorResponse.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/LldpNeighbor.js +2 -0
- package/build/dist/Types/Monitor/SnmpMonitor/LldpNeighbor.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js +89 -0
- package/build/dist/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/NetworkTopology.js +2 -0
- package/build/dist/Types/Monitor/SnmpMonitor/NetworkTopology.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpInterface.js +2 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpInterface.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpTrap.js +2 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpTrap.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpVendorTemplate.js +137 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpVendorTemplate.js.map +1 -0
- package/build/dist/Types/Permission.js +280 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js +7 -4
- package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js +4 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +6 -3
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -1
- package/build/dist/UI/Components/CodeBlock/CodeBlock.js +1 -1
- package/build/dist/UI/Components/CodeBlock/CodeBlock.js.map +1 -1
- package/build/dist/UI/Components/CodeEditor/CodeEditor.js +3 -1
- package/build/dist/UI/Components/CodeEditor/CodeEditor.js.map +1 -1
- package/build/dist/UI/Components/Divider/Divider.js +1 -1
- package/build/dist/UI/Components/Divider/Divider.js.map +1 -1
- package/build/dist/UI/Components/Dropdown/Dropdown.js +10 -4
- package/build/dist/UI/Components/Dropdown/Dropdown.js.map +1 -1
- package/build/dist/UI/Components/EntityDropdown/EntityDropdown.js +76 -3
- package/build/dist/UI/Components/EntityDropdown/EntityDropdown.js.map +1 -1
- package/build/dist/UI/Components/ErrorBoundary.js +2 -1
- package/build/dist/UI/Components/ErrorBoundary.js.map +1 -1
- package/build/dist/UI/Components/EventItem/EventItem.js +2 -2
- package/build/dist/UI/Components/EventItem/EventItem.js.map +1 -1
- package/build/dist/UI/Components/GanttChart/Bar/Index.js +1 -1
- package/build/dist/UI/Components/GanttChart/Bar/Index.js.map +1 -1
- package/build/dist/UI/Components/Graphs/UptimeBarTooltip.js +29 -23
- package/build/dist/UI/Components/Graphs/UptimeBarTooltip.js.map +1 -1
- package/build/dist/UI/Components/Header/Header.js +1 -0
- package/build/dist/UI/Components/Header/Header.js.map +1 -1
- package/build/dist/UI/Components/Header/HeaderIconDropdownButton.js +1 -1
- package/build/dist/UI/Components/Header/HeaderIconDropdownButton.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +8 -6
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/Label/Label.js +2 -2
- package/build/dist/UI/Components/Label/Label.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsAnalyticsView.js +20 -8
- package/build/dist/UI/Components/LogsViewer/components/LogsAnalyticsView.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsHistogram.js +8 -2
- package/build/dist/UI/Components/LogsViewer/components/LogsHistogram.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownEditor.js +8 -8
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js +40 -20
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js.map +1 -1
- package/build/dist/UI/Components/Modal/ConfirmModal.js +1 -1
- package/build/dist/UI/Components/Modal/ConfirmModal.js.map +1 -1
- package/build/dist/UI/Components/Modal/Modal.js +109 -51
- package/build/dist/UI/Components/Modal/Modal.js.map +1 -1
- package/build/dist/UI/Components/Modal/ModalFooter.js +13 -10
- package/build/dist/UI/Components/Modal/ModalFooter.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/TableView.js +1 -1
- package/build/dist/UI/Components/ModelTable/TableView.js.map +1 -1
- package/build/dist/UI/Components/MonitorGraphs/UptimeBarDayModal.js +17 -12
- package/build/dist/UI/Components/MonitorGraphs/UptimeBarDayModal.js.map +1 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js +2 -2
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js.map +1 -1
- package/build/dist/UI/Components/Pill/Pill.js +12 -13
- package/build/dist/UI/Components/Pill/Pill.js.map +1 -1
- package/build/dist/UI/Components/StatusBubble/StatusBubble.js +3 -3
- package/build/dist/UI/Components/StatusBubble/StatusBubble.js.map +1 -1
- package/build/dist/UI/Components/Tabs/Tabs.js +3 -1
- package/build/dist/UI/Components/Tabs/Tabs.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/TelemetryViewer.js +1 -1
- package/build/dist/UI/Components/TelemetryViewer/TelemetryViewer.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryHistogram.js +8 -2
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryHistogram.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetrySearchBar.js +36 -6
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetrySearchBar.js.map +1 -1
- package/build/dist/UI/Components/Workflow/Component.js +43 -33
- package/build/dist/UI/Components/Workflow/Component.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentPortViewer.js +6 -6
- package/build/dist/UI/Components/Workflow/ComponentPortViewer.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js +8 -8
- package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentsModal.js +15 -9
- package/build/dist/UI/Components/Workflow/ComponentsModal.js.map +1 -1
- package/build/dist/UI/Components/Workflow/Workflow.js +13 -11
- package/build/dist/UI/Components/Workflow/Workflow.js.map +1 -1
- package/build/dist/UI/Utils/Navigation.js +11 -1
- package/build/dist/UI/Utils/Navigation.js.map +1 -1
- package/build/dist/UI/Utils/Theme.js +106 -0
- package/build/dist/UI/Utils/Theme.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardLogChartComponent.js +89 -0
- package/build/dist/Utils/Dashboard/Components/DashboardLogChartComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/Index.js +4 -0
- package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
- package/build/dist/Utils/Monitor/LatencyMatrixUtil.js +89 -0
- package/build/dist/Utils/Monitor/LatencyMatrixUtil.js.map +1 -0
- package/build/dist/Utils/Monitor/MonitorMetricType.js +138 -4
- package/build/dist/Utils/Monitor/MonitorMetricType.js.map +1 -1
- package/build/dist/Utils/Monitor/NetworkTopologyUtil.js +112 -0
- package/build/dist/Utils/Monitor/NetworkTopologyUtil.js.map +1 -0
- package/build/dist/Utils/Telemetry/EntityRelationship.js.map +1 -1
- package/package.json +1 -1
|
@@ -815,7 +815,10 @@ const AreaChart: React.ForwardRefExoticComponent<
|
|
|
815
815
|
wrapperStyle={{ outline: "none" }}
|
|
816
816
|
isAnimationActive={true}
|
|
817
817
|
animationDuration={100}
|
|
818
|
-
cursor={{
|
|
818
|
+
cursor={{
|
|
819
|
+
stroke: "var(--ou-chart-cursor, #d1d5db)",
|
|
820
|
+
strokeWidth: 1,
|
|
821
|
+
}}
|
|
819
822
|
offset={20}
|
|
820
823
|
position={{ y: 0 }}
|
|
821
824
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -903,11 +906,11 @@ const AreaChart: React.ForwardRefExoticComponent<
|
|
|
903
906
|
}
|
|
904
907
|
return [low, high];
|
|
905
908
|
}}
|
|
906
|
-
stroke="#94a3b8"
|
|
909
|
+
stroke="var(--ou-chart-tick, #94a3b8)"
|
|
907
910
|
strokeOpacity={0.3}
|
|
908
911
|
strokeWidth={1}
|
|
909
912
|
strokeDasharray="3 3"
|
|
910
|
-
fill="#94a3b8"
|
|
913
|
+
fill="var(--ou-chart-tick, #94a3b8)"
|
|
911
914
|
fillOpacity={0.12}
|
|
912
915
|
isAnimationActive={false}
|
|
913
916
|
connectNulls={false}
|
|
@@ -1064,7 +1067,7 @@ const AreaChart: React.ForwardRefExoticComponent<
|
|
|
1064
1067
|
y={exemplar.y}
|
|
1065
1068
|
r={5}
|
|
1066
1069
|
fill="#7c3aed"
|
|
1067
|
-
stroke="#ffffff"
|
|
1070
|
+
stroke="var(--ou-chart-marker-ring, #ffffff)"
|
|
1068
1071
|
strokeWidth={2}
|
|
1069
1072
|
style={{ cursor: "pointer" }}
|
|
1070
1073
|
onClick={() => {
|
|
@@ -1074,7 +1077,7 @@ const AreaChart: React.ForwardRefExoticComponent<
|
|
|
1074
1077
|
<Label
|
|
1075
1078
|
value="E"
|
|
1076
1079
|
position="center"
|
|
1077
|
-
fill="#ffffff"
|
|
1080
|
+
fill="var(--ou-chart-marker-ring, #ffffff)"
|
|
1078
1081
|
fontSize={8}
|
|
1079
1082
|
fontWeight={700}
|
|
1080
1083
|
/>
|
|
@@ -925,7 +925,10 @@ const BarChart: React.ForwardRefExoticComponent<
|
|
|
925
925
|
wrapperStyle={{ outline: "none" }}
|
|
926
926
|
isAnimationActive={true}
|
|
927
927
|
animationDuration={100}
|
|
928
|
-
cursor={{
|
|
928
|
+
cursor={{
|
|
929
|
+
fill: "var(--ou-chart-cursor, #d1d5db)",
|
|
930
|
+
opacity: "0.15",
|
|
931
|
+
}}
|
|
929
932
|
offset={20}
|
|
930
933
|
{...(layout === "horizontal"
|
|
931
934
|
? { position: { y: 0 } }
|
|
@@ -813,7 +813,10 @@ const LineChart: React.ForwardRefExoticComponent<
|
|
|
813
813
|
wrapperStyle={{ outline: "none" }}
|
|
814
814
|
isAnimationActive={true}
|
|
815
815
|
animationDuration={100}
|
|
816
|
-
cursor={{
|
|
816
|
+
cursor={{
|
|
817
|
+
stroke: "var(--ou-chart-cursor, #d1d5db)",
|
|
818
|
+
strokeWidth: 1,
|
|
819
|
+
}}
|
|
817
820
|
offset={20}
|
|
818
821
|
position={{ y: 0 }}
|
|
819
822
|
content={({ active, payload, label }: any) => {
|
|
@@ -1052,7 +1055,7 @@ const LineChart: React.ForwardRefExoticComponent<
|
|
|
1052
1055
|
y={exemplar.y}
|
|
1053
1056
|
r={5}
|
|
1054
1057
|
fill="#7c3aed"
|
|
1055
|
-
stroke="#ffffff"
|
|
1058
|
+
stroke="var(--ou-chart-marker-ring, #ffffff)"
|
|
1056
1059
|
strokeWidth={2}
|
|
1057
1060
|
style={{ cursor: "pointer" }}
|
|
1058
1061
|
onClick={() => {
|
|
@@ -1062,7 +1065,7 @@ const LineChart: React.ForwardRefExoticComponent<
|
|
|
1062
1065
|
<Label
|
|
1063
1066
|
value="E"
|
|
1064
1067
|
position="center"
|
|
1065
|
-
fill="#ffffff"
|
|
1068
|
+
fill="var(--ou-chart-marker-ring, #ffffff)"
|
|
1066
1069
|
fontSize={8}
|
|
1067
1070
|
fontWeight={700}
|
|
1068
1071
|
/>
|
|
@@ -36,8 +36,9 @@ const CodeBlock: FunctionComponent<ComponentProps> = (
|
|
|
36
36
|
{showCopyButton && typeof props.code === "string" && (
|
|
37
37
|
<button
|
|
38
38
|
onClick={handleCopy}
|
|
39
|
-
className="absolute top-2 right-2 p-2 rounded-md bg-gray-700 hover:bg-gray-600 text-gray-300 hover:text-white transition-all opacity-
|
|
39
|
+
className="absolute top-2 right-2 p-2 rounded-md bg-gray-700 hover:bg-gray-600 text-gray-300 hover:text-white transition-all opacity-70 hover:opacity-100 focus-visible:opacity-100 group-hover:opacity-100 z-10"
|
|
40
40
|
title={copied ? "Copied!" : "Copy to clipboard"}
|
|
41
|
+
aria-label={copied ? "Copied" : "Copy to clipboard"}
|
|
41
42
|
type="button"
|
|
42
43
|
>
|
|
43
44
|
<Icon
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Editor from "@monaco-editor/react";
|
|
2
2
|
import CodeType from "../../../Types/Code/CodeType";
|
|
3
3
|
import MarkdownUtil from "../../Utils/Markdown";
|
|
4
|
+
import { Theme, useTheme } from "../../Utils/Theme";
|
|
4
5
|
import React, {
|
|
5
6
|
FunctionComponent,
|
|
6
7
|
ReactElement,
|
|
@@ -36,6 +37,7 @@ const CodeEditor: FunctionComponent<ComponentProps> = (
|
|
|
36
37
|
const [placeholder, setPlaceholder] = useState<string>("");
|
|
37
38
|
const [helpText, setHelpText] = useState<string | ReactElement>("");
|
|
38
39
|
const editorRef: React.MutableRefObject<any> = useRef<any>(null);
|
|
40
|
+
const theme: Theme = useTheme();
|
|
39
41
|
|
|
40
42
|
useEffect(() => {
|
|
41
43
|
let value: string | undefined = props.value;
|
|
@@ -138,6 +140,7 @@ const CodeEditor: FunctionComponent<ComponentProps> = (
|
|
|
138
140
|
)}
|
|
139
141
|
|
|
140
142
|
<Editor
|
|
143
|
+
theme={theme === Theme.Dark ? "vs-dark" : "light"}
|
|
141
144
|
defaultLanguage={props.type}
|
|
142
145
|
height="30vh"
|
|
143
146
|
value={value}
|
|
@@ -41,6 +41,12 @@ export interface DropdownOptionGroup {
|
|
|
41
41
|
options: Array<DropdownOption>;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
/*
|
|
45
|
+
* Modal surfaces use z-50. The portalled menu must sit above that stacking
|
|
46
|
+
* context so options are not painted underneath an anchored modal footer.
|
|
47
|
+
*/
|
|
48
|
+
export const DROPDOWN_MENU_Z_INDEX: number = 60;
|
|
49
|
+
|
|
44
50
|
export interface ComponentProps {
|
|
45
51
|
options: Array<DropdownOption | DropdownOptionGroup>;
|
|
46
52
|
initialValue?: undefined | DropdownOption | Array<DropdownOption>;
|
|
@@ -334,8 +340,8 @@ const Dropdown: FunctionComponent<ComponentProps> = (
|
|
|
334
340
|
} = (color?: string): { backgroundColor: string; color: string } => {
|
|
335
341
|
if (!color) {
|
|
336
342
|
return {
|
|
337
|
-
backgroundColor: "#e5e7eb",
|
|
338
|
-
color: "#374151",
|
|
343
|
+
backgroundColor: "var(--ou-surface-tertiary, #e5e7eb)",
|
|
344
|
+
color: "var(--ou-text-secondary, #374151)",
|
|
339
345
|
};
|
|
340
346
|
}
|
|
341
347
|
|
|
@@ -511,6 +517,9 @@ const Dropdown: FunctionComponent<ComponentProps> = (
|
|
|
511
517
|
setValue(value);
|
|
512
518
|
}, [props.value]);
|
|
513
519
|
|
|
520
|
+
const menuPortalTarget: HTMLElement | null =
|
|
521
|
+
typeof document === "undefined" ? null : document.body;
|
|
522
|
+
|
|
514
523
|
return (
|
|
515
524
|
<div
|
|
516
525
|
id={props.id}
|
|
@@ -710,11 +719,11 @@ const Dropdown: FunctionComponent<ComponentProps> = (
|
|
|
710
719
|
menuPortal: (base: CSSObjectWithLabel): CSSObjectWithLabel => {
|
|
711
720
|
return {
|
|
712
721
|
...base,
|
|
713
|
-
zIndex:
|
|
722
|
+
zIndex: DROPDOWN_MENU_Z_INDEX,
|
|
714
723
|
};
|
|
715
724
|
},
|
|
716
725
|
}}
|
|
717
|
-
menuPortalTarget={
|
|
726
|
+
menuPortalTarget={menuPortalTarget}
|
|
718
727
|
menuPosition="fixed"
|
|
719
728
|
isClearable={true}
|
|
720
729
|
isSearchable={true}
|
|
@@ -10,6 +10,7 @@ import ObjectID from "../../../Types/ObjectID";
|
|
|
10
10
|
import ModelAPI, { ListResult } from "../../Utils/ModelAPI/ModelAPI";
|
|
11
11
|
import Icon from "../Icon/Icon";
|
|
12
12
|
import {
|
|
13
|
+
DROPDOWN_MENU_Z_INDEX,
|
|
13
14
|
DropdownOption,
|
|
14
15
|
DropdownOptionGroup,
|
|
15
16
|
DropdownOptionLabel,
|
|
@@ -20,6 +21,7 @@ import React, {
|
|
|
20
21
|
ReactElement,
|
|
21
22
|
useCallback,
|
|
22
23
|
useEffect,
|
|
24
|
+
useLayoutEffect,
|
|
23
25
|
useMemo,
|
|
24
26
|
useRef,
|
|
25
27
|
useState,
|
|
@@ -107,6 +109,18 @@ export interface EntityDropdownProps {
|
|
|
107
109
|
const SEARCH_DEBOUNCE_MS: number = 250;
|
|
108
110
|
const SEARCH_PAGE_SIZE: number = 50;
|
|
109
111
|
const LABEL_PREVIEW_LIMIT: number = 50;
|
|
112
|
+
const MENU_GAP_PX: number = 4;
|
|
113
|
+
const MENU_MAX_HEIGHT_PX: number = 384;
|
|
114
|
+
const MENU_MIN_USEFUL_HEIGHT_PX: number = 160;
|
|
115
|
+
const MENU_VIEWPORT_PADDING_PX: number = 8;
|
|
116
|
+
|
|
117
|
+
interface EntityDropdownMenuPosition {
|
|
118
|
+
bottom?: number | undefined;
|
|
119
|
+
left: number;
|
|
120
|
+
maxHeight: number;
|
|
121
|
+
top?: number | undefined;
|
|
122
|
+
width: number;
|
|
123
|
+
}
|
|
110
124
|
|
|
111
125
|
const flattenOptions: (
|
|
112
126
|
options: Array<DropdownOption | DropdownOptionGroup> | undefined,
|
|
@@ -441,12 +455,91 @@ const EntityDropdown: FunctionComponent<EntityDropdownProps> = (
|
|
|
441
455
|
|
|
442
456
|
const containerRef: React.MutableRefObject<HTMLDivElement | null> =
|
|
443
457
|
useRef<HTMLDivElement | null>(null);
|
|
458
|
+
const controlRef: React.MutableRefObject<HTMLDivElement | null> =
|
|
459
|
+
useRef<HTMLDivElement | null>(null);
|
|
444
460
|
const inputRef: React.MutableRefObject<HTMLInputElement | null> =
|
|
445
461
|
useRef<HTMLInputElement | null>(null);
|
|
446
462
|
const debounceRef: React.MutableRefObject<number | null> = useRef<
|
|
447
463
|
number | null
|
|
448
464
|
>(null);
|
|
449
465
|
const searchSeqRef: React.MutableRefObject<number> = useRef<number>(0);
|
|
466
|
+
const [menuPosition, setMenuPosition] =
|
|
467
|
+
useState<EntityDropdownMenuPosition | null>(null);
|
|
468
|
+
|
|
469
|
+
const updateMenuPosition: () => void = useCallback((): void => {
|
|
470
|
+
if (!controlRef.current || typeof window === "undefined") {
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
const controlRect: DOMRect = controlRef.current.getBoundingClientRect();
|
|
475
|
+
const availableWidth: number = Math.max(
|
|
476
|
+
0,
|
|
477
|
+
window.innerWidth - MENU_VIEWPORT_PADDING_PX * 2,
|
|
478
|
+
);
|
|
479
|
+
const width: number = Math.min(controlRect.width, availableWidth);
|
|
480
|
+
const maximumLeft: number = Math.max(
|
|
481
|
+
MENU_VIEWPORT_PADDING_PX,
|
|
482
|
+
window.innerWidth - MENU_VIEWPORT_PADDING_PX - width,
|
|
483
|
+
);
|
|
484
|
+
const left: number = Math.min(
|
|
485
|
+
Math.max(controlRect.left, MENU_VIEWPORT_PADDING_PX),
|
|
486
|
+
maximumLeft,
|
|
487
|
+
);
|
|
488
|
+
const spaceBelow: number = Math.max(
|
|
489
|
+
0,
|
|
490
|
+
window.innerHeight -
|
|
491
|
+
controlRect.bottom -
|
|
492
|
+
MENU_GAP_PX -
|
|
493
|
+
MENU_VIEWPORT_PADDING_PX,
|
|
494
|
+
);
|
|
495
|
+
const spaceAbove: number = Math.max(
|
|
496
|
+
0,
|
|
497
|
+
controlRect.top - MENU_GAP_PX - MENU_VIEWPORT_PADDING_PX,
|
|
498
|
+
);
|
|
499
|
+
const shouldOpenAbove: boolean =
|
|
500
|
+
spaceBelow < MENU_MIN_USEFUL_HEIGHT_PX && spaceAbove > spaceBelow;
|
|
501
|
+
const availableHeight: number = shouldOpenAbove ? spaceAbove : spaceBelow;
|
|
502
|
+
|
|
503
|
+
setMenuPosition({
|
|
504
|
+
bottom: shouldOpenAbove
|
|
505
|
+
? window.innerHeight - controlRect.top + MENU_GAP_PX
|
|
506
|
+
: undefined,
|
|
507
|
+
left,
|
|
508
|
+
maxHeight: Math.min(MENU_MAX_HEIGHT_PX, availableHeight),
|
|
509
|
+
top: shouldOpenAbove ? undefined : controlRect.bottom + MENU_GAP_PX,
|
|
510
|
+
width,
|
|
511
|
+
});
|
|
512
|
+
}, []);
|
|
513
|
+
|
|
514
|
+
useLayoutEffect(() => {
|
|
515
|
+
if (!isOpen) {
|
|
516
|
+
setMenuPosition(null);
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
let animationFrame: number | null = null;
|
|
521
|
+
const schedulePositionUpdate: () => void = (): void => {
|
|
522
|
+
if (animationFrame !== null) {
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
animationFrame = window.requestAnimationFrame((): void => {
|
|
526
|
+
animationFrame = null;
|
|
527
|
+
updateMenuPosition();
|
|
528
|
+
});
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
updateMenuPosition();
|
|
532
|
+
window.addEventListener("resize", schedulePositionUpdate);
|
|
533
|
+
document.addEventListener("scroll", schedulePositionUpdate, true);
|
|
534
|
+
|
|
535
|
+
return () => {
|
|
536
|
+
window.removeEventListener("resize", schedulePositionUpdate);
|
|
537
|
+
document.removeEventListener("scroll", schedulePositionUpdate, true);
|
|
538
|
+
if (animationFrame !== null) {
|
|
539
|
+
window.cancelAnimationFrame(animationFrame);
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
}, [isOpen, selectedKeys, updateMenuPosition]);
|
|
450
543
|
|
|
451
544
|
// Click-outside closes the popover.
|
|
452
545
|
useEffect(() => {
|
|
@@ -1106,7 +1199,7 @@ const EntityDropdown: FunctionComponent<EntityDropdownProps> = (
|
|
|
1106
1199
|
</div>
|
|
1107
1200
|
)}
|
|
1108
1201
|
|
|
1109
|
-
<div className="relative">
|
|
1202
|
+
<div ref={controlRef} className="relative">
|
|
1110
1203
|
{/*
|
|
1111
1204
|
* Single-select shows the resolved label in-place when closed so the
|
|
1112
1205
|
* chrome looks like a static value field. Click anywhere on the
|
|
@@ -1281,6 +1374,11 @@ const EntityDropdown: FunctionComponent<EntityDropdownProps> = (
|
|
|
1281
1374
|
return;
|
|
1282
1375
|
}
|
|
1283
1376
|
if (event.key === "Escape") {
|
|
1377
|
+
/*
|
|
1378
|
+
* The modal also listens for Escape. Consume it here so the
|
|
1379
|
+
* first press closes the menu without dismissing the form.
|
|
1380
|
+
*/
|
|
1381
|
+
event.preventDefault();
|
|
1284
1382
|
setIsOpen(false);
|
|
1285
1383
|
setHighlightedIndex(-1);
|
|
1286
1384
|
return;
|
|
@@ -1329,8 +1427,18 @@ const EntityDropdown: FunctionComponent<EntityDropdownProps> = (
|
|
|
1329
1427
|
|
|
1330
1428
|
{isOpen && !props.disabled && (
|
|
1331
1429
|
<div
|
|
1332
|
-
className="
|
|
1430
|
+
className="fixed flex flex-col overflow-hidden rounded-md border border-gray-200 bg-white text-sm shadow-lg"
|
|
1431
|
+
data-testid="entity-dropdown-menu"
|
|
1333
1432
|
role="listbox"
|
|
1433
|
+
style={{
|
|
1434
|
+
bottom: menuPosition?.bottom,
|
|
1435
|
+
left: menuPosition?.left ?? 0,
|
|
1436
|
+
maxHeight: menuPosition?.maxHeight,
|
|
1437
|
+
top: menuPosition?.top,
|
|
1438
|
+
visibility: menuPosition ? "visible" : "hidden",
|
|
1439
|
+
width: menuPosition?.width ?? 0,
|
|
1440
|
+
zIndex: DROPDOWN_MENU_Z_INDEX,
|
|
1441
|
+
}}
|
|
1334
1442
|
>
|
|
1335
1443
|
{labelsTabEnabled && (
|
|
1336
1444
|
<div className="flex flex-shrink-0 items-center gap-1 border-b border-gray-100 bg-gray-50 px-1.5 py-1">
|
|
@@ -15,7 +15,8 @@ const Fallback: FunctionComponent = () => {
|
|
|
15
15
|
bottom: "0",
|
|
16
16
|
left: "0",
|
|
17
17
|
right: "0",
|
|
18
|
-
backgroundColor: "#fdfdfd",
|
|
18
|
+
backgroundColor: "var(--ou-background-primary, #fdfdfd)",
|
|
19
|
+
color: "var(--ou-text-primary, #111827)",
|
|
19
20
|
zIndex: "999",
|
|
20
21
|
display: "flex",
|
|
21
22
|
justifyContent: "center",
|
|
@@ -168,8 +168,8 @@ const EventItem: FunctionComponent<ComponentProps> = (
|
|
|
168
168
|
text={item}
|
|
169
169
|
color={VeryLightGray}
|
|
170
170
|
style={{
|
|
171
|
-
backgroundColor: "#f3f4f6",
|
|
172
|
-
color: "#9ca3af",
|
|
171
|
+
backgroundColor: "var(--ou-surface-tertiary, #f3f4f6)",
|
|
172
|
+
color: "var(--ou-text-subtle, #9ca3af)",
|
|
173
173
|
}}
|
|
174
174
|
/>
|
|
175
175
|
);
|
|
@@ -137,7 +137,7 @@ const Bar: FunctionComponent<ComponentProps> = (
|
|
|
137
137
|
marginLeft: `${barWidth + 15}px`,
|
|
138
138
|
opacity: barOpacity,
|
|
139
139
|
fontWeight: props.isHighlighted ? 600 : undefined,
|
|
140
|
-
color: props.isHighlighted ? "#4338ca" : undefined,
|
|
140
|
+
color: props.isHighlighted ? "var(--ou-link, #4338ca)" : undefined,
|
|
141
141
|
}}
|
|
142
142
|
>
|
|
143
143
|
<BarLabel label={props.bar.label} />
|
|
@@ -72,7 +72,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
72
72
|
gap: "8px",
|
|
73
73
|
paddingBottom: "10px",
|
|
74
74
|
marginBottom: "10px",
|
|
75
|
-
borderBottom: "1px solid #f0f0f0",
|
|
75
|
+
borderBottom: "1px solid var(--ou-border-subtle, #f0f0f0)",
|
|
76
76
|
}}
|
|
77
77
|
>
|
|
78
78
|
<svg
|
|
@@ -80,7 +80,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
80
80
|
height="14"
|
|
81
81
|
viewBox="0 0 24 24"
|
|
82
82
|
fill="none"
|
|
83
|
-
stroke="#9ca3af"
|
|
83
|
+
stroke="var(--ou-text-subtle, #9ca3af)"
|
|
84
84
|
strokeWidth="2"
|
|
85
85
|
strokeLinecap="round"
|
|
86
86
|
strokeLinejoin="round"
|
|
@@ -95,7 +95,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
95
95
|
style={{
|
|
96
96
|
fontWeight: 600,
|
|
97
97
|
fontSize: "13px",
|
|
98
|
-
color: "#111827",
|
|
98
|
+
color: "var(--ou-text-primary, #111827)",
|
|
99
99
|
letterSpacing: "-0.01em",
|
|
100
100
|
}}
|
|
101
101
|
>
|
|
@@ -121,7 +121,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
121
121
|
<span
|
|
122
122
|
style={{
|
|
123
123
|
fontSize: "11px",
|
|
124
|
-
color: "#6b7280",
|
|
124
|
+
color: "var(--ou-text-muted, #6b7280)",
|
|
125
125
|
fontWeight: 500,
|
|
126
126
|
}}
|
|
127
127
|
>
|
|
@@ -165,7 +165,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
165
165
|
overflow: "hidden",
|
|
166
166
|
display: "flex",
|
|
167
167
|
gap: "1px",
|
|
168
|
-
backgroundColor: "#e5e7eb",
|
|
168
|
+
backgroundColor: "var(--ou-border-default, #e5e7eb)",
|
|
169
169
|
}}
|
|
170
170
|
>
|
|
171
171
|
{sortedDurations.map((status: StatusDuration, index: number) => {
|
|
@@ -191,7 +191,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
191
191
|
style={{
|
|
192
192
|
width: "100%",
|
|
193
193
|
height: "4px",
|
|
194
|
-
backgroundColor: "#e5e7eb",
|
|
194
|
+
backgroundColor: "var(--ou-border-default, #e5e7eb)",
|
|
195
195
|
borderRadius: "100px",
|
|
196
196
|
overflow: "hidden",
|
|
197
197
|
}}
|
|
@@ -213,7 +213,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
213
213
|
{!props.hasEvents && (
|
|
214
214
|
<div
|
|
215
215
|
style={{
|
|
216
|
-
backgroundColor: "#f9fafb",
|
|
216
|
+
backgroundColor: "var(--ou-surface-secondary, #f9fafb)",
|
|
217
217
|
borderRadius: "8px",
|
|
218
218
|
padding: "16px",
|
|
219
219
|
textAlign: "center",
|
|
@@ -224,7 +224,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
224
224
|
height="18"
|
|
225
225
|
viewBox="0 0 24 24"
|
|
226
226
|
fill="none"
|
|
227
|
-
stroke="#d1d5db"
|
|
227
|
+
stroke="var(--ou-border-strong, #d1d5db)"
|
|
228
228
|
strokeWidth="1.5"
|
|
229
229
|
strokeLinecap="round"
|
|
230
230
|
strokeLinejoin="round"
|
|
@@ -237,7 +237,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
237
237
|
<div
|
|
238
238
|
style={{
|
|
239
239
|
fontSize: "12px",
|
|
240
|
-
color: "#9ca3af",
|
|
240
|
+
color: "var(--ou-text-subtle, #9ca3af)",
|
|
241
241
|
fontWeight: 500,
|
|
242
242
|
}}
|
|
243
243
|
>
|
|
@@ -252,7 +252,9 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
252
252
|
style={{
|
|
253
253
|
paddingBottom: hasIncidents ? "10px" : "0",
|
|
254
254
|
marginBottom: hasIncidents ? "10px" : "0",
|
|
255
|
-
borderBottom: hasIncidents
|
|
255
|
+
borderBottom: hasIncidents
|
|
256
|
+
? "1px solid var(--ou-border-subtle, #f0f0f0)"
|
|
257
|
+
: "none",
|
|
256
258
|
}}
|
|
257
259
|
>
|
|
258
260
|
{sortedDurations.map((status: StatusDuration, index: number) => {
|
|
@@ -291,7 +293,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
291
293
|
<span
|
|
292
294
|
style={{
|
|
293
295
|
fontSize: "12px",
|
|
294
|
-
color: "#374151",
|
|
296
|
+
color: "var(--ou-text-secondary, #374151)",
|
|
295
297
|
fontWeight: 500,
|
|
296
298
|
whiteSpace: "nowrap",
|
|
297
299
|
overflow: "hidden",
|
|
@@ -306,7 +308,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
306
308
|
style={{
|
|
307
309
|
flex: 1,
|
|
308
310
|
height: "4px",
|
|
309
|
-
backgroundColor: "#f3f4f6",
|
|
311
|
+
backgroundColor: "var(--ou-surface-tertiary, #f3f4f6)",
|
|
310
312
|
borderRadius: "100px",
|
|
311
313
|
overflow: "hidden",
|
|
312
314
|
}}
|
|
@@ -325,7 +327,9 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
325
327
|
<span
|
|
326
328
|
style={{
|
|
327
329
|
fontSize: "11px",
|
|
328
|
-
color: status.isDowntime
|
|
330
|
+
color: status.isDowntime
|
|
331
|
+
? "var(--ou-danger-text, #b91c1c)"
|
|
332
|
+
: "var(--ou-text-muted, #6b7280)",
|
|
329
333
|
fontWeight: status.isDowntime ? 600 : 400,
|
|
330
334
|
fontVariantNumeric: "tabular-nums",
|
|
331
335
|
whiteSpace: "nowrap",
|
|
@@ -356,7 +360,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
356
360
|
<span
|
|
357
361
|
style={{
|
|
358
362
|
fontSize: "11px",
|
|
359
|
-
color: "#6b7280",
|
|
363
|
+
color: "var(--ou-text-muted, #6b7280)",
|
|
360
364
|
fontWeight: 500,
|
|
361
365
|
flex: 1,
|
|
362
366
|
}}
|
|
@@ -367,8 +371,9 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
367
371
|
style={{
|
|
368
372
|
fontSize: "10px",
|
|
369
373
|
fontWeight: 600,
|
|
370
|
-
color: "#
|
|
371
|
-
backgroundColor:
|
|
374
|
+
color: "var(--ou-danger-text, #b91c1c)",
|
|
375
|
+
backgroundColor:
|
|
376
|
+
"color-mix(in srgb, #ef4444 14%, var(--ou-surface-primary, #ffffff))",
|
|
372
377
|
padding: "1px 7px",
|
|
373
378
|
borderRadius: "9999px",
|
|
374
379
|
lineHeight: "1.6",
|
|
@@ -400,21 +405,23 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
400
405
|
marginBottom: "6px",
|
|
401
406
|
cursor: isClickable ? "pointer" : "default",
|
|
402
407
|
transition: "background-color 0.12s ease",
|
|
403
|
-
backgroundColor: "#fafafa",
|
|
408
|
+
backgroundColor: "var(--ou-surface-secondary, #fafafa)",
|
|
404
409
|
borderRadius: "0 6px 6px 0",
|
|
405
410
|
}}
|
|
406
411
|
onMouseEnter={(e: React.MouseEvent<HTMLDivElement>) => {
|
|
407
412
|
if (isClickable) {
|
|
408
413
|
(
|
|
409
414
|
e.currentTarget as HTMLDivElement
|
|
410
|
-
).style.backgroundColor =
|
|
415
|
+
).style.backgroundColor =
|
|
416
|
+
"var(--ou-surface-tertiary, #f3f4f6)";
|
|
411
417
|
}
|
|
412
418
|
}}
|
|
413
419
|
onMouseLeave={(e: React.MouseEvent<HTMLDivElement>) => {
|
|
414
420
|
if (isClickable) {
|
|
415
421
|
(
|
|
416
422
|
e.currentTarget as HTMLDivElement
|
|
417
|
-
).style.backgroundColor =
|
|
423
|
+
).style.backgroundColor =
|
|
424
|
+
"var(--ou-surface-secondary, #fafafa)";
|
|
418
425
|
}
|
|
419
426
|
}}
|
|
420
427
|
>
|
|
@@ -431,7 +438,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
431
438
|
flex: 1,
|
|
432
439
|
minWidth: 0,
|
|
433
440
|
fontSize: "12px",
|
|
434
|
-
color: "#111827",
|
|
441
|
+
color: "var(--ou-text-primary, #111827)",
|
|
435
442
|
fontWeight: 600,
|
|
436
443
|
lineHeight: "1.3",
|
|
437
444
|
overflow: "hidden",
|
|
@@ -451,7 +458,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
451
458
|
>
|
|
452
459
|
<path
|
|
453
460
|
d="M6 3l5 5-5 5"
|
|
454
|
-
stroke="#6b7280"
|
|
461
|
+
stroke="var(--ou-text-muted, #6b7280)"
|
|
455
462
|
strokeWidth="1.5"
|
|
456
463
|
strokeLinecap="round"
|
|
457
464
|
strokeLinejoin="round"
|
|
@@ -509,7 +516,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
509
516
|
<span
|
|
510
517
|
style={{
|
|
511
518
|
fontSize: "10px",
|
|
512
|
-
color: "#b0b0b0",
|
|
519
|
+
color: "var(--ou-text-subtle, #b0b0b0)",
|
|
513
520
|
marginLeft: "auto",
|
|
514
521
|
whiteSpace: "nowrap",
|
|
515
522
|
}}
|
|
@@ -528,7 +535,7 @@ const UptimeBarTooltip: FunctionComponent<ComponentProps> = (
|
|
|
528
535
|
<div
|
|
529
536
|
style={{
|
|
530
537
|
fontSize: "11px",
|
|
531
|
-
color: "#9ca3af",
|
|
538
|
+
color: "var(--ou-text-subtle, #9ca3af)",
|
|
532
539
|
textAlign: "center",
|
|
533
540
|
padding: "4px 0 0",
|
|
534
541
|
fontWeight: 500,
|
|
@@ -3,6 +3,7 @@ import React, { FunctionComponent, ReactElement } from "react";
|
|
|
3
3
|
export interface ComponentProps {
|
|
4
4
|
leftComponents?: undefined | Array<ReactElement> | ReactElement;
|
|
5
5
|
rightComponents?: undefined | Array<ReactElement> | ReactElement;
|
|
6
|
+
mobileRightComponents?: undefined | Array<ReactElement> | ReactElement;
|
|
6
7
|
centerComponents?: undefined | Array<ReactElement> | ReactElement;
|
|
7
8
|
className?: string | undefined;
|
|
8
9
|
}
|
|
@@ -28,6 +29,12 @@ const Header: FunctionComponent<ComponentProps> = (
|
|
|
28
29
|
</div>
|
|
29
30
|
)}
|
|
30
31
|
|
|
32
|
+
{props.mobileRightComponents && (
|
|
33
|
+
<div className="relative z-20 flex items-center lg:hidden">
|
|
34
|
+
{props.mobileRightComponents}
|
|
35
|
+
</div>
|
|
36
|
+
)}
|
|
37
|
+
|
|
31
38
|
<div className="hidden lg:relative lg:z-10 lg:ml-4 lg:flex lg:items-center lg:gap-2">
|
|
32
39
|
{props.rightComponents}
|
|
33
40
|
</div>
|
|
@@ -19,6 +19,7 @@ export interface ComponentProps {
|
|
|
19
19
|
onClick?: (() => void) | undefined;
|
|
20
20
|
name: string;
|
|
21
21
|
showDropdown: boolean;
|
|
22
|
+
isPressed?: boolean | undefined;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
const HeaderIconDropdownButton: FunctionComponent<ComponentProps> = (
|
|
@@ -53,6 +54,7 @@ const HeaderIconDropdownButton: FunctionComponent<ComponentProps> = (
|
|
|
53
54
|
id={hasDropdown ? "user-menu-button" : undefined}
|
|
54
55
|
aria-expanded={hasDropdown ? isDropdownVisible : undefined}
|
|
55
56
|
aria-haspopup={hasDropdown ? "true" : undefined}
|
|
57
|
+
aria-pressed={props.isPressed}
|
|
56
58
|
onClick={() => {
|
|
57
59
|
props.onClick?.();
|
|
58
60
|
setIsComponentVisible(!isDropdownVisible);
|
|
@@ -2938,18 +2938,20 @@ const Icon: FunctionComponent<ComponentProps> = ({
|
|
|
2938
2938
|
);
|
|
2939
2939
|
} else if (icon === IconProp.Podman) {
|
|
2940
2940
|
/*
|
|
2941
|
-
* Podman mark — a
|
|
2942
|
-
*
|
|
2943
|
-
*
|
|
2944
|
-
*
|
|
2945
|
-
*
|
|
2941
|
+
* Podman mark — a clean side-profile silhouette of Podman's seal mascot:
|
|
2942
|
+
* head raised with a visible eye, an arched back, and trailing tail
|
|
2943
|
+
* flippers. The official emblem (a finely detailed seal inside a hexagonal
|
|
2944
|
+
* frame) collapses into an illegible blob at small sizes, so this reads as
|
|
2945
|
+
* a recognizable little sea creature down to ~16px and sits well beside the
|
|
2946
|
+
* other resource brand logos (Docker / Proxmox / Ceph). The eye is punched
|
|
2947
|
+
* out via the even-odd fill rule.
|
|
2946
2948
|
*/
|
|
2947
2949
|
return getSvgWrapper(
|
|
2948
2950
|
<path
|
|
2949
2951
|
fill="currentColor"
|
|
2950
2952
|
stroke="none"
|
|
2951
2953
|
fillRule="evenodd"
|
|
2952
|
-
d="M6.
|
|
2954
|
+
d="M6.6 8.4C6.2 6.6 7.4 5 9.2 4.9c1.6-.1 2.9 1 3.5 2.2.7-.5 1.7-.7 2.5-.2.6.36.8 1.06.5 1.6 1.9 1.3 3.2 3.4 3.6 5.9.9-.15 1.9.15 2.3.95.35.75-.2 1.45-1.1 1.7-1.5.42-3.2-.15-4.1-1.5-.3.95-.9 1.75-1.7 2.25 1.2.5 2 1.2 1.6 2-.3.6-1.2.7-2.2.4-1.7-.5-3-1.9-3.4-3.6-.9.9-2.2 1.4-3.5 1.3-1-.1-1.5-.8-1.2-1.5.25-.6.9-.9 1.6-1-1-1.5-1.5-3.4-1.4-5.3-.6-.3-1.05-.85-1.1-1.55ZM8.4 8a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"
|
|
2953
2955
|
/>,
|
|
2954
2956
|
);
|
|
2955
2957
|
} else if (icon === IconProp.Proxmox) {
|