-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SIT-1185 Request a Lead Test Kit | Form 1.1 (#2852)
* SIT-1185 work in progress: splitting out address into separate street, city, state, zip fields; not quite done * SIT-1185 work in progress, updates to Address Verifier to split out city/state/zip fields and improve functionality and usability. * SIT-1185 lots of refactoring work on widget, now calls intersects api to get unincorporated city name. Still need to update the full address and display address if unincorporated. * SIT-1185 better city handling for address verifier, get city from zipcode if unincorporated location in location widget * SIT-1185 hide address part fields * SIT-1185 incremental commit to switch branches; most water form upates complete, location picker now splits out street address parts, Smartsheet handler supports sub-elements. Just need to figure out how to make Address Verifier fields not required if the element is hidden using conditional logic. * SIT-1185 make city/state/zip fields not required, can be set in element config * SIT-1185 remove computed elements used to get subelement values * SIT-1185 also make location_address subfield not required in code, conditionally required in form * SIT-1185 re-added computed state, since location widget doesn't return it because it's always OR * SIT-1185 fixed issue with setting city when unincorporated * SIT-1185 make city name uppercase * SIT-1185 incremental update for backup purposes, trying new approach of adding a secondary query option instead of using location widget * SIT-1185 initial development done: converted form to use modified address verifier widget instead of location picker * SIT-1185 added find_unincorporated to address verifier config * SIT-1185 updates to handler, add comma before unit, misc tweaks * SIT-1185 fixes to verifier logic (resetverified wasn't working), added loading indicator. * SIT-1185 added Portland Ajax Indicator widget, final tweaks to Lead Test Kit form * SIT-1185 put custom Portland elements in their own category * SIT-1185 update handler to put new Smartsheet entries at the top of the sheet * SIT-1185 remove computed state (no longer needed), add change trigger to address field * SIT-1185 renamed spinner image, deleted unneeded files * SIT-1185 removed old spinner image from address verifier module * SIT-1185 fixed filename for spinner * SIT-1185 make spinner smaller and modal, add gray background * SIT-1185 remove debugging comment * SIT-1185 changed to use City instead of Jurisdiction, put Jurisdiction into separate sub-element, fixed issue with capturing values from custom query when multiple instances of widget, add new rows to top of smartsheet * SIT-1185 trying to figure how out to allow unvalidated addresses * SIT-1185 final form tweaks, use verified status to determine whether rest of form is displayed. * SIT-1185 manually reverted changes to location picker since it's no longer used in this form * SIT-1185 fixed conditional logic issues * SIT-1185 made ajax spinner accessible * SIT-1185 added newlines to end of files * SIT-1185 simplify ajax indicator module by attaching library to the element, + more styling * SIT-1185 update composite element subroutine in Smartsheet handler This code is inspired by WebformExcludedElements.php in the webform module and should be a more reliable/standard way of getting the composite key. Additionally, make all the select elements select2 so they are easily searchable when there are a bunch of subelements. * SIT-1185 Fix error when feature array was empty on secondary query e.g with a Canby address, an error would be thrown since no features were found in the water provider layer. Fix this by moving the obj undefined check after the array check. * SIT-1185 fix verification resetting when using control keys in the address element For example, if you did a Ctrl+C or used arrow keys to navigate in the text field, it would reset the verification even though the text hasn't changed. By using the "input" event, we can react only when the value of the field is changed.. * SIT-1185 compute water provider value on client-side Instead of using a computed element to show the water provider value, add a small script to replace the value when the location_capture_field element has changed. This saves on AJAX requests back to the server and therefore better performance after the user enters an address. * SIT-1185 fix composite separator usage that I missed * SIT-1185 remove image [skip ci] --------- Co-authored-by: Oden <[email protected]>
- Loading branch information
Showing
20 changed files
with
470 additions
and
269 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
Oops, something went wrong.