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

feat(EMI-2159): Auction registration address autocomplete #14846

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

erikdstock
Copy link
Contributor

@erikdstock erikdstock commented Nov 14, 2024

The type of this PR is: FEAT

This PR solves EMI-2159

Description

This PR adds autocomplete for US addresses on auction registration and makes minor changes to the registration form layout to follow our latest specs for address forms.

@erikdstock erikdstock self-assigned this Nov 14, 2024
@erikdstock erikdstock changed the title Feat [EMI-2159]: Auction registration address autocomplete feat[EMI-2159]: Auction registration address autocomplete Nov 14, 2024
setHasAutocompletedAddress(false)
}
handleChange(...args)
}
Copy link
Member

@damassi damassi Nov 14, 2024

Choose a reason for hiding this comment

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

Couple things with this:

  • if we have a tracking hook that co-locates all tracking, then we shouldn't be defining local functions that also handle tracking; we should figure out how to make it ideal, such as adding a second callback argument to editedAutocompletedAddress and then invoking that
  • Or (and better) renaming the local function: handleAutocompleteChange and then invoking the tracking function from that
  • Also, no need to pass in handleChange as an argument; its already in scope up above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, mostly agree here. I'll see if i can improve it a little more.

@@ -80,7 +127,7 @@ export const AddressForm = () => {
/>
</Column>

<Column span={6}>
<Column span={12}>
Copy link
Member

Choose a reason for hiding this comment

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

Defaults to 12

@erikdstock erikdstock changed the title feat[EMI-2159]: Auction registration address autocomplete feat(EMI-2159): Auction registration address autocomplete Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants