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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add My Collection artwork form location autocomplete #10227

Conversation

olerichter00
Copy link
Contributor

@olerichter00 olerichter00 commented May 13, 2024

馃敶 Do not merge before https://github.com/artsy/gravity/pull/17722 has run

This PR resolves ONYX-860

Description

This replaces the My Collection form location input component with a new autocomplete input component.

It is still possible to not select any of the suggestions and store an arbitrary string as a location. This string then gets saved as the "city", which can be displayed correctly in the web and app.

Before After
Simulator Screenshot - iPhone 15 Pro - 2024-05-23 at 10 33 54 Simulator Screenshot - iPhone 15 Pro - 2024-05-23 at 10 34 01
--- ---
Simulator Screenshot - iPhone 15 Pro - 2024-05-23 at 10 34 07 Simulator Screenshot - iPhone 15 Pro - 2024-05-23 at 10 35 24

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 馃憖

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

  • Replace My Collection form location input with auto-suggest input - ole

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

@olerichter00 olerichter00 marked this pull request as draft May 13, 2024 13:44
@olerichter00 olerichter00 changed the title feat: My Collection form location autocomplete feat: My Collection artwork form location autocomplete May 13, 2024
@olerichter00 olerichter00 changed the title feat: My Collection artwork form location autocomplete feat: Add My Collection artwork form location autocomplete May 13, 2024
@olerichter00 olerichter00 self-assigned this May 13, 2024
@olerichter00 olerichter00 force-pushed the olerichter00/ONYX-860/my-collection-form-location-autocomplete branch from 4d82b09 to 1014a0a Compare May 17, 2024 09:56
@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented May 17, 2024

This PR contains the following changes:

  • Cross-platform user-facing changes (Replace My Collection form location input with auto-suggest input - ole)

Generated by 馃毇 dangerJS against efd7868

@@ -232,6 +232,12 @@ export const ArtworkMetaProps = graphql`
}
artistNames
category
collectorLocation {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: Remove artworkLocation from the query.

@olerichter00 olerichter00 marked this pull request as ready for review May 23, 2024 09:04
@@ -313,6 +315,7 @@ export const MyCollectionArtworkFormMain: React.FC<
<Flex p={2}>
<Join separator={<Spacer y={2} />}>
<ArtistField />

Copy link
Member

Choose a reason for hiding this comment

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

馃檹

@olerichter00 olerichter00 force-pushed the olerichter00/ONYX-860/my-collection-form-location-autocomplete branch from 4b0bbf1 to efd7868 Compare May 23, 2024 15:06
Copy link
Member

@MounirDhahri MounirDhahri left a comment

Choose a reason for hiding this comment

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

This looks great! sorry I missed this during the review

@olerichter00 olerichter00 merged commit 9323664 into main May 24, 2024
7 checks passed
@olerichter00 olerichter00 deleted the olerichter00/ONYX-860/my-collection-form-location-autocomplete branch May 24, 2024 11:25
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.

None yet

4 participants