Remove SearchTransaction > canDelete#77207
Conversation
|
cc @eh2077 |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
|
@eh2077 let's prioritize reviewing this one. The previous PR got reverted and we're going with a different approach this time |
|
@DylanDylann conflicts |
eh2077
left a comment
There was a problem hiding this comment.
I also like this new approach (narrower impact scope and safer), just share concerns about combining search result data.
|
@eh2077 I updated, please check again |
src/pages/Search/SearchPage.tsx
Outdated
| const isMobileSelectionModeEnabled = useMobileSelectionMode(); | ||
| const allTransactions = useAllTransactions(); | ||
| const [allReports] = useOnyx(ONYXKEYS.COLLECTION.REPORT, {canBeMissing: false}); | ||
| const [allReportActions] = useOnyx(ONYXKEYS.COLLECTION.REPORT_ACTIONS, {canBeMissing: false}); |
There was a problem hiding this comment.
This isn't used after changing to search results
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-12-12.at.8.43.46.AM.movAndroid: mWeb ChromeScreen.Recording.2025-12-12.at.8.42.09.AM.moviOS: HybridAppScreen.Recording.2025-12-12.at.8.37.42.AM.moviOS: mWeb SafariScreen.Recording.2025-12-12.at.8.39.29.AM.movMacOS: Chrome / SafariScreen.Recording.2025-12-12.at.8.35.21.AM.mov |
|
too tired today, I'll do tests and complete checklist early tmr. |
|
@DylanDylann conflicts |
|
@luacmartins Done |
eh2077
left a comment
There was a problem hiding this comment.
Looks good! Oh, conflicts again cc @DylanDylann 🙇
|
Resolved conflict |
|
✋ 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/luacmartins in version: 9.2.78-0 🚀
|
|
This PR failing because of a regression issue |
…andelete [CP Staging] Revert "Merge pull request #77207 from DylanDylann/remove-candelete"
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.78-8 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.79-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.81-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
Explanation of Change
Simplify the logic by replacing canDelete with an existing function
Fixed Issues
$ #75453
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Screen.Recording.2025-12-03.at.18.31.03.mov
Android: mWeb Chrome
Screen.Recording.2025-12-03.at.18.30.19.mov
iOS: Native
Screen.Recording.2025-12-03.at.18.28.59.mov
iOS: mWeb Safari
Screen.Recording.2025-12-03.at.18.29.51.mov
MacOS: Chrome / Safari
Screen.Recording.2025-12-03.at.17.50.48.mov