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: Long-press artwork context menu for Android #11359

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

olerichter00
Copy link
Contributor

@olerichter00 olerichter00 commented Jan 9, 2025

This PR resolves ONYX-1474

Description

This implements the Artwork card long-press context menu for Android using a bottom sheet.

  • Feature Flag: AREnableArtworkCardContextMenuAndroid

Screenshots

Android

Screenshot_1737741490 Screenshot_1737741508

iOS

Simulator Screenshot - iPhone SE (3rd generation) - 2025-01-24 at 18 49 21 Simulator Screenshot - iPhone SE (3rd generation) - 2025-01-24 at 18 34 44

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

  • Artwork card long-press context menu for Android - ole

Dev changes

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

@olerichter00 olerichter00 changed the title feat: Long-press artwork context menu for Android feat(WIP): Long-press artwork context menu for Android Jan 9, 2025
@olerichter00 olerichter00 marked this pull request as draft January 9, 2025 09:12
@olerichter00 olerichter00 self-assigned this Jan 9, 2025
@olerichter00 olerichter00 force-pushed the olerichter00/ONYX-1474/long-press-artwork-context-menu-for-android branch from 87895ca to c44814b Compare January 24, 2025 17:49
Comment on lines +95 to +96
<Box pr={2}>
<RouterLink
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moving ContextMenuArtwork inside RouterLink so RouterLink's onPress still works.

@olerichter00 olerichter00 changed the title feat(WIP): Long-press artwork context menu for Android feat: Long-press artwork context menu for Android Jan 24, 2025
@olerichter00 olerichter00 marked this pull request as ready for review January 24, 2025 17:53
@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented Jan 24, 2025

This PR contains the following changes:

  • Android user-facing changes (Artwork card long-press context menu for Android - ole - olerichter00)

Generated by 🚫 dangerJS against ccd90a0

`,
})

describe("on Android", () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was not able to test the context menu on iOS with react-native-context-menu-view.

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