diff --git a/src/app/components/building-passport/RecommendationCard.tsx b/src/app/components/building-passport/RecommendationCard.tsx
index f43f7a0..afe2dcf 100644
--- a/src/app/components/building-passport/RecommendationCard.tsx
+++ b/src/app/components/building-passport/RecommendationCard.tsx
@@ -20,6 +20,10 @@ const TitleMap = {
mechanical_ventilation: "Mechanical Ventilation",
sealing_open_fireplace: "Sealing Open Fireplace",
low_energy_lighting: "Low Energy Lighting",
+ iwi: "Internal Wall Insulation",
+ ewi: "External Wall Insulation",
+ cwi: "Cavity Wall Insulation",
+ loft_insulation: "Loft Insulation",
};
export default function RecommendationCard({
@@ -54,6 +58,29 @@ export default function RecommendationCard({
const [modalIsOpen, setModalIsOpen] = useState(false);
+ const getTitle = () => {
+ if (componentType === "wall_insulation" && cardComponent) {
+ const description = cardComponent.description.toLowerCase();
+ if (description.includes("internal")) {
+ return TitleMap.iwi;
+ } else if (description.includes("external")) {
+ return TitleMap.ewi;
+ } else if (description.includes("cavity")) {
+ return TitleMap.cwi;
+ }
+ }
+
+ if (componentType === "roof_insulation" && cardComponent) {
+ const description = cardComponent.description.toLowerCase();
+ if (description.includes("loft")) {
+ return TitleMap.loft_insulation;
+ }
+ }
+
+ // Logic for other componentTypes can be added here
+ return TitleMap[componentType];
+ };
+
return (
-
{TitleMap[componentType]}
+
{getTitle()}
{cardComponent ? (
cardComponent.description
diff --git a/src/app/components/building-passport/RecommendationContainer.tsx b/src/app/components/building-passport/RecommendationContainer.tsx
index 775b6a1..cb95df2 100644
--- a/src/app/components/building-passport/RecommendationContainer.tsx
+++ b/src/app/components/building-passport/RecommendationContainer.tsx
@@ -113,7 +113,8 @@ export default function RecommendationContainer({
/>
-
+
+
{Object.entries(categorizedRecommendations).map(
([componentType, recommendationData], idx) => {
diff --git a/src/app/components/building-passport/RecommendationCostSummaryCard.tsx b/src/app/components/building-passport/RecommendationCostSummaryCard.tsx
index 1d8d67f..ccf5125 100644
--- a/src/app/components/building-passport/RecommendationCostSummaryCard.tsx
+++ b/src/app/components/building-passport/RecommendationCostSummaryCard.tsx
@@ -9,7 +9,7 @@ export default function RecommendationCostSummaryCard({
totalSapPoints: number;
}) {
return (
-
+
| Total Cost: |
diff --git a/src/app/components/building-passport/RecommendationEpcSummaryCard.tsx b/src/app/components/building-passport/RecommendationEpcSummaryCard.tsx
index 3364e6b..dcd1ebf 100644
--- a/src/app/components/building-passport/RecommendationEpcSummaryCard.tsx
+++ b/src/app/components/building-passport/RecommendationEpcSummaryCard.tsx
@@ -8,7 +8,7 @@ export default function RecommendationEpcSummaryCard({
expectedEpcRating,
}: RecommendationEpcSummaryCardProps) {
return (
-
+
| Current EPC Rating: |
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 06d0a90..a0ee436 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
@@ -1,4 +1,3 @@
-import { PropertyMeta } from "@/app/db/schema/property";
import RecommendationContainer from "@/app/components/building-passport/RecommendationContainer";
import { getPropertyMeta, getRecommendations } from "../../utils";
diff --git a/src/app/portfolio/[slug]/building-passport/[propertyId]/pre-assessment-report/page.tsx b/src/app/portfolio/[slug]/building-passport/[propertyId]/pre-assessment-report/page.tsx
index 1af499d..5302c13 100644
--- a/src/app/portfolio/[slug]/building-passport/[propertyId]/pre-assessment-report/page.tsx
+++ b/src/app/portfolio/[slug]/building-passport/[propertyId]/pre-assessment-report/page.tsx
@@ -32,11 +32,12 @@ interface PropertyDetailsCardProps {
propertyMeta: PropertyMeta;
propertyDetailsSpatial: {
inConservationArea: string;
+ isListedorHeritage: string;
};
}
-const rowTitleStyle = "text-gray-100 align-top pb-3";
-const rowValueStyle = "text-gray-100 text-end pr-8 pt-1 align-top pb-3";
+const rowTitleStyle = "text-brandblue align-top pb-3";
+const rowValueStyle = "text-brandblue text-end pr-8 pt-1 align-top pb-3";
function PropertyDetailsCard({
conditionReportData,
@@ -48,7 +49,7 @@ function PropertyDetailsCard({
.join(" ");
return (
-
+
@@ -74,6 +75,12 @@ function PropertyDetailsCard({
{propertyDetailsSpatial.inConservationArea}
+
+ | Is listed or heritage: |
+
+ {propertyDetailsSpatial.isListedorHeritage}
+ |
+
@@ -113,6 +120,7 @@ export default async function PreAssessmentReport({
const conditionReportData = await getConditionReport(params.propertyId);
const propertyDetailsSpatial = {
inConservationArea: "No",
+ isListedorHeritage: "No",
};
const generalFeatures = formatGeneralFeatures(
conditionReportData,
@@ -135,7 +143,6 @@ export default async function PreAssessmentReport({
epcRating={propertyMeta.currentEpcRating}
fullMargin={false}
/>
-