+
+
+
+
+ {t('label.total-entity', {
+ entity: t('label.test-plural'),
+ })}
+
+
+
+ {formatNumberWithComma(totalTests)}
+
+
-
- {testCaseSummary?.map((item) => (
-
-
-
- {t(item.name)}
-
-
- {item.data[0].value}
-
+
+
+
+ {testData.map((item) => (
+
+
+
+ {item.name} {formatNumberWithComma(item.value)}
+
+
+ ))}
+
+
+
+
+ {testData.map((entry, index) => (
+ |
+ ))}
+
+
+
+ 100%
+
+
+
+
+
+
+
+
+ {showAdditionalSummary && (
+ <>
+
+
+
+
+
+
+
+ {t('label.healthy-data-asset-plural')}
+
+
+
+ {formatNumberWithComma(healthyDataAssets)}
+
+
- ))}
-
-
-
- {/* Healthy Data Assets */}
-
-
-
- {t('label.healthy-data-asset-plural')}
-
-
-
-
- {healthyDataAssets?.map((entry, idx) => (
- |
- ))}
-
- {renderCenterText(testSummary?.healthy || 0)}
-
-
-
-
- {/* Data Assets Coverage */}
-
-
-
- {t('label.data-asset-plural-coverage')}
-
-
-
-
- {dataAssetsCoverage?.map((entry, idx) => (
- |
- ))}
-
- {renderCenterText(testSummary?.totalDQEntities || 0)}
-
-
-
-
-
-
+
+
+
+
+ {healthyData.map((entry, index) => (
+ |
+ ))}
+
+
+
+ {`${healthyPercentage}%`}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {t('label.data-asset-plural-coverage')}
+
+
+
+ {formatNumberWithComma(dataAssetsCoverage)}
+
+
+
+
+
+
+
+ {coverageData.map((entry, index) => (
+ |
+ ))}
+
+
+
+ {`${coveragePercentage}%`}
+
+
+
+
+
+
+
+ >
+ )}
+
);
};
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/SummaryPannel/pie-chart-summary-panel.style.less b/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/SummaryPannel/pie-chart-summary-panel.style.less
new file mode 100644
index 00000000000..81fad4a0054
--- /dev/null
+++ b/openmetadata-ui/src/main/resources/ui/src/components/DataQuality/SummaryPannel/pie-chart-summary-panel.style.less
@@ -0,0 +1,96 @@
+/*
+ * Copyright 2024 Collate.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+@import (reference) '../../../styles/variables.less';
+
+.pie-chart-summary-panel {
+ .summary-icon {
+ font-size: 28px;
+
+ &.total-tests-icon {
+ color: #3b82f6;
+ background: #eff6ff;
+ padding: 8px;
+ border-radius: 6px;
+ }
+
+ &.healthy-icon {
+ color: @green-3;
+ background: #f0fdf4;
+ padding: 8px;
+ border-radius: 6px;
+ }
+
+ &.coverage-icon {
+ color: @blue-2;
+ background: #e0f2fe;
+ padding: 8px;
+ border-radius: 6px;
+ }
+ }
+
+ .summary-title {
+ font-size: 16px;
+ color: @text-color;
+ font-weight: 600;
+ margin-bottom: 0;
+ }
+
+ .summary-value {
+ font-size: 30px;
+ font-weight: 600;
+ color: @text-color;
+ line-height: 1.2;
+ margin-top: 8px;
+ }
+
+ .percentage-change {
+ font-size: 12px;
+ font-weight: 500;
+
+ &.positive {
+ color: @green-3;
+ }
+
+ &.negative {
+ color: @red-3;
+ }
+ }
+
+ .chart-container {
+ position: relative;
+ }
+
+ .title-value-section {
+ flex-shrink: 0;
+ margin-right: auto;
+ }
+
+ .chart-center-text {
+ font-size: 16px;
+ font-weight: 600;
+ fill: @text-color;
+ }
+
+ .legend-dot {
+ width: 10px;
+ height: 10px;
+ border-radius: 50%;
+ flex-shrink: 0;
+ }
+
+ .legend-text {
+ font-size: 12px;
+ color: @text-grey-muted;
+ }
+}