mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-27 22:45:03 +00:00
The 92/81/69/55/39/21 band floors were defined in five places across TS and SQL — @/app/utils.sapToEpc, a hand-copied sapToEpcLetter in actions, the EPC_TO_SAP_MIN/MAX ranges, and the BAND_BUCKETS_SQL/EPC_MIN_SAP in both scenario-metrics routes. "What SAP score is band C" now lives once in @/lib/epc/thresholds (BAND_MIN_SAP), with a SQL twin in thresholdsSql. - lib/epc/thresholds.ts: BAND_MIN_SAP, sapToBand, EPC_TO_SAP_MIN/MAX (derived) - lib/epc/thresholdsSql.ts: sapBandBucketsSql() built from the same ladder - @/app/utils.sapToEpc + @/app/utils/epc now delegate to the canonical ladder - deleted the hand-copied sapToEpcLetter in actions/recommendations.ts - both metrics routes use sapBandBucketsSql / BAND_MIN_SAP Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| epc.ts | ||
| propertyFilters.ts | ||
| s3.ts | ||
| sqs.ts | ||