diff --git a/src/app/api/property-meta/[propertyId]/route.ts b/src/app/api/property-meta/[propertyId]/route.ts index d4c54037..226ba6c9 100644 --- a/src/app/api/property-meta/[propertyId]/route.ts +++ b/src/app/api/property-meta/[propertyId]/route.ts @@ -36,6 +36,7 @@ export async function GET( columns: { adjustedEnergyConsumption: true, co2Emissions: true, + estimated: true, }, }, }, diff --git a/src/app/db/schema/property.ts b/src/app/db/schema/property.ts index 1a212884..10665bdf 100644 --- a/src/app/db/schema/property.ts +++ b/src/app/db/schema/property.ts @@ -35,6 +35,7 @@ export interface PropertyMeta { detailsEpc: { adjustedEnergyConsumption: number | null; co2Emissions: number | null; + estimated: boolean; }; } diff --git a/src/app/portfolio/[slug]/building-passport/[propertyId]/layout.tsx b/src/app/portfolio/[slug]/building-passport/[propertyId]/layout.tsx index 3819e58c..3ff4176e 100644 --- a/src/app/portfolio/[slug]/building-passport/[propertyId]/layout.tsx +++ b/src/app/portfolio/[slug]/building-passport/[propertyId]/layout.tsx @@ -1,6 +1,16 @@ import { Toolbar } from "@/app/components/building-passport/Toolbar"; import { getPropertyMeta } from "./utils"; import BackToPortfolioButton from "@/app/components/building-passport/BackToPortfolioButton"; +import { ExclamationCircleIcon } from "@heroicons/react/24/outline"; + +function EstimatedDataNotification() { + return ( +