From 88d2e8a22e9c667f0ac819645793dfbe3a141e91 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Fri, 10 Apr 2026 22:49:00 +0000 Subject: [PATCH] minor visual tweaks --- .../[propertyId]/plans/[planId]/page.tsx | 179 ++++++++++-------- tsconfig.json | 3 +- 2 files changed, 99 insertions(+), 83 deletions(-) diff --git a/src/app/portfolio/[slug]/building-passport/[propertyId]/plans/[planId]/page.tsx b/src/app/portfolio/[slug]/building-passport/[propertyId]/plans/[planId]/page.tsx index eb4d51d..320f668 100644 --- a/src/app/portfolio/[slug]/building-passport/[propertyId]/plans/[planId]/page.tsx +++ b/src/app/portfolio/[slug]/building-passport/[propertyId]/plans/[planId]/page.tsx @@ -87,116 +87,131 @@ export default async function PlanDetail(props: { })(); return ( -
+
{/* ── Header ─────────────────────────────────────────────────── */}
-

- Plan Details: {planMeta.name ?? "Retrofit Plan"} -

+

+ Plan: {planMeta.name ?? "Retrofit Plan"} +

{/* ── Executive Summary Bento ──────────────────────────────────── */}
- {/* EPC Rating card — redesigned with SAP IMPROVEMENT label */} -
- - SAP Improvement - + {/* EPC Rating card */} +
+ {/* Decorative corner accent */} +
- {/* Current → Target letter badges */} -
-
- - Current - - - {currentEpc ?? "–"} +
+ {/* Header label with decorative line */} +
+ + EPC UPGRADE +
- - - -
- - Target - - +
+ + Current + + + {currentEpc ?? "–"} + +
+ - {targetEpc ?? "–"} -
+ + +
+ + Target + +
+ + {targetEpc ?? "–"} + +
+
- {/* EPC gradient bar with official colors + current-position marker */} -
-
- G · Least efficient - Most efficient · A -
-
+
+ {/* Gradient bar with current-position marker */} +
{currentEpc && (
)}
- {/* Letter labels beneath bar */} -
- {EPC_LETTERS.map((l) => ( -
+ + {/* Bottom: SAP points summary */} +
+
+

+ Projected Rating Increase +

+

+ Improvement from{" "} - {l} - -

- ))} + {propertyMeta.currentSapPoints != null + ? Math.round(propertyMeta.currentSapPoints) + : "–"} + {" "} + to{" "} + + {planMeta.postSapPoints?.toFixed(1) ?? "–"} + {" "} + SAP points +

+
+ + +
- -

- SAP:{" "} - - {propertyMeta.currentSapPoints != null - ? Math.round(propertyMeta.currentSapPoints) - : "–"} - - {" → "} - - {planMeta.postSapPoints?.toFixed(1) ?? "–"} - - {" points"} -

{/* 4 stat tiles — cool blue background, icon at top */} diff --git a/tsconfig.json b/tsconfig.json index 590486f..8c2d3c1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,8 @@ "forceConsistentCasingInFileNames": true, "noEmit": true, "esModuleInterop": true, - "module": "preserve", + "module": "esnext", + "ignoreDeprecations": "5.0", "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true,