From aec6196594a33e7452c3464ebe43bc7284f3a658 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 26 Jul 2023 10:19:44 +0100 Subject: [PATCH] Adding in heating demand table --- src/app/db/schema/property.ts | 1 + .../pre-assessment-report/page.tsx | 72 +++++++++++++++++-- 2 files changed, 69 insertions(+), 4 deletions(-) diff --git a/src/app/db/schema/property.ts b/src/app/db/schema/property.ts index 7a4214b..833bc94 100644 --- a/src/app/db/schema/property.ts +++ b/src/app/db/schema/property.ts @@ -42,5 +42,6 @@ export interface ConditionReportData { tenure: string; retrofitFeatures: Feature[]; generalFeatures: GeneralFeature[]; + heatingDemand: GeneralFeature[]; yearBuilt: string; } 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 04a4415..9a1b722 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 @@ -175,11 +175,78 @@ export default async function PreAssessmentReport() { feature: "Floor Height", description: 2.4, }, + { + feature: "Number of heated rooms", + description: 5, + }, + { + feature: "Heat loss corridor", + description: "No", + }, + { + feature: "Heat loss corridor length", + description: 0, + }, + { + feature: "Number of open fire places", + description: 0, + }, + { + feature: "Number of extensions", + description: 0, + }, + { + feature: "Floor level", + description: "Ground", + }, + { + feature: "Number of storeys", + description: 2, + }, + { + feature: "Mains gas available", + description: "Yes", + }, + { + feature: "Energy tariff", + description: "Standard", + }, + ], + heatingDemand: [ + { + feature: "EPC primary energy consumption", + description: "98 kWh/m2/year", + }, + { + feature: "EPC CO2 emissions", + description: "2.8 tonnes/year", + }, + { + feature: "Elecrticity Supplier", + description: "E.ON Energy", + }, + { + feature: "Gas Supplier", + description: "British Gas", + }, + { + feature: "Meter reading total energy consumption", + description: "108 kWh/m2/year", + }, + { + feature: "Meter reading electicity consumption", + description: "22 kWh/m2/year", + }, + { + feature: "Meter reading gas consumption", + description: "86 kWh/m2/year", + }, ], }; const retrofitFeatures = conditionReportData.retrofitFeatures; const generalFeatures = conditionReportData.generalFeatures; + const heatingDemand = conditionReportData.heatingDemand; return (
@@ -203,13 +270,10 @@ export default async function PreAssessmentReport() {
General Features
- { - // Floor height, number of heated rooms, heat loss corridoor and heat loss corridor length, number of open fire places, number of extensions, - // floor level if a flat, number of storeys if a flat, whether mains gas is available, energy tarigg, - }
Retrotfit Property Features
Heating Demand
+ ); }