Show search action buttons v2#52441
Conversation
|
@alitoshmatov 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] |
|
@alitoshmatov this is the second attempt on this issue, since the first PR got reverted. We're still waiting on some backend changes to be deployed, which should happen today. |
|
All backend changes are deployed. @alitoshmatov please prioritize reviewing this PR. |
|
Working on it right now |
|
@luacmartins When approving from search actions it is ignoring held expenses and approving all unlike approving in chat which asks which part to approve. Is this expected behavior
|
|
Also if expense group is approved in Now user cannot pay these expenses from search page. Is it expected behavior? Screen.Recording.2024-11-19.at.10.03.39.PM.mov |
In Search, we just pay the non-held expenses. The held ones should be automatically moved to a new report. Do you see that behavior? |
Yea, that's expected. You'd be able to see the expense in the |
No approving report is just approving all expenses and the held ones are getting unheld |
|
I'll check on that behavior. Please continue reviewing the PR though |
|
All the regressions are solved, feature is working as expected. Reviewing the code |
|
@alitoshmatov I just checked with the product team and we should show the modal if we have held expenses. I'll work on those changes now |
Reviewer Checklist
Screenshots/VideosAndroid: Nativesearch-action-android.movAndroid: mWeb Chromesearch-action-mweb.moviOS: Nativesearch-action-ios.mp4iOS: mWeb Safarisearch-action-safari.mp4MacOS: Chrome / Safarisearch-action-web.movMacOS: Desktopsearch-action-desktop.mov |
alitoshmatov
left a comment
There was a problem hiding this comment.
I think everything looks good and we can proceed
|
@mjasikowski 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] |
|
✋ 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/mjasikowski in version: 9.0.66-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.66-8 🚀
|
|
Coming from #53009, we missed adding the sound for the |
| return CONST.SEARCH.ACTION_TYPES.PAY; | ||
| } | ||
|
|
||
| if (IOU.canApproveIOU(report, policy) && ReportUtils.isAllowedToApproveExpenseReport(report, undefined, policy)) { |
There was a problem hiding this comment.
Coming from #53101, we're missing that we shouldn't be able to approve pending card transactions.

Details
This PR adds new actions,
ApproveandPayto the Search results page.Fixed Issues
$ #51898
$ #52360
$ #52364
$ #52365
$ #52366
$ #52367
$ #52368
$ #52369
$ #52371
$ #52375
$ #52377
$ #52404
$ #52411
$ #52418
Tests
Pre-requisites:
Tests steps:
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.2024-11-08.at.1.16.58.PM.mov
Screen.Recording.2024-11-08.at.1.20.02.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop