Repository navigation
Description
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.06-4
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: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1721024057246389
Action Performed:
- As a submitter submit a report with one expense to the workspace
- Go to search and click on the expense created in step 1
Expected Result:
clicking on any expense in the Search page where the expense is the only expense on a report opens up the report view instead of the transaction view
- Here is thinking on why we should show the report view when viewing a single expense on a one-expense report:
- we get a much more consistent experience with workspace chat rooms - in the attached video, see the difference when you view an expense from the workspace chat vs when you view it from Search
- we limit user exposure to our multiple levels of navigation hierarchy when it comes to the Workspace chat > Report > Expense relationship. This way if someone views the expense from Search and leaves a comment, we are only showing the report thread in their Inbox LHN
- we expose the actual action button a user might want to take on the expense. For example, it's weird if the Search page is going to eventually show a "Submit" button on the expense row, yet you wouldn't be able to see that same button on the expense once you open it - you'd have to navigate one level up to the report (which most users will have no idea why that's even a thing) to see those report action buttons
- still think it makes sense to show the transaction view when you are trying to view an individual transaction from a grouped batch. But I do think the above change would make a much better experience for the majority of cases where it's a one-expense report.
Actual Result:
Expenses on one-expense reports accessed from the Search > Expenses page open up the transaction view instead of the report view
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Native
- Android: mWeb Chrome
- iOS: Native
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Recording.326.mp4
Issue Owner
Current Issue Owner: @muttmuureMetadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Jul 15, 2024
Triggered auto assignment to @muttmuure (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.tienifr commentedon Jul 15, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
In above, we check if the accessed transaction is the one transaction thread or not. If true, access its expense report instead of transaction report.
A similar logic should be updated to it:
Alternative solution
isOneTransactionThreadReport.tienifr commentedon Jul 15, 2024
Proposal updated
luacmartins commentedon Jul 15, 2024
@tienifr I'm not sure that your solution will work because we might not have the report or reportActions available in Onyx given that the Search API only returns data in the
snapshot_key. I think we'll need to work on a solution on the backend.tienifr commentedon Jul 15, 2024
@luacmartins I tested the app with my solution and it works well. Can you help me reproduce the case "we might not have the report or reportActions available in Onyx"? Thanks
tienifr commentedon Jul 15, 2024
Updated alternative solution in case we want to fix from BE side as well.
luacmartins commentedon Jul 15, 2024
@tienifr I just tried this in my account:
luacmartins commentedon Jul 15, 2024
@tienifr thanks for the updated proposal. Can't we just use the reportID if
isOneTransactionThreadReport = true?tienifr commentedon Jul 15, 2024
@luacmartins
Yeah, it makes sense. I tested and it works well, we can use
transaction.reportIDinstead of introducing a newparentReportIDprops. I updated alternative proposal.37 remaining items
rayane-d commentedon Aug 28, 2024
@muttmuure - Offer accepted
rayane-d commentedon Aug 30, 2024
@muttmuure Friendly bump
muttmuure commentedon Aug 30, 2024
Paid
luacmartins commentedon Sep 16, 2024
Reopening this issue since it seems like the problem is back
luacmartins commentedon Sep 16, 2024
PR in review
melvin-bot commentedon Sep 20, 2024
rayane-d commentedon Sep 20, 2024
^ false positive
rayane-d commentedon Sep 23, 2024
This is fixed on staging, we can close this one