-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* copy fieldset pattern to use as the basis for the repeater pattern (multiple input) * add a clone/delete item control for the repeater field to duplicate or remove a set of questions * formatting * add presentational component for edit view * prevent duplicate ids for input fields. Will need to map canonical id prop for other field types * use local storage for storing repeater options on the client * add function to mutate ids for cloned elements. need to make it work for all input types. : * formatting * render update radio group components id in repeater * remove empty test language from user-facing component * update ids have an optional suffix to ensure unique ids in the repeater field * sensible default for local storage * add function to get id for pattern * update id modifier string * clean up pattern logic for dropdown * refactor to use react hook form useFieldsArray * work in progress on repeater validation and structure * ignore .idea dir * dry out add pattern dropdown functions * refactor dropdown buttons and consolidate prop types * update validation to accommodate an array of objects * turn off results summary table for now * remove debugging and console statements * remove function from repeater pattern. validation occurs on individual components * turn off localstorage on the repeater for now * unified add pattern methods to fieldset and repeaters into a single method * resolve ts issue * prevent effect hook from running until decision is made about behavior * rename var for clarity * cleanup from copy/paste * remove unneeded code * remove the move control if the question is in a repeater or fieldset * handle field copy * rename test * add better tests for repeater component * default to empty state for repeater * update spacing * convert add/delete buttons to submit so they can be caught on backend * remove useform hook in repeater component * table the submit event name and value for now * fix unfound import issue * re-add useform hook. needed for pattern validation * wip on repeater field * add todo comments to help provide guidance for handoff * refactor: update single field component for better value and error handling tckt-310 * refactor: update single field component config files tckt-310 * test: update tests for single field component config files tckt-310 * fix: repeater duplicate children id issue tckt-310 * feat: implement isFormBuilder flag tckt-310 * feat: implement parse user input and submit actions for repeater tckt-310 * storybook: update stories for repeater and edit repeater form tckt-310 * refactor: clean up old files tckt-310 * chore: add db file to gitignore tchkt-310 * feat: update phone component type to tel for better user experience tckt-310 * Fix child rendering in the repeater component * Don't emit output file on typecheck step, to avoid cluttering up the filesystem * Use childComponents in PromptComponent to get the patternId * ensure terraform is installed in apply workflow (#439) * ensure terraform is installed in apply workflow * revert testing workflow in prep for launch * chore: clean up ';' in FormContents TCKT-310 * chore: remove commented code block in repeater TCKT-310 * chore: update pnpm lock yaml TCKT-310 * feat: add removeChildPattern to repaeter config and clean up types TCKT-310 * storybook: add tests for repeater pattern TCKT-310 --------- Co-authored-by: kalasgarov <[email protected]> Co-authored-by: Khayal Alasgarov <[email protected]> Co-authored-by: Daniel Naab <[email protected]>
- Loading branch information
1 parent
7b27866
commit 7c2e9c5
Showing
54 changed files
with
14,810 additions
and
10,620 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
_site | ||
.turbo/ | ||
.vscode/ | ||
.idea/ | ||
coverage/ | ||
html/ | ||
node_modules/ | ||
|
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
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.