fix(DIAM-12): Add validation for Collector Profile location city #16219
+58
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

The type of this PR is: FIX
@artsy/diamond-devs
This PR solves DIAM-12
Description
The location input field on collector profile doesn’t have any kind of validation, meaning it takes anything
The placeholder says City, but the user can ignore the autocomplete and enter anything
This leads to weirdness on areas where collector profile locations is surfaced (demand, convos, etc)
Let’s add validation to that form, so we ensure it always corresponds to a valid city.
Before:
https://github.com/user-attachments/assets/603f3ef3-942a-4b60-98ab-840b8be7af39
After:
https://github.com/user-attachments/assets/079b73ce-e6ad-4c32-99cf-b92486499d5e