From 1ddf0a05e825c4ec1a943d6cb1c1306ec1f2bdc0 Mon Sep 17 00:00:00 2001 From: hugo Date: Fri, 13 Feb 2026 15:00:00 +0100 Subject: [PATCH] fix: tiles in overview consider mapped tags and cats --- .../ImportAnalysisView/ImportAnalysisView.css | 5 +++++ .../ImportAnalysisView/ImportAnalysisView.tsx | 14 ++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/ImportAnalysisView/ImportAnalysisView.css b/src/renderer/components/ImportAnalysisView/ImportAnalysisView.css index 81b6c1e..1fc58c0 100644 --- a/src/renderer/components/ImportAnalysisView/ImportAnalysisView.css +++ b/src/renderer/components/ImportAnalysisView/ImportAnalysisView.css @@ -235,6 +235,11 @@ color: #73c991; } +.import-stat-tag.stat-mapped { + background: rgba(78, 201, 176, 0.15); + color: #4ec9b0; +} + .import-stat-tag.stat-update { background: rgba(117, 190, 255, 0.15); color: #75beff; diff --git a/src/renderer/components/ImportAnalysisView/ImportAnalysisView.tsx b/src/renderer/components/ImportAnalysisView/ImportAnalysisView.tsx index a8abf17..74a2100 100644 --- a/src/renderer/components/ImportAnalysisView/ImportAnalysisView.tsx +++ b/src/renderer/components/ImportAnalysisView/ImportAnalysisView.tsx @@ -379,8 +379,11 @@ const StatCards: React.FC<{ report: AnalysisReport }> = ({ report }) => ( {report.categories.filter(c => c.existsInProject).length > 0 && ( {report.categories.filter(c => c.existsInProject).length} existing )} - {report.categories.filter(c => !c.existsInProject).length > 0 && ( - {report.categories.filter(c => !c.existsInProject).length} new + {report.categories.filter(c => !c.existsInProject && c.mappedTo).length > 0 && ( + {report.categories.filter(c => !c.existsInProject && c.mappedTo).length} mapped + )} + {report.categories.filter(c => !c.existsInProject && !c.mappedTo).length > 0 && ( + {report.categories.filter(c => !c.existsInProject && !c.mappedTo).length} new )} @@ -392,8 +395,11 @@ const StatCards: React.FC<{ report: AnalysisReport }> = ({ report }) => ( {report.tags.filter(t => t.existsInProject).length > 0 && ( {report.tags.filter(t => t.existsInProject).length} existing )} - {report.tags.filter(t => !t.existsInProject).length > 0 && ( - {report.tags.filter(t => !t.existsInProject).length} new + {report.tags.filter(t => !t.existsInProject && t.mappedTo).length > 0 && ( + {report.tags.filter(t => !t.existsInProject && t.mappedTo).length} mapped + )} + {report.tags.filter(t => !t.existsInProject && !t.mappedTo).length > 0 && ( + {report.tags.filter(t => !t.existsInProject && !t.mappedTo).length} new )}