From 603590ed5d465288436e035aaeed8c753a947449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Metehan=20Erdo=C4=9Fan?= Date: Wed, 12 Aug 2026 19:32:33 +0300 Subject: [PATCH] feat: add nominal profit column to projection table Introduce a new "Nominal Profit" column in ProjectionTable: header, cell rendering and styling. Cells show formatted nominalProfit (using formatLocalCurrency) with TrendingUp/TrendingDown icons and conditional blue/rose colors via isNominalProfitPos. Adjust table layout colspan from 8 to 9 to accommodate the new column. Improves visibility of nominal vs real performance in the projection rows. --- src/components/projection/ProjectionTable.tsx | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/components/projection/ProjectionTable.tsx b/src/components/projection/ProjectionTable.tsx index e97c1e6..7cbb238 100644 --- a/src/components/projection/ProjectionTable.tsx +++ b/src/components/projection/ProjectionTable.tsx @@ -155,6 +155,9 @@ export const ProjectionTable: React.FC = () => { {t("table.nominalValueCol")} + + {t("table.nominalProfitCol")} + {t("table.realValueCol")} @@ -172,6 +175,7 @@ export const ProjectionTable: React.FC = () => { {paginatedRows.length > 0 ? ( paginatedRows.map((row) => { + const isNominalProfitPos = row.nominalProfit >= 0 const isRealProfitPos = row.realProfit >= 0 return ( { locale, )} + +
+ {isNominalProfitPos ? ( + + ) : ( + + )} + {formatLocalCurrency( + row.nominalProfit, + currencyCode, + locale, + )} +
+ {formatLocalCurrency( row.realValue, @@ -244,7 +268,7 @@ export const ProjectionTable: React.FC = () => { ) : ( No matching records found.