Conversation
|
@mananjadhav 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] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 329479f949
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| ref={pressableRef} | ||
| onLongPress={() => onLongPressRow?.(item)} | ||
| onPress={isDeletedTransaction ? undefined : () => onSelectRow(item, transactionPreviewData)} | ||
| onPress={isDeletedTransaction && !canSelectMultiple ? undefined : () => onSelectRow(item, transactionPreviewData)} |
There was a problem hiding this comment.
Restrict deleted-row taps to active selection mode
This condition uses canSelectMultiple as a proxy for selection mode, but canSelectMultiple is always true on large screens (src/components/Search/index.tsx:1189), so deleted transactions become pressable on desktop. When tapped there, onSelectRow does not toggle selection (that only happens in mobile selection mode) and instead proceeds with normal navigation logic (src/components/Search/index.tsx:1031-1038), which re-enables opening deleted rows that were previously intentionally non-interactive.
Useful? React with 👍 / 👎.
|
hmm there are multiple blockers related to this PR so I think we might just revert it. |
|
approving in case we wind up moving back to this |
|
We reverted the offending PR, so this is no longer needed. |
|
It will be merged to #86938 |
Explanation of Change
Fixes the deleted transaction selection callback
Fixed Issues
$ #86780
Tests
Offline tests
N/A
QA Steps
Same as test
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
Screen.Recording.2026-03-31.at.3.20.05.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari