-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweaks to the expense flow #55016
Tweaks to the expense flow #55016
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. |
@@ -429,16 +429,19 @@ function MoneyRequestConfirmationList({ | |||
text = translate('common.next'); | |||
} | |||
} else if (isTypeTrackExpense) { | |||
text = translate('iou.trackExpense'); | |||
text = translate('iou.createExpense'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@@ -1009,6 +1013,23 @@ function orderReportOptionsWithSearch( | |||
); | |||
} | |||
|
|||
function orderWorkspaceOptions(options: ReportUtils.OptionData[]): ReportUtils.OptionData[] { | |||
return lodashOrderBy( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Reviewed partially, will review the rest today. |
Can we get this wrapped today? |
src/libs/OptionsListUtils.ts
Outdated
@@ -1700,6 +1744,23 @@ function filterReports(reports: ReportUtils.OptionData[], searchTerms: string[]) | |||
return filteredReports; | |||
} | |||
|
|||
function filterWorkspaceChats(reports: ReportUtils.OptionData[], searchTerms: string[]): ReportUtils.OptionData[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if any of these methods can have supporting unit tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎸
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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