@oneuptime/common 14.0.2 → 14.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/Alert.ts +55 -0
- package/Models/DatabaseModels/AlertFeed.ts +2 -0
- package/Models/DatabaseModels/DatabaseServer.ts +1650 -0
- package/Models/DatabaseModels/DatabaseServerEndpoint.ts +540 -0
- package/Models/DatabaseModels/DatabaseServerFeed.ts +625 -0
- package/Models/DatabaseModels/DatabaseServerLabelRule.ts +514 -0
- package/Models/DatabaseModels/DatabaseServerOwnerRule.ts +596 -0
- package/Models/DatabaseModels/DatabaseServerOwnerTeam.ts +491 -0
- package/Models/DatabaseModels/DatabaseServerOwnerUser.ts +490 -0
- package/Models/DatabaseModels/Incident.ts +55 -0
- package/Models/DatabaseModels/IncidentAlert.ts +540 -0
- package/Models/DatabaseModels/IncidentFeed.ts +2 -0
- package/Models/DatabaseModels/Index.ts +18 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.ts +26 -0
- package/Models/DatabaseModels/Project.ts +60 -0
- package/Models/DatabaseModels/RumApplication.ts +52 -1
- package/Models/DatabaseModels/ScheduledMaintenance.ts +55 -0
- package/Models/DatabaseModels/TelemetryException.ts +2 -0
- package/Models/DatabaseModels/UserProjectSsoConsent.ts +146 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1794800000000-AddSessionReplaySameOriginTracePropagation.ts +28 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1794900000000-AddIncidentAlert.ts +89 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1795000000000-AddDatabaseServerTables.ts +673 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1795100000000-AddUserProjectSsoConsent.ts +51 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +8 -0
- package/Server/Middleware/MultipartFormData.ts +1 -1
- package/Server/Middleware/TelemetryIngest.ts +15 -8
- package/Server/Services/AlertReminderRuleService.ts +100 -24
- package/Server/Services/DatabaseServerEndpointService.ts +895 -0
- package/Server/Services/DatabaseServerFeedService.ts +128 -0
- package/Server/Services/DatabaseServerLabelRuleEngineService.ts +340 -0
- package/Server/Services/DatabaseServerLabelRuleService.ts +14 -0
- package/Server/Services/DatabaseServerOwnerRuleEngineService.ts +425 -0
- package/Server/Services/DatabaseServerOwnerRuleService.ts +14 -0
- package/Server/Services/DatabaseServerOwnerTeamService.ts +180 -0
- package/Server/Services/DatabaseServerOwnerUserService.ts +173 -0
- package/Server/Services/DatabaseServerService.ts +4546 -0
- package/Server/Services/DatabaseService.ts +14 -8
- package/Server/Services/DockerResourceService.ts +43 -2
- package/Server/Services/IncidentAlertService.ts +1811 -0
- package/Server/Services/IncidentReminderRuleService.ts +103 -23
- package/Server/Services/IncidentService.ts +210 -10
- package/Server/Services/IncidentStateTimelineService.ts +24 -0
- package/Server/Services/Index.ts +18 -0
- package/Server/Services/InventoryItemService.ts +113 -5
- package/Server/Services/IoTDeviceService.ts +145 -37
- package/Server/Services/OpenTelemetryIngestService.ts +19 -0
- package/Server/Services/PodmanResourceService.ts +43 -2
- package/Server/Services/ScheduledMaintenanceReminderRuleService.ts +107 -23
- package/Server/Services/ServiceService.ts +1 -1
- package/Server/Services/TelemetryUsageBillingService.ts +29 -2
- package/Server/Services/UserProjectSsoConsentService.ts +74 -0
- package/Server/Services/UserService.ts +14 -1
- package/Server/Types/Database/Permissions/OwnerTableRegistry.ts +18 -0
- package/Server/Types/Database/QueryHelper.ts +30 -1
- package/Server/Utils/AI/Toolbox/ResourceTools.ts +69 -1
- package/Server/Utils/Database/AffectedResourceRelations.ts +6 -0
- package/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.ts +188 -6
- package/Server/Utils/Monitor/MonitorAlert.ts +28 -1
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +2262 -755
- package/Server/Utils/Monitor/MonitorIncident.ts +28 -1
- package/Server/Utils/Monitor/MonitorMaintenanceSuppression.ts +268 -6
- package/Server/Utils/Monitor/MonitorResource.ts +47 -11
- package/Server/Utils/Monitor/MonitorResourceContext.ts +1 -0
- package/Server/Utils/Monitor/MonitorStepResourceIdentity.ts +239 -21
- package/Server/Utils/Monitor/PerSeriesResolutionRootCause.ts +43 -0
- package/Server/Utils/Monitor/SeriesResourceLabels.ts +291 -0
- package/Server/Utils/Monitor/SeriesResourceLinker.ts +111 -12
- package/Server/Utils/Rules/RuleRun/RuleRunRegistry.ts +25 -0
- package/Server/Utils/SessionReplay/SessionReplayGateCache.ts +24 -2
- package/Server/Utils/StartServer.ts +26 -6
- package/Server/Utils/TeamMember/ProjectLeaveResourceCleanup.ts +2 -0
- package/Server/Utils/Telemetry/DatabaseEndpointDiscovery.ts +688 -0
- package/Server/Utils/Telemetry/EntityRegistry.ts +5 -1
- package/Server/Utils/Telemetry/LogExceptionExtractor.ts +18 -1
- package/Server/Utils/Telemetry/ResourceEntityFilter.ts +175 -12
- package/Server/Utils/Telemetry/ResourceFacetResolver.ts +12 -0
- package/Server/Utils/Telemetry/ServiceDependencyDiscovery.ts +606 -36
- package/Server/Utils/Telemetry/Telemetry.ts +16 -0
- package/Server/Utils/Telemetry/TelemetryEntity.ts +22 -22
- package/Server/Utils/Telemetry/TelemetryIngestionKeyGuard.ts +16 -10
- package/Tests/App/Accounts/SignedInRedirect.test.tsx +241 -0
- package/Tests/App/AdminDashboard/AdminHeaderSmallScreens.test.tsx +221 -4
- package/Tests/App/Dashboard/AIInsightsResourcePageContext.test.ts +42 -0
- package/Tests/App/Dashboard/AffectedResourcesDisplay.test.tsx +100 -0
- package/Tests/App/Dashboard/AffectedResourcesPicker.test.tsx +86 -0
- package/Tests/App/Dashboard/AffectedResourcesPickerHiddenTypes.test.tsx +2 -0
- package/Tests/App/Dashboard/AffectedResourcesSummaryStep.test.tsx +19 -0
- package/Tests/App/Dashboard/BreadcrumbCoverage.test.tsx +14 -0
- package/Tests/App/Dashboard/BulkIncidentLinkActions.test.tsx +869 -0
- package/Tests/App/Dashboard/CephMetricTooltips.test.tsx +1777 -0
- package/Tests/App/Dashboard/CloudFleetSummary.test.ts +8 -0
- package/Tests/App/Dashboard/CloudMetricTooltips.test.tsx +887 -0
- package/Tests/App/Dashboard/ContainerHostMetricTooltips.test.tsx +1309 -0
- package/Tests/App/Dashboard/CorrelateFilterBuilder.test.tsx +26 -1
- package/Tests/App/Dashboard/DashboardAppSsoError.test.tsx +501 -0
- package/Tests/App/Dashboard/DashboardHeaderRequests.test.tsx +64 -1
- package/Tests/App/Dashboard/DashboardHeaderSmallScreens.test.tsx +178 -18
- package/Tests/App/Dashboard/DashboardMasterPageSsoRedirect.test.tsx +444 -0
- package/Tests/App/Dashboard/DashboardNavBarForeignHiddenRule.test.tsx +573 -0
- package/Tests/App/Dashboard/DatabaseChartAxes.test.tsx +431 -0
- package/Tests/App/Dashboard/DatabaseContainerDetailBadge.test.tsx +249 -0
- package/Tests/App/Dashboard/DatabaseDashboardE2EFixes.test.ts +681 -0
- package/Tests/App/Dashboard/DatabaseDocumentationMarkdown.test.ts +1801 -0
- package/Tests/App/Dashboard/DatabaseFleetSummaryRefresh.test.tsx +280 -0
- package/Tests/App/Dashboard/DatabaseFormHelpers.test.tsx +321 -0
- package/Tests/App/Dashboard/DatabaseMetricMonitorLink.test.tsx +795 -0
- package/Tests/App/Dashboard/DatabaseOverviewHeader.test.tsx +580 -0
- package/Tests/App/Dashboard/DatabaseRecommendationsEngineMetrics.test.ts +270 -0
- package/Tests/App/Dashboard/DatabaseServerComponents.test.tsx +1486 -0
- package/Tests/App/Dashboard/DatabaseServerEngineMetricsFilter.test.ts +223 -0
- package/Tests/App/Dashboard/DatabaseServerPresentation.test.ts +435 -0
- package/Tests/App/Dashboard/DatabaseServerSummary.test.ts +186 -0
- package/Tests/App/Dashboard/DatabaseServerTelemetryQueries.test.ts +1553 -0
- package/Tests/App/Dashboard/DatabaseTableTruncation.test.tsx +326 -0
- package/Tests/App/Dashboard/DatabaseTelemetryScope.test.ts +512 -0
- package/Tests/App/Dashboard/DatabaseTelemetryTabs.test.tsx +774 -0
- package/Tests/App/Dashboard/DatabaseViewLayout.test.tsx +233 -0
- package/Tests/App/Dashboard/DatabaseWorkloadBadge.test.tsx +972 -0
- package/Tests/App/Dashboard/DiscoveryReviewInventoryRefresh.test.tsx +5 -0
- package/Tests/App/Dashboard/DiscoveryReviewUnnamedHostHint.test.tsx +1061 -0
- package/Tests/App/Dashboard/DiscoveryScanLivePage.test.tsx +39 -0
- package/Tests/App/Dashboard/DockerSwarmClustersListTooltips.test.tsx +414 -0
- package/Tests/App/Dashboard/DockerSwarmMetricTooltips.test.ts +796 -0
- package/Tests/App/Dashboard/DockerSwarmOverviewTooltips.test.tsx +747 -0
- package/Tests/App/Dashboard/EventOverlayScope.test.ts +147 -0
- package/Tests/App/Dashboard/EventOverlayScopeHook.test.tsx +1 -0
- package/Tests/App/Dashboard/ExceptionMonitorEnvironmentFilter.test.tsx +38 -18
- package/Tests/App/Dashboard/HostDetailViewTooltips.test.tsx +725 -0
- package/Tests/App/Dashboard/HostListColumnTooltips.test.tsx +472 -0
- package/Tests/App/Dashboard/HostMetricTooltips.test.ts +709 -0
- package/Tests/App/Dashboard/HostOverviewTooltips.test.tsx +698 -0
- package/Tests/App/Dashboard/HostTooltipHarness.ts +124 -0
- package/Tests/App/Dashboard/HostsListTooltips.test.tsx +395 -0
- package/Tests/App/Dashboard/IncidentAlertLinkDialog.test.tsx +691 -0
- package/Tests/App/Dashboard/IncidentAlertLinkHelpers.test.ts +458 -0
- package/Tests/App/Dashboard/IncidentAlertLinkPages.test.tsx +828 -0
- package/Tests/App/Dashboard/IncidentAlertLinkSideMenus.test.tsx +231 -0
- package/Tests/App/Dashboard/IncidentCreateFromAlerts.test.tsx +689 -0
- package/Tests/App/Dashboard/IoTMetricTooltips.test.tsx +1123 -0
- package/Tests/App/Dashboard/KubernetesClusterMetricTooltips.test.ts +837 -0
- package/Tests/App/Dashboard/KubernetesClusterOverviewTooltips.test.tsx +699 -0
- package/Tests/App/Dashboard/KubernetesContainersTabTooltips.test.tsx +320 -0
- package/Tests/App/Dashboard/KubernetesCostTooltips.test.tsx +502 -0
- package/Tests/App/Dashboard/KubernetesInsightsTooltips.test.tsx +222 -0
- package/Tests/App/Dashboard/KubernetesResourceMetricTooltips.test.ts +561 -0
- package/Tests/App/Dashboard/KubernetesResourcePagesTooltips.test.tsx +1168 -0
- package/Tests/App/Dashboard/LinkIncidentAlertModal.test.tsx +154 -0
- package/Tests/App/Dashboard/LogsResourceFacetChips.test.tsx +1 -0
- package/Tests/App/Dashboard/MetricDescriptionRules.ts +170 -0
- package/Tests/App/Dashboard/MetricDescriptionsCatalog.test.ts +206 -0
- package/Tests/App/Dashboard/MetricDescriptionsConsistency.test.ts +275 -0
- package/Tests/App/Dashboard/MetricsViewerDrillDown.test.tsx +310 -0
- package/Tests/App/Dashboard/MetricsViewerEntityScopedRows.test.tsx +495 -0
- package/Tests/App/Dashboard/MonitorCreateFromMonitorBackedDevice.test.tsx +132 -1
- package/Tests/App/Dashboard/NavigationSearchKeywords.test.tsx +5 -0
- package/Tests/App/Dashboard/NetworkDeviceTooltips.test.tsx +852 -0
- package/Tests/App/Dashboard/NetworkDiagnosticsTooltips.test.tsx +556 -0
- package/Tests/App/Dashboard/NetworkMetricTooltips.test.ts +1348 -0
- package/Tests/App/Dashboard/NetworkSiteTooltips.test.tsx +679 -0
- package/Tests/App/Dashboard/ProductOrientation.test.tsx +4 -3
- package/Tests/App/Dashboard/ProxmoxMetricTooltips.test.ts +592 -0
- package/Tests/App/Dashboard/ProxmoxOverviewTooltips.test.tsx +1002 -0
- package/Tests/App/Dashboard/ProxmoxResourcePageTooltips.test.tsx +923 -0
- package/Tests/App/Dashboard/RecommendationsLoadedContext.test.tsx +349 -0
- package/Tests/App/Dashboard/ResourceArchiveSettings.test.tsx +62 -0
- package/Tests/App/Dashboard/ResourceFeedPageWiring.test.ts +8 -1
- package/Tests/App/Dashboard/ResourceFeedPagesFilterSort.test.tsx +14 -0
- package/Tests/App/Dashboard/ResourceOverviewTileTooltips.test.tsx +1066 -0
- package/Tests/App/Dashboard/RumOverviewPage.test.tsx +1195 -0
- package/Tests/App/Dashboard/ScheduledMaintenanceOverviewPage.test.tsx +2 -0
- package/Tests/App/Dashboard/ServerlessMetricTooltips.test.tsx +474 -0
- package/Tests/App/Dashboard/ServiceMapDatabaseLink.test.tsx +1085 -0
- package/Tests/App/Dashboard/ServiceMetricTooltips.test.tsx +772 -0
- package/Tests/App/Dashboard/SessionReplayAuditTable.test.tsx +56 -1
- package/Tests/App/Dashboard/TelemetryMetricsSignals.test.ts +1207 -0
- package/Tests/App/Dashboard/TelemetryResourceRetentionSettings.test.tsx +10 -0
- package/Tests/App/Dashboard/TelemetryResourceTabTooltips.test.tsx +437 -0
- package/Tests/App/Dashboard/TracesResourceFacets.test.tsx +2 -1
- package/Tests/App/Dashboard/VMwareMetricTooltips.test.ts +801 -0
- package/Tests/App/Dashboard/VMwareOverviewTooltips.test.tsx +601 -0
- package/Tests/App/Dashboard/VMwareResourcePagesTooltips.test.tsx +646 -0
- package/Tests/App/Dashboard/VMwareTooltipHarness.ts +145 -0
- package/Tests/App/StatusPage/StatusPageHeaderForeignHiddenRule.test.tsx +284 -0
- package/Tests/ClassStrings.ts +178 -0
- package/Tests/Fixtures/MobilePasskeyUser.json +1 -2
- package/Tests/ForeignHiddenRuleGuard.ts +2152 -0
- package/Tests/Models/DatabaseModels/DatabaseServerModels.test.ts +2250 -0
- package/Tests/Models/DatabaseModels/IncidentAlertModel.test.ts +554 -0
- package/Tests/Models/DatabaseModels/ResourceFeedModels.test.ts +24 -5
- package/Tests/Models/DatabaseModels/SessionReplayModels.test.ts +117 -0
- package/Tests/Models/DatabaseModels/StaticRuleCriteriaInheritance.test.ts +4 -2
- package/Tests/RenderedMarkup.ts +518 -0
- package/Tests/ResponsiveVisibility.test.ts +490 -4
- package/Tests/ResponsiveVisibility.ts +505 -52
- package/Tests/Server/Infrastructure/Postgres/AddConfigurableRuleCriteriaMigration.test.ts +3 -0
- package/Tests/Server/Infrastructure/Postgres/AddDatabaseServerTablesMigration.test.ts +541 -0
- package/Tests/Server/Infrastructure/Postgres/AddIncidentAlertMigration.test.ts +341 -0
- package/Tests/Server/Infrastructure/Postgres/AddSessionReplaySameOriginTracePropagationMigration.test.ts +247 -0
- package/Tests/Server/Infrastructure/Postgres/AddUserProjectSsoConsentMigration.test.ts +234 -0
- package/Tests/Server/Services/ContainerSnapshotUpsertPostgres.test.ts +319 -0
- package/Tests/Server/Services/CrossProjectRelationWriteGuard.test.ts +13 -0
- package/Tests/Server/Services/DatabaseServerEndpointService.test.ts +2033 -0
- package/Tests/Server/Services/DatabaseServerFeedAndOwnerServices.test.ts +529 -0
- package/Tests/Server/Services/DatabaseServerLifecycle.test.ts +3302 -0
- package/Tests/Server/Services/DatabaseServerRegistries.test.ts +603 -0
- package/Tests/Server/Services/DatabaseServerRuleEngines.test.ts +754 -0
- package/Tests/Server/Services/DatabaseServerService.test.ts +3558 -0
- package/Tests/Server/Services/DatabaseServerSqlPostgres.test.ts +2045 -0
- package/Tests/Server/Services/DatabaseServiceUpdateColumnsIfUnlockedPostgres.test.ts +362 -0
- package/Tests/Server/Services/DatabaseServiceUpdateColumnsIfUnlockedReply.test.ts +210 -0
- package/Tests/Server/Services/HookFreeWriteLengthClamp.test.ts +18 -0
- package/Tests/Server/Services/IncidentAlertPostgres.test.ts +903 -0
- package/Tests/Server/Services/IncidentAlertRegistration.test.ts +96 -0
- package/Tests/Server/Services/IncidentAlertService.test.ts +2225 -0
- package/Tests/Server/Services/IncidentAlertSloLinkSurvivesEdit.test.ts +2 -0
- package/Tests/Server/Services/IncidentAlertStateCascade.test.ts +970 -0
- package/Tests/Server/Services/IncidentCreateFromAlerts.test.ts +1284 -0
- package/Tests/Server/Services/IncomingCallPolicyEscalationRuleTarget.test.ts +225 -0
- package/Tests/Server/Services/InventoryItemDisplayName.test.ts +280 -2
- package/Tests/Server/Services/InventoryUpsertSchemaParity.test.ts +8 -2
- package/Tests/Server/Services/IoTDeviceLatestMetricsPostgres.test.ts +689 -0
- package/Tests/Server/Services/IoTDeviceService.test.ts +379 -0
- package/Tests/Server/Services/LatestMetricsValuesShape.test.ts +360 -0
- package/Tests/Server/Services/LlmModelPriceService.test.ts +402 -0
- package/Tests/Server/Services/OpenTelemetryResourceRetentionMemo.test.ts +7 -1
- package/Tests/Server/Services/OwnerRowUniqueness.test.ts +61 -9
- package/Tests/Server/Services/ReminderRuleLookupPostgres.test.ts +2250 -0
- package/Tests/Server/Services/ReminderRuleRefreshOpenSubjectsPaging.test.ts +653 -0
- package/Tests/Server/Services/ResourceUpdateLastSeenLivenessFallback.test.ts +68 -20
- package/Tests/Server/Services/StaticRuleCriteriaRuntimeCoverage.test.ts +3 -3
- package/Tests/Server/Services/TelemetryResourceFacetCounting.test.ts +9 -0
- package/Tests/Server/Services/UserProjectSsoConsentPostgres.test.ts +153 -0
- package/Tests/Server/Services/UserProjectSsoConsentService.test.ts +192 -0
- package/Tests/Server/Services/UserServiceFirstMasterAdminElection.test.ts +71 -0
- package/Tests/Server/Services/UserSignupIdTakeoverPostgres.test.ts +238 -0
- package/Tests/Server/Services/WorkspaceNotificationSummaryHelpers.test.ts +592 -0
- package/Tests/Server/Types/Billing/PayAsYouGoMeteredAuthorization.test.ts +3 -0
- package/Tests/Server/Types/Database/EventOverlayScopePostgres.test.ts +1 -0
- package/Tests/Server/Types/Database/FeedEventTypeFilterQuery.test.ts +11 -0
- package/Tests/Server/Types/Database/Permissions/InfrastructureOwnershipScope.test.ts +8 -0
- package/Tests/Server/Types/Database/QueryHelperBooleanForCriteriaBackedRule.test.ts +1094 -0
- package/Tests/Server/Utils/AI/ResourceTools.test.ts +134 -0
- package/Tests/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.test.ts +41 -0
- package/Tests/Server/Utils/Monitor/Criteria/MetricMonitorCriteriaAnomalyUnits.test.ts +279 -9
- package/Tests/Server/Utils/Monitor/Criteria/MetricMonitorCriteriaDisplayContext.test.ts +933 -0
- package/Tests/Server/Utils/Monitor/DatabaseMaintenanceSuppression.test.ts +582 -0
- package/Tests/Server/Utils/Monitor/DatabaseServerMonitorLinking.test.ts +753 -0
- package/Tests/Server/Utils/Monitor/MonitorActionTimestamps.test.ts +1 -0
- package/Tests/Server/Utils/Monitor/MonitorAlertCriteriaReferences.test.ts +1 -0
- package/Tests/Server/Utils/Monitor/MonitorAlertResourceLinking.test.ts +119 -0
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluator.test.ts +60 -25
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluatorAffectedResourceEdgeCases.test.ts +1719 -0
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluatorKubernetesAffectedResources.test.ts +1447 -0
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluatorKubernetesRatioEmail.test.ts +352 -0
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluatorPlatformMetricUnits.test.ts +717 -0
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluatorPlatformRawScan.test.ts +2125 -0
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluatorPlatformSeriesAffectedResources.test.ts +1288 -0
- package/Tests/Server/Utils/Monitor/MonitorDependencySuppressionCreatorSkip.test.ts +1 -0
- package/Tests/Server/Utils/Monitor/MonitorIncidentCriteriaReferences.test.ts +1 -0
- package/Tests/Server/Utils/Monitor/MonitorIncidentMemberRoleMembership.test.ts +1 -0
- package/Tests/Server/Utils/Monitor/MonitorIncidentResourceLinking.test.ts +88 -0
- package/Tests/Server/Utils/Monitor/MonitorMaintenanceSuppression.test.ts +205 -0
- package/Tests/Server/Utils/Monitor/MonitorResourceContext.test.ts +62 -0
- package/Tests/Server/Utils/Monitor/MonitorResourceDatabaseMaintenance.test.ts +803 -0
- package/Tests/Server/Utils/Monitor/MonitorStepResourceIdentity.test.ts +133 -3
- package/Tests/Server/Utils/Monitor/MonitorSummaryPersistence.test.ts +1 -0
- package/Tests/Server/Utils/Monitor/PerSeriesRecoveryResolution.test.ts +472 -1
- package/Tests/Server/Utils/Monitor/PerSeriesSecondEntityAlerting.test.ts +1 -0
- package/Tests/Server/Utils/Monitor/SeriesResourceLinker.test.ts +236 -2
- package/Tests/Server/Utils/SeriesResourceLabels.test.ts +70 -0
- package/Tests/Server/Utils/SessionReplay/SessionReplayGateCachePolicy.test.ts +103 -0
- package/Tests/Server/Utils/StartServerProtobufContentType.test.ts +54 -0
- package/Tests/Server/Utils/Telemetry/DatabaseEndpointDiscovery.test.ts +1895 -0
- package/Tests/Server/Utils/Telemetry/EntityRegistry.test.ts +7 -0
- package/Tests/Server/Utils/Telemetry/LogExceptionExtractorSeverityGate.test.ts +90 -0
- package/Tests/Server/Utils/Telemetry/ResourceEntityFilter.test.ts +570 -0
- package/Tests/Server/Utils/Telemetry/ResourceFacetResolver.test.ts +97 -2
- package/Tests/Server/Utils/Telemetry/ServiceDependencyDiscovery.test.ts +1337 -0
- package/Tests/Server/Utils/Telemetry/TelemetryEntity.test.ts +295 -0
- package/Tests/Types/AI/AIResourceContext.test.ts +30 -0
- package/Tests/Types/DatabaseServer/DatabaseContainerClassifier.test.ts +3644 -0
- package/Tests/Types/DatabaseServer/DatabaseContainerCommand.test.ts +340 -0
- package/Tests/Types/DatabaseServer/DatabaseContainerCommandCorpus.ts +826 -0
- package/Tests/Types/DatabaseServer/DatabaseContainerCommandPostgres.test.ts +150 -0
- package/Tests/Types/DatabaseServer/DatabaseEndpoint.test.ts +2657 -0
- package/Tests/Types/DatabaseServer/DatabaseServerDiscoverySource.test.ts +64 -0
- package/Tests/Types/DatabaseServer/DatabaseServerEntityKeys.test.ts +952 -0
- package/Tests/Types/DatabaseServer/DatabaseServerMetricCatalog.test.ts +1161 -0
- package/Tests/Types/DatabaseServer/DatabaseSystem.test.ts +1514 -0
- package/Tests/Types/DatabaseServer/DatabaseTelemetryResolver.test.ts +1558 -0
- package/Tests/Types/Monitor/CephAlertTemplates.test.ts +255 -6
- package/Tests/Types/Monitor/DatabaseAlertTemplates.test.ts +2254 -0
- package/Tests/Types/Monitor/KubernetesAlertTemplates.test.ts +298 -0
- package/Tests/Types/Monitor/KubernetesMetricCatalog.test.ts +271 -0
- package/Tests/Types/Monitor/Recommendation/MonitorRecommendationCatalog.test.ts +253 -9
- package/Tests/Types/Monitor/Recommendation/MonitorRecommendationCoverage.test.ts +13 -5
- package/Tests/Types/Monitor/Recommendation/MonitorRecommendationNotificationMode.test.ts +4 -2
- package/Tests/Types/Monitor/Recommendation/MonitorRecommendationUtil.test.ts +111 -2
- package/Tests/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.test.ts +61 -0
- package/Tests/Types/Monitor/SeriesContext/SeriesLabelDisplay.test.ts +114 -0
- package/Tests/Types/Monitor/Utils/KubernetesAgentEmittedMetrics.ts +181 -0
- package/Tests/Types/NetworkDevice/DiscoveredHostNamingStatus.test.ts +401 -0
- package/Tests/Types/Rum/WebVitals.test.ts +173 -0
- package/Tests/Types/Telemetry/ResourceEntityFacet.test.ts +4 -1
- package/Tests/Types/Telemetry/ResourceFacetCatalog.test.ts +24 -2
- package/Tests/UI/Components/Card.test.tsx +93 -2
- package/Tests/UI/Components/FeedOptions.test.ts +6 -0
- package/Tests/UI/Components/FeedOptionsButton.test.tsx +8 -1
- package/Tests/UI/Components/FieldLabelInfoCardTooltip.test.tsx +413 -0
- package/Tests/UI/Components/ForeignHiddenRuleResilience.test.tsx +1147 -0
- package/Tests/UI/Components/HeaderRightRail.test.tsx +41 -1
- package/Tests/UI/Components/InfoTooltip.test.tsx +242 -0
- package/Tests/UI/Components/LogsEntityNames.test.ts +16 -1
- package/Tests/UI/Components/LogsFacetSidebarHiddenFacets.test.tsx +7 -3
- package/Tests/UI/Components/ModelTable/BaseModelTableBulkDelete.test.tsx +207 -3
- package/Tests/UI/Components/ModelTable/BaseModelTableBulkDeleteVerb.test.tsx +367 -0
- package/Tests/UI/Components/ModelTable/BaseModelTableCreateButtonTitle.test.tsx +275 -0
- package/Tests/UI/Components/ResourceFacetConfigs.test.ts +2 -1
- package/Tests/UI/Components/RuleCriteria/RuleCriteriaModelTable.test.tsx +3 -3
- package/Tests/UI/Components/SrOnlyForeignRule.test.tsx +994 -0
- package/Tests/UI/Components/StatusPage/ResourceListSelection.test.tsx +34 -1
- package/Tests/UI/Components/TableHeaderTooltip.test.tsx +662 -0
- package/Tests/UI/Components/TelemetryFacetSidebarHiddenFacets.test.tsx +4 -1
- package/Tests/UI/ForeignHiddenRuleGuard.test.ts +1951 -0
- package/Tests/UI/Rum/PrivacySummaryCard.test.tsx +166 -9
- package/Tests/UI/Rum/RecordingHealthTooltips.test.tsx +447 -0
- package/Tests/UI/Rum/ReplayCorrelationPanel.test.tsx +164 -0
- package/Tests/UI/Rum/ReplayFrameCapture.test.ts +6750 -0
- package/Tests/UI/Rum/ReplayPlayerChrome.test.tsx +19 -1
- package/Tests/UI/Rum/ReplayRail.test.tsx +723 -12
- package/Tests/UI/Rum/ReplayRailDetail.test.tsx +86 -0
- package/Tests/UI/Rum/ReplayScreenshot.test.ts +2124 -0
- package/Tests/UI/Rum/ReplayScreenshotActions.test.tsx +3288 -0
- package/Tests/UI/Rum/ReplayStage.test.tsx +62 -0
- package/Tests/UI/Rum/ReplayStageOverlays.test.tsx +983 -2
- package/Tests/UI/Rum/ReplayTabSwitcher.test.tsx +19 -1
- package/Tests/UI/Rum/SessionReplaySettingsPolicyLoading.test.tsx +149 -0
- package/Tests/UI/Rum/SessionReplaySetupGuide.test.tsx +107 -6
- package/Tests/UI/Rum/SessionReplayUsersTableTooltips.test.tsx +330 -0
- package/Tests/UI/Rum/UserFlowTooltips.test.tsx +886 -0
- package/Tests/UI/TailwindPlayCdnForeignHiddenRule.test.ts +1005 -0
- package/Tests/UI/ThemeGroupHoverReveal.test.ts +847 -0
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealBreadcrumbTrails.ts +80 -0
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealRoutePatterns.ts +23 -0
- package/Tests/UI/Utils/ModelAPISsoRedirect.test.ts +127 -0
- package/Tests/UI/Utils/Navigation.test.ts +102 -0
- package/Tests/UI/Utils/PermissionGate.test.ts +76 -0
- package/Tests/UI/Utils/Telemetry/TelemetryEntityNames.test.ts +23 -0
- package/Tests/Utils/Incident/IncidentFromAlerts.test.ts +696 -0
- package/Tests/Utils/LabelRuleImportExport.test.ts +5 -0
- package/Tests/Utils/MetricUnitUtil.test.ts +227 -2
- package/Tests/Utils/Monitor/MetricValueFormatter.test.ts +288 -2
- package/Tests/Utils/Monitor/PlatformResourceIdentityAndUnits.test.ts +1559 -0
- package/Tests/Utils/NetworkDiscovery/DiscoveredHostNamingDiagnosis.test.ts +2546 -0
- package/Tests/Utils/NetworkDiscovery/DiscoveredHostUtil.test.ts +315 -0
- package/Tests/Utils/NetworkDiscovery/DiscoveryReverseDnsChain.test.ts +336 -1
- package/Tests/Utils/NetworkDiscovery/NetbiosNameUtil.test.ts +244 -0
- package/Tests/Utils/Rum/SessionTraceState.test.ts +239 -0
- package/Tests/Utils/ValueFormatter.test.ts +50 -0
- package/Tests/tsconfig.json +16 -0
- package/Types/AI/AIResourceContext.ts +7 -0
- package/Types/Dashboard/DashboardTemplates.ts +2 -1
- package/Types/DatabaseServer/DatabaseConnectionSpan.ts +77 -0
- package/Types/DatabaseServer/DatabaseContainerClassifier.ts +2068 -0
- package/Types/DatabaseServer/DatabaseContainerCommand.ts +801 -0
- package/Types/DatabaseServer/DatabaseEndpoint.ts +1943 -0
- package/Types/DatabaseServer/DatabaseServerDiscoverySource.ts +68 -0
- package/Types/DatabaseServer/DatabaseServerMetricCatalog.ts +966 -0
- package/Types/DatabaseServer/DatabaseSystem.ts +2124 -0
- package/Types/DatabaseServer/DatabaseTelemetryResolver.ts +555 -0
- package/Types/Email/EmailTemplateType.ts +1 -0
- package/Types/Incident/IncidentAlertLink.ts +38 -0
- package/Types/Monitor/CephAlertTemplates.ts +18 -0
- package/Types/Monitor/DatabaseAlertTemplates.ts +2020 -0
- package/Types/Monitor/KubernetesAlertTemplates.ts +64 -24
- package/Types/Monitor/KubernetesMetricCatalog.ts +118 -19
- package/Types/Monitor/MetricMonitor/MetricCriteriaContext.ts +14 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.ts +93 -10
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.ts +109 -8
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.ts +36 -7
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.ts +43 -2
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.ts +41 -6
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.ts +26 -0
- package/Types/NetworkDevice/DiscoveredHostNamingStatus.ts +147 -0
- package/Types/Permission.ts +315 -0
- package/Types/Probe/ProbeApiIngestResponse.ts +8 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.ts +10 -0
- package/Types/Rules/RuleRun.ts +12 -0
- package/Types/Rum/SessionReplay.ts +25 -6
- package/Types/Rum/WebVitals.ts +52 -0
- package/Types/Telemetry/EntityType.ts +23 -0
- package/Types/Telemetry/ResourceFacetCatalog.ts +14 -0
- package/Types/Telemetry/ServiceType.ts +8 -0
- package/UI/Components/Banner/Banner.tsx +1 -1
- package/UI/Components/Card/Card.tsx +1 -1
- package/UI/Components/Charts/ChartGroup/ChartGroup.tsx +2 -2
- package/UI/Components/Charts/Line/LineChart.tsx +7 -0
- package/UI/Components/CommandPalette/CommandPalette.tsx +1 -1
- package/UI/Components/Date/StartAndEndDate.tsx +5 -5
- package/UI/Components/Detail/FieldLabel.tsx +8 -0
- package/UI/Components/Diagram/HorizontalStepChain.tsx +1 -1
- package/UI/Components/Feed/FeedOptionsButton.tsx +1 -1
- package/UI/Components/Forms/BasicForm.tsx +1 -1
- package/UI/Components/Header/Header.tsx +1 -1
- package/UI/Components/Header/HeaderIconDropdownButton.tsx +1 -1
- package/UI/Components/HeaderAlert/HeaderAlert.tsx +1 -1
- package/UI/Components/InfoCard/InfoCard.tsx +47 -1
- package/UI/Components/LogsViewer/components/FacetValueRow.tsx +1 -1
- package/UI/Components/LogsViewer/components/LogsFacetSidebar.tsx +1 -1
- package/UI/Components/Modal/ModalFooter.tsx +1 -1
- package/UI/Components/ModelDetail/CardModelDetail.tsx +2 -2
- package/UI/Components/ModelTable/BaseModelTable.tsx +99 -21
- package/UI/Components/ModelTable/Column.ts +5 -0
- package/UI/Components/Navbar/NavBar.tsx +9 -2
- package/UI/Components/Navbar/NavBarMenuModal.tsx +2 -2
- package/UI/Components/Page/Page.tsx +1 -1
- package/UI/Components/Pagination/Pagination.tsx +3 -3
- package/UI/Components/ProgressButtons/ProgressButtonItem.tsx +1 -1
- package/UI/Components/SideMenu/SideMenu.tsx +4 -1
- package/UI/Components/StatusPage/ResourceGroupNavigator.tsx +4 -2
- package/UI/Components/StatusPage/ResourceList.tsx +6 -6
- package/UI/Components/Table/TableHeader.tsx +47 -2
- package/UI/Components/Table/Types/Column.ts +7 -0
- package/UI/Components/TelemetryViewer/components/TelemetryFacetSidebar.tsx +1 -1
- package/UI/Components/TelemetryViewer/components/TelemetryFacetValueRow.tsx +1 -1
- package/UI/Components/Tooltip/InfoTooltip.tsx +78 -0
- package/UI/Components/Workflow/ColumnEditor/ModelQueryBuilder.tsx +1 -1
- package/UI/Components/Workflow/ComponentsModal.tsx +2 -2
- package/UI/Components/Workflow/StepTraceViewer.tsx +1 -1
- package/UI/Styles/Theme.css +8 -1
- package/UI/Utils/Navigation.ts +89 -42
- package/UI/Utils/PermissionGate.ts +11 -2
- package/UI/Utils/Telemetry/TelemetryEntityNames.ts +7 -0
- package/UI/Utils/TelemetryService.ts +4 -3
- package/Utils/Incident/IncidentFromAlerts.ts +516 -0
- package/Utils/LabelRuleImportExport.ts +2 -0
- package/Utils/MetricUnitUtil.ts +103 -11
- package/Utils/Monitor/MetricValueFormatter.ts +66 -13
- package/Utils/Monitor/PlatformMetricUnitUtil.ts +215 -0
- package/Utils/Monitor/PlatformResourceIdentity.ts +514 -0
- package/Utils/NetworkDiscovery/DiscoveredHostNamingDiagnosis.ts +425 -0
- package/Utils/NetworkDiscovery/DiscoveredHostUtil.ts +32 -0
- package/Utils/NetworkDiscovery/NetbiosNameUtil.ts +73 -0
- package/Utils/Rum/SessionTraceState.ts +212 -0
- package/Utils/Telemetry/DatabaseServerEntityKeys.ts +275 -0
- package/Utils/Telemetry/EntityKey.ts +176 -0
- package/Utils/ValueFormatter.ts +16 -0
- package/build/dist/Models/DatabaseModels/Alert.js +54 -0
- package/build/dist/Models/DatabaseModels/Alert.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertFeed.js +2 -0
- package/build/dist/Models/DatabaseModels/AlertFeed.js.map +1 -1
- package/build/dist/Models/DatabaseModels/DatabaseServer.js +1683 -0
- package/build/dist/Models/DatabaseModels/DatabaseServer.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerEndpoint.js +559 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerEndpoint.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerFeed.js +648 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerFeed.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerOwnerTeam.js +506 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerOwnerUser.js +505 -0
- package/build/dist/Models/DatabaseModels/DatabaseServerOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Incident.js +54 -0
- package/build/dist/Models/DatabaseModels/Incident.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentAlert.js +553 -0
- package/build/dist/Models/DatabaseModels/IncidentAlert.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentFeed.js +2 -0
- package/build/dist/Models/DatabaseModels/IncidentFeed.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +18 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Project.js +62 -0
- package/build/dist/Models/DatabaseModels/Project.js.map +1 -1
- package/build/dist/Models/DatabaseModels/RumApplication.js +53 -1
- package/build/dist/Models/DatabaseModels/RumApplication.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ScheduledMaintenance.js +54 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TelemetryException.js +2 -0
- package/build/dist/Models/DatabaseModels/TelemetryException.js.map +1 -1
- package/build/dist/Models/DatabaseModels/UserProjectSsoConsent.js +162 -0
- package/build/dist/Models/DatabaseModels/UserProjectSsoConsent.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1794800000000-AddSessionReplaySameOriginTracePropagation.js +20 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1794800000000-AddSessionReplaySameOriginTracePropagation.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1794900000000-AddIncidentAlert.js +42 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1794900000000-AddIncidentAlert.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1795000000000-AddDatabaseServerTables.js +240 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1795000000000-AddDatabaseServerTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1795100000000-AddUserProjectSsoConsent.js +26 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1795100000000-AddUserProjectSsoConsent.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +8 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Middleware/MultipartFormData.js +1 -1
- package/build/dist/Server/Middleware/TelemetryIngest.js +15 -8
- package/build/dist/Server/Middleware/TelemetryIngest.js.map +1 -1
- package/build/dist/Server/Services/AlertReminderRuleService.js +72 -23
- package/build/dist/Server/Services/AlertReminderRuleService.js.map +1 -1
- package/build/dist/Server/Services/DatabaseServerEndpointService.js +694 -0
- package/build/dist/Server/Services/DatabaseServerEndpointService.js.map +1 -0
- package/build/dist/Server/Services/DatabaseServerFeedService.js +110 -0
- package/build/dist/Server/Services/DatabaseServerFeedService.js.map +1 -0
- package/build/dist/Server/Services/DatabaseServerLabelRuleEngineService.js +272 -0
- package/build/dist/Server/Services/DatabaseServerLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/DatabaseServerLabelRuleService.js +13 -0
- package/build/dist/Server/Services/DatabaseServerLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/DatabaseServerOwnerRuleEngineService.js +340 -0
- package/build/dist/Server/Services/DatabaseServerOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/DatabaseServerOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/DatabaseServerOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/DatabaseServerOwnerTeamService.js +160 -0
- package/build/dist/Server/Services/DatabaseServerOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/DatabaseServerOwnerUserService.js +153 -0
- package/build/dist/Server/Services/DatabaseServerOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/DatabaseServerService.js +3272 -0
- package/build/dist/Server/Services/DatabaseServerService.js.map +1 -0
- package/build/dist/Server/Services/DatabaseService.js +8 -4
- package/build/dist/Server/Services/DatabaseService.js.map +1 -1
- package/build/dist/Server/Services/DockerResourceService.js +30 -3
- package/build/dist/Server/Services/DockerResourceService.js.map +1 -1
- package/build/dist/Server/Services/IncidentAlertService.js +1370 -0
- package/build/dist/Server/Services/IncidentAlertService.js.map +1 -0
- package/build/dist/Server/Services/IncidentReminderRuleService.js +73 -23
- package/build/dist/Server/Services/IncidentReminderRuleService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +164 -12
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/IncidentStateTimelineService.js +21 -0
- package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +18 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/InventoryItemService.js +88 -5
- package/build/dist/Server/Services/InventoryItemService.js.map +1 -1
- package/build/dist/Server/Services/IoTDeviceService.js +111 -24
- package/build/dist/Server/Services/IoTDeviceService.js.map +1 -1
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +24 -9
- package/build/dist/Server/Services/OpenTelemetryIngestService.js.map +1 -1
- package/build/dist/Server/Services/PodmanResourceService.js +30 -3
- package/build/dist/Server/Services/PodmanResourceService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceReminderRuleService.js +75 -23
- package/build/dist/Server/Services/ScheduledMaintenanceReminderRuleService.js.map +1 -1
- package/build/dist/Server/Services/ServiceService.js +1 -1
- package/build/dist/Server/Services/ServiceService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryUsageBillingService.js +23 -2
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/UserProjectSsoConsentService.js +79 -0
- package/build/dist/Server/Services/UserProjectSsoConsentService.js.map +1 -0
- package/build/dist/Server/Services/UserService.js +13 -1
- package/build/dist/Server/Services/UserService.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js +18 -0
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js.map +1 -1
- package/build/dist/Server/Types/Database/QueryHelper.js +26 -1
- package/build/dist/Server/Types/Database/QueryHelper.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/ResourceTools.js +46 -0
- package/build/dist/Server/Utils/AI/Toolbox/ResourceTools.js.map +1 -1
- package/build/dist/Server/Utils/Database/AffectedResourceRelations.js +6 -0
- package/build/dist/Server/Utils/Database/AffectedResourceRelations.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.js +134 -13
- package/build/dist/Server/Utils/Monitor/Criteria/MetricMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js +22 -6
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +1489 -524
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +22 -6
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js +196 -6
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorResource.js +36 -9
- package/build/dist/Server/Utils/Monitor/MonitorResource.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorResourceContext.js +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorResourceContext.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorStepResourceIdentity.js +175 -17
- package/build/dist/Server/Utils/Monitor/MonitorStepResourceIdentity.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/PerSeriesResolutionRootCause.js +29 -0
- package/build/dist/Server/Utils/Monitor/PerSeriesResolutionRootCause.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js +211 -0
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/SeriesResourceLinker.js +82 -10
- package/build/dist/Server/Utils/Monitor/SeriesResourceLinker.js.map +1 -1
- package/build/dist/Server/Utils/Rules/RuleRun/RuleRunRegistry.js +25 -0
- package/build/dist/Server/Utils/Rules/RuleRun/RuleRunRegistry.js.map +1 -1
- package/build/dist/Server/Utils/SessionReplay/SessionReplayGateCache.js +8 -0
- package/build/dist/Server/Utils/SessionReplay/SessionReplayGateCache.js.map +1 -1
- package/build/dist/Server/Utils/StartServer.js +20 -4
- package/build/dist/Server/Utils/StartServer.js.map +1 -1
- package/build/dist/Server/Utils/TeamMember/ProjectLeaveResourceCleanup.js +2 -0
- package/build/dist/Server/Utils/TeamMember/ProjectLeaveResourceCleanup.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/DatabaseEndpointDiscovery.js +442 -0
- package/build/dist/Server/Utils/Telemetry/DatabaseEndpointDiscovery.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js +5 -1
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/LogExceptionExtractor.js +15 -1
- package/build/dist/Server/Utils/Telemetry/LogExceptionExtractor.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/ResourceEntityFilter.js +121 -5
- package/build/dist/Server/Utils/Telemetry/ResourceEntityFilter.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js +12 -0
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/ServiceDependencyDiscovery.js +438 -36
- package/build/dist/Server/Utils/Telemetry/ServiceDependencyDiscovery.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/Telemetry.js +12 -0
- package/build/dist/Server/Utils/Telemetry/Telemetry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/TelemetryEntity.js +17 -18
- package/build/dist/Server/Utils/Telemetry/TelemetryEntity.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/TelemetryIngestionKeyGuard.js +16 -10
- package/build/dist/Server/Utils/Telemetry/TelemetryIngestionKeyGuard.js.map +1 -1
- package/build/dist/Types/AI/AIResourceContext.js +7 -0
- package/build/dist/Types/AI/AIResourceContext.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardTemplates.js +2 -1
- package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -1
- package/build/dist/Types/DatabaseServer/DatabaseConnectionSpan.js +71 -0
- package/build/dist/Types/DatabaseServer/DatabaseConnectionSpan.js.map +1 -0
- package/build/dist/Types/DatabaseServer/DatabaseContainerClassifier.js +1462 -0
- package/build/dist/Types/DatabaseServer/DatabaseContainerClassifier.js.map +1 -0
- package/build/dist/Types/DatabaseServer/DatabaseContainerCommand.js +691 -0
- package/build/dist/Types/DatabaseServer/DatabaseContainerCommand.js.map +1 -0
- package/build/dist/Types/DatabaseServer/DatabaseEndpoint.js +1407 -0
- package/build/dist/Types/DatabaseServer/DatabaseEndpoint.js.map +1 -0
- package/build/dist/Types/DatabaseServer/DatabaseServerDiscoverySource.js +60 -0
- package/build/dist/Types/DatabaseServer/DatabaseServerDiscoverySource.js.map +1 -0
- package/build/dist/Types/DatabaseServer/DatabaseServerMetricCatalog.js +804 -0
- package/build/dist/Types/DatabaseServer/DatabaseServerMetricCatalog.js.map +1 -0
- package/build/dist/Types/DatabaseServer/DatabaseSystem.js +1860 -0
- package/build/dist/Types/DatabaseServer/DatabaseSystem.js.map +1 -0
- package/build/dist/Types/DatabaseServer/DatabaseTelemetryResolver.js +406 -0
- package/build/dist/Types/DatabaseServer/DatabaseTelemetryResolver.js.map +1 -0
- package/build/dist/Types/Email/EmailTemplateType.js +1 -0
- package/build/dist/Types/Email/EmailTemplateType.js.map +1 -1
- package/build/dist/Types/Incident/IncidentAlertLink.js +34 -0
- package/build/dist/Types/Incident/IncidentAlertLink.js.map +1 -0
- package/build/dist/Types/Monitor/CephAlertTemplates.js +18 -0
- package/build/dist/Types/Monitor/CephAlertTemplates.js.map +1 -1
- package/build/dist/Types/Monitor/DatabaseAlertTemplates.js +1518 -0
- package/build/dist/Types/Monitor/DatabaseAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/KubernetesAlertTemplates.js +57 -24
- package/build/dist/Types/Monitor/KubernetesAlertTemplates.js.map +1 -1
- package/build/dist/Types/Monitor/KubernetesMetricCatalog.js +104 -18
- package/build/dist/Types/Monitor/KubernetesMetricCatalog.js.map +1 -1
- package/build/dist/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +80 -3
- package/build/dist/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js.map +1 -1
- package/build/dist/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +10 -3
- package/build/dist/Types/Monitor/Recommendation/MonitorRecommendationTypes.js.map +1 -1
- package/build/dist/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +29 -0
- package/build/dist/Types/Monitor/Recommendation/MonitorRecommendationUtil.js.map +1 -1
- package/build/dist/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +21 -6
- package/build/dist/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js.map +1 -1
- package/build/dist/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +25 -0
- package/build/dist/Types/Monitor/SeriesContext/SeriesLabelDisplay.js.map +1 -1
- package/build/dist/Types/NetworkDevice/DiscoveredHostNamingStatus.js +136 -0
- package/build/dist/Types/NetworkDevice/DiscoveredHostNamingStatus.js.map +1 -0
- package/build/dist/Types/Permission.js +276 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Rules/RuleCriteriaFieldRegistry.js +10 -0
- package/build/dist/Types/Rules/RuleCriteriaFieldRegistry.js.map +1 -1
- package/build/dist/Types/Rules/RuleRun.js +4 -0
- package/build/dist/Types/Rules/RuleRun.js.map +1 -1
- package/build/dist/Types/Rum/WebVitals.js +25 -0
- package/build/dist/Types/Rum/WebVitals.js.map +1 -1
- package/build/dist/Types/Telemetry/EntityType.js +23 -0
- package/build/dist/Types/Telemetry/EntityType.js.map +1 -1
- package/build/dist/Types/Telemetry/ResourceFacetCatalog.js +14 -0
- package/build/dist/Types/Telemetry/ResourceFacetCatalog.js.map +1 -1
- package/build/dist/Types/Telemetry/ServiceType.js +8 -0
- package/build/dist/Types/Telemetry/ServiceType.js.map +1 -1
- package/build/dist/UI/Components/Banner/Banner.js +1 -1
- package/build/dist/UI/Components/Banner/Banner.js.map +1 -1
- package/build/dist/UI/Components/Card/Card.js +1 -1
- package/build/dist/UI/Components/Card/Card.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js +2 -2
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js.map +1 -1
- package/build/dist/UI/Components/Charts/Line/LineChart.js +1 -1
- package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
- package/build/dist/UI/Components/CommandPalette/CommandPalette.js +1 -1
- package/build/dist/UI/Components/CommandPalette/CommandPalette.js.map +1 -1
- package/build/dist/UI/Components/Date/StartAndEndDate.js +5 -5
- package/build/dist/UI/Components/Date/StartAndEndDate.js.map +1 -1
- package/build/dist/UI/Components/Detail/FieldLabel.js +2 -0
- package/build/dist/UI/Components/Detail/FieldLabel.js.map +1 -1
- package/build/dist/UI/Components/Diagram/HorizontalStepChain.js +1 -1
- package/build/dist/UI/Components/Diagram/HorizontalStepChain.js.map +1 -1
- package/build/dist/UI/Components/Feed/FeedOptionsButton.js +1 -1
- package/build/dist/UI/Components/Feed/FeedOptionsButton.js.map +1 -1
- package/build/dist/UI/Components/Forms/BasicForm.js +1 -1
- package/build/dist/UI/Components/Forms/BasicForm.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/HeaderAlert/HeaderAlert.js +1 -1
- package/build/dist/UI/Components/HeaderAlert/HeaderAlert.js.map +1 -1
- package/build/dist/UI/Components/InfoCard/InfoCard.js +22 -1
- package/build/dist/UI/Components/InfoCard/InfoCard.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/FacetValueRow.js +1 -1
- package/build/dist/UI/Components/LogsViewer/components/FacetValueRow.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js.map +1 -1
- package/build/dist/UI/Components/Modal/ModalFooter.js +1 -1
- package/build/dist/UI/Components/Modal/ModalFooter.js.map +1 -1
- package/build/dist/UI/Components/ModelDetail/CardModelDetail.js +2 -2
- package/build/dist/UI/Components/ModelDetail/CardModelDetail.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js +70 -18
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
- package/build/dist/UI/Components/Navbar/NavBar.js +9 -2
- package/build/dist/UI/Components/Navbar/NavBar.js.map +1 -1
- package/build/dist/UI/Components/Navbar/NavBarMenuModal.js +2 -2
- package/build/dist/UI/Components/Navbar/NavBarMenuModal.js.map +1 -1
- package/build/dist/UI/Components/Page/Page.js +1 -1
- package/build/dist/UI/Components/Page/Page.js.map +1 -1
- package/build/dist/UI/Components/Pagination/Pagination.js +3 -3
- package/build/dist/UI/Components/Pagination/Pagination.js.map +1 -1
- package/build/dist/UI/Components/ProgressButtons/ProgressButtonItem.js +1 -1
- package/build/dist/UI/Components/ProgressButtons/ProgressButtonItem.js.map +1 -1
- package/build/dist/UI/Components/SideMenu/SideMenu.js +4 -1
- package/build/dist/UI/Components/SideMenu/SideMenu.js.map +1 -1
- package/build/dist/UI/Components/StatusPage/ResourceGroupNavigator.js +3 -1
- package/build/dist/UI/Components/StatusPage/ResourceGroupNavigator.js.map +1 -1
- package/build/dist/UI/Components/StatusPage/ResourceList.js +6 -6
- package/build/dist/UI/Components/StatusPage/ResourceList.js.map +1 -1
- package/build/dist/UI/Components/Table/TableHeader.js +18 -2
- package/build/dist/UI/Components/Table/TableHeader.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetSidebar.js +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetSidebar.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetValueRow.js +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetValueRow.js.map +1 -1
- package/build/dist/UI/Components/Tooltip/InfoTooltip.js +28 -0
- package/build/dist/UI/Components/Tooltip/InfoTooltip.js.map +1 -0
- package/build/dist/UI/Components/Workflow/ColumnEditor/ModelQueryBuilder.js +1 -1
- package/build/dist/UI/Components/Workflow/ColumnEditor/ModelQueryBuilder.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentsModal.js +2 -2
- package/build/dist/UI/Components/Workflow/ComponentsModal.js.map +1 -1
- package/build/dist/UI/Components/Workflow/StepTraceViewer.js +1 -1
- package/build/dist/UI/Components/Workflow/StepTraceViewer.js.map +1 -1
- package/build/dist/UI/Utils/Navigation.js +66 -33
- package/build/dist/UI/Utils/Navigation.js.map +1 -1
- package/build/dist/UI/Utils/PermissionGate.js +4 -2
- package/build/dist/UI/Utils/PermissionGate.js.map +1 -1
- package/build/dist/UI/Utils/Telemetry/TelemetryEntityNames.js +7 -0
- package/build/dist/UI/Utils/Telemetry/TelemetryEntityNames.js.map +1 -1
- package/build/dist/UI/Utils/TelemetryService.js +3 -2
- package/build/dist/UI/Utils/TelemetryService.js.map +1 -1
- package/build/dist/Utils/Incident/IncidentFromAlerts.js +306 -0
- package/build/dist/Utils/Incident/IncidentFromAlerts.js.map +1 -0
- package/build/dist/Utils/LabelRuleImportExport.js +2 -0
- package/build/dist/Utils/LabelRuleImportExport.js.map +1 -1
- package/build/dist/Utils/MetricUnitUtil.js +77 -13
- package/build/dist/Utils/MetricUnitUtil.js.map +1 -1
- package/build/dist/Utils/Monitor/MetricValueFormatter.js +58 -13
- package/build/dist/Utils/Monitor/MetricValueFormatter.js.map +1 -1
- package/build/dist/Utils/Monitor/PlatformMetricUnitUtil.js +161 -0
- package/build/dist/Utils/Monitor/PlatformMetricUnitUtil.js.map +1 -0
- package/build/dist/Utils/Monitor/PlatformResourceIdentity.js +323 -0
- package/build/dist/Utils/Monitor/PlatformResourceIdentity.js.map +1 -0
- package/build/dist/Utils/NetworkDiscovery/DiscoveredHostNamingDiagnosis.js +270 -0
- package/build/dist/Utils/NetworkDiscovery/DiscoveredHostNamingDiagnosis.js.map +1 -0
- package/build/dist/Utils/NetworkDiscovery/DiscoveredHostUtil.js +23 -0
- package/build/dist/Utils/NetworkDiscovery/DiscoveredHostUtil.js.map +1 -1
- package/build/dist/Utils/NetworkDiscovery/NetbiosNameUtil.js +61 -0
- package/build/dist/Utils/NetworkDiscovery/NetbiosNameUtil.js.map +1 -1
- package/build/dist/Utils/Rum/SessionTraceState.js +154 -0
- package/build/dist/Utils/Rum/SessionTraceState.js.map +1 -0
- package/build/dist/Utils/Telemetry/DatabaseServerEntityKeys.js +178 -0
- package/build/dist/Utils/Telemetry/DatabaseServerEntityKeys.js.map +1 -0
- package/build/dist/Utils/Telemetry/EntityKey.js +133 -0
- package/build/dist/Utils/Telemetry/EntityKey.js.map +1 -1
- package/build/dist/Utils/ValueFormatter.js +15 -0
- package/build/dist/Utils/ValueFormatter.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tests.json +7 -5
|
@@ -0,0 +1,886 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
2
|
+
import {
|
|
3
|
+
act,
|
|
4
|
+
cleanup,
|
|
5
|
+
fireEvent,
|
|
6
|
+
render,
|
|
7
|
+
screen,
|
|
8
|
+
within,
|
|
9
|
+
} from "@testing-library/react";
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { MemoryRouter } from "react-router-dom";
|
|
12
|
+
import {
|
|
13
|
+
afterEach,
|
|
14
|
+
beforeEach,
|
|
15
|
+
describe,
|
|
16
|
+
expect,
|
|
17
|
+
jest,
|
|
18
|
+
test,
|
|
19
|
+
} from "@jest/globals";
|
|
20
|
+
import ObjectID from "../../../Types/ObjectID";
|
|
21
|
+
import TimeRange from "../../../Types/Time/TimeRange";
|
|
22
|
+
import {
|
|
23
|
+
UserFlowJourneysResponseDto,
|
|
24
|
+
UserFlowSessionDto,
|
|
25
|
+
} from "../../../Types/Rum/UserFlow";
|
|
26
|
+
import {
|
|
27
|
+
analyzeUserFlow,
|
|
28
|
+
UserFlowAnalysis,
|
|
29
|
+
UserFlowLink,
|
|
30
|
+
UserFlowNode,
|
|
31
|
+
UserFlowOptions,
|
|
32
|
+
UserFlowPageStats,
|
|
33
|
+
} from "../../../Utils/Rum/UserFlow";
|
|
34
|
+
import UserFlowOverview from "../../../../App/FeatureSet/Dashboard/src/Components/UserFlow/UserFlowOverview";
|
|
35
|
+
import UserFlowTables from "../../../../App/FeatureSet/Dashboard/src/Components/UserFlow/UserFlowTables";
|
|
36
|
+
import UserFlowDetailPanel from "../../../../App/FeatureSet/Dashboard/src/Components/UserFlow/UserFlowDetailPanel";
|
|
37
|
+
import { UserFlowSelection } from "../../../../App/FeatureSet/Dashboard/src/Components/UserFlow/UserFlowMap";
|
|
38
|
+
import {
|
|
39
|
+
RUM_USER_FLOW_METRIC_DESCRIPTIONS,
|
|
40
|
+
RumUserFlowMetric,
|
|
41
|
+
} from "../../../../App/FeatureSet/Dashboard/src/Components/MetricDescriptions/RumMetricDescriptions";
|
|
42
|
+
import { expectReadableDescriptionRecord } from "../../App/Dashboard/MetricDescriptionRules";
|
|
43
|
+
import getJestMockFunction, { MockFunction } from "../../MockType";
|
|
44
|
+
|
|
45
|
+
/*
|
|
46
|
+
* The User Flows page's (i) tooltips, rendered: the five overview tiles,
|
|
47
|
+
* every metric column of the Top paths, Pages and Back and forth tabs, and
|
|
48
|
+
* every figure and page list in the detail panel a click on the map opens.
|
|
49
|
+
*
|
|
50
|
+
* Each (i) is hovered and must show its own text from
|
|
51
|
+
* RUM_USER_FLOW_METRIC_DESCRIPTIONS. The sortable Pages headers keep the
|
|
52
|
+
* (i) BESIDE the sort button - a button inside a button is invalid and
|
|
53
|
+
* would sort on every hover-click.
|
|
54
|
+
*
|
|
55
|
+
* The fixture is hand-worked so the numbers the texts talk about can be
|
|
56
|
+
* checked against what the page actually draws: Exit rate is Left over
|
|
57
|
+
* Sessions, a reload counts once, the Pages Errors column counts only
|
|
58
|
+
* errors placed on that page while "With errors" counts any error in the
|
|
59
|
+
* session, and the Sessions/Device filters change "Sessions analysed".
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
const ORIGIN: string = "https://shop.example.com";
|
|
63
|
+
const APP_ID: ObjectID = new ObjectID("0193c0de-1111-4aaa-8bbb-000000000001");
|
|
64
|
+
// Every (i) is a button named "About <what it explains>".
|
|
65
|
+
const INFO_BUTTON_NAME: RegExp = /^About /;
|
|
66
|
+
|
|
67
|
+
interface SessionSpec {
|
|
68
|
+
id: string;
|
|
69
|
+
pages: Array<string>;
|
|
70
|
+
errorCount?: number;
|
|
71
|
+
frustrationCount?: number;
|
|
72
|
+
durationMs?: number;
|
|
73
|
+
deviceType?: string;
|
|
74
|
+
/* [path, errors, frustration] */
|
|
75
|
+
signals?: Array<[string, number, number]>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function response(specs: Array<SessionSpec>): UserFlowJourneysResponseDto {
|
|
79
|
+
const pages: Array<string> = [];
|
|
80
|
+
const indexOf: (path: string) => number = (path: string): number => {
|
|
81
|
+
const url: string = `${ORIGIN}${path}`;
|
|
82
|
+
let index: number = pages.indexOf(url);
|
|
83
|
+
|
|
84
|
+
if (index < 0) {
|
|
85
|
+
index = pages.length;
|
|
86
|
+
pages.push(url);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return index;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const sessions: Array<UserFlowSessionDto> = specs.map(
|
|
93
|
+
(spec: SessionSpec, position: number): UserFlowSessionDto => {
|
|
94
|
+
return {
|
|
95
|
+
sessionId: spec.id,
|
|
96
|
+
startUnixMs: 1_800_000_000_000 - position * 1000,
|
|
97
|
+
durationMs: spec.durationMs ?? 60_000,
|
|
98
|
+
deviceType: spec.deviceType ?? "desktop",
|
|
99
|
+
browserName: "Chrome",
|
|
100
|
+
countryCode: "DK",
|
|
101
|
+
errorCount: spec.errorCount ?? 0,
|
|
102
|
+
frustrationCount: spec.frustrationCount ?? 0,
|
|
103
|
+
pages: spec.pages.map(indexOf),
|
|
104
|
+
pageSignals: (spec.signals || []).map(
|
|
105
|
+
([path, errors, frustration]: [string, number, number]): [
|
|
106
|
+
number,
|
|
107
|
+
number,
|
|
108
|
+
number,
|
|
109
|
+
] => {
|
|
110
|
+
return [indexOf(path), errors, frustration];
|
|
111
|
+
},
|
|
112
|
+
),
|
|
113
|
+
};
|
|
114
|
+
},
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
pages: pages,
|
|
119
|
+
sessions: sessions,
|
|
120
|
+
sessionsInWindow: sessions.length,
|
|
121
|
+
isSampled: false,
|
|
122
|
+
maxSessions: 5000,
|
|
123
|
+
startUnixMs: 1_799_990_000_000,
|
|
124
|
+
endUnixMs: 1_800_000_000_000,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/*
|
|
129
|
+
* s1 /home -> /cart -> /checkout 2 errors, placed on /checkout, 60s
|
|
130
|
+
* s2 /home -> /cart -> /home frustrated on /cart (a loop), 30s
|
|
131
|
+
* s3 /home -> /home a reload: one page, 10s
|
|
132
|
+
* s4 /product/1 -> /cart -> /cart an error with no page to place it on, 20s
|
|
133
|
+
* s5 /home -> /cart -> /checkout clean, 40s, on a phone
|
|
134
|
+
*/
|
|
135
|
+
const FIXTURE: UserFlowJourneysResponseDto = response([
|
|
136
|
+
{
|
|
137
|
+
id: "s1",
|
|
138
|
+
pages: ["/home", "/cart", "/checkout"],
|
|
139
|
+
errorCount: 2,
|
|
140
|
+
signals: [["/checkout", 2, 0]],
|
|
141
|
+
durationMs: 60_000,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: "s2",
|
|
145
|
+
pages: ["/home", "/cart", "/home"],
|
|
146
|
+
frustrationCount: 1,
|
|
147
|
+
signals: [["/cart", 0, 1]],
|
|
148
|
+
durationMs: 30_000,
|
|
149
|
+
},
|
|
150
|
+
{ id: "s3", pages: ["/home", "/home"], durationMs: 10_000 },
|
|
151
|
+
{
|
|
152
|
+
id: "s4",
|
|
153
|
+
pages: ["/product/1", "/cart", "/cart"],
|
|
154
|
+
errorCount: 1,
|
|
155
|
+
durationMs: 20_000,
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: "s5",
|
|
159
|
+
pages: ["/home", "/cart", "/checkout"],
|
|
160
|
+
durationMs: 40_000,
|
|
161
|
+
deviceType: "mobile",
|
|
162
|
+
},
|
|
163
|
+
]);
|
|
164
|
+
|
|
165
|
+
const ANALYSIS: UserFlowAnalysis = analyzeUserFlow(FIXTURE);
|
|
166
|
+
|
|
167
|
+
function renderOverview(analysis: UserFlowAnalysis = ANALYSIS): void {
|
|
168
|
+
render(
|
|
169
|
+
<UserFlowOverview
|
|
170
|
+
summary={analysis.summary}
|
|
171
|
+
insights={analysis.insights}
|
|
172
|
+
sessionsInWindow={FIXTURE.sessionsInWindow}
|
|
173
|
+
isSampled={false}
|
|
174
|
+
onFocusPage={(): void => {
|
|
175
|
+
/* not under test */
|
|
176
|
+
}}
|
|
177
|
+
/>,
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
let onAnchor: MockFunction = getJestMockFunction();
|
|
182
|
+
|
|
183
|
+
function renderDetail(
|
|
184
|
+
analysis: UserFlowAnalysis,
|
|
185
|
+
selection: UserFlowSelection,
|
|
186
|
+
): void {
|
|
187
|
+
render(
|
|
188
|
+
<MemoryRouter>
|
|
189
|
+
<UserFlowDetailPanel
|
|
190
|
+
selection={selection}
|
|
191
|
+
analysis={analysis}
|
|
192
|
+
rumApplicationId={APP_ID}
|
|
193
|
+
timeRange={{ range: TimeRange.PAST_ONE_DAY }}
|
|
194
|
+
onAnchor={onAnchor}
|
|
195
|
+
onHide={(): void => {
|
|
196
|
+
/* not under test */
|
|
197
|
+
}}
|
|
198
|
+
onClose={(): void => {
|
|
199
|
+
/* not under test */
|
|
200
|
+
}}
|
|
201
|
+
/>
|
|
202
|
+
</MemoryRouter>,
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function nodeAt(
|
|
207
|
+
analysis: UserFlowAnalysis,
|
|
208
|
+
step: number,
|
|
209
|
+
page: string,
|
|
210
|
+
): UserFlowNode {
|
|
211
|
+
const node: UserFlowNode | undefined = analysis.graph.nodes.find(
|
|
212
|
+
(candidate: UserFlowNode): boolean => {
|
|
213
|
+
return candidate.step === step && candidate.page === page;
|
|
214
|
+
},
|
|
215
|
+
);
|
|
216
|
+
expect(node).toBeDefined();
|
|
217
|
+
return node!;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function linkBetween(
|
|
221
|
+
analysis: UserFlowAnalysis,
|
|
222
|
+
from: UserFlowNode,
|
|
223
|
+
to: UserFlowNode,
|
|
224
|
+
): UserFlowLink {
|
|
225
|
+
const link: UserFlowLink | undefined = analysis.graph.links.find(
|
|
226
|
+
(candidate: UserFlowLink): boolean => {
|
|
227
|
+
return candidate.sourceId === from.id && candidate.targetId === to.id;
|
|
228
|
+
},
|
|
229
|
+
);
|
|
230
|
+
expect(link).toBeDefined();
|
|
231
|
+
return link!;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* A detail-panel figure: the box holding the (i) named "About <label>". */
|
|
235
|
+
function statBox(label: string): HTMLElement {
|
|
236
|
+
return infoButton(label).closest(".rounded-lg") as HTMLElement;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* The big number in that box, exactly. */
|
|
240
|
+
function statValue(label: string): string {
|
|
241
|
+
return (statBox(label).querySelector("p.text-lg")?.textContent || "").trim();
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function renderTables(analysis: UserFlowAnalysis = ANALYSIS): void {
|
|
245
|
+
render(
|
|
246
|
+
<MemoryRouter>
|
|
247
|
+
<UserFlowTables
|
|
248
|
+
paths={analysis.paths}
|
|
249
|
+
pages={analysis.pages}
|
|
250
|
+
loops={analysis.loops}
|
|
251
|
+
rumApplicationId={APP_ID}
|
|
252
|
+
onAnchor={(): void => {
|
|
253
|
+
/* not under test */
|
|
254
|
+
}}
|
|
255
|
+
/>
|
|
256
|
+
</MemoryRouter>,
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function infoButton(label: string): HTMLElement {
|
|
261
|
+
const found: Array<HTMLElement> = screen.getAllByRole("button", {
|
|
262
|
+
name: `About ${label}`,
|
|
263
|
+
});
|
|
264
|
+
expect(found).toHaveLength(1);
|
|
265
|
+
return found[0]!;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
function allInfoLabels(): Array<string> {
|
|
269
|
+
return screen
|
|
270
|
+
.queryAllByRole("button", { name: INFO_BUTTON_NAME })
|
|
271
|
+
.map((button: HTMLElement): string => {
|
|
272
|
+
return (button.getAttribute("aria-label") || "").replace("About ", "");
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
async function tooltipTextOf(button: HTMLElement): Promise<string> {
|
|
277
|
+
fireEvent.mouseEnter(button);
|
|
278
|
+
await act(async () => {
|
|
279
|
+
jest.advanceTimersByTime(200);
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
const describedBy: string | null = button.getAttribute("aria-describedby");
|
|
283
|
+
expect(describedBy).toBeTruthy();
|
|
284
|
+
|
|
285
|
+
const text: string =
|
|
286
|
+
document.getElementById(describedBy as string)?.textContent || "";
|
|
287
|
+
|
|
288
|
+
fireEvent.mouseLeave(button);
|
|
289
|
+
|
|
290
|
+
return text;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
async function expectExplained(
|
|
294
|
+
label: string,
|
|
295
|
+
key: RumUserFlowMetric,
|
|
296
|
+
): Promise<void> {
|
|
297
|
+
const button: HTMLElement = infoButton(label);
|
|
298
|
+
|
|
299
|
+
// Never nested in another control (a sort button, a finding card).
|
|
300
|
+
expect(button.parentElement?.closest("button, a")).toBeNull();
|
|
301
|
+
expect(await tooltipTextOf(button)).toBe(
|
|
302
|
+
RUM_USER_FLOW_METRIC_DESCRIPTIONS[key],
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function openTab(id: "paths" | "pages" | "loops"): void {
|
|
307
|
+
fireEvent.click(screen.getByTestId(`user-flow-tab-${id}`));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
function pageRow(page: string): HTMLElement {
|
|
311
|
+
const row: HTMLElement | undefined = screen
|
|
312
|
+
.getAllByTestId("user-flow-page-row")
|
|
313
|
+
.find((candidate: HTMLElement): boolean => {
|
|
314
|
+
return candidate.getAttribute("data-page") === page;
|
|
315
|
+
});
|
|
316
|
+
expect(row).toBeDefined();
|
|
317
|
+
return row!;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
function cellTexts(row: HTMLElement): Array<string> {
|
|
321
|
+
return Array.from(row.querySelectorAll("td")).map(
|
|
322
|
+
(cell: HTMLTableCellElement): string => {
|
|
323
|
+
return (cell.textContent || "").trim();
|
|
324
|
+
},
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
function sortState(): Record<string, string | null> {
|
|
329
|
+
const state: Record<string, string | null> = {};
|
|
330
|
+
|
|
331
|
+
for (const header of Array.from(
|
|
332
|
+
screen.getByTestId("user-flow-pages-table").querySelectorAll("th"),
|
|
333
|
+
)) {
|
|
334
|
+
const label: string = (header.textContent || "").trim();
|
|
335
|
+
|
|
336
|
+
if (label) {
|
|
337
|
+
state[label] = header.getAttribute("aria-sort");
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
return state;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
beforeEach(() => {
|
|
345
|
+
jest.useFakeTimers();
|
|
346
|
+
onAnchor = getJestMockFunction();
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
afterEach(() => {
|
|
350
|
+
cleanup();
|
|
351
|
+
jest.useRealTimers();
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
describe("the User Flows descriptions", () => {
|
|
355
|
+
test("read as short, finished, distinct sentences", () => {
|
|
356
|
+
expectReadableDescriptionRecord(
|
|
357
|
+
RUM_USER_FLOW_METRIC_DESCRIPTIONS,
|
|
358
|
+
"RUM_USER_FLOW_METRIC_DESCRIPTIONS",
|
|
359
|
+
);
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
|
|
363
|
+
describe("User Flows overview tiles", () => {
|
|
364
|
+
test("every tile explains itself, and nothing else on the strip carries an (i)", async () => {
|
|
365
|
+
renderOverview();
|
|
366
|
+
|
|
367
|
+
expect(allInfoLabels()).toEqual([
|
|
368
|
+
"Sessions analysed",
|
|
369
|
+
"Pages per session",
|
|
370
|
+
"Single-page sessions",
|
|
371
|
+
"Top landing page",
|
|
372
|
+
"Top exit page",
|
|
373
|
+
]);
|
|
374
|
+
|
|
375
|
+
await expectExplained("Sessions analysed", "sessionsAnalysed");
|
|
376
|
+
await expectExplained("Pages per session", "pagesPerSession");
|
|
377
|
+
await expectExplained("Single-page sessions", "singlePageSessions");
|
|
378
|
+
await expectExplained("Top landing page", "topLandingPage");
|
|
379
|
+
await expectExplained("Top exit page", "topExitPage");
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
test("the (i) sits in the tile's label row, beside the label it names", () => {
|
|
383
|
+
renderOverview();
|
|
384
|
+
|
|
385
|
+
for (const [testId, label] of [
|
|
386
|
+
["user-flow-tile-sessions", "Sessions analysed"],
|
|
387
|
+
["user-flow-tile-pages", "Pages per session"],
|
|
388
|
+
["user-flow-tile-bounce", "Single-page sessions"],
|
|
389
|
+
["user-flow-tile-entry", "Top landing page"],
|
|
390
|
+
["user-flow-tile-exit", "Top exit page"],
|
|
391
|
+
] as Array<[string, string]>) {
|
|
392
|
+
const tile: HTMLElement = screen.getByTestId(testId);
|
|
393
|
+
const info: HTMLElement = within(tile).getByTestId(`${testId}-info`);
|
|
394
|
+
|
|
395
|
+
expect(info).toHaveAttribute("aria-label", `About ${label}`);
|
|
396
|
+
expect(info.parentElement).toHaveTextContent(label);
|
|
397
|
+
// The value paragraph is not the (i)'s row.
|
|
398
|
+
expect(
|
|
399
|
+
info.parentElement?.contains(
|
|
400
|
+
within(tile).getByTestId(`${testId}-value`),
|
|
401
|
+
),
|
|
402
|
+
).toBe(false);
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
test("the tiles show what the texts describe: reloads count once, medians are of journey lengths", () => {
|
|
407
|
+
renderOverview();
|
|
408
|
+
|
|
409
|
+
// s3 reloaded /home: one page, so the journeys are 3, 3, 1, 2, 3 pages.
|
|
410
|
+
expect(
|
|
411
|
+
screen.getByTestId("user-flow-tile-sessions-value"),
|
|
412
|
+
).toHaveTextContent("5");
|
|
413
|
+
expect(screen.getByTestId("user-flow-tile-pages-value")).toHaveTextContent(
|
|
414
|
+
"2.4",
|
|
415
|
+
);
|
|
416
|
+
expect(screen.getByTestId("user-flow-tile-pages")).toHaveTextContent(
|
|
417
|
+
"median 3",
|
|
418
|
+
);
|
|
419
|
+
// Only the reload session saw one page.
|
|
420
|
+
expect(screen.getByTestId("user-flow-tile-bounce-value")).toHaveTextContent(
|
|
421
|
+
"20%",
|
|
422
|
+
);
|
|
423
|
+
expect(screen.getByTestId("user-flow-tile-bounce")).toHaveTextContent(
|
|
424
|
+
"1 never navigated",
|
|
425
|
+
);
|
|
426
|
+
expect(screen.getByTestId("user-flow-tile-entry-value")).toHaveAttribute(
|
|
427
|
+
"data-value",
|
|
428
|
+
"/home",
|
|
429
|
+
);
|
|
430
|
+
expect(screen.getByTestId("user-flow-tile-entry")).toHaveTextContent(
|
|
431
|
+
"80% of sessions start here",
|
|
432
|
+
);
|
|
433
|
+
// /checkout and /home both end two sessions; the tie goes by name.
|
|
434
|
+
expect(screen.getByTestId("user-flow-tile-exit-value")).toHaveAttribute(
|
|
435
|
+
"data-value",
|
|
436
|
+
"/checkout",
|
|
437
|
+
);
|
|
438
|
+
expect(screen.getByTestId("user-flow-tile-exit")).toHaveTextContent(
|
|
439
|
+
"40% of sessions end here",
|
|
440
|
+
);
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
test("'Sessions analysed' follows the Sessions and Device filters and hidden pages, as its text says", () => {
|
|
444
|
+
const only: (options: Partial<UserFlowOptions>) => number = (
|
|
445
|
+
options: Partial<UserFlowOptions>,
|
|
446
|
+
): number => {
|
|
447
|
+
return analyzeUserFlow(FIXTURE, options).summary.sessions;
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
expect(only({})).toBe(5);
|
|
451
|
+
expect(only({ sessionFilter: "errors" })).toBe(2);
|
|
452
|
+
expect(only({ sessionFilter: "frustration" })).toBe(1);
|
|
453
|
+
expect(only({ deviceType: "mobile" })).toBe(1);
|
|
454
|
+
// s3 saw nothing but /home, so hiding /home drops it.
|
|
455
|
+
expect(only({ hiddenPages: ["/home"] })).toBe(4);
|
|
456
|
+
expect(RUM_USER_FLOW_METRIC_DESCRIPTIONS.sessionsAnalysed).toContain(
|
|
457
|
+
"match the Sessions and Device filters",
|
|
458
|
+
);
|
|
459
|
+
expect(RUM_USER_FLOW_METRIC_DESCRIPTIONS.sessionsAnalysed).toContain(
|
|
460
|
+
"one whose pages are all hidden drops out",
|
|
461
|
+
);
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
describe("User Flows Top paths headers", () => {
|
|
466
|
+
test("Sessions, Avg. duration and With errors each explain themselves; # and Journey do not", async () => {
|
|
467
|
+
renderTables();
|
|
468
|
+
|
|
469
|
+
expect(allInfoLabels()).toEqual([
|
|
470
|
+
"Sessions",
|
|
471
|
+
"Avg. duration",
|
|
472
|
+
"With errors",
|
|
473
|
+
]);
|
|
474
|
+
|
|
475
|
+
await expectExplained("Sessions", "pathSessions");
|
|
476
|
+
await expectExplained("Avg. duration", "pathAvgDuration");
|
|
477
|
+
await expectExplained("With errors", "pathWithErrors");
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
test("the path cells read the way the headers say", () => {
|
|
481
|
+
renderTables();
|
|
482
|
+
|
|
483
|
+
const rows: Array<HTMLElement> =
|
|
484
|
+
screen.getAllByTestId("user-flow-path-row");
|
|
485
|
+
const byPath: Record<string, Array<string>> = {};
|
|
486
|
+
|
|
487
|
+
for (const row of rows) {
|
|
488
|
+
byPath[row.getAttribute("data-path") || ""] = cellTexts(row);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// Two sessions, 40% of five; (60s + 40s) / 2; one of the two errored.
|
|
492
|
+
expect(byPath["/home > /cart > /checkout"]?.[2]).toContain("2");
|
|
493
|
+
expect(byPath["/home > /cart > /checkout"]?.[2]).toContain("40%");
|
|
494
|
+
expect(byPath["/home > /cart > /checkout"]?.[3]).toBe("50s");
|
|
495
|
+
expect(byPath["/home > /cart > /checkout"]?.[4]).toBe("50%");
|
|
496
|
+
|
|
497
|
+
/*
|
|
498
|
+
* s4's error was never placed on a page, yet its path reads 100% with
|
|
499
|
+
* errors: the column counts any error in the session.
|
|
500
|
+
*/
|
|
501
|
+
expect(byPath["/product/:id > /cart"]?.[4]).toBe("100%");
|
|
502
|
+
expect(byPath["/home > /cart > /home"]?.[4]).toBe("—");
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
describe("User Flows Pages headers", () => {
|
|
507
|
+
test("all seven metric columns explain themselves; Page does not", async () => {
|
|
508
|
+
renderTables();
|
|
509
|
+
openTab("pages");
|
|
510
|
+
|
|
511
|
+
expect(allInfoLabels()).toEqual([
|
|
512
|
+
"Sessions",
|
|
513
|
+
"Visits",
|
|
514
|
+
"Landed",
|
|
515
|
+
"Left",
|
|
516
|
+
"Exit rate",
|
|
517
|
+
"Errors",
|
|
518
|
+
"Frustrated",
|
|
519
|
+
]);
|
|
520
|
+
|
|
521
|
+
await expectExplained("Sessions", "pageSessions");
|
|
522
|
+
await expectExplained("Visits", "pageVisits");
|
|
523
|
+
await expectExplained("Landed", "pageLanded");
|
|
524
|
+
await expectExplained("Left", "pageLeft");
|
|
525
|
+
await expectExplained("Exit rate", "pageExitRate");
|
|
526
|
+
await expectExplained("Errors", "pageErrors");
|
|
527
|
+
await expectExplained("Frustrated", "pageFrustrated");
|
|
528
|
+
});
|
|
529
|
+
|
|
530
|
+
test("the (i) sits beside each sort button: hovering or clicking it never sorts, the button still does", async () => {
|
|
531
|
+
renderTables();
|
|
532
|
+
openTab("pages");
|
|
533
|
+
|
|
534
|
+
expect(sortState()["Sessions"]).toBe("descending");
|
|
535
|
+
expect(sortState()["Exit rate"]).toBe("none");
|
|
536
|
+
|
|
537
|
+
const exitInfo: HTMLElement = infoButton("Exit rate");
|
|
538
|
+
const header: HTMLElement = exitInfo.closest("th") as HTMLElement;
|
|
539
|
+
const sortButton: HTMLElement = within(header).getByRole("button", {
|
|
540
|
+
name: "Exit rate",
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
expect(sortButton.contains(exitInfo)).toBe(false);
|
|
544
|
+
|
|
545
|
+
await tooltipTextOf(exitInfo);
|
|
546
|
+
fireEvent.click(exitInfo);
|
|
547
|
+
fireEvent.keyDown(exitInfo, { key: "Enter" });
|
|
548
|
+
|
|
549
|
+
expect(sortState()["Sessions"]).toBe("descending");
|
|
550
|
+
expect(sortState()["Exit rate"]).toBe("none");
|
|
551
|
+
|
|
552
|
+
fireEvent.click(sortButton);
|
|
553
|
+
|
|
554
|
+
expect(sortState()["Exit rate"]).toBe("descending");
|
|
555
|
+
expect(sortState()["Sessions"]).toBe("none");
|
|
556
|
+
// Sorting does not lose the (i).
|
|
557
|
+
expect(infoButton("Exit rate")).toBeInTheDocument();
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
test("the page cells read the way the headers say", () => {
|
|
561
|
+
renderTables();
|
|
562
|
+
openTab("pages");
|
|
563
|
+
|
|
564
|
+
// [Page, Sessions, Visits, Landed, Left, Exit rate, Errors, Frustrated, actions]
|
|
565
|
+
const home: Array<string> = cellTexts(pageRow("/home"));
|
|
566
|
+
const cart: Array<string> = cellTexts(pageRow("/cart"));
|
|
567
|
+
const checkout: Array<string> = cellTexts(pageRow("/checkout"));
|
|
568
|
+
|
|
569
|
+
// s2 came back to /home: 4 sessions, 5 visits. s3's reload is one visit.
|
|
570
|
+
expect(home.slice(1, 6)).toEqual(["4", "5", "4", "2", "50%"]);
|
|
571
|
+
expect(cart.slice(1, 6)).toEqual(["4", "4", "0", "1", "25%"]);
|
|
572
|
+
expect(checkout.slice(1, 6)).toEqual(["2", "2", "0", "2", "100%"]);
|
|
573
|
+
|
|
574
|
+
// Only s1's error was placed on a page; s4's reached no page's column.
|
|
575
|
+
expect(checkout[6]).toBe("1");
|
|
576
|
+
expect(cart[6]).toBe("—");
|
|
577
|
+
expect(cart[7]).toBe("1");
|
|
578
|
+
expect(home[7]).toBe("—");
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
test("Exit rate is Left divided by Sessions on every row", () => {
|
|
582
|
+
for (const page of ANALYSIS.pages) {
|
|
583
|
+
expect(page.exitRate).toBeCloseTo(page.exits / page.sessions, 10);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
// Per session, not per visit: /home has 5 visits but its rate is 2 of 4.
|
|
587
|
+
const home: UserFlowPageStats | undefined = ANALYSIS.pages.find(
|
|
588
|
+
(page: UserFlowPageStats): boolean => {
|
|
589
|
+
return page.page === "/home";
|
|
590
|
+
},
|
|
591
|
+
);
|
|
592
|
+
|
|
593
|
+
expect(home?.views).toBe(5);
|
|
594
|
+
expect(home?.exitRate).toBe(0.5);
|
|
595
|
+
expect(RUM_USER_FLOW_METRIC_DESCRIPTIONS.pageExitRate).toContain(
|
|
596
|
+
"Left divided by Sessions",
|
|
597
|
+
);
|
|
598
|
+
expect(RUM_USER_FLOW_METRIC_DESCRIPTIONS.pageExitRate).toContain(
|
|
599
|
+
"per session, not per visit",
|
|
600
|
+
);
|
|
601
|
+
});
|
|
602
|
+
});
|
|
603
|
+
|
|
604
|
+
describe("User Flows Back and forth", () => {
|
|
605
|
+
test("the loop list gets a header whose (i) explains the count and its bar", async () => {
|
|
606
|
+
renderTables();
|
|
607
|
+
openTab("loops");
|
|
608
|
+
|
|
609
|
+
expect(screen.getByTestId("user-flow-loops-header")).toHaveTextContent(
|
|
610
|
+
"Pages",
|
|
611
|
+
);
|
|
612
|
+
expect(allInfoLabels()).toEqual(["Sessions"]);
|
|
613
|
+
|
|
614
|
+
await expectExplained("Sessions", "loopSessions");
|
|
615
|
+
|
|
616
|
+
// s2 went /home -> /cart -> /home: one session of five.
|
|
617
|
+
const [row] = screen.getAllByTestId("user-flow-loop-row");
|
|
618
|
+
|
|
619
|
+
expect(row).toHaveTextContent("1 sessions");
|
|
620
|
+
expect(row).toHaveTextContent("20%");
|
|
621
|
+
});
|
|
622
|
+
|
|
623
|
+
test("with no loops there is no header and no (i), only the empty line", () => {
|
|
624
|
+
const noLoops: UserFlowAnalysis = analyzeUserFlow(
|
|
625
|
+
response([{ id: "a", pages: ["/home", "/cart"] }]),
|
|
626
|
+
);
|
|
627
|
+
|
|
628
|
+
renderTables(noLoops);
|
|
629
|
+
openTab("loops");
|
|
630
|
+
|
|
631
|
+
expect(screen.queryByTestId("user-flow-loops-header")).toBeNull();
|
|
632
|
+
expect(allInfoLabels()).toEqual([]);
|
|
633
|
+
expect(screen.getByTestId("user-flow-loops")).toHaveTextContent(
|
|
634
|
+
"No session in this range left a page and came straight back to it.",
|
|
635
|
+
);
|
|
636
|
+
});
|
|
637
|
+
});
|
|
638
|
+
|
|
639
|
+
describe("User Flows detail panel: a page on the map", () => {
|
|
640
|
+
test("every figure and both page lists explain themselves; the actions do not", async () => {
|
|
641
|
+
// From session start: /cart is the second page of s1, s2, s4 and s5.
|
|
642
|
+
renderDetail(ANALYSIS, {
|
|
643
|
+
kind: "node",
|
|
644
|
+
id: nodeAt(ANALYSIS, 1, "/cart").id,
|
|
645
|
+
});
|
|
646
|
+
|
|
647
|
+
expect(allInfoLabels()).toEqual([
|
|
648
|
+
"Sessions at this step",
|
|
649
|
+
"Of all sessions",
|
|
650
|
+
"Left the application here",
|
|
651
|
+
"Hit an error here",
|
|
652
|
+
"Where they came from (whole range)",
|
|
653
|
+
"Where they went next (whole range)",
|
|
654
|
+
]);
|
|
655
|
+
|
|
656
|
+
await expectExplained("Sessions at this step", "detailStepSessions");
|
|
657
|
+
await expectExplained("Of all sessions", "detailOfAllSessions");
|
|
658
|
+
await expectExplained("Left the application here", "detailLeftHere");
|
|
659
|
+
await expectExplained("Hit an error here", "detailErrorsHere");
|
|
660
|
+
await expectExplained(
|
|
661
|
+
"Where they came from (whole range)",
|
|
662
|
+
"detailCameFrom",
|
|
663
|
+
);
|
|
664
|
+
await expectExplained(
|
|
665
|
+
"Where they went next (whole range)",
|
|
666
|
+
"detailWentNext",
|
|
667
|
+
);
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
test("the figures read the way their texts say", () => {
|
|
671
|
+
renderDetail(ANALYSIS, {
|
|
672
|
+
kind: "node",
|
|
673
|
+
id: nodeAt(ANALYSIS, 1, "/cart").id,
|
|
674
|
+
});
|
|
675
|
+
|
|
676
|
+
// Four sessions here; s3 never reached a second page, so they are the whole step.
|
|
677
|
+
expect(statValue("Sessions at this step")).toBe("4");
|
|
678
|
+
expect(statBox("Sessions at this step")).toHaveTextContent(
|
|
679
|
+
"100% of the step",
|
|
680
|
+
);
|
|
681
|
+
// Four of the five sessions the map is drawn from.
|
|
682
|
+
expect(statValue("Of all sessions")).toBe("80%");
|
|
683
|
+
// s4 (/product/1 -> /cart) ended here: one of four.
|
|
684
|
+
expect(statValue("Left the application here")).toBe("1");
|
|
685
|
+
expect(statBox("Left the application here")).toHaveTextContent(
|
|
686
|
+
"25% drop-off",
|
|
687
|
+
);
|
|
688
|
+
// s1's error was placed on /checkout and s4's on no page; s2 was frustrated here.
|
|
689
|
+
expect(statValue("Hit an error here")).toBe("0");
|
|
690
|
+
expect(statBox("Hit an error here")).toHaveTextContent("1 frustrated");
|
|
691
|
+
});
|
|
692
|
+
|
|
693
|
+
test("the page lists count whole journeys, as a share of the page's sessions", () => {
|
|
694
|
+
renderDetail(ANALYSIS, {
|
|
695
|
+
kind: "node",
|
|
696
|
+
id: nodeAt(ANALYSIS, 1, "/cart").id,
|
|
697
|
+
});
|
|
698
|
+
|
|
699
|
+
const cameFrom: HTMLElement = screen.getByTestId(
|
|
700
|
+
"user-flow-previous-pages",
|
|
701
|
+
);
|
|
702
|
+
const wentNext: HTMLElement = screen.getByTestId("user-flow-next-pages");
|
|
703
|
+
|
|
704
|
+
// /home before /cart for s1, s2, s5; /product/:id for s4 - of 4 sessions.
|
|
705
|
+
expect(
|
|
706
|
+
within(cameFrom).getByText("/home").closest("button"),
|
|
707
|
+
).toHaveTextContent("3 · 75%");
|
|
708
|
+
expect(
|
|
709
|
+
within(cameFrom).getByText("/product/:id").closest("button"),
|
|
710
|
+
).toHaveTextContent("1 · 25%");
|
|
711
|
+
// s4 left from /cart and adds nothing, so the shares add up to 75%.
|
|
712
|
+
expect(
|
|
713
|
+
within(wentNext).getByText("/checkout").closest("button"),
|
|
714
|
+
).toHaveTextContent("2 · 50%");
|
|
715
|
+
expect(
|
|
716
|
+
within(wentNext).getByText("/home").closest("button"),
|
|
717
|
+
).toHaveTextContent("1 · 25%");
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
test("the list (i) sits in the title row: clicking it never re-anchors the map, a row still does", () => {
|
|
721
|
+
renderDetail(ANALYSIS, {
|
|
722
|
+
kind: "node",
|
|
723
|
+
id: nodeAt(ANALYSIS, 1, "/cart").id,
|
|
724
|
+
});
|
|
725
|
+
|
|
726
|
+
const info: HTMLElement = screen.getByTestId(
|
|
727
|
+
"user-flow-previous-pages-info",
|
|
728
|
+
);
|
|
729
|
+
const firstRow: HTMLElement = within(
|
|
730
|
+
screen.getByTestId("user-flow-previous-pages"),
|
|
731
|
+
)
|
|
732
|
+
.getByText("/home")
|
|
733
|
+
.closest("button") as HTMLElement;
|
|
734
|
+
|
|
735
|
+
expect(firstRow.contains(info)).toBe(false);
|
|
736
|
+
expect(info.parentElement?.closest("button, a")).toBeNull();
|
|
737
|
+
|
|
738
|
+
fireEvent.click(info);
|
|
739
|
+
fireEvent.keyDown(info, { key: "Enter" });
|
|
740
|
+
|
|
741
|
+
expect(onAnchor).not.toHaveBeenCalled();
|
|
742
|
+
|
|
743
|
+
fireEvent.click(firstRow);
|
|
744
|
+
|
|
745
|
+
expect(onAnchor).toHaveBeenCalledWith("/home", "forward");
|
|
746
|
+
});
|
|
747
|
+
|
|
748
|
+
test("going backward the terminal figure is where sessions started, and the share is of anchored sessions", async () => {
|
|
749
|
+
const backward: UserFlowAnalysis = analyzeUserFlow(FIXTURE, {
|
|
750
|
+
anchorPage: "/checkout",
|
|
751
|
+
direction: "backward",
|
|
752
|
+
});
|
|
753
|
+
|
|
754
|
+
// s1 and s5 reached /checkout from /cart, having landed on /home.
|
|
755
|
+
renderDetail(backward, {
|
|
756
|
+
kind: "node",
|
|
757
|
+
id: nodeAt(backward, 2, "/home").id,
|
|
758
|
+
});
|
|
759
|
+
|
|
760
|
+
expect(allInfoLabels()).toEqual([
|
|
761
|
+
"Sessions at this step",
|
|
762
|
+
"Of anchored sessions",
|
|
763
|
+
"Started their session here",
|
|
764
|
+
"Hit an error here",
|
|
765
|
+
"Where they came from (whole range)",
|
|
766
|
+
"Where they went next (whole range)",
|
|
767
|
+
]);
|
|
768
|
+
|
|
769
|
+
await expectExplained("Of anchored sessions", "detailOfAllSessions");
|
|
770
|
+
await expectExplained("Started their session here", "detailStartedHere");
|
|
771
|
+
|
|
772
|
+
expect(statValue("Started their session here")).toBe("2");
|
|
773
|
+
expect(statBox("Started their session here")).toHaveTextContent("100%");
|
|
774
|
+
// Two of the two sessions that visited /checkout, not two of five.
|
|
775
|
+
expect(statValue("Of anchored sessions")).toBe("100%");
|
|
776
|
+
});
|
|
777
|
+
|
|
778
|
+
test("an Other pages node explains its folded list", async () => {
|
|
779
|
+
const crowded: UserFlowAnalysis = analyzeUserFlow(
|
|
780
|
+
response([
|
|
781
|
+
{ id: "a1", pages: ["/a"] },
|
|
782
|
+
{ id: "a2", pages: ["/a"] },
|
|
783
|
+
{ id: "a3", pages: ["/a"] },
|
|
784
|
+
{ id: "b1", pages: ["/b"] },
|
|
785
|
+
{ id: "b2", pages: ["/b"] },
|
|
786
|
+
{ id: "c1", pages: ["/c"] },
|
|
787
|
+
{ id: "d1", pages: ["/d"] },
|
|
788
|
+
]),
|
|
789
|
+
{ pagesPerStep: 2 },
|
|
790
|
+
);
|
|
791
|
+
const other: UserFlowNode | undefined = crowded.graph.nodes.find(
|
|
792
|
+
(node: UserFlowNode): boolean => {
|
|
793
|
+
return node.isOther;
|
|
794
|
+
},
|
|
795
|
+
);
|
|
796
|
+
|
|
797
|
+
expect(other).toBeDefined();
|
|
798
|
+
|
|
799
|
+
renderDetail(crowded, { kind: "node", id: other!.id });
|
|
800
|
+
|
|
801
|
+
expect(allInfoLabels()).toEqual([
|
|
802
|
+
"Pages folded together (click to follow one)",
|
|
803
|
+
]);
|
|
804
|
+
|
|
805
|
+
await expectExplained(
|
|
806
|
+
"Pages folded together (click to follow one)",
|
|
807
|
+
"detailFoldedPages",
|
|
808
|
+
);
|
|
809
|
+
|
|
810
|
+
// /c and /d fold together: one session each, half of Other's two.
|
|
811
|
+
const folded: HTMLElement = screen.getByTestId("user-flow-other-pages");
|
|
812
|
+
|
|
813
|
+
expect(within(folded).getByText("/c").closest("button")).toHaveTextContent(
|
|
814
|
+
"1 · 50%",
|
|
815
|
+
);
|
|
816
|
+
expect(within(folded).getByText("/d").closest("button")).toHaveTextContent(
|
|
817
|
+
"1 · 50%",
|
|
818
|
+
);
|
|
819
|
+
});
|
|
820
|
+
});
|
|
821
|
+
|
|
822
|
+
describe("User Flows detail panel: a band between two pages", () => {
|
|
823
|
+
test("all four figures explain themselves", async () => {
|
|
824
|
+
// s2 went /home -> /cart -> /home: the band from /cart to /home.
|
|
825
|
+
const from: UserFlowNode = nodeAt(ANALYSIS, 1, "/cart");
|
|
826
|
+
const to: UserFlowNode = nodeAt(ANALYSIS, 2, "/home");
|
|
827
|
+
|
|
828
|
+
renderDetail(ANALYSIS, {
|
|
829
|
+
kind: "link",
|
|
830
|
+
id: linkBetween(ANALYSIS, from, to).id,
|
|
831
|
+
});
|
|
832
|
+
|
|
833
|
+
expect(allInfoLabels()).toEqual([
|
|
834
|
+
"Sessions",
|
|
835
|
+
"Share of /cart",
|
|
836
|
+
"Share of /home",
|
|
837
|
+
"Returning to a seen page",
|
|
838
|
+
]);
|
|
839
|
+
|
|
840
|
+
await expectExplained("Sessions", "detailTransitionSessions");
|
|
841
|
+
await expectExplained("Share of /cart", "detailShareOfSource");
|
|
842
|
+
await expectExplained("Share of /home", "detailShareOfTarget");
|
|
843
|
+
await expectExplained("Returning to a seen page", "detailReturning");
|
|
844
|
+
});
|
|
845
|
+
|
|
846
|
+
test("the two shares divide by different pages, and a return to a page already seen is amber", () => {
|
|
847
|
+
const from: UserFlowNode = nodeAt(ANALYSIS, 1, "/cart");
|
|
848
|
+
const to: UserFlowNode = nodeAt(ANALYSIS, 2, "/home");
|
|
849
|
+
|
|
850
|
+
renderDetail(ANALYSIS, {
|
|
851
|
+
kind: "link",
|
|
852
|
+
id: linkBetween(ANALYSIS, from, to).id,
|
|
853
|
+
});
|
|
854
|
+
|
|
855
|
+
expect(statValue("Sessions")).toBe("1");
|
|
856
|
+
// One of the four sessions on /cart at step 2 went this way...
|
|
857
|
+
expect(statValue("Share of /cart")).toBe("25%");
|
|
858
|
+
// ...and it is the only session on /home at step 3.
|
|
859
|
+
expect(statValue("Share of /home")).toBe("100%");
|
|
860
|
+
// s2 had already seen /home, at step 1: amber, as the text says.
|
|
861
|
+
expect(statValue("Returning to a seen page")).toBe("100%");
|
|
862
|
+
expect(
|
|
863
|
+
statBox("Returning to a seen page").querySelector("p.text-amber-700"),
|
|
864
|
+
).not.toBeNull();
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
test("a move to a new page is not a return", () => {
|
|
868
|
+
const from: UserFlowNode = nodeAt(ANALYSIS, 0, "/home");
|
|
869
|
+
const to: UserFlowNode = nodeAt(ANALYSIS, 1, "/cart");
|
|
870
|
+
|
|
871
|
+
renderDetail(ANALYSIS, {
|
|
872
|
+
kind: "link",
|
|
873
|
+
id: linkBetween(ANALYSIS, from, to).id,
|
|
874
|
+
});
|
|
875
|
+
|
|
876
|
+
// s1, s2 and s5: three of the four sessions that started on /home.
|
|
877
|
+
expect(statValue("Sessions")).toBe("3");
|
|
878
|
+
expect(statValue("Share of /home")).toBe("75%");
|
|
879
|
+
// Three of the four sessions on /cart at step 2 came from /home (s4 did not).
|
|
880
|
+
expect(statValue("Share of /cart")).toBe("75%");
|
|
881
|
+
expect(statValue("Returning to a seen page")).toBe("0%");
|
|
882
|
+
expect(
|
|
883
|
+
statBox("Returning to a seen page").querySelector("p.text-amber-700"),
|
|
884
|
+
).toBeNull();
|
|
885
|
+
});
|
|
886
|
+
});
|