This is the beginning of the process of adding more granular item
types for heat pumps and weatherization. Individual incentives will
now pertain to multiple Items.
The process will be:
Land and deploy this
Land and deploy rewiringamerica/embed.rewiringamerica.org#156
Land and deploy a PEP PR which is yet to come, similar to the embed one above (read from new field if available; fall back to existing one if not)
Update the backend to stop including the old single-valued field in responses.
Remove the support for the old field from the embed and PEP code
Start updating the underlying data, this getting rid of the "synthesize items" bit from this PR.
I decided to ditch the human-friendly name. It was a holdover from
v0, in which it was used to populate the table UIs of the old IRA and
embed calculators. It's too frontend-coupled to make total sense in
v1, and neither PEP nor the new embed calculator use it, so it's gone.
Throughout this I don't expect to proactively inform any external API
clients of the changes, and certainly not to block on them. I believe
anyone we've given v1 to has been warned that v1 will break without
notice.
Test Plan
yarn test with updated fixtures. Tested the embed frontend from the
above PR against this state running locally.
Description
This is the beginning of the process of adding more granular item types for heat pumps and weatherization. Individual incentives will now pertain to multiple
Item
s.The process will be:
items
" bit from this PR.I decided to ditch the human-friendly
name
. It was a holdover from v0, in which it was used to populate the table UIs of the old IRA and embed calculators. It's too frontend-coupled to make total sense in v1, and neither PEP nor the new embed calculator use it, so it's gone.Throughout this I don't expect to proactively inform any external API clients of the changes, and certainly not to block on them. I believe anyone we've given v1 to has been warned that v1 will break without notice.
Test Plan
yarn test
with updated fixtures. Tested the embed frontend from the above PR against this state running locally.