SFDigitalServices / formio-sfds

The form.io theme for sf.gov
https://formio-sfds.herokuapp.com/
MIT License
15 stars 2 forks source link

Include U.S. territories in "state" component #127

Closed shawnbot closed 3 years ago

shawnbot commented 3 years ago

This updates our list of U.S. states in the state component to include territories (D.C., American Samoa, Guam, Puerto Rico, Virgin Islands. The list comes courtesy of the "us" npm module, and there's a script that regenerates the JSON for our state component from the list, should it ever need to change:

script/make-states

I've also removed the unnecessary <span> elements from the option templates; added snapshot tests for the state and zip components; and added a snippet to the snapshot test suite that triggers the redrawing of select component values, which are not added in the initial render, and which causes the <option> elements to be included in the HTML snapshots.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sfds/formio-sfds/7jb07hyr7
✅ Preview: https://formio-sfds-git-states-and-territories.sfds.vercel.app