-
Notifications
You must be signed in to change notification settings - Fork 112
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
LG-11857: add header post office search results #11424
base: main
Are you sure you want to change the base?
LG-11857: add header post office search results #11424
Conversation
app/javascript/packages/address-search/components/full-address-search.spec.tsx
Outdated
Show resolved
Hide resolved
app/javascript/packages/address-search/components/in-person-locations.tsx
Show resolved
Hide resolved
@@ -1,4 +1,4 @@ | |||
import { render } from '@testing-library/react'; | |||
import { render, waitFor } from '@testing-library/react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove this import since you went with findBy!
3e1e3dc
to
8e457c9
Compare
You will need to increase the version of address-search in package.json (to publish to npm). The changelog for address-search (see path below) should also be updated. app/javascript/packages/address-search/CHANGELOG.md |
app/javascript/packages/address-search/components/full-address-search.spec.tsx
Show resolved
Hide resolved
app/javascript/packages/address-search/components/full-address-search.spec.tsx
Outdated
Show resolved
Hide resolved
Part of this ticket is to build out the component in identity-sites. It would be great if you were able to get a branch going in parallel for that. We could then wire it up and see it working together to ensure we did not overlook anything. (That does not need need to happen for this to get merged.) |
app/javascript/packages/address-search/components/in-person-locations.spec.tsx
Show resolved
Hide resolved
I see the new addition in changelog. Thank you! I do not see the update in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version of address-search needs to be increased
@KeithNava What about taking advantage of the beta tag to publish to npm? |
@gina-yamada sure I could do that, but would that require me to publish twice? |
Yes but you are technically publishing twice now if you use yalec. npm is an approved tool. I am not so sure about yalec. Also, if you published it just once- all of the engineers who wanted to test your new component inside the help center could install the beta version (with npm) rather than publishing to yalec. UPDATE: No need to do that for this PR. I thought it might be less work overall. Maybe nice for future work. |
@KeithNava Thanks for detailed instructions. I think they were funny too. ✅ address-search package.json updated to reflect new interface and address-search changelog updated 👀 Eileen has a PR opened. You may need to coordinate before merging and publishing so there is no collision. UPDATE: @KeithNava If you merge after, make sure to pull in the changes- and you will need to change your version number (so update address-serach package.json and changelog). |
@KeithNava Eileen's code was published. Reach out if you have questions on versioning or publishing to npm. I can publish for you (if we pair) if you don't get access to npm here soon. I don't want you to be blocked by that. |
… FullAddressSearch
… results section heading pro for FullAddressSearch component
…-search.spec.tsx Co-authored-by: Andrew Duthie <[email protected]>
… results section heading pro for FullAddressSearch component
021dc85
to
4f3de3f
Compare
🎫 Ticket
Link to the relevant ticket:
LG-11857
🛠 Summary of changes
Added an new prop to the
InPersonLocations
andFullAddressSearch
components to show a heading on the top of the results section of the post office address search display.📜 Testing Plan
Ensure Heading does not appear by default
Ensure Heading does not appear in the Help Center by default
app/javascript/packages/address-search
(https://github.com/18F/identity-idp/tree/main/app/javascript/packages/address-search) package (ex: npm-link or steps below)Optional test, if you want to get wild!
[Optional] Ensure Heading does appear in the test branch of the Help Center
👀 Screenshots
IDP Post Office Search
Help Center Post Office Search
Steps for testing the package locally
app/javascript/packages/address-search
https://github.com/18F/identity-idp/tree/main/app/javascript/packages/address-search directoryyalc publish
yalc add @18f/identity-address-search