Commit graph

14 commits

Author SHA1 Message Date
Khalim Conn-Kowlessar
ea988cfe52 feat(epc): provenance signals + effective-baseline portfolio table
Theme 1 — EPC card provenance. New resolveProvenanceSignal (pure, unit-
tested) + resolveProvenance expose provenanceSignal ("estimated" /
"remodelled" / "none") and the lodged headline on property-meta. The
building-passport card shows a "Lodged EPC" badge on re-modelled
properties (even within-band), never on predicted ones; the existing
"estimated from nearby homes" banner already covers predicted.

Theme 2 — portfolio table. "Current EPC" + reporting now read the
effective baseline (effectiveSapSql/effectiveEpcBandSql); a dedicated
"Lodged EPC" column reads the source-gated lodged value (blank for
predicted); a "Predicted" pill marks estimated rows; a provenance filter
is added and the broken currentEpc/lodgedEpc filters (on null row
columns) point at the effective/lodged baselines. Expected EPC now uses
the default plan's post rating (expectedEpcRating, unit-tested) instead
of current + Σ rec SAP, which double-counted across plans (732385: A→C);
the same rec aggregate is scoped to the default plan, fixing the Cost
column's 2x double-count.

See ADR-0002. Pure logic covered by provenance.test.ts + expectedEpc.test.ts;
SQL/query/UI verified against live properties 732385 and 729529.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 22:21:33 +00:00
Jun-te Kim
8170601efb refactored with improve-code-archievture and grill-with-docs 2026-05-06 15:49:34 +00:00
Jun-te Kim
119a800995 save latest changes and pulled from main 2026-04-20 15:59:11 +00:00
Khalim Conn-Kowlessar
680935e1fa Improving upload logging 2026-04-20 14:04:06 +00:00
Jun-te Kim
b81a1aaf61 added trigger of sqs 2026-04-18 18:55:19 +00:00
Khalim Conn-Kowlessar
41c068c419 improving visuals of the property table 2026-04-13 13:49:34 +00:00
Khalim Conn-Kowlessar
c70a34f174 improving filter abilities 2026-04-11 15:40:06 +00:00
537239c3ee added workflow to allow me to debug quicker 2026-01-19 13:01:57 +00:00
c9bfb0ce9c added db filtereing 2026-01-05 17:30:58 +00:00
3c5dc722ef added new file 2025-12-08 13:53:54 +00:00
Jun-te kim
0a835eb025 upload 2025-08-20 11:56:52 +00:00
Jun-te kim
cf0cc5e79a added sqs utils 2025-08-19 13:10:49 +00:00
Jun-te kim
c7b9d6de9d upload works 2025-08-12 19:28:40 +00:00
Jun-te kim
08705f708a add utils 2025-08-12 16:01:42 +00:00