Switch EPC SAP (Potential) data source from epcSapScorePotential to potentialPostSapScoreDropdown

This commit is contained in:
Daniel Roth 2026-06-15 11:57:39 +00:00
parent 5ad99df044
commit 2a9da6765b
10 changed files with 11 additions and 11 deletions

View file

@ -268,12 +268,12 @@ export function createPropertyTableColumns(
// ── EPC SAP score (potential) ─────────────────────────────────────────
{
accessorKey: "epcSapScorePotential",
accessorKey: "potentialPostSapScoreDropdown",
id: "epcSapScorePotential",
header: ({ column }) => <SortableHeader label="EPC SAP (Potential)" column={column as any} />,
cell: ({ row }) => (
<span className="text-xs font-mono text-gray-600">
{row.original.epcSapScorePotential ?? <span className="text-gray-300"></span>}
{row.original.potentialPostSapScoreDropdown ?? <span className="text-gray-300"></span>}
</span>
),
},

View file

@ -93,7 +93,7 @@ export default function DealPage({
});
const parsedPreSap = parsePreSap(deal.preSapScore);
const epcPotential = sapToEpc(deal.epcSapScorePotential != null ? Number(deal.epcSapScorePotential) : null);
const epcPotential = sapToEpc(deal.potentialPostSapScoreDropdown != null ? Number(deal.potentialPostSapScoreDropdown) : null);
const technicalApprovedMeasures = parseMeasures(
deal.technicalApprovedMeasuresForInstall ?? null,
);

View file

@ -187,7 +187,7 @@ const mockDealRow = {
eiScore: null,
eiScorePotential: null,
epcSapScore: null,
epcSapScorePotential: null,
potentialPostSapScoreDropdown: null,
epcPrn: null,
surveyType: null,
measuresForPibiOrdered: null,

View file

@ -60,7 +60,7 @@ export function mapDbRowToHubspotDeal(row: DealRow): HubspotDeal {
eiScore: d.eiScore,
eiScorePotential: d.eiScorePotential,
epcSapScore: d.epcSapScore,
epcSapScorePotential: d.epcSapScorePotential,
potentialPostSapScoreDropdown: d.potentialPostSapScoreDropdown,
epcPrn: d.epcPrn,
surveyType: d.surveyType,
measuresForPibiOrdered: d.measuresForPibiOrdered,

View file

@ -47,7 +47,7 @@ function makeDeal(overrides: Partial<HubspotDeal> = {}): HubspotDeal {
eiScore: null,
eiScorePotential: null,
epcSapScore: null,
epcSapScorePotential: null,
potentialPostSapScoreDropdown: null,
epcPrn: null,
surveyType: null,
measuresForPibiOrdered: null,

View file

@ -46,7 +46,7 @@ function makeDeal(overrides: Partial<ClassifiedDeal> = {}): ClassifiedDeal {
eiScore: null,
eiScorePotential: null,
epcSapScore: null,
epcSapScorePotential: null,
potentialPostSapScoreDropdown: null,
epcPrn: null,
surveyType: null,
measuresForPibiOrdered: null,

View file

@ -46,7 +46,7 @@ function makeDeal(overrides: Partial<HubspotDeal> = {}): HubspotDeal {
eiScore: null,
eiScorePotential: null,
epcSapScore: null,
epcSapScorePotential: null,
potentialPostSapScoreDropdown: null,
epcPrn: null,
surveyType: null,
measuresForPibiOrdered: null,

View file

@ -18,7 +18,7 @@ export const PROPERTY_CSV_FIELDS: PropertyCsvField[] = [
{ key: "eiScore", label: "EI Score" },
{ key: "eiScorePotential", label: "EI Score (Potential)" },
{ key: "epcSapScore", label: "EPC SAP Score" },
{ key: "epcSapScorePotential", label: "EPC SAP (Potential)" },
{ key: "potentialPostSapScoreDropdown", label: "EPC SAP (Potential)" },
{ key: "lodgementStatus", label: "Lodgement Status" },
{ key: "surveyedDate", label: "Surveyed Date" },
{ key: "designDate", label: "Design Date" },

View file

@ -53,7 +53,7 @@ function makeDeal(overrides: Partial<HubspotDeal> = {}): HubspotDeal {
eiScore: null,
eiScorePotential: null,
epcSapScore: null,
epcSapScorePotential: null,
potentialPostSapScoreDropdown: null,
epcPrn: null,
surveyType: null,
measuresForPibiOrdered: null,

View file

@ -54,7 +54,7 @@ export type HubspotDeal = {
eiScore: string | null;
eiScorePotential: string | null;
epcSapScore: string | null;
epcSapScorePotential: string | null;
potentialPostSapScoreDropdown: string | null;
epcPrn: string | null;
// ── New per-deal workflow fields (issue #249 slice) ────────────────────