-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix: Standardize the hover menu options to always include the same options #39894
Conversation
@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
} | ||
}, | ||
getDescription: () => {}, | ||
}, | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this up too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, what do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move mark as read
up before edit action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated
@nkdengineer Sorry, but can you move |
@shubham1206agra I moved the "download" option to the bottom: Screen.Recording.2024-04-12.at.10.10.24.mov |
Tagging @Expensify/design here as they know the correct order for actions inside the 3-dot menu. |
My take on the example above's order from top to bottom:
I think the deletion should always be the last option. I'll let @shawnborton and @dannymcclain chime in though |
Yup I like that, and I like the idea that delete is always the last option. |
@nkdengineer Please fix the order. |
@shubham1206agra I moved the "Remove" option to the bottom |
@shubham1206agra Any update here. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2024-04-22.at.9.11.25.AM.movMacOS: DesktopScreen.Recording.2024-04-22.at.9.13.25.AM.mov |
Just for prosperity, can you show me a recording with an attachment so we can see the "Download" option too? |
@@ -499,6 +476,55 @@ const ContextMenuActions: ContextMenuAction[] = [ | |||
}, | |||
getDescription: () => {}, | |||
}, | |||
{ | |||
isAnonymousAction: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nkdengineer You forgot to remove this option from above. Now it got duplicated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix duplicated download option.
Screen.Recording.2024-04-22.at.5.59.10.PM.mov@dubielzyk-expensify For your reference. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good from a design perspective. I'll leave it to others for the code 😄
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/tylerkaraszewski in version: 1.4.65-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.65-5 🚀
|
Details
Fixed Issues
$ #39068
PROPOSAL: #39068 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov