-
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
Payment due 2024-10-04 [$250] When navigate to Workspace Editor then back to Inbox, it is taking me to my self DM rather than last chat #48840
Comments
Triggered auto assignment to @zanyrenney ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When navigate to Workspace Editor then back to Inbox, it is taking me to my self DM rather than last chat What is the root cause of that problem?The App/src/libs/actions/Report.ts Line 3374 in 1725041
Therefore, when the App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 415 to 417 in 1b479b0
What changes do you think we should make in order to solve the problem?We should create and use a Line 758 in 1725041
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Navigating to the Inbox from the Workspace Initial Settings page takes the user to Self DM instead of the last chat. What is the root cause of that problem?When we click on App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar.tsx Lines 107 to 108 in 00bc167
which corresponds to BottomTabNavigator App/src/libs/Navigation/linkingConfig/config.ts Lines 65 to 69 in 00bc167
and get the matchingCentralPaneRoute and dispatch it here:App/src/libs/Navigation/linkTo/index.ts Lines 166 to 175 in 00bc167
It gets the App/src/libs/Navigation/linkingConfig/getMatchingCentralPaneRouteForState.ts Lines 64 to 66 in 00bc167
but it returns
When there is no App/src/pages/home/ReportScreen.tsx Lines 140 to 149 in 00bc167
For first-time Expensify users, the lastAccessedReportID returns the first non-Concierge report's reportID :Lines 1338 to 1345 in 00bc167
Since this does not check for the last read time of the report and simply returns whichever non-empty Concierge report it finds first, it can navigate the user to any page depending on the order in the array. What changes do you think we should make in order to solve the problem?We correctly show Lines 1356 to 1358 in 00bc167
We can use the same logic for first-time Expensify users as well: Line 1345 in 00bc167
What alternative solutions did you explore? (Optional)As I see it, we do not exclude system chats for old users with more than 2 reports. Since system chat is the DM with Expensify, and a user cannot chat in it because the composer is disabled, I think we can exclude system chats in all cases and navigate the user to the last accessed report among the non-system chat reports. This can simplify the code. |
Job added to Upwork: https://www.upwork.com/jobs/~021834563126903568456 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
This weird routing seems like something is broken in the task routing / worksapce. I think this is a quality issue |
@Tony-MK If we add |
@c3024 I think we can remove the The only remaining thing to check is whether |
We should have at least Concierge and Self DM reports, so I think we can remove that condition of checking for one report (after excluding the Expensify (system) chat) as well. I went down the rabbit hole of 57de036#diff-65c096044d5f69b35bcdec14c99c4fda4580759df9b1a7c36650d58eea276f1d I think we can remove it. There could be backend failures sometimes, and only one report might be returned, but such failure cases don't need to be considered here in my opinion. |
Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
looks like this was deployed to prod but maybe automation failed? #49324 (comment) |
Yes, this should be on HOLD till 4-Oct for payment. |
I am OOO until 7th october, reassigning a bug team member to help with tomorrow's payment! |
Triggered auto assignment to @joekaufmanexpensify ( |
whoops didn't mean to unassign Joe, just as per the process, assigning myself so i will take this back if not resolved. |
Sounds good! Happy to help here. |
Payment here is:
|
All set for Friday! |
All set to pay! |
@c3024 $250 sent and contract ended! |
Upwork job closed. |
Closing as all that's left is for @jayeshmangwani to request $250 via NewDot whenever you're ready! |
$250 approved for @jayeshmangwani |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.31-6
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @danielrvidal
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1725904646621169
Action Performed:
Expected Result:
Should navigate me back to the concierge chat
Actual Result:
Navigating back to self DM
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
2024-09-09_09-58-29.mp4
Recording.531.mp4
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @zanyrenneyThe text was updated successfully, but these errors were encountered: