Skip to content

Menu auto close#3363

Merged
NikkiWines merged 4 commits into
Expensify:mainfrom
parasharrajat:context-menu
Jun 8, 2021
Merged

Menu auto close#3363
NikkiWines merged 4 commits into
Expensify:mainfrom
parasharrajat:context-menu

Conversation

@parasharrajat

@parasharrajat parasharrajat commented Jun 4, 2021

Copy link
Copy Markdown
Member

Details

  1. Added a delay of 800ms to auto-close the menu for Mark as Unread, Copy to Clipboard ContextMenu actions.
  2. Menu closes on Edit Comment action.
  3. Menu closes when we either confirm or cancel the Delete Comment action via Confirm Modal.

Fixed Issues

Fixes #3187

Tests

  1. Open any chat.
  2. Send a message.
  3. Wait for few minutes, then right-click over the Chat message.
  4. Click Copy to clipboard, Menu should close after some time automatically.
  5. Right-click over the message, then select mark unread. The menu should close after some time automatically.

QA Steps (Web/Desktop)

  1. Open E.cash on the web.
  2. Open any existing chat.
  3. Send a new message.
  4. Wait for few seconds.
  5. Now Right-click on the message. On the Context menu, select either Copy to Clipboard or Mark as Unread.
  6. Menu should close after a small delay.

QA Steps (M-Web/Android/IOS)

  1. Open E.cash on the web.
  2. Open any existing chat.
  3. Send a new message.
  4. Wait for few seconds.
  5. Hold Press on the message. On the Context menu, select either Copy to Clipboard or Mark as Unread.
  6. Menu should close after a small delay.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

menu-w.mp4

Desktop

picker-d.mp4

Mobile Web

1623093534388.mp4

iOS

picker-ios.mp4

Android

1622857105728.mp4

@parasharrajat parasharrajat requested a review from a team as a code owner June 4, 2021 03:43
@MelvinBot MelvinBot requested review from NikkiWines and removed request for a team June 4, 2021 03:43
@parasharrajat parasharrajat changed the title [WIP] Menu auto close Menu auto close Jun 5, 2021

@NikkiWines NikkiWines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good. I know this issue only occurred on web/desktop app, but can you add videos for mWeb and iOS, as well as the remaining one for web or desktop (not sure which platform the current video is for since they're under the same heading)

Comment thread src/pages/home/report/ReportActionContextMenu.js Outdated
@parasharrajat

Copy link
Copy Markdown
Member Author

@NikkiWines Updated. Thanks

@NikkiWines NikkiWines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great, with only a couple of very minor comments.

Comment thread src/pages/home/report/ReportActionContextMenu.js Outdated
Comment thread src/pages/home/report/ReportActionContextMenu.js Outdated
@parasharrajat

Copy link
Copy Markdown
Member Author

@NikkiWines Updated. Thanks

@NikkiWines NikkiWines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 Looks good

@parasharrajat

parasharrajat commented Jun 8, 2021

Copy link
Copy Markdown
Member Author

:shipit: It's a blocker for one of the issues.

@NikkiWines NikkiWines merged commit c6041ae into Expensify:main Jun 8, 2021
@OSBotify

OSBotify commented Jun 8, 2021

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging in version: 1.0.64-5🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify

OSBotify commented Jun 8, 2021

Copy link
Copy Markdown
Contributor

🚀 Deployed to production in version: 1.0.65-0🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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.

Report action menu - Menu is not dismissed after performing an action

3 participants