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

chore: New feature flag for artwork card long press menu on iOS #11398

Conversation

olerichter00
Copy link
Contributor

@olerichter00 olerichter00 commented Jan 15, 2025

This PR resolves ONYX-1490

artsy/echo#757

Description

Creating a new feature flag for the artwork card long press menu on iOS because the old one is enabled for app versions that contain bugs. Simply enabling the old feature flags in Echo would also enable the feature for the buggy app versions.

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

iOS user-facing changes

Android user-facing changes

Dev changes

  • New feature flag for artwork card long press menu on iOS - ole

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

@olerichter00 olerichter00 self-assigned this Jan 15, 2025
@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented Jan 15, 2025

This PR contains the following changes:

  • Dev changes (New feature flag for artwork card long press menu on iOS - ole - olerichter00)

Generated by 🚫 dangerJS against bc3116b

@olerichter00 olerichter00 force-pushed the olerichter00/ONYX-1490/new-feature-flag-for-artwork-card-long-press-menu-on-ios branch from 658e6cf to bc3116b Compare January 15, 2025 15:06
@olerichter00 olerichter00 added the Squash On Green A label to indicate that Peril should squash-merge this PR when all statuses are green label Jan 15, 2025
@@ -258,6 +246,12 @@ export const features = {
showInDevMenu: true,
echoFlagKey: "AREnableViewPortPrefetching",
},
AREnableArtworkCardContextMenuIOS: {
description: "Enable long press menu on artwork cards for iOS",
readyForRelease: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All lunch-blocking bugs are addressed, so setting readyForRelease to true.

Comment on lines -86 to -89
const enableContextMenuForRecommendations =
useFeatureFlag("AREnableLongPressOnNewForYouRail") && contextModule == "newWorksForYouRail"
const enableContextMenu =
useFeatureFlag("AREnableLongPressOnArtworkCards") || enableContextMenuForRecommendations
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Getting rid of these two feature flags in favor of just one that enables and disables the long-press context menu on artwork items.

@olerichter00
Copy link
Contributor Author

Merging this PR to have it in tomorrows beta for the QA session.

@artsy-peril artsy-peril bot merged commit c6d8cde into main Jan 15, 2025
7 checks passed
@artsy-peril artsy-peril bot deleted the olerichter00/ONYX-1490/new-feature-flag-for-artwork-card-long-press-menu-on-ios branch January 15, 2025 15:47
@dariakoko
Copy link
Contributor

Sorry, didn't review on time. Thanks for the changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Jira Synced Squash On Green A label to indicate that Peril should squash-merge this PR when all statuses are green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants