@truedat/dq 7.5.9 → 7.5.10
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/package.json +41 -71
- package/src/components/ConceptRules.js +1 -2
- package/src/components/ConditionCell.js +17 -16
- package/src/components/ConditionSummary.js +1 -1
- package/src/components/EditRule.js +0 -1
- package/src/components/ExecutionForm.js +2 -4
- package/src/components/ExecutionGroup.js +0 -1
- package/src/components/ExecutionGroupBreadcrumbs.js +1 -2
- package/src/components/ExecutionGroupContent.js +3 -3
- package/src/components/ExecutionGroupLink.js +1 -2
- package/src/components/ExecutionGroupLoader.js +1 -1
- package/src/components/ExecutionGroupMessage.js +0 -1
- package/src/components/ExecutionGroups.js +1 -2
- package/src/components/ExecutionGroupsTable.js +0 -1
- package/src/components/ExecutionPopup.js +1 -1
- package/src/components/FieldSummary.js +1 -2
- package/src/components/ImplementationActions.js +1 -2
- package/src/components/ImplementationCrumbs.js +2 -3
- package/src/components/ImplementationExecutionFilters.js +2 -2
- package/src/components/ImplementationExecutions.js +2 -2
- package/src/components/ImplementationResultBar.js +14 -15
- package/src/components/ImplementationSearchResults.js +6 -4
- package/src/components/ImplementationStructureDelete.js +0 -1
- package/src/components/ImplementationStructureLink.js +1 -2
- package/src/components/ImplementationStructureLinksActions.js +1 -2
- package/src/components/ImplementationStructures.js +2 -2
- package/src/components/ImplementationStructuresNew.js +3 -4
- package/src/components/ImplementationSummary.js +3 -7
- package/src/components/Implementations.js +3 -3
- package/src/components/ImplementationsHeader.js +4 -5
- package/src/components/ImplementationsRoutes.js +379 -322
- package/src/components/ImplementationsUploadButton.js +0 -1
- package/src/components/InformationSummary.js +0 -1
- package/src/components/JoinTypeIcon.js +8 -9
- package/src/components/MoveImplementation.js +0 -1
- package/src/components/NewBasicRuleImplementation.js +4 -4
- package/src/components/NewRemediation.js +1 -1
- package/src/components/NewRule.js +1 -2
- package/src/components/NewRuleImplementation.js +4 -4
- package/src/components/QualityEventError.js +4 -9
- package/src/components/QualityRoutes.js +52 -26
- package/src/components/RawContent.js +0 -1
- package/src/components/RemediationCrumbs.js +2 -2
- package/src/components/RemediationForm.js +4 -4
- package/src/components/RemediationPlan.js +4 -5
- package/src/components/Rule.js +0 -1
- package/src/components/RuleActions.js +2 -3
- package/src/components/RuleCrumbs.js +2 -3
- package/src/components/RuleEventDecorator.js +0 -1
- package/src/components/RuleEventRow.js +0 -1
- package/src/components/RuleEvents.js +0 -1
- package/src/components/RuleForm.js +11 -21
- package/src/components/RuleFormImplementations.js +0 -1
- package/src/components/RuleImplementation.js +0 -1
- package/src/components/RuleImplementationActions.js +2 -2
- package/src/components/RuleImplementationEventRow.js +0 -1
- package/src/components/RuleImplementationEvents.js +0 -1
- package/src/components/RuleImplementationHistory.js +1 -2
- package/src/components/RuleImplementationHistoryRow.js +1 -2
- package/src/components/RuleImplementationLink.js +1 -2
- package/src/components/RuleImplementationLoader.js +2 -2
- package/src/components/RuleImplementationProperties.js +3 -4
- package/src/components/RuleImplementationResultTabs.js +7 -11
- package/src/components/RuleImplementationResults.js +2 -3
- package/src/components/RuleImplementationResultsLink.js +1 -2
- package/src/components/RuleImplementationRow.js +0 -1
- package/src/components/RuleImplementationTabs.js +24 -21
- package/src/components/RuleImplementationsActions.js +1 -2
- package/src/components/RuleImplementationsDownload.js +0 -1
- package/src/components/RuleImplementationsFromRuleLoader.js +2 -2
- package/src/components/RuleImplementationsLabelResults.js +5 -6
- package/src/components/RuleImplementationsOptions.js +1 -2
- package/src/components/RuleImplementationsSearch.js +0 -1
- package/src/components/RuleImplementationsTable.js +1 -1
- package/src/components/RuleLink.js +1 -2
- package/src/components/RuleLoader.js +2 -2
- package/src/components/RuleProperties.js +4 -6
- package/src/components/RuleResult.js +0 -1
- package/src/components/RuleResultDecorator.js +5 -6
- package/src/components/RuleResultDetails.js +0 -4
- package/src/components/RuleResultRemediationLoader.js +1 -1
- package/src/components/RuleResultRemediations.js +0 -1
- package/src/components/RuleResultRow.js +1 -2
- package/src/components/RuleResultSegmentRow.js +0 -1
- package/src/components/RuleResultSegments.js +0 -1
- package/src/components/RuleResultSegmentsLoader.js +1 -1
- package/src/components/RuleResultsRoutes.js +41 -41
- package/src/components/RuleResultsTable.js +0 -1
- package/src/components/RuleResultsUpload.js +0 -1
- package/src/components/RuleRoutes.js +72 -67
- package/src/components/RuleRow.js +1 -2
- package/src/components/RuleSelectionForm.js +0 -1
- package/src/components/RuleSelector.js +0 -1
- package/src/components/RuleSubscriptionLoader.js +1 -1
- package/src/components/RuleSummary.js +1 -1
- package/src/components/RuleTabs.js +8 -7
- package/src/components/Rules.js +2 -2
- package/src/components/RulesActions.js +1 -2
- package/src/components/RulesLabelResults.js +2 -3
- package/src/components/RulesRoutes.js +32 -21
- package/src/components/RulesSearch.js +0 -1
- package/src/components/RulesUploadButton.js +0 -1
- package/src/components/Subscription.js +3 -3
- package/src/components/TaxonomySummary.js +0 -1
- package/src/components/__tests__/ConceptRules.spec.js +0 -1
- package/src/components/__tests__/ConceptRulesLoader.spec.js +19 -22
- package/src/components/__tests__/ConditionSummary.spec.js +0 -1
- package/src/components/__tests__/EditRule.spec.js +10 -7
- package/src/components/__tests__/ExecutionForm.spec.js +5 -14
- package/src/components/__tests__/ExecutionGroup.spec.js +18 -11
- package/src/components/__tests__/ExecutionGroupBreadcrumbs.spec.js +0 -1
- package/src/components/__tests__/ExecutionGroupContent.spec.js +0 -2
- package/src/components/__tests__/ExecutionGroupLink.spec.js +0 -1
- package/src/components/__tests__/ExecutionGroupLoader.spec.js +18 -18
- package/src/components/__tests__/ExecutionGroupMessage.spec.js +9 -13
- package/src/components/__tests__/ExecutionGroups.spec.js +0 -1
- package/src/components/__tests__/ExecutionGroupsTable.spec.js +0 -1
- package/src/components/__tests__/ExecutionPopup.spec.js +0 -1
- package/src/components/__tests__/ImplementationActions.spec.js +0 -1
- package/src/components/__tests__/ImplementationExecutionFilters.spec.js +2 -3
- package/src/components/__tests__/ImplementationExecutions.spec.js +2 -3
- package/src/components/__tests__/ImplementationResultBar.spec.js +44 -27
- package/src/components/__tests__/ImplementationSearchResults.spec.js +13 -22
- package/src/components/__tests__/ImplementationStructureDelete.spec.js +0 -1
- package/src/components/__tests__/ImplementationStructureLink.spec.js +0 -1
- package/src/components/__tests__/ImplementationStructures.spec.js +1 -2
- package/src/components/__tests__/ImplementationStructuresNew.spec.js +43 -23
- package/src/components/__tests__/ImplementationSummary.spec.js +65 -37
- package/src/components/__tests__/Implementations.spec.js +4 -10
- package/src/components/__tests__/ImplementationsRoutes.spec.js +133 -0
- package/src/components/__tests__/ImplementationsUploadButton.spec.js +51 -32
- package/src/components/__tests__/InformationSummary.spec.js +0 -1
- package/src/components/__tests__/MoveImplementation.spec.js +0 -1
- package/src/components/__tests__/NewBasicRuleImplementation.spec.js +19 -23
- package/src/components/__tests__/NewRule.spec.js +23 -14
- package/src/components/__tests__/NewRuleImplementation.spec.js +101 -101
- package/src/components/__tests__/QualityEventError.spec.js +4 -4
- package/src/components/__tests__/QualityRoutes.spec.js +86 -0
- package/src/components/__tests__/RawContent.spec.js +0 -1
- package/src/components/__tests__/RemediationForm.spec.js +0 -2
- package/src/components/__tests__/RemediationPlan.spec.js +23 -29
- package/src/components/__tests__/Rule.spec.js +19 -5
- package/src/components/__tests__/RuleActions.spec.js +11 -8
- package/src/components/__tests__/RuleCrumbs.spec.js +12 -11
- package/src/components/__tests__/RuleEventDecorator.spec.js +0 -1
- package/src/components/__tests__/RuleEventRow.spec.js +0 -1
- package/src/components/__tests__/RuleEvents.spec.js +0 -1
- package/src/components/__tests__/RuleForm.spec.js +30 -73
- package/src/components/__tests__/RuleFormImplementations.spec.js +15 -16
- package/src/components/__tests__/RuleImplementation.spec.js +23 -30
- package/src/components/__tests__/RuleImplementationEvents.spec.js +0 -1
- package/src/components/__tests__/RuleImplementationHistory.spec.js +7 -22
- package/src/components/__tests__/RuleImplementationLoader.spec.js +2 -3
- package/src/components/__tests__/RuleImplementationProperties.spec.js +56 -82
- package/src/components/__tests__/RuleImplementationResultTabs.spec.js +5 -17
- package/src/components/__tests__/RuleImplementationResults.spec.js +2 -3
- package/src/components/__tests__/RuleImplementationResultsLink.spec.js +5 -5
- package/src/components/__tests__/RuleImplementationTabs.spec.js +0 -1
- package/src/components/__tests__/RuleImplementationsActions.spec.js +58 -35
- package/src/components/__tests__/RuleImplementationsFromRuleLoader.spec.js +34 -24
- package/src/components/__tests__/RuleImplementationsLoader.spec.js +22 -14
- package/src/components/__tests__/RuleImplementationsOptions.spec.js +0 -1
- package/src/components/__tests__/RuleImplementationsSearch.spec.js +14 -23
- package/src/components/__tests__/RuleImplementationsTable.spec.js +30 -56
- package/src/components/__tests__/RuleProperties.spec.js +4 -10
- package/src/components/__tests__/RuleResult.spec.js +10 -22
- package/src/components/__tests__/RuleResultDecorator.spec.js +36 -26
- package/src/components/__tests__/RuleResultDetails.spec.js +24 -57
- package/src/components/__tests__/RuleResultRemediationLoader.spec.js +15 -14
- package/src/components/__tests__/RuleResultRemediations.spec.js +2 -3
- package/src/components/__tests__/RuleResultRoutes.spec.js +83 -59
- package/src/components/__tests__/RuleResultRow.spec.js +0 -1
- package/src/components/__tests__/RuleResultSegmentRow.spec.js +46 -83
- package/src/components/__tests__/RuleResultSegments.spec.js +5 -10
- package/src/components/__tests__/RuleResultSegmentsLoader.spec.js +15 -14
- package/src/components/__tests__/RuleResultsUpload.spec.js +0 -1
- package/src/components/__tests__/RuleRoutes.spec.js +90 -14
- package/src/components/__tests__/RuleRow.spec.js +0 -2
- package/src/components/__tests__/RuleSearch.spec.js +10 -15
- package/src/components/__tests__/RuleSelectionForm.spec.js +0 -1
- package/src/components/__tests__/RuleSubscriptionLoader.spec.js +19 -18
- package/src/components/__tests__/RuleSummary.spec.js +0 -1
- package/src/components/__tests__/Rules.spec.js +58 -24
- package/src/components/__tests__/RulesActions.spec.js +17 -13
- package/src/components/__tests__/RulesLoader.spec.js +9 -9
- package/src/components/__tests__/RulesRoutes.spec.js +51 -0
- package/src/components/__tests__/RulesUploadButton.spec.js +0 -1
- package/src/components/__tests__/Subscription.spec.js +18 -19
- package/src/components/__tests__/TaxonomySummary.spec.js +0 -1
- package/src/components/__tests__/__snapshots__/ConceptRules.spec.js.snap +3 -0
- package/src/components/__tests__/__snapshots__/ConditionSummary.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/EditRule.spec.js.snap +120 -80
- package/src/components/__tests__/__snapshots__/ExecutionForm.spec.js.snap +6 -6
- package/src/components/__tests__/__snapshots__/ExecutionGroup.spec.js.snap +12 -10
- package/src/components/__tests__/__snapshots__/ExecutionGroupBreadcrumbs.spec.js.snap +2 -1
- package/src/components/__tests__/__snapshots__/ExecutionGroupLink.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/ExecutionGroupMessage.spec.js.snap +36 -9
- package/src/components/__tests__/__snapshots__/ExecutionGroups.spec.js.snap +9 -6
- package/src/components/__tests__/__snapshots__/ExecutionGroupsTable.spec.js.snap +6 -5
- package/src/components/__tests__/__snapshots__/ImplementationActions.spec.js.snap +6 -5
- package/src/components/__tests__/__snapshots__/ImplementationExecutionFilters.spec.js.snap +4 -0
- package/src/components/__tests__/__snapshots__/ImplementationExecutions.spec.js.snap +10 -5
- package/src/components/__tests__/__snapshots__/ImplementationResultBar.spec.js.snap +10 -20
- package/src/components/__tests__/__snapshots__/ImplementationSearchResults.spec.js.snap +249 -71
- package/src/components/__tests__/__snapshots__/ImplementationStructureLink.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/ImplementationStructures.spec.js.snap +3 -1
- package/src/components/__tests__/__snapshots__/ImplementationStructuresNew.spec.js.snap +220 -9
- package/src/components/__tests__/__snapshots__/ImplementationSummary.spec.js.snap +312 -166
- package/src/components/__tests__/__snapshots__/Implementations.spec.js.snap +9 -21
- package/src/components/__tests__/__snapshots__/ImplementationsRoutes.spec.js.snap +37 -0
- package/src/components/__tests__/__snapshots__/InformationSummary.spec.js.snap +10 -10
- package/src/components/__tests__/__snapshots__/MoveImplementation.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/NewBasicRuleImplementation.spec.js.snap +76 -20
- package/src/components/__tests__/__snapshots__/NewRule.spec.js.snap +125 -54
- package/src/components/__tests__/__snapshots__/NewRuleImplementation.spec.js.snap +157 -79
- package/src/components/__tests__/__snapshots__/QualityEventError.spec.js.snap +31 -10
- package/src/components/__tests__/__snapshots__/QualityRoutes.spec.js.snap +51 -0
- package/src/components/__tests__/__snapshots__/RawContent.spec.js.snap +26 -26
- package/src/components/__tests__/__snapshots__/RemediationForm.spec.js.snap +4 -5
- package/src/components/__tests__/__snapshots__/RemediationPlan.spec.js.snap +2 -4
- package/src/components/__tests__/__snapshots__/Rule.spec.js.snap +42 -41
- package/src/components/__tests__/__snapshots__/RuleActions.spec.js.snap +41 -43
- package/src/components/__tests__/__snapshots__/RuleCrumbs.spec.js.snap +40 -60
- package/src/components/__tests__/__snapshots__/RuleForm.spec.js.snap +194 -45
- package/src/components/__tests__/__snapshots__/RuleFormImplementations.spec.js.snap +20 -8
- package/src/components/__tests__/__snapshots__/RuleImplementation.spec.js.snap +23 -14
- package/src/components/__tests__/__snapshots__/RuleImplementationEvents.spec.js.snap +3 -3
- package/src/components/__tests__/__snapshots__/RuleImplementationHistory.spec.js.snap +7 -4
- package/src/components/__tests__/__snapshots__/RuleImplementationProperties.spec.js.snap +123 -98
- package/src/components/__tests__/__snapshots__/RuleImplementationResultTabs.spec.js.snap +2 -1
- package/src/components/__tests__/__snapshots__/RuleImplementationResults.spec.js.snap +12 -6
- package/src/components/__tests__/__snapshots__/RuleImplementationResultsLink.spec.js.snap +8 -5
- package/src/components/__tests__/__snapshots__/RuleImplementationTabs.spec.js.snap +14 -7
- package/src/components/__tests__/__snapshots__/RuleImplementationsActions.spec.js.snap +105 -68
- package/src/components/__tests__/__snapshots__/RuleImplementationsFromRuleLoader.spec.js.snap +1 -35
- package/src/components/__tests__/__snapshots__/RuleImplementationsLoader.spec.js.snap +1 -31
- package/src/components/__tests__/__snapshots__/RuleImplementationsOptions.spec.js.snap +4 -4
- package/src/components/__tests__/__snapshots__/RuleImplementationsSearch.spec.js.snap +46 -15
- package/src/components/__tests__/__snapshots__/RuleImplementationsTable.spec.js.snap +54 -107
- package/src/components/__tests__/__snapshots__/RuleProperties.spec.js.snap +3 -3
- package/src/components/__tests__/__snapshots__/RuleResult.spec.js.snap +17 -1
- package/src/components/__tests__/__snapshots__/RuleResultDecorator.spec.js.snap +4 -4
- package/src/components/__tests__/__snapshots__/RuleResultDetails.spec.js.snap +17 -17
- package/src/components/__tests__/__snapshots__/RuleResultRoutes.spec.js.snap +4 -321
- package/src/components/__tests__/__snapshots__/RuleResultSegments.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/RuleResultsUpload.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/RuleRoutes.spec.js.snap +32 -1
- package/src/components/__tests__/__snapshots__/RuleRow.spec.js.snap +4 -6
- package/src/components/__tests__/__snapshots__/RuleSearch.spec.js.snap +46 -15
- package/src/components/__tests__/__snapshots__/RuleSelectionForm.spec.js.snap +1 -0
- package/src/components/__tests__/__snapshots__/RuleSubscriptionLoader.spec.js.snap +1 -1
- package/src/components/__tests__/__snapshots__/Rules.spec.js.snap +128 -173
- package/src/components/__tests__/__snapshots__/RulesActions.spec.js.snap +5 -7
- package/src/components/__tests__/__snapshots__/RulesRoutes.spec.js.snap +60 -0
- package/src/components/__tests__/__snapshots__/Subscription.spec.js.snap +127 -184
- package/src/components/ruleImplementationForm/DatasetForm.js +8 -7
- package/src/components/ruleImplementationForm/DateField.js +0 -1
- package/src/components/ruleImplementationForm/DateTimeField.js +0 -1
- package/src/components/ruleImplementationForm/FieldModifier.js +3 -3
- package/src/components/ruleImplementationForm/FieldsGrid.js +1 -1
- package/src/components/ruleImplementationForm/FieldsGroup.js +3 -3
- package/src/components/ruleImplementationForm/FiltersField.js +5 -5
- package/src/components/ruleImplementationForm/FiltersFormGroup.js +5 -6
- package/src/components/ruleImplementationForm/FiltersGrid.js +1 -1
- package/src/components/ruleImplementationForm/FiltersGroup.js +6 -1
- package/src/components/ruleImplementationForm/FixedListField.js +6 -7
- package/src/components/ruleImplementationForm/InformationForm.js +3 -4
- package/src/components/ruleImplementationForm/LimitsForm.js +0 -1
- package/src/components/ruleImplementationForm/NumberField.js +0 -1
- package/src/components/ruleImplementationForm/PopulationForm.js +0 -1
- package/src/components/ruleImplementationForm/RuleImplementationBasicForm.js +6 -7
- package/src/components/ruleImplementationForm/RuleImplementationForm.js +8 -8
- package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +10 -9
- package/src/components/ruleImplementationForm/SegmentsForm.js +0 -1
- package/src/components/ruleImplementationForm/StringField.js +2 -3
- package/src/components/ruleImplementationForm/StringListField.js +2 -3
- package/src/components/ruleImplementationForm/ValidationsForm.js +0 -1
- package/src/components/ruleImplementationForm/ValueConditions.js +3 -3
- package/src/components/ruleImplementationForm/__tests__/DataSetForm.spec.js +5 -18
- package/src/components/ruleImplementationForm/__tests__/FiltersField.spec.js +5 -10
- package/src/components/ruleImplementationForm/__tests__/FiltersFormGroup.spec.js +7 -21
- package/src/components/ruleImplementationForm/__tests__/FiltersGroup.spec.js +12 -21
- package/src/components/ruleImplementationForm/__tests__/InformationForm.spec.js +9 -3
- package/src/components/ruleImplementationForm/__tests__/LimitsForm.spec.js +74 -57
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationBasicForm.spec.js +41 -27
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationForm.spec.js +0 -2
- package/src/components/ruleImplementationForm/__tests__/RuleImplementationRawForm.spec.js +81 -52
- package/src/components/ruleImplementationForm/__tests__/ValueConditions.spec.js +11 -21
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/DataSetForm.spec.js.snap +6 -6
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/FiltersField.spec.js.snap +24 -48
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/FiltersFormGroup.spec.js.snap +102 -6
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/FiltersGroup.spec.js.snap +69 -6
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/InformationForm.spec.js.snap +88 -18
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/LimitsForm.spec.js.snap +68 -68
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/RuleImplementationBasicForm.spec.js.snap +78 -17
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/RuleImplementationForm.spec.js.snap +23 -24
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/RuleImplementationRawForm.spec.js.snap +87 -30
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/ValueConditions.spec.js.snap +69 -6
- package/src/components/ruleImplementationForm/limitsValidation.js +11 -10
- package/src/hooks/useConcept.js +4 -1
- package/src/sagas/__tests__/createImplementationStructure.spec.js +2 -2
- package/src/sagas/__tests__/createRemediation.spec.js +3 -3
- package/src/sagas/__tests__/deleteImplementation.spec.js +1 -1
- package/src/sagas/__tests__/deleteImplementationStructure.spec.js +2 -2
- package/src/sagas/__tests__/deleteRemediation.spec.js +3 -3
- package/src/sagas/__tests__/deleteRule.spec.js +1 -1
- package/src/sagas/__tests__/deleteRuleResult.spec.js +2 -2
- package/src/sagas/__tests__/fetchRemediation.spec.js +2 -2
- package/src/sagas/__tests__/fetchRule.spec.js +2 -2
- package/src/sagas/__tests__/fetchRuleImplementation.spec.js +3 -3
- package/src/sagas/__tests__/fetchRuleImplementations.spec.js +3 -3
- package/src/sagas/__tests__/fetchSegmentResults.spec.js +3 -3
- package/src/sagas/__tests__/updateRemediation.spec.js +3 -3
- package/src/sagas/__tests__/updateRule.spec.js +1 -1
- package/src/sagas/__tests__/updateRuleImplementation.spec.js +5 -5
- package/src/sagas/createImplementationStructure.js +3 -1
- package/src/sagas/createRemediation.js +3 -1
- package/src/sagas/deleteImplementation.js +1 -1
- package/src/sagas/deleteImplementationStructure.js +1 -1
- package/src/sagas/deleteRemediation.js +3 -1
- package/src/sagas/deleteRule.js +2 -2
- package/src/sagas/deleteRuleResult.js +1 -1
- package/src/sagas/fetchConceptRules.js +1 -1
- package/src/sagas/fetchExecutionGroup.js +1 -1
- package/src/sagas/fetchRemediation.js +1 -1
- package/src/sagas/fetchRuleImplementations.js +1 -1
- package/src/sagas/fetchSegmentResults.js +1 -1
- package/src/sagas/updateRemediation.js +3 -1
- package/src/sagas/updateRule.js +1 -1
- package/src/sagas/updateRuleImplementation.js +1 -1
- package/src/selectors/__tests__/getPreviousRuleImplementationQuery.spec.js +2 -2
- package/src/selectors/__tests__/getRuleImplementationColumns.spec.js +1 -1
- package/src/selectors/__tests__/getRuleImplementationForm.spec.js +16 -16
- package/src/selectors/__tests__/getRuleImplementationSelectedFilterActiveValues.spec.js +2 -2
- package/src/selectors/getImplementationStructureLinksColumns.js +0 -1
- package/src/selectors/getImplementationsExecution.js +2 -2
- package/src/selectors/getLinkedImplementationsToRulesColumns.js +0 -1
- package/src/selectors/getPreviousRuleImplementationQuery.js +1 -1
- package/src/selectors/getRuleImplementationColumns.js +0 -1
- package/src/selectors/getRuleImplementationForm.js +5 -5
- package/src/selectors/getRuleImplementationSelectedFilters.js +1 -1
- package/src/selectors/ruleColumnsSelector.js +0 -1
- package/src/styles/ruleSummary.less +21 -21
- package/src/components/RuleRangeNumber.js +0 -46
- package/src/components/RuleRangePercentage.js +0 -116
- package/src/components/__tests__/RuleRangeNumber.spec.js +0 -20
- package/src/components/__tests__/RuleRangePercentage.spec.js +0 -34
- package/src/components/__tests__/UploadModal.spec.js +0 -158
- package/src/components/__tests__/__snapshots__/RuleRangeNumber.spec.js.snap +0 -50
- package/src/components/__tests__/__snapshots__/RuleRangePercentage.spec.js.snap +0 -303
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { Menu } from "semantic-ui-react";
|
|
5
|
-
import { Link
|
|
6
|
-
import {
|
|
4
|
+
import { Link } from "react-router";
|
|
5
|
+
import { useLocation } from "react-router";
|
|
7
6
|
import { connect } from "react-redux";
|
|
8
7
|
import { FormattedMessage } from "react-intl";
|
|
9
8
|
import {
|
|
@@ -16,14 +15,14 @@ import {
|
|
|
16
15
|
export const RuleImplementationResultTabs = ({
|
|
17
16
|
ruleImplementation,
|
|
18
17
|
ruleResult,
|
|
19
|
-
match,
|
|
20
18
|
authCreateRemediation,
|
|
21
19
|
templates,
|
|
22
20
|
}) => {
|
|
21
|
+
const { pathname } = useLocation();
|
|
23
22
|
const renderSegmentResult = () => {
|
|
24
23
|
return ruleResult.hasSegments ? (
|
|
25
24
|
<Menu.Item
|
|
26
|
-
active={
|
|
25
|
+
active={pathname === IMPLEMENTATION_RESULT_SEGMENTS_RESULTS}
|
|
27
26
|
as={Link}
|
|
28
27
|
to={linkTo.IMPLEMENTATION_RESULT_SEGMENTS_RESULTS({
|
|
29
28
|
implementation_id: ruleImplementation.id,
|
|
@@ -41,7 +40,7 @@ export const RuleImplementationResultTabs = ({
|
|
|
41
40
|
|
|
42
41
|
return renderCondition ? (
|
|
43
42
|
<Menu.Item
|
|
44
|
-
active={
|
|
43
|
+
active={pathname === IMPLEMENTATION_RESULT_REMEDIATION_PLAN}
|
|
45
44
|
as={Link}
|
|
46
45
|
to={linkTo.IMPLEMENTATION_RESULT_REMEDIATION_PLAN({
|
|
47
46
|
implementation_id: ruleImplementation.id,
|
|
@@ -56,7 +55,7 @@ export const RuleImplementationResultTabs = ({
|
|
|
56
55
|
return _.isEmpty(ruleImplementation) ? null : (
|
|
57
56
|
<Menu attached="top" pointing secondary tabular>
|
|
58
57
|
<Menu.Item
|
|
59
|
-
active={
|
|
58
|
+
active={pathname === IMPLEMENTATION_RESULT_DETAILS}
|
|
60
59
|
as={Link}
|
|
61
60
|
to={linkTo.IMPLEMENTATION_RESULT_DETAILS({
|
|
62
61
|
implementation_id: ruleImplementation.id,
|
|
@@ -89,7 +88,4 @@ const mapStateToProps = ({
|
|
|
89
88
|
templates,
|
|
90
89
|
});
|
|
91
90
|
|
|
92
|
-
export default
|
|
93
|
-
withRouter,
|
|
94
|
-
connect(mapStateToProps)
|
|
95
|
-
)(RuleImplementationResultTabs);
|
|
91
|
+
export default connect(mapStateToProps)(RuleImplementationResultTabs);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
3
|
-
import { useParams } from "react-router-dom";
|
|
2
|
+
import { useParams } from "react-router";
|
|
4
3
|
import { useQuery } from "@apollo/client";
|
|
5
4
|
import PropTypes from "prop-types";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
@@ -8,7 +7,7 @@ import { Segment, Message, Divider } from "semantic-ui-react";
|
|
|
8
7
|
import { columnDecorator } from "@truedat/core/services";
|
|
9
8
|
import { DateTime, Loading } from "@truedat/core/components";
|
|
10
9
|
import { CursorPagination } from "@truedat/core/components";
|
|
11
|
-
import { useLocation } from "react-router
|
|
10
|
+
import { useLocation } from "react-router";
|
|
12
11
|
import queryString from "query-string";
|
|
13
12
|
import { IMPLEMENTATION_RESULTS_CONNECTION_QUERY } from "../api/queries";
|
|
14
13
|
import RuleResultsTable from "./RuleResultsTable";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import PropTypes from "prop-types";
|
|
3
|
-
import { Link } from "react-router
|
|
2
|
+
import { Link } from "react-router";
|
|
4
3
|
import { linkTo } from "@truedat/core/routes";
|
|
5
4
|
|
|
6
5
|
export const RuleImplementationResultsLink = ({ id, implementation_key }) => (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { Menu } from "semantic-ui-react";
|
|
5
|
-
import { Link
|
|
4
|
+
import { Link } from "react-router";
|
|
5
|
+
import { useActiveRoute } from "@truedat/core/hooks";
|
|
6
6
|
import { connect } from "react-redux";
|
|
7
7
|
import { FormattedMessage } from "react-intl";
|
|
8
8
|
import {
|
|
@@ -28,7 +28,20 @@ export const RuleImplementationTabs = ({
|
|
|
28
28
|
canViewDraftConcepts,
|
|
29
29
|
canViewPendingApprovalConcepts,
|
|
30
30
|
}) => {
|
|
31
|
-
const
|
|
31
|
+
const implementationActive =
|
|
32
|
+
useActiveRoute(IMPLEMENTATION) || useActiveRoute(IMPLEMENTATION_MOVE);
|
|
33
|
+
const conceptLinksActive =
|
|
34
|
+
useActiveRoute(IMPLEMENTATION_CONCEPT_LINKS) ||
|
|
35
|
+
useActiveRoute(IMPLEMENTATION_CONCEPT_LINKS_NEW);
|
|
36
|
+
const structuresActive =
|
|
37
|
+
useActiveRoute(IMPLEMENTATION_STRUCTURES) ||
|
|
38
|
+
useActiveRoute(IMPLEMENTATION_STRUCTURES_NEW);
|
|
39
|
+
const resultsActive = useActiveRoute(IMPLEMENTATION_RESULTS);
|
|
40
|
+
const executionsActive = useActiveRoute(IMPLEMENTATION_EXECUTIONS);
|
|
41
|
+
const resultsDetailsActive = useActiveRoute(IMPLEMENTATION_RESULTS_DETAILS);
|
|
42
|
+
const historyActive = useActiveRoute(IMPLEMENTATION_HISTORY);
|
|
43
|
+
const eventsActive = useActiveRoute(IMPLEMENTATION_EVENTS);
|
|
44
|
+
|
|
32
45
|
const latest_rule_id = _.flow(
|
|
33
46
|
_.pathOr([], "results"),
|
|
34
47
|
_.head,
|
|
@@ -38,9 +51,7 @@ export const RuleImplementationTabs = ({
|
|
|
38
51
|
return _.isEmpty(ruleImplementation) ? null : (
|
|
39
52
|
<Menu attached="top" pointing secondary tabular>
|
|
40
53
|
<Menu.Item
|
|
41
|
-
active={
|
|
42
|
-
match.path === IMPLEMENTATION || match.path === IMPLEMENTATION_MOVE
|
|
43
|
-
}
|
|
54
|
+
active={implementationActive}
|
|
44
55
|
as={Link}
|
|
45
56
|
to={linkTo.IMPLEMENTATION({
|
|
46
57
|
implementation_id: ruleImplementation.id,
|
|
@@ -48,16 +59,12 @@ export const RuleImplementationTabs = ({
|
|
|
48
59
|
>
|
|
49
60
|
<FormattedMessage id="tabs.dq.ruleImplementation" />
|
|
50
61
|
</Menu.Item>
|
|
51
|
-
|
|
52
62
|
{canCreateLink ||
|
|
53
63
|
canViewPublishedConcepts ||
|
|
54
64
|
canViewDraftConcepts ||
|
|
55
65
|
canViewPendingApprovalConcepts ? (
|
|
56
66
|
<Menu.Item
|
|
57
|
-
active={
|
|
58
|
-
match.path === IMPLEMENTATION_CONCEPT_LINKS ||
|
|
59
|
-
match.path === IMPLEMENTATION_CONCEPT_LINKS_NEW
|
|
60
|
-
}
|
|
67
|
+
active={conceptLinksActive}
|
|
61
68
|
as={Link}
|
|
62
69
|
to={linkTo.IMPLEMENTATION_CONCEPT_LINKS({
|
|
63
70
|
id: rule.id,
|
|
@@ -68,10 +75,7 @@ export const RuleImplementationTabs = ({
|
|
|
68
75
|
</Menu.Item>
|
|
69
76
|
) : null}
|
|
70
77
|
<Menu.Item
|
|
71
|
-
active={
|
|
72
|
-
match.path === IMPLEMENTATION_STRUCTURES ||
|
|
73
|
-
match.path === IMPLEMENTATION_STRUCTURES_NEW
|
|
74
|
-
}
|
|
78
|
+
active={structuresActive}
|
|
75
79
|
as={Link}
|
|
76
80
|
to={linkTo.IMPLEMENTATION_STRUCTURES({
|
|
77
81
|
id: rule.id,
|
|
@@ -81,7 +85,7 @@ export const RuleImplementationTabs = ({
|
|
|
81
85
|
<FormattedMessage id="tabs.dq.implementation.structures" />
|
|
82
86
|
</Menu.Item>
|
|
83
87
|
<Menu.Item
|
|
84
|
-
active={
|
|
88
|
+
active={resultsActive}
|
|
85
89
|
as={Link}
|
|
86
90
|
to={linkTo.IMPLEMENTATION_RESULTS({
|
|
87
91
|
implementation_id: ruleImplementation.id,
|
|
@@ -90,7 +94,7 @@ export const RuleImplementationTabs = ({
|
|
|
90
94
|
<FormattedMessage id="tabs.dq.ruleImplementation.results" />
|
|
91
95
|
</Menu.Item>
|
|
92
96
|
<Menu.Item
|
|
93
|
-
active={
|
|
97
|
+
active={executionsActive}
|
|
94
98
|
as={Link}
|
|
95
99
|
to={linkTo.IMPLEMENTATION_EXECUTIONS({
|
|
96
100
|
implementation_id: ruleImplementation.id,
|
|
@@ -100,7 +104,7 @@ export const RuleImplementationTabs = ({
|
|
|
100
104
|
</Menu.Item>
|
|
101
105
|
{_.isNil(latest_rule_id) ? null : (
|
|
102
106
|
<Menu.Item
|
|
103
|
-
active={
|
|
107
|
+
active={resultsDetailsActive}
|
|
104
108
|
as={Link}
|
|
105
109
|
to={linkTo.IMPLEMENTATION_RESULTS_DETAILS({
|
|
106
110
|
implementation_id: ruleImplementation.id,
|
|
@@ -111,7 +115,7 @@ export const RuleImplementationTabs = ({
|
|
|
111
115
|
</Menu.Item>
|
|
112
116
|
)}
|
|
113
117
|
<Menu.Item
|
|
114
|
-
active={
|
|
118
|
+
active={historyActive}
|
|
115
119
|
as={Link}
|
|
116
120
|
to={linkTo.IMPLEMENTATION_HISTORY({
|
|
117
121
|
implementation_id: ruleImplementation.id,
|
|
@@ -119,9 +123,8 @@ export const RuleImplementationTabs = ({
|
|
|
119
123
|
>
|
|
120
124
|
<FormattedMessage id="tabs.dq.ruleImplementation.history" />
|
|
121
125
|
</Menu.Item>
|
|
122
|
-
|
|
123
126
|
<Menu.Item
|
|
124
|
-
active={
|
|
127
|
+
active={eventsActive}
|
|
125
128
|
as={Link}
|
|
126
129
|
to={linkTo.IMPLEMENTATION_EVENTS({
|
|
127
130
|
implementation_id: ruleImplementation.id,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { connect } from "react-redux";
|
|
5
4
|
import { Button, Checkbox } from "semantic-ui-react";
|
|
6
|
-
import { Link } from "react-router
|
|
5
|
+
import { Link } from "react-router";
|
|
7
6
|
import { useIntl } from "react-intl";
|
|
8
7
|
import {
|
|
9
8
|
IMPLEMENTATION_NEW,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useParams } from "react-router
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useParams } from "react-router";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { Dimmer, Loader } from "semantic-ui-react";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import PropTypes from "prop-types";
|
|
3
2
|
import { connect } from "react-redux";
|
|
4
3
|
import { FormattedMessage } from "react-intl";
|
|
@@ -8,7 +7,7 @@ export const RuleImplementationsLabelResults = ({
|
|
|
8
7
|
executeImplementationsOn,
|
|
9
8
|
implementationsToExecute,
|
|
10
9
|
ruleImplementationCount,
|
|
11
|
-
ruleImplementationsLoading
|
|
10
|
+
ruleImplementationsLoading,
|
|
12
11
|
}) => (
|
|
13
12
|
<>
|
|
14
13
|
<Label className="rules-label-results">
|
|
@@ -29,7 +28,7 @@ export const RuleImplementationsLabelResults = ({
|
|
|
29
28
|
count:
|
|
30
29
|
implementationsToExecute == 0
|
|
31
30
|
? ruleImplementationCount
|
|
32
|
-
: implementationsToExecute
|
|
31
|
+
: implementationsToExecute,
|
|
33
32
|
}}
|
|
34
33
|
/>
|
|
35
34
|
</Label>
|
|
@@ -41,15 +40,15 @@ RuleImplementationsLabelResults.propTypes = {
|
|
|
41
40
|
executeImplementationsOn: PropTypes.bool,
|
|
42
41
|
implementationsToExecute: PropTypes.number,
|
|
43
42
|
ruleImplementationCount: PropTypes.number,
|
|
44
|
-
ruleImplementationsLoading: PropTypes.bool
|
|
43
|
+
ruleImplementationsLoading: PropTypes.bool,
|
|
45
44
|
};
|
|
46
45
|
|
|
47
46
|
const mapStateToProps = ({
|
|
48
47
|
ruleImplementationCount,
|
|
49
|
-
ruleImplementationsLoading
|
|
48
|
+
ruleImplementationsLoading,
|
|
50
49
|
}) => ({
|
|
51
50
|
ruleImplementationCount,
|
|
52
|
-
ruleImplementationsLoading
|
|
51
|
+
ruleImplementationsLoading,
|
|
53
52
|
});
|
|
54
53
|
|
|
55
54
|
export default connect(mapStateToProps)(RuleImplementationsLabelResults);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import PropTypes from "prop-types";
|
|
3
2
|
import { Dropdown } from "semantic-ui-react";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
|
-
import { Link } from "react-router
|
|
4
|
+
import { Link } from "react-router";
|
|
6
5
|
import { IMPLEMENTATION_NEW_BASIC } from "@truedat/core/routes";
|
|
7
6
|
import RuleImplementationsDownload from "./RuleImplementationsDownload";
|
|
8
7
|
import RuleResultsUpload from "./RuleResultsUpload";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { getSortInfo, sortColumn } from "@truedat/core/services/sort";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useEffect } from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
|
-
import { useParams } from "react-router
|
|
4
|
+
import { useParams } from "react-router";
|
|
5
5
|
import { Loading } from "@truedat/core/components";
|
|
6
6
|
import { clearRule, fetchRule } from "../routines";
|
|
7
7
|
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { FormattedMessage } from "react-intl";
|
|
5
4
|
import { connect } from "react-redux";
|
|
6
|
-
import { Link } from "react-router
|
|
5
|
+
import { Link } from "react-router";
|
|
7
6
|
import { List, Label } from "semantic-ui-react";
|
|
8
|
-
import "rc-slider/assets/index.css";
|
|
9
|
-
import
|
|
7
|
+
// import "rc-slider/assets/index.css";
|
|
8
|
+
import RichTextEditor from "@truedat/core/components/RichTextEditor";
|
|
10
9
|
import { linkTo } from "@truedat/core/routes";
|
|
11
10
|
|
|
12
11
|
const getStatusColor = (active) =>
|
|
13
12
|
({
|
|
14
13
|
false: "teal",
|
|
15
14
|
true: "olive",
|
|
16
|
-
}[active] || "grey"
|
|
15
|
+
})[active] || "grey";
|
|
17
16
|
|
|
18
17
|
export const RuleProperties = ({
|
|
19
18
|
business_concept_id,
|
|
@@ -41,7 +40,6 @@ export const RuleProperties = ({
|
|
|
41
40
|
<List.Header>
|
|
42
41
|
<FormattedMessage id="quality.domain" />
|
|
43
42
|
</List.Header>
|
|
44
|
-
|
|
45
43
|
<List.Content>{domain.name}</List.Content>
|
|
46
44
|
</List.Item>
|
|
47
45
|
)}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _, { defaultTo, has, isNil } from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { Icon } from "semantic-ui-react";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
@@ -77,11 +76,11 @@ export const calculateResultDecoration = ({
|
|
|
77
76
|
const resultText = isNil(result)
|
|
78
77
|
? formatMessage({ id: "quality.result.no.data" })
|
|
79
78
|
: date
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
? formatMessage(
|
|
80
|
+
{ id: `quality.result.${type}.date` },
|
|
81
|
+
{ result, date: <DateTime value={date} /> }
|
|
82
|
+
)
|
|
83
|
+
: formatMessage({ id: `quality.result.${type}.description` }, { result });
|
|
85
84
|
|
|
86
85
|
const color = selectColor(colorParams);
|
|
87
86
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { connect } from "react-redux";
|
|
@@ -34,7 +33,6 @@ const GeneralInformation = ({ ruleImplementation, ruleResult }) => {
|
|
|
34
33
|
)}
|
|
35
34
|
</Table.Cell>
|
|
36
35
|
</Table.Row>
|
|
37
|
-
|
|
38
36
|
<Table.Row>
|
|
39
37
|
<Table.Cell>
|
|
40
38
|
{formatMessage({ id: "ruleResult.props.date" })}
|
|
@@ -43,14 +41,12 @@ const GeneralInformation = ({ ruleImplementation, ruleResult }) => {
|
|
|
43
41
|
<DateTime value={ruleResult.date} />
|
|
44
42
|
</Table.Cell>
|
|
45
43
|
</Table.Row>
|
|
46
|
-
|
|
47
44
|
<Table.Row>
|
|
48
45
|
<Table.Cell>
|
|
49
46
|
{formatMessage({ id: "ruleResult.props.records" })}
|
|
50
47
|
</Table.Cell>
|
|
51
48
|
<Table.Cell>{formatNumber(ruleResult.records)}</Table.Cell>
|
|
52
49
|
</Table.Row>
|
|
53
|
-
|
|
54
50
|
<Table.Row>
|
|
55
51
|
<Table.Cell>
|
|
56
52
|
{formatMessage({ id: "ruleResult.props.errors" })}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { connect } from "react-redux";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
|
-
import { Link } from "react-router
|
|
5
|
+
import { Link } from "react-router";
|
|
7
6
|
import { Button, Table, Icon, Label } from "semantic-ui-react";
|
|
8
7
|
import { ConfirmModal, DateTime } from "@truedat/core/components";
|
|
9
8
|
import { useAuthorized } from "@truedat/core/hooks";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
|
-
import { useParams } from "react-router
|
|
2
|
+
import { useParams } from "react-router";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { clearSegmentResults, fetchSegmentResults } from "../routines";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Route, useParams } from "react-router-dom";
|
|
1
|
+
import { Routes, Route, useParams } from "react-router";
|
|
3
2
|
import { Segment } from "semantic-ui-react";
|
|
4
3
|
import { useQuery } from "@apollo/client";
|
|
5
4
|
import { Loading } from "@truedat/core/components";
|
|
@@ -24,46 +23,47 @@ export const RuleResultsRoutes = ({}) => {
|
|
|
24
23
|
if (error) return null;
|
|
25
24
|
if (loading) return <Loading />;
|
|
26
25
|
const result = data?.implementationResult;
|
|
26
|
+
|
|
27
27
|
return (
|
|
28
|
-
|
|
29
|
-
<Route
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/>
|
|
66
|
-
|
|
28
|
+
<Routes>
|
|
29
|
+
<Route>
|
|
30
|
+
<Route
|
|
31
|
+
index
|
|
32
|
+
element={
|
|
33
|
+
<Segment>
|
|
34
|
+
<ImplementationCrumbs ruleResult={result} />
|
|
35
|
+
<RuleResult ruleResult={result}>
|
|
36
|
+
<RuleResultDetails ruleResult={result} />
|
|
37
|
+
</RuleResult>
|
|
38
|
+
</Segment>
|
|
39
|
+
}
|
|
40
|
+
/>
|
|
41
|
+
<Route
|
|
42
|
+
path="segment_results"
|
|
43
|
+
element={
|
|
44
|
+
<Segment>
|
|
45
|
+
<ImplementationCrumbs ruleResult={result} />
|
|
46
|
+
<RuleResult ruleResult={result}>
|
|
47
|
+
<RuleResultSegmentsLoader />
|
|
48
|
+
<RuleResultSegments />
|
|
49
|
+
</RuleResult>
|
|
50
|
+
</Segment>
|
|
51
|
+
}
|
|
52
|
+
/>
|
|
53
|
+
<Route
|
|
54
|
+
path="remediation_plan"
|
|
55
|
+
element={
|
|
56
|
+
<Segment>
|
|
57
|
+
<ImplementationCrumbs ruleResult={result} />
|
|
58
|
+
<RuleResult ruleResult={result}>
|
|
59
|
+
<RuleResultRemediations ruleResult={result} />
|
|
60
|
+
</RuleResult>
|
|
61
|
+
</Segment>
|
|
62
|
+
}
|
|
63
|
+
/>
|
|
64
|
+
</Route>
|
|
65
|
+
<Route path="*" element={null} />
|
|
66
|
+
</Routes>
|
|
67
67
|
);
|
|
68
68
|
};
|
|
69
69
|
|