Skip to content

LG-8349: Move AddressSearch component into own package#8386

Merged
dawei-nava merged 12 commits intomainfrom
dwang/LG-8439-address-search-pkg
May 18, 2023
Merged

LG-8349: Move AddressSearch component into own package#8386
dawei-nava merged 12 commits intomainfrom
dwang/LG-8439-address-search-pkg

Conversation

@dawei-nava
Copy link
Contributor

@dawei-nava dawei-nava commented May 11, 2023

🎫 Ticket LG-8349

🛠 Summary of changes

Split AddressSearch into package

📜 Testing Plan

Following following steps.

  • Navigate through IPP process
  • Search for PO
  • it should work like before.

@dawei-nava dawei-nava force-pushed the dwang/LG-8439-address-search-pkg branch from 72c3ab0 to 25c806a Compare May 15, 2023 12:53
@dawei-nava dawei-nava requested review from a team, tomas-nava and zachmargolis May 16, 2023 18:46
Copy link
Contributor

@allthesignals allthesignals left a comment

Choose a reason for hiding this comment

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

This isn't really "tested" automatically, but does it still build locally? You might have to run through the flow manually in order to see (although I suspect that would be caught the Rails feature test!)

Copy link
Contributor

Choose a reason for hiding this comment

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

Right now, it only works with a full address. We may support zipcode only search in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will reword it.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is true for getting real results, but right now all those services are mocked.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh interesting... because this hooks into the broader frontend form validation system, we'll want to make sure that this can be an optional param... unsure whether this is required or not...

Copy link
Contributor

Choose a reason for hiding this comment

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

Right now, this is built into the package... I don't think it can be configured from the outside. I wonder if making it configurable would be within the scope of this particular ticket...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, will remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Are we planning to publish this to NPM? This would be okay for how it's used in the IdP, but we wouldn't be able to publish this to NPM, since there are internal references to other packages which are not published (@18f/identity-components, @18f/identity-react-i18n, etc).

We'd probably need to create a prepackaged bundle of those internal dependencies for this to work in another project that wants to use the NPM package.

Copy link
Contributor

@NavaTim NavaTim left a comment

Choose a reason for hiding this comment

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

I would like to see a plan described for how we intend to address @aduth's concern before moving forward with this PR.

Are we planning to publish this to NPM? This would be okay for how it's used in the IdP, but we wouldn't be able to publish this to NPM, since there are internal references to other packages which are not published (@18f/identity-components, @18f/identity-react-i18n, etc).

We'd probably need to create a prepackaged bundle of those internal dependencies for this to work in another project that wants to use the NPM package.

@aduth
Copy link
Contributor

aduth commented May 18, 2023

If it's helpful, @allthesignals and I did some pairing on this several months ago.

Old, incomplete branch: https://github.com/18F/identity-idp/compare/aduth-try-publish-bundled-package
Slack huddle discussion (scattered thoughts): https://gsa-tts.slack.com/archives/C04GA9WQ85B/p1673385390619749?thread_ts=1673377612.005659&cid=C04GA9WQ85B

@NavaTim NavaTim self-requested a review May 18, 2023 18:26
@NavaTim NavaTim self-requested a review May 18, 2023 18:26
@NavaTim
Copy link
Contributor

NavaTim commented May 18, 2023

@aduth @dawei-nava I think that LG-9164 adequately addresses the concern about coupling between this package and other IDP code.

dawei-nava and others added 8 commits May 18, 2023 15:31
changelog: Internal, Code Structure, separate AddressSearch UI component as package.
Co-authored-by: Tim Bradley <90272033+NavaTim@users.noreply.github.com>
Co-authored-by: Tim Bradley <90272033+NavaTim@users.noreply.github.com>
@dawei-nava dawei-nava force-pushed the dwang/LG-8439-address-search-pkg branch from b2aaf7f to 8bdb521 Compare May 18, 2023 19:37
aduth and others added 4 commits May 18, 2023 16:39
* Add support for per-component stylesheets

changelog: Internal, Optimization, Reduce size of stylesheet assets for critical path

* Forward required to use uswds-core conventionally

* Override _uswds-core via internal load path

* Remove unnecessary load path

* Prioritize `--load-path` flag in Sass load path resolution

* Add specs for component stylesheets

* Add specs for StylesheetHelper

* Rename clipboard component stylesheet to simple scss

* Render stylesheet_once_tags everywhere application is rendered

* Fix component preview for per-component stylesheet
* Updating how gpo pending is set in dummy profile

* changelog

[skip changelog]
@dawei-nava dawei-nava merged commit 283b7fc into main May 18, 2023
@dawei-nava dawei-nava deleted the dwang/LG-8439-address-search-pkg branch May 18, 2023 23:37
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.

5 participants