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

feat: create date of birth pattern tckt-361 #374

Merged
merged 5 commits into from
Nov 6, 2024
Merged

Conversation

kalasgarov
Copy link
Contributor

Created Date of Birth Pattern for Forms Users.
Created Date of Birth Pattern Edit for Form Builders.
Added unit tests for Date of Birth Pattern.

Refactored and added value aggregation hook to handle structured and single values in form validation

Copy link

github-actions bot commented Nov 6, 2024

Terraform plan for tts-10x-atj-dev

Plan: 0 to add, 2 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-atj-dev-server-doj_tts-10x-atj-dev-server-doj-app_380DB029 will be updated in-place
!~  resource "cloudfoundry_app" "tts-10x-atj-dev-server-doj_tts-10x-atj-dev-server-doj-app_380DB029" {
!~      docker_image                    = "ghcr.io/gsa-tts/atj-platform/server-doj:8a7f9827a9a861a7ad510878dbd7faaffbf1b401" -> "ghcr.io/gsa-tts/atj-platform/server-doj:0ec86e0d7ec0ced5f6519c1eecf47964923e0de1"
        id                              = "6246c063-6cf4-423d-812a-4bfdeb62bcae"
        name                            = "tts-10x-atj-dev-server-doj-app"
#        (17 unchanged attributes hidden)

#        (3 unchanged blocks hidden)
    }

  # cloudfoundry_app.tts-10x-atj-dev-server-kansas_tts-10x-atj-dev-server-kansas-app_337A9CF1 will be updated in-place
!~  resource "cloudfoundry_app" "tts-10x-atj-dev-server-kansas_tts-10x-atj-dev-server-kansas-app_337A9CF1" {
!~      docker_image                    = "ghcr.io/gsa-tts/atj-platform/server-kansas:8a7f9827a9a861a7ad510878dbd7faaffbf1b401" -> "ghcr.io/gsa-tts/atj-platform/server-kansas:0ec86e0d7ec0ced5f6519c1eecf47964923e0de1"
        id                              = "f7c60971-bffd-4a6e-a0bb-af1191079918"
        name                            = "tts-10x-atj-dev-server-kansas-app"
#        (17 unchanged attributes hidden)

#        (3 unchanged blocks hidden)
    }

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

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

@kalasgarov kalasgarov self-assigned this Nov 6, 2024
Copy link
Contributor

@danielnaab danielnaab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work tracking down the nested keys issue! Would it be possible to update it to support nesting deeper than one level?

packages/forms/src/pattern.ts Outdated Show resolved Hide resolved
const yearSchema = z
.string()
.regex(/^\d{4}$/, 'Invalid year format')
.optional();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These schemas look correct, but I think we may want them to be coerced into numbers. @ethangardner thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to merge the current PR to unblock my next work, but in some point if want to update anything here I can raise a separate PR for it.

@kalasgarov kalasgarov force-pushed the feature/361-date-input branch from 617cab7 to c44d968 Compare November 6, 2024 18:15
Copy link
Contributor

@danielnaab danielnaab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kalasgarov kalasgarov merged commit 4480793 into main Nov 6, 2024
3 checks passed
@kalasgarov kalasgarov deleted the feature/361-date-input branch November 6, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants