-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[PAID] [CVP] [$250] Always show primary workspace at the top when submitting an expense #46683
Comments
Triggered auto assignment to @strepanier03 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Always show primary workspace at the top when submitting an expense. What is the root cause of that problem?We don't have any logic to show workspaces on top while submitting an expense. What changes do you think we should make in order to solve the problem?While creating the options list, we create the recent reports list and add it. We can update the logic to show workspaces on top. Update this logic to the below:
The above is one example, we might need to include some more items based on discussion. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Always show primary workspace at the top when submitting an expense What is the root cause of that problem?New Feature Request What changes do you think we should make in order to solve the problem?We already have ordereOptions function here App/src/libs/OptionsListUtils.ts Lines 1658 to 1671 in 8abdcca
We need to add an new config like shouldPrioritizeWorkspaceChat for the ordering along with preferChatroomsOverThreads to give an option to order policy expense chats on top then we can return low number if shouldPrioritizeWorkspaceChat is true and option.isPolicyExpenseChat in the iteratee of the lodashOrderBy.Then we can use the new config in OptionsListUtils.filterOptions . we can pass the param shouldPrioritizeWorkspaceChat as true when the iou type is submit here and inside OptionsListUtils.filterOptions we order accordingly the recentReports before returning the options result here and here.
We might need to add the What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.In step 5 above, only my recent chats showed up. What is the root cause of that problem?We don't prioritize the workspace chat option on the participant page of the money request flow What changes do you think we should make in order to solve the problem?
Then we pass this param as
App/src/libs/OptionsListUtils.ts Line 1664 in 4f16e26
App/src/libs/OptionsListUtils.ts Line 2136 in 4f16e26
We also need to update this condition here to always sort the recent report in money request flow even if the
App/src/libs/OptionsListUtils.ts Line 2132 in 4f16e26
What alternative solutions did you explore? (Optional) |
true |
Proposal updated to fix the typo. |
true |
I agree we should have the workspace be a default at the top if you're submitting an expense and part of one. |
Job added to Upwork: https://www.upwork.com/jobs/~01c2dd3d58e5ea6e4b |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
@trjExpensify should we just start by prioritizing the primary workspace? |
We could, I'd like to get @mountiny's take though. This would be an alt proposal to Update Recents in Participants page to reflect the type of action taken, which was aiming to build the recents list based on the action in question. |
That one got really convoluted, and ideally, it would require a backend solution—something similar to the quick action NVP but for various types of flows. I think this is a bit simpler and we can see if it will be fine for now. Eventually, I guess we cannot avoid using some kind of NVP to store the recent target reports for the individual flows |
Cool, I think optimizing for the primary policy would cover the mainline case. If it's easy, I say we go with it and get a quick win. |
This one seems to be much smaller scope and easier for sure. Given it will cover the mainline case I think we should do this |
Cool, then let's do this then for now. 👍 |
@allgandalf The PR is here. |
♻️ on it |
I have made a backend change that should ensure the policy expense chat update is queued when the active policy is changed in NewDot that should fix the issue @trjExpensify saw during his testing https://github.com/Expensify/Auth/pull/12062 |
Dope, thanks for that! |
PR is in staging 🙇 |
$250 to @allgandalf and to @nkdengineer please @strepanier03 I assume we should add a regression test. @nkdengineer @allgandalf can you please propose one with steps that will verify for sure this logic works in the submit expense flow? Thanks |
Regression Test ProposalPrecondition: User should have a primary workspace configured on OD.
Verify that the first option on the Participants page is the Do we agree 👍 or 👎 |
Payment summary
|
Offers sent and reg test created. Will check in this afternoon to take next steps. |
Contract paid and closed for @allgandalf. I'll check again in the morning for @nkdengineer's contract. |
Will check again later today. |
@nkdengineer - friendly bump on accepting the offer so I can pay it out and close this GH. |
@strepanier03 Sorry, I accepted |
No worries, thanks for doing that. I'll finish up now and close out. |
Paid out the last contract and closed it. We're all set here. Thanks for all the hard work everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.14-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): everyone
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL: n/a
Issue reported by: Zach Greenwald
Slack conversation: https://expensify.slack.com/archives/C03U7DCU4/p1722529376302179
Action Performed:
Recents
underneath the search bar you'll see recentsExpected Result:
In step 5 above, under Recents, the first option should show your Workspace name and that option should be static
Actual Result:
In step 5 above, only my recent chats showed up.
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @strepanier03The text was updated successfully, but these errors were encountered: