Conversation
|
Bug #54836 fixed: web-compressed.mov |
|
@abdulrahuman5196 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] |
|
@abdulrahuman5196 I'm going to assign @mananjadhav this one since it needs to be merged with #54201 |
|
🚧 @grgia has triggered a test build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
Reviewing. |
| } | ||
| } else if (isTypeTrackExpense) { | ||
| text = translate('iou.trackExpense'); | ||
| text = translate('iou.createExpense'); |
There was a problem hiding this comment.
This code is being duplicated along with the other PR right? We'll have to take care of the conflicts.
src/libs/OptionsListUtils.ts
Outdated
| } | ||
|
|
||
| function orderWorkspaceOptions(options: ReportUtils.OptionData[]): ReportUtils.OptionData[] { | ||
| return lodashOrderBy( |
There was a problem hiding this comment.
I can't remember the exact docs link, but isn't our preference to use built-in methods wherever possible? Can we use options.sort ?
|
Reviewed partially, will review the rest today. |
|
Can we get this wrapped today? |
src/libs/OptionsListUtils.ts
Outdated
| return filteredReports; | ||
| } | ||
|
|
||
| function filterWorkspaceChats(reports: ReportUtils.OptionData[], searchTerms: string[]): ReportUtils.OptionData[] { |
There was a problem hiding this comment.
I was wondering if any of these methods can have supporting unit tests?
mananjadhav
left a comment
There was a problem hiding this comment.
Just finished with the reviewer, left minor comments. But I think it's best if we add a few unit tests to make it more reliable?
|
@JKobrynski I was testing this but I had some issues.
web-expense-flow.mov |
Nope, not related to this PR. We stopped creating the selfDM on account creation unless you choose the track option in the onboarding modal. @MonilBhavsar I believe you were going to be looking into this, per here. |
|
Just a heads up that @JKobrynski has been on OOO since Monday and will return tomorrow. |
|
Thanks for the heads up! What can we do to keep this moving to being merged today?
Is this just saying that the list of workspaces take up the scroll view when you have a ton of them? If so, I think that's fine and expected. That's clearly your primary use-case if you have that many and, after all, you can use the search bar if you want.
Is there any harm or noticeable impact for the customer if we proceed to merge this, and take care of those in this PR which comes after it? |
|
@trjExpensify I can handle the remaining review comments if you want urgency here. |
|
Seems like we're okay to wait for tomorrow, because Georgia wants to merge this PR along with this one. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Looks like the build is working fine. Seems like an issue on my end and I still couldn't get it working. I am completing the testing with adhoc builds. |
|
@JKobrynski before we merge this, can you quickly make |
|
@trjExpensify done! |
|
@JKobrynski We've got some conflicts. |
…aks-to-create-expense-flow-2
|
@mananjadhav conflicts fixed! CC: @grgia @trjExpensify |
|
Niceee! |
|
Follow up issue here- #55538 Gonna merge this! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
I have performance considerations with this. We shouldn't add new loops in getValidOptions, but instead move those checks to getValidReports and do it all on one loop. (currently a bit limited in bandwidth feel free to pick it up or explore other approaches. Otherwise I can also complete it) |
|
@JKobrynski How about we take care of this in the follow up PR? |
|
@mananjadhav should we create an issue for that? |
|
Yeah let's create a separate issue for the improvement and we can assign ourselves. Wdyt @grgia ? |
|
Sounds good. Issue created here #55621 |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.0.89-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|
…ate-expense-performance-improvements [Create Expense - Clean up] #55016 Follow up - Performance improvements
This is followup to the reverted #53760.
On top on fixing #52981 it also fixes #54836, #54844 and #54861 which caused the revert
Explanation of Change
Fixed Issues
$ #52981
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as Tests section above
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))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-compressed.webm
Android: mWeb Chrome
chrome-compressed.webm
iOS: Native
ios-compressed.mp4
iOS: mWeb Safari
safari-compressed.mp4
MacOS: Chrome / Safari
MacOS: Desktop