Skip to content

Commit

Permalink
feat: add country subdivision question (#232)
Browse files Browse the repository at this point in the history
* feat(wip): add new country subdivision question

* chore: get rid of unused uuid

* feat(wip): map regions to value label for options

* ci: fix release config

* feat(wip): connect subdivision question to country question current value

* fix: sort by priority after alphabetical sort

* chore: add more use cases to the example form for country subdivisions

* feat: add valueType config parameter to customize return value

* feat: reset select value when linked country changes value

* fix: avoid using toReversed as it's recent node feature

* chore: remove tests in example app

* chore: add example of country subdivision for a fix country

* chore: declare CountrySubdivisionValueType enum

* refactor: move buildCountrySubdivisonOptions to a separate file

* chore: export CountrySubdivisionValueType

* test: add buildCountrySubdivisonOptions unit tests

* test: add basic unit test of the QuestionCountrySubdivision component

* docs: add documentation for country_subdivision question

* docs: add documentation for country_subdivision question

* docs: improve documentation

* chore: update minor dependencies
  • Loading branch information
inigomarquinez authored Apr 10, 2024
1 parent feb3a74 commit bca07a9
Show file tree
Hide file tree
Showing 22 changed files with 1,892 additions and 1,102 deletions.
145 changes: 99 additions & 46 deletions README.md

Large diffs are not rendered by default.

167 changes: 83 additions & 84 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions example/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const App = () => {
<li>
<Link to={'countries'}>Countries form</Link>
</li>
<li>
<Link to={'country_subdivisions'}>Country subdivision form</Link>
</li>
</ul>
</nav>
<div>
Expand Down
10 changes: 0 additions & 10 deletions example/src/forms/Contact/Contact.test.js

This file was deleted.

Loading

0 comments on commit bca07a9

Please sign in to comment.