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

LG-11857: add header post office search results #11424

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

KeithNava
Copy link
Contributor

@KeithNava KeithNava commented Oct 29, 2024

🎫 Ticket

Link to the relevant ticket:
LG-11857

🛠 Summary of changes

Added an new prop to the InPersonLocations and FullAddressSearch 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

  • Start the In Person enrollment process
  • Navigate to the Post Office Search Page and perform the search
  • Notice no change between the layout and design in the post office result page and the current page in production / main branch

Ensure Heading does not appear in the Help Center by default

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

IPP-PO-Search-default-no-heading

Help Center Post Office Search

help-center-PO-Search-default-no-heading

Steps for testing the package locally

@KeithNava KeithNava marked this pull request as ready for review October 30, 2024 12:28
@KeithNava KeithNava requested review from a team and jennyverdeyen October 30, 2024 12:28
@@ -1,4 +1,4 @@
import { render } from '@testing-library/react';
import { render, waitFor } from '@testing-library/react';
Copy link
Member

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!

@KeithNava KeithNava force-pushed the keithw/LG-11857-add-header-post-office-search-results branch from 3e1e3dc to 8e457c9 Compare October 31, 2024 14:25
@eileen-nava eileen-nava requested review from a team and shanechesnutt-ft October 31, 2024 14:58
@gina-yamada
Copy link
Contributor

gina-yamada commented Oct 31, 2024

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

@gina-yamada
Copy link
Contributor

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.)

@KeithNava KeithNava requested a review from a team October 31, 2024 16:55
@gina-yamada
Copy link
Contributor

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

I see the new addition in changelog. Thank you! I do not see the update in app/javascript/packages/address-search/package.json. You will need to increase the version of address-search so that you can publish it to npm so that it can then be imported in the Help Center.

Copy link
Contributor

@gina-yamada gina-yamada left a 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

@gina-yamada
Copy link
Contributor

@KeithNava What about taking advantage of the beta tag to publish to npm?

@KeithNava
Copy link
Contributor Author

@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?

@gina-yamada
Copy link
Contributor

gina-yamada commented Nov 6, 2024

@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.

@gina-yamada
Copy link
Contributor

gina-yamada commented Nov 6, 2024

@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
✅ Change is non breaking (arg is optional) so good with a minor increase in package version
✅ Header is optional and FullAddressSearch renders when I did not pass in resultsSectionHeading
Screenshot 2024-11-06 at 8 37 23 AM
✅ Header is optional and FullAddressSearch renders when I passed in a value for resultsSectionHeading
Screenshot 2024-11-06 at 8 36 52 AM

👀 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).

@gina-yamada gina-yamada self-requested a review November 6, 2024 15:49
@gina-yamada
Copy link
Contributor

@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.

@KeithNava KeithNava force-pushed the keithw/LG-11857-add-header-post-office-search-results branch from 021dc85 to 4f3de3f Compare November 7, 2024 15:58
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.

4 participants