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

Attachments component #376

Merged
merged 56 commits into from
Nov 25, 2024
Merged

Attachments component #376

merged 56 commits into from
Nov 25, 2024

Conversation

ethangardner
Copy link
Contributor

@ethangardner ethangardner commented Nov 7, 2024

Adds a file attachment component styled like the USWDS file input but as a React component.

@ethangardner ethangardner linked an issue Nov 7, 2024 that may be closed by this pull request
29 tasks
Copy link

github-actions bot commented Nov 7, 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/forms/server-doj:5ee895458608f6989ca8728ce74a1c20bfd16ff3" -> "ghcr.io/gsa-tts/forms/server-doj:e181344d26efdc130df7f0abb33d4433db629f75"
        id                              = "8a9fc8b6-af5e-45a2-abb6-2c24ecbcdfaa"
        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/forms/server-kansas:5ee895458608f6989ca8728ce74a1c20bfd16ff3" -> "ghcr.io/gsa-tts/forms/server-kansas:e181344d26efdc130df7f0abb33d4433db629f75"
        id                              = "e885e531-11b7-4906-9cc3-0ddf483868f5"
        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 #434

@ethangardner ethangardner changed the title 311 attachments component Attachments component Nov 7, 2024
@ethangardner ethangardner marked this pull request as ready for review November 7, 2024 22:17
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.

I ran this locally, and it behaves perfectly.

There are some changes necessary to get it to work with the node.js server, and I think we should think through how to store the data efficiently. The work on the source PDF document storage could possibly share some commonalities.

packages/forms/src/patterns/attachment/response.ts Outdated Show resolved Hide resolved
packages/forms/src/documents/pdf/parsing-api.ts Outdated Show resolved Hide resolved
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.

Awesome work!

@ethangardner ethangardner merged commit c02d98d into main Nov 25, 2024
3 checks passed
@ethangardner ethangardner deleted the 311-attachments-component branch November 25, 2024 14:49
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.

Attachments component skeleton
3 participants