LG-10300: Add optional info alert to in person proofing location search#9172
Conversation
changelog: User-Facing Improvements, In-person Proofing, Add info alert for users searching locations in help center
Move the InPersonLocationRedirectAlert to the address search component group, which means it won't have access to the MarketingSiteContext, so we need to pass it a URL to render. Also adds AddressSearch props interface so infoAlertURL can be optional.
app/javascript/packages/address-search/components/in-person-location-redirect-alert.tsx
Outdated
Show resolved
Hide resolved
app/javascript/packages/address-search/components/in-person-location-redirect-alert.tsx
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
…-person-location-search
This comment was marked as resolved.
This comment was marked as resolved.
…direct-info-alert-to-in-person-location-search
|
translations have been added to identity-site in 18F/identity-site/pull/1164 @allthesignals |
|
Do you think we need to version up so this new prop will be available when we publish next? Also, I missed this so I will do it in my next PR- but maybe a good idea to update the README for address-search too? |
app/javascript/packages/address-search/components/address-search.tsx
Outdated
Show resolved
Hide resolved
allthesignals
left a comment
There was a problem hiding this comment.
LGTM, just 1 more thing 😇
…direct-info-alert-to-in-person-location-search
…direct-info-alert-to-in-person-location-search
I updated the README in 1e5f442 @gina-yamada |
…direct-info-alert-to-in-person-location-search
I updated the version in f99411a @gina-yamada |
|
I am wondering if we should be adding prop |
🎫 Ticket
LG-10300
🛠 Summary of changes
Add an optional info alert to the in person proofing location search results telling the user that they must enroll before visiting the Post Office. The alert will be shown when the user is searching for locations in the help center.
Also hides the "Select a Post Office location below..." message when no
onSelectmethod is passed to theInPersonLocationscomponent, which is the same way that the "Select" buttons beside each location result are toggled.📜 Testing Plan
Running the application locally, enter the in-person proofing flow and confirm that the location results display as expected, specifically that no info alert displays, and that the "Select a Post Office..." message displays.
Then, edit
app/javascript/packages/document-capture/components/in-person-location-full-address-entry-post-office-search-step.tsxas follows, starting on line 124:and revisit the location search page. Confirm that the results now include the info alert, and no longer show the "Select a Post Office..." message.
👀 Screenshots
no changes
showing info alert and no "Select" messages or buttons (English)
showing info alert and no "Select" messages or buttons (Spanish)
showing info alert and no "Select" messages or buttons (French)