Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated v1 items #161

Merged
merged 2 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cypress/e2e/state-calculator.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ describe('rewiring-america-state-calculator', () => {

cy.get('rewiring-america-state-calculator')
.shadow()
.contains('$1,000/ton off a heat pump');
.contains('$1,000/ton off an air source heat pump');

cy.get('rewiring-america-state-calculator')
.shadow()
.contains('$350/ton off a heat pump');
.contains('$350/ton off a ducted heat pump');

cy.get('rewiring-america-state-calculator')
.shadow()
.contains('30% of cost of geothermal heating installation');

cy.get('rewiring-america-state-calculator')
.shadow()
.contains('$2,000 off a heat pump');
.contains('$2,000 off an air source heat pump');

cy.get('rewiring-america-state-calculator')
.shadow()
Expand Down
2 changes: 0 additions & 2 deletions src/api/calculator-types-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const ITEMS = [
'energy_audit',
'floor_insulation',
'geothermal_heating_installation',
'heat_pump_air_conditioner_heater',
'heat_pump_clothes_dryer',
'heat_pump_water_heater',
'new_electric_vehicle',
Expand All @@ -63,7 +62,6 @@ export const ITEMS = [
'used_electric_vehicle',
'used_plugin_hybrid_vehicle',
'wall_insulation',
'weatherization',
'window_replacement',
] as const;

Expand Down
5 changes: 0 additions & 5 deletions src/item-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const ALL_WEATHERIZATION: ItemType[] = [
'door_replacement',
'duct_replacement',
'duct_sealing',
'weatherization',
'window_replacement',
'efficiency_rebates',
'other_weatherization',
Expand Down Expand Up @@ -250,8 +249,6 @@ export const itemName = (items: ItemType[], msg: MsgFn) => {
return msg('geothermal heating installation', {
desc: 'e.g. "$100 off [this string]"',
});
case 'heat_pump_air_conditioner_heater':
return msg('a heat pump', { desc: 'e.g. "$100 off [this string]"' });
case 'heat_pump_clothes_dryer':
return msg('a heat pump clothes dryer', {
desc: 'e.g. "$100 off [this string]"',
Expand Down Expand Up @@ -294,8 +291,6 @@ export const itemName = (items: ItemType[], msg: MsgFn) => {
});
case 'wall_insulation':
return msg('wall insulation', { desc: 'e.g. "$100 off [this string]"' });
case 'weatherization':
return msg('weatherization', { desc: 'e.g. "$100 off [this string]"' });
case 'window_replacement':
return msg('window replacement', {
desc: 'e.g. "$100 off [this string]"',
Expand Down
2 changes: 0 additions & 2 deletions src/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export const PROJECTS: Record<Project, ProjectInfo> = {
'ductless_heat_pump',
'geothermal_heating_installation',
'other_heat_pump',
'heat_pump_air_conditioner_heater',
],
label: msg => msg('Heating, ventilation & cooling'),
shortLabel: msg =>
Expand Down Expand Up @@ -113,7 +112,6 @@ export const PROJECTS: Record<Project, ProjectInfo> = {
'duct_sealing',
'floor_insulation',
'wall_insulation',
'weatherization',
'window_replacement',
'efficiency_rebates',
'other_insulation',
Expand Down
Loading