-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "other" option to utility selector (#149)
## Description Because we can't be sure that the API's set of utilities is 100% comprehensive, or that its location-to-utilities mapping is 100% correct, we should have an escape hatch, so users don't have to give an answer they know is incorrect. The "other" value is not submitted to the API because it's not a valid utility ID and the API would thus error. I'm pretty confident that's sensible behavior for the API, so I'd rather not change it. We'll be able to tell when someone chose "other" in API logs, because the utility param is absent in the /calculator request. https://app.asana.com/0/1206661332626418/1206700057950880 ## Test Plan On a fresh page load, make sure the utility dropdown is not clickable. Enter a zip; make sure utilities load, the first one is selected, and the "Other" entry is present. Submit the form with a real utility selected and make sure its incentives come up. Choose "Other", submit the form, and make sure no utility incentives come up, but state and federal ones do. Enter an invalid zip (00000) and make sure the utility dropdown is not clickable and you see the error message below the field.
- Loading branch information
Showing
4 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters