Skip to content

LG-10301: Move and rename AddressSearch component.#9100

Merged
allthesignals merged 4 commits intomainfrom
wmg/10301-combine-results-components
Aug 28, 2023
Merged

LG-10301: Move and rename AddressSearch component.#9100
allthesignals merged 4 commits intomainfrom
wmg/10301-combine-results-components

Conversation

@allthesignals
Copy link
Contributor

@allthesignals allthesignals commented Aug 28, 2023

🎫 Ticket

🛠 Summary of changes

Moves the AddressSearch component into its own components file. Renames this component to AddressInput to more closely reflect what it actually is.

This change makes way for the full AddressSearch component (which includes the results display).

📜 Testing Plan

  • make run, force the IPP flow, check that address search returns results.

@allthesignals allthesignals changed the title Wmg/10301 combine results components LG-10301: Move and rename AddressSearch component. Aug 28, 2023
@allthesignals allthesignals force-pushed the wmg/10301-combine-results-components branch from 8a2ff0e to f6c174e Compare August 28, 2023 16:25
@allthesignals allthesignals force-pushed the wmg/10301-combine-results-components branch from f6c174e to 7c1d632 Compare August 28, 2023 16:30
@allthesignals allthesignals requested review from a team and racingspider August 28, 2023 16:37
Copy link
Contributor

@tomas-nava tomas-nava left a comment

Choose a reason for hiding this comment

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

approve! with naming suggestion

I tested locally and successfully searched for locations using the live ArcGIS & USPS APIs.

import type { SetupServer } from 'msw/node';
import { SWRConfig } from 'swr';
import AddressSearch from '.';
import AddressSearch from './address-input';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import AddressSearch from './address-input';
import AddressInput from './address-input';

This works because it lets you assign any name to the default export from address-input, but shouldn't it be AddressInput? (here and two places in the body of the test)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! I missed that. Thank youuuuu

@allthesignals allthesignals merged commit edd6f48 into main Aug 28, 2023
@allthesignals allthesignals deleted the wmg/10301-combine-results-components branch August 28, 2023 17:07
@mdiarra3 mdiarra3 mentioned this pull request Aug 29, 2023
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.

2 participants