Repository navigation
Open the report transaction long-press menu from the global modal stack - #105788
Conversation
Co-authored-by: daledah <daledah@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
|
🤖 Android test steps verification results: ✅ pass On standalone Android NewDot, the long-press Select menu on report expense rows works through the global modal stack: it opens Select, enters selection mode for the long-pressed row only, toggles checkboxes directly during selection mode, dismisses cleanly, and a plain tap still opens expense details. The PR's Tests section has no steps yet, so these checks come from the acceptance criteria in Migrate the report transaction long-press selection menu to the global modal stack.
|
|
🤖 Web test steps verification results: A normal click still opens expense details, but the long-press checks could not run: the web test browser has no press-and-hold action, so the Select menu could not be opened. This is a test-tool limit, not an app failure. The same long-press checks all passed on Android in the earlier Android run.
|
|
@MelvinBot please resolve conflict |
Co-authored-by: daledah <daledah@users.noreply.github.com>
|
|
|
@MelvinBot please update the Tests section: Tests
Offline tests
QA StepsSame as Tests. |
|
Updated the Tests, Offline tests, and QA Steps sections with your wording. Left all checklist boxes unchanged. |
Reviewer Checklist
Screenshots/VideosiOS: HybridAppios.movMacOS: Chrome / Safariweb.mov |
|
@MelvinBot i've completed my checklist, please complete the author checklist and open this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Marked the PR ready for review and checked the verified author items. Human-only confirmations and unverified items remain unchecked for you to complete directly. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.32-0 🚀
|
|
No help site update needed — this PR changes how the existing expense-selection menu is implemented, without changing the user workflow or making existing instructions incorrect. |
|
No FullStory changes needed — this PR only refactors the existing expense-selection menu to use the global modal stack, without adding a new user workflow or exposing new private content. |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.5.32-7 🚀
|






Explanation of Change
Long-pressing an expense in a report on narrow layouts opened
MoneyRequestReportTransactionLongPressModal, an inline modal driven by an imperative ref plus local visibility and transaction-ID state. This PR moves that menu onto the global modal stack, reusinguseMobileSelectionMenuModalfrom #105112 (the Search migration).MoneyRequestReportTransactionList:handleLongPressnow callsshowMobileSelectionMenuModal({sentryLabel}). OnCONFIRMit runsturnOnMobileSelectionMode()andtoggleRowTransaction(transactionID). TheisSmallScreenWidthguard and the "already in selection mode → toggle directly" branch are unchanged.MoneyRequestReportTransactionLongPressModal.tsx, and removedlongPressModalRefand the inline modal mount (which also drops the now-single-child fragment).CONST.SENTRY_LABEL.REPORT.SELECTION_MODE_MENU_ITEM: 'Report-SelectionModeMenuItem', because the old "Select" menu item had no Sentry label.tests/ui/MoneyRequestReportTransactionListLongPressTest.tsx, which covers: the menu opens with the Report label and selects the pressed expense on "Select", dismissing leaves selection untouched, long press in selection mode toggles without a menu, and wide layouts don't open the menu.AI tests run locally:
npm run typecheck✅,npm run linton the changed TSX files ✅,npm run fmt(no diff beyond this change) ✅,npm run spell-changed✅,react-compiler-compliance-check checkon the changed component ✅, Jest for the new test plusMoneyRequestReportTransactionsNavigationTestanduseRowLongPressMenuTest✅ (21/21).npm run lint-changedtimed out after 10 minutes in the CI sandbox, so the linter was run directly on the changed TSX files instead. A browser check by the automated web tester could not run because the dev web page rendered blank before any interaction, so this change has not been verified in a browser yet.AI Tests
After merging main on 2026-11-04: typecheck, lint, lint-changed, spell-changed, React Compiler check for the report transaction list, Storybook smoke test, and 51 targeted Jest tests passed. The targeted suites cover report transaction long-press selection, transaction navigation, and the row long-press menu. The full Jest suite was not run. The current repository has no
prettierscript; a separate formatter check could not run under the runner's command permissions. No browser test was run for this constants-only conflict resolution.Fixed Issues
$ #103511
PROPOSAL: #103511 (comment)
Tests
Offline tests
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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