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

[AudioPlayer] Implement play-or-delete menu for touchscreen/tablet use #710

Merged
merged 10 commits into from
Sep 17, 2020

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Sep 8, 2020

Resolves #681

The interface trigger should be (at least) one of:

  • event is long click/press
  • event is press but not click
  • device is mobile/tablet

This change is Reviewable

@imnasnainaec imnasnainaec self-assigned this Sep 8, 2020
@imnasnainaec
Copy link
Collaborator Author

Testing on an Acer laptop with a touchscreen and in Chromium with a User-Agent switcher.

@imnasnainaec
Copy link
Collaborator Author

imnasnainaec commented Sep 8, 2020

Running into two issues with long-press:

@imnasnainaec imnasnainaec changed the title Pop up play/delete menu for long-press OR press-but-not-click OR mobile device [AudioPlayer] Implement play-or-delete menu for touchscreen/tablet use Sep 8, 2020
@imnasnainaec
Copy link
Collaborator Author

Tried installing https://www.npmjs.com/package/react-native-device-info, but then TheCombine couldn't even compile.
Trying to use https://www.npmjs.com/package/react-device-detect, but it doesn't recognize iOS or Android spoofing by User-Agent Switcher for Chrome.

@imnasnainaec imnasnainaec marked this pull request as ready for review September 11, 2020 16:52
Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 5 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)


src/components/Pronunciations/AudioPlayer.tsx, line 43 at r2 (raw file):

deletePlay

Not a big fan of this function name. What about deleteAudio?

Copy link
Collaborator Author

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 6 files reviewed, 1 unresolved discussion (waiting on @imnasnainaec and @jasonleenaylor)


src/components/Pronunciations/AudioPlayer.tsx, line 43 at r2 (raw file):

Previously, jasonleenaylor (Jason Naylor) wrote…
deletePlay

Not a big fan of this function name. What about deleteAudio?

Done

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 6 files reviewed, 1 unresolved discussion (waiting on @imnasnainaec and @jasonleenaylor)


src/components/Buttons/ButtonConfirmation.tsx, line 23 at r3 (raw file):

utton for archiving/restoring project (changing isActive)

Outdated comment

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r3.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Collaborator Author

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 5 files at r2, 3 of 4 files at r3, 1 of 1 files at r4.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@imnasnainaec imnasnainaec merged commit 5dc0771 into master Sep 17, 2020
@imnasnainaec imnasnainaec deleted the play-button-long-press branch September 17, 2020 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No way to delete recordings from a touch screen
2 participants