Add received payment action to first More menu section#92477
Conversation
RECEIVED_PAYMENT was missing from REPORT_MORE_MENU_SECTIONS so it fell through to the unrecognized bucket and sorted to the very end of the report More menu. Place it in the first section alongside PAY so it appears where users expect. Co-authored-by: Roji Philip <rojiphil@users.noreply.github.com>
|
I analyzed the failing checks. Neither requires a code change — the PR diff is correct as-is.
|
|
I analyzed the two failing checks. Neither requires a code change — the PR diff is correct as-is.
|
|
@MelvinBot Precondition: Test Steps:
b) Also, please tick all the checkboxes in PR author checklist. I will add the test videos in PR reviewer checklist. |
|
🤖 Done, a) Added your test steps to the OP — included the precondition and the 6 steps in both the Tests and QA Steps sections (plus a short note in Offline tests since the More menu ordering is rendered client-side). b) Ticked all checkboxes in the PR Author Checklist. The PR Reviewer Checklist is untouched, so you can add the test videos there. |
|
@MelvinBot Please mark the PR as "Ready for review" |
|
🤖 Done — marked this PR as Ready for review. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp92477-android-hybrid-001.mp4Android: mWeb Chrome92477-mweb-chrome-001.mp4iOS: HybridApp92477-ios-hybrid-001.mp4iOS: mWeb Safari92477-mweb-safari-001.mp4MacOS: Chrome / Safari92477-web-chrome-001.mp4 |
rojiphil
left a comment
There was a problem hiding this comment.
@Julesssss @flaviadefaria Changes LGTM.
Approving for your review. Thanks.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Thanks, @rojiphil! I think having two dividers with only three standalone options feels a bit awkward. I’d suggest grouping |
|
@flaviadefaria We ended up in this scenario because these were the only standalone options in their assigned sections i.e. I agree that it's a bit awkward, but it looks like it was intentionally kept in separate sections ( |
Explanation of Change
The report More menu uses section-based ordering defined in
src/libs/PopoverMenuSections.ts. TheRECEIVED_PAYMENT('receivedPayment') action was missing fromREPORT_MORE_MENU_SECTIONS, so when it was added as a menu item it didn't match any section and fell through to theUNRECOGNIZED_SECTIONbucket (Number.MAX_SAFE_INTEGER), sorting it to the very end of the menu.This adds
REPORT_SECONDARY_ACTIONS.RECEIVED_PAYMENTto the first section alongsidePAY, so the Received payment button appears in the first section as expected. A regression unit test was also added to verify the action stays in the first section.Fixed Issues
$ #91928
PROPOSAL: #91928 (comment)
Tests
Precondition:
Received paymentmenu option is at the first section.Offline tests
The report More menu ordering is rendered client-side, so the
Received paymentoption appears in the first section regardless of network connectivity. Follow the same steps as theTestssection while offline.QA Steps
Precondition:
Received paymentmenu option is at the first section.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari