Skip to content

Reports - App does not return to initial Reports view after deleting all the expenses #58812

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

Closed
8 tasks done
vincdargento opened this issue Mar 20, 2025 · 28 comments
Closed
8 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@vincdargento
Copy link

vincdargento commented Mar 20, 2025

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: 9.1.16-0
Reproducible in staging?: Yes
Reproducible in production?: Unable to check
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Search

Action Performed:

Precondition:

  • Log in with Expensifail account.
  • Account has no expenses.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit an expense.
  4. Go to Reports.
  5. Go to Expense Reports.
  6. Click on the expense in Step 3.
  7. Click on the report header.
  8. Click Delete.
  9. Delete the expense.

Expected Result:

App will return to the initial Reports view because the expense report is now empty.

Actual Result:

App does not return to initial Reports view after deleting all the expenses.
Report view is blank.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

bug.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @Kicu
@vincdargento vincdargento added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 DeployBlockerCash This issue or pull request should block deployment labels Mar 20, 2025
Copy link

melvin-bot bot commented Mar 20, 2025

Triggered auto assignment to @lschurr (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.

Copy link

melvin-bot bot commented Mar 20, 2025

Triggered auto assignment to @tylerkaraszewski (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Mar 20, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 20, 2025
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@vincdargento
Copy link
Author

@lschurr FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@luacmartins
Copy link
Contributor

This view is behind a beta. NAB. cc @Kicu

@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Mar 20, 2025
@mountiny mountiny self-assigned this Mar 21, 2025
@mountiny mountiny moved this to Second Cohort - CRITICAL in [#whatsnext] #migrate Mar 21, 2025
Copy link

melvin-bot bot commented Mar 25, 2025

@Kicu Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2025
@Kicu
Copy link
Member

Kicu commented Mar 27, 2025

@luacmartins @mountiny you guys sure the described behaviour is bad and the expectation is to return to previous search results?
There is another design doc done atm (as you know :D) for "Report creation flow" and it's all about allowing the report to be empty and adding expenses to it.

So to me it's unclear exactly when - if ever - we should automatically return from this view back to Search.
CC @SzymczakJ

@melvin-bot melvin-bot bot removed the Overdue label Mar 27, 2025
@luacmartins
Copy link
Contributor

I'd expect the view to just change to the empty report view in this case.

@mountiny
Copy link
Contributor

If we only delete the expense and the report remains, then open the empty report. If the report is deleted too, which I believe should be the case when its the last expense, then we should go to the Expense reports list

@Kicu
Copy link
Member

Kicu commented Mar 31, 2025

which I believe should be the case when its the last expense,

Ok but seems like this is not yet implemented (I'm told by @jnowakow) so someone implementing this might do the redirect. (issue: #57466)

Also what about this scenario:

  1. you create new empty report from FAB -> Create Report
  2. you see empty report view
  3. you add 1 expense
  4. you remove said expense -> which in turn removes report
  5. feels a bit surprising, doesn't it?

Since we allowed to have report empty after creating it, when its created manually maybe we should also allow it to stay empty after removing transaction?

@trjExpensify
Copy link
Contributor

From the simplified report actions doc, this is the extract:

Image

you remove said expense -> which in turn removes report

"Remove" kinda' covers multiple scenarios, I think we're explicitly talking about Delete here, right?

I can see where it might feel unexpected to delete the expense in this one expense report table view, and the report be deleted as well:

Image

versus this "one expense report" view where it's fauxed as an expense basically:

Image

So perhaps that's the distinction on behaviour?

@Kicu
Copy link
Member

Kicu commented Mar 31, 2025

Yes what you wrote makes sense @trjExpensify
So the open question then remains - are we sure that on the new view:

in this one expense report table view

do we also want to automatically remove report when the final expense is deleted?

@mountiny
Copy link
Contributor

I would say lets keep it same on all views - remove report - with the confirmation modal (that removes some of the confusion imho) and only if we see some feedback from the users we can update this behaviour.

@trjExpensify
Copy link
Contributor

trjExpensify commented Mar 31, 2025

If that was a view long term, then I think the expectation would be:

  1. If you delete the report, the report is deleted and the expense is unreported.
  2. If you delete the expense, the report remains and is empty.

But that said, isn't what we're seeing here only temporary until the implementation is complete?

Image

A one expense report view wouldn't look like that, it's that combined hybrid view of the expense/report in the main pane?

CC: @shawnborton

@shawnborton
Copy link
Contributor

Correct, I would expect a single expense report to not have this new table view. At least, that's what we had slated in the design doc.

@luacmartins
Copy link
Contributor

Agree that's a temporary view and a single expense report would have a different UI.

Copy link

melvin-bot bot commented Apr 3, 2025

@Kicu @luacmartins @lschurr @mountiny @DylanDylann this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Apr 3, 2025
Copy link

melvin-bot bot commented Apr 4, 2025

@Kicu Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Apr 8, 2025

@Kicu Still overdue 6 days?! Let's take care of this!

@Kicu
Copy link
Member

Kicu commented Apr 8, 2025

actually @luacmartins @shawnborton it is a bit unclear to me what are the next steps for this task.
There is a separate task to correctly handle the single expense view in new report View. I'm assuming once we do this, then delete would behave correctly.

Is this enough to have this task done or do we need something more here?

@melvin-bot melvin-bot bot removed the Overdue label Apr 8, 2025
@shawnborton
Copy link
Contributor

Hmm yeah, perhaps let's check this again once the task for the single view is finished?

@mountiny
Copy link
Contributor

mountiny commented Apr 8, 2025

Yeah lets keep this one until we clear out the other tasks for single expense view and we can see if there is anything actionable left

@Kicu
Copy link
Member

Kicu commented Apr 9, 2025

ok here's the PR #59735

Copy link

melvin-bot bot commented Apr 14, 2025

@Kicu Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Apr 14, 2025
@mountiny
Copy link
Contributor

Asked for a retest

@izarutskaya
Copy link

Issue is not reproducible

20250414_214227.mp4

@mountiny
Copy link
Contributor

Great, thank you then we can close this as regression testing and payment will be handled per project

@github-project-automation github-project-automation bot moved this from Second Cohort - CRITICAL to Done in [#whatsnext] #migrate Apr 14, 2025
@melvin-bot melvin-bot bot removed the Overdue label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
Development

No branches or pull requests

10 participants