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-2015): Add auction signals to artwork grid and rail components #10669

Conversation

MrSltun
Copy link
Member

@MrSltun MrSltun commented Aug 27, 2024

This PR resolves EMI-2015

Note

The changes in this PR are hidden behind AREnableAuctionImprovementsSignals feature flag

Description

This PR adds new signals for auctioned artworks in Artwork Grid items and Artwork Rail cards

Screenshots and videos

Screenshots and Videos
Android iOS
Rail auction artwork image image
Rail with extended auctions image image
Grid with different timers image image
Grid with ending soon auctions image image
Watchers in Artwork Screen image image
Grid with extended auctions image image
Updating Lot Watchers
updating-lot-watchers-android.mov
updating-lot-watchers-ios.mov

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

  • Add auction signals to artwork grid items and rail cards (behind ff AREnableAuctionImprovementsSignals) - mrsltun

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.

@MrSltun MrSltun self-assigned this Aug 27, 2024
@MrSltun MrSltun marked this pull request as ready for review August 28, 2024 16:42
@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented Aug 28, 2024

This PR contains the following changes:

  • Cross-platform user-facing changes (Add auction signals to artwork grid items and rail cards (behind ff AREnableAuctionImprovementsSignals) - mrsltun)

Generated by 🚫 dangerJS against 9274fed

Copy link
Member

@rquartararo rquartararo left a comment

Choose a reason for hiding this comment

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

Looks great 🎉

@MrSltun MrSltun merged commit 1bc5f47 into main Aug 29, 2024
7 checks passed
@MrSltun MrSltun deleted the mrsltun/EMI-2015/add-auction-signals-to-artwork-grid-item-and-rail-card branch August 29, 2024 12:51
collectorSignals,
auctionSignals,
}: {
artwork: Artwork
Copy link
Contributor

Choose a reason for hiding this comment

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

way nicer to read, thanks for the changes 💟

* @example
* "$1,750 (2 bids)"
*/
export const saleMessageOrBidInfo = ({
Copy link
Member

Choose a reason for hiding this comment

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

(not for now) Is it possible to move this to MP

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe we should move it to MP instead of having the client figure it out, but currently we use it with feature flags, so perhaps we could move it after releasing the feature?

<Flex flexDirection="row" alignItems="center" justifyContent="space-between">
<Text variant="xs" color="black60">
{!!collectorSignals?.auction?.lotWatcherCount
? `${collectorSignals.auction.lotWatcherCount} Watchers`
Copy link
Member

Choose a reason for hiding this comment

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

is the lotWatcherCount always bigger than 2?

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch 🙇

Copy link
Member Author

Choose a reason for hiding this comment

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

just updated it in #10682

}

const fragment = graphql`
fragment ArtworkAuctionTimer_collectorSignals on CollectorSignals {
Copy link
Member

Choose a reason for hiding this comment

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

I wonder what will be the impact of this fragment on the performance of the query - auctions used to not be the fastest thing we have 😄

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.

5 participants