Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to demo #450

Merged
merged 8 commits into from
Jan 29, 2025
Merged

Deploy to demo #450

merged 8 commits into from
Jan 29, 2025

Conversation

github-actions[bot]
Copy link

Automated PR to sync changes from main to demo.

* update cache action to v4

* use setup-terraform action
@github-actions github-actions bot added the autogenerated Created by a project automation label Jan 15, 2025
* 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]>
Copy link
Author

github-actions bot commented Jan 16, 2025

Terraform plan for tts-10x-forms-demo

Plan: 0 to add, 1 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~  update in-place

Terraform will perform the following actions:

  # cloudfoundry_app.tts-10x-forms-demo-server-doj_tts-10x-forms-demo-server-doj-app_88F24765 will be updated in-place
!~  resource "cloudfoundry_app" "tts-10x-forms-demo-server-doj_tts-10x-forms-demo-server-doj-app_88F24765" {
!~      docker_image                    = "ghcr.io/gsa-tts/forms/server-doj:e0a15c39f31815b9f443cefe019d6b89e0c97064" -> "ghcr.io/gsa-tts/forms/server-doj:e8a8e0ec568a487942c490c9a30f287f704841f2"
        id                              = "db85f8bc-3662-4bbc-9e35-7e4b000428db"
        name                            = "tts-10x-forms-demo-server-doj-app"
#        (17 unchanged attributes hidden)

#        (3 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

📝 Plan generated in Post Terraform plan to PR comment #654

ethangardner and others added 6 commits January 17, 2025 15:49
Without the env var, the storybook browser tests kept the web socket connection
open indefinitely, causing our pre-commit hooks to never exit and blocking commits
unless we ran it with --no-verify
* feat: create long answer textarea component TCKT-399

* test(storybook): add stories for textarea component TCKT-399

* feat: create long answer textarea edit component TCKT-399

* test(storybook): add stories for textarea edit component TCKT-399

* feat: add schema config and validtion logic for textarea TCKT-399

* test: add schema config and validtion tests for textarea TCKT-399

---------

Co-authored-by: Khayal Alasgarov <[email protected]>
* Remove unused docassemble infra

* Remove Kansas State Courts demo app

* Remove docassemble client

* Update lockfile

* remove @playwright/test dependencies, in lieu of the version in the root module

* Install playwright browsers before running tests

* Use existing playwright cache and also install in dockerfile

* Update e2e docker playwright version via image tag

* install make

* install e2e build dependencies

* Remove dependency-graph. It didn't generate readable graphs, and if we prioretize auto-generated docs in the future, we could revisit.
* Clean-up - require log in to view the form manager.

* Remove "build-image-kansas" deploy job
@danielnaab danielnaab merged commit 28ae2e1 into demo Jan 29, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autogenerated Created by a project automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants