App icon indicating copy to clipboard operation
App copied to clipboard

[Due for payment 2026-11-16] [Exploratory] Expense-Scan expense from Inbox briefly shows Inbox with growl before redirecting to workspac

Open applause-bot[bot] opened this issue 2 months ago • 21 comments

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: V9.5.1-1 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://github.com/Expensify/App/pull/100015 Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Redmi note 10s android 13 App Component: Money Requests

Action Performed:

  1. Launch app -onboarding via track business expenses
  2. From inbox , create a scan expense via camera image entering description
  3. Note user directed to workspace chat and growl is shown
  4. Go to workspace settings and create new workspace
  5. Go to inbox
  6. Tap fab - create expense - scan
  7. Select new workspace created and create a scan expense via camera image entering description
  8. Note user directed to inbox briefly with growl displayed before directed to workspace chat

Expected Result:

Scan expense created from inbox must direct to workspace chat and growl must be shown.

Actual Result:

Scan expense created from inbox directed to growl in inbox briefly before directed to workspace chat.

Workaround:

Unknown

Platforms:

  • [x] Android: App
  • [ ] Android: mWeb Chrome
  • [ ] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [ ] Windows: Chrome
  • [ ] MacOS: Chrome Safari

Screenshots/Videos

https://github.com/user-attachments/assets/837b8fe2-3327-45e9-ab05-e1c80d69ace8

View all open jobs on GitHub

Applause Internal Information Exported by: Julia Ponikarchuk Bug ID: 7275004

Issue OwnerCurrent Issue Owner: @mallenexpensify

applause-bot[bot] avatar Oct 02 '26 09:10 applause-bot[bot]

While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/be7a3886c2dce0d46409a687a8a4fb46ef5003abdca0ad4afeefd700d01b61f2

applause-bot[bot] avatar Oct 02 '26 09:10 applause-bot[bot]

cc: @mhawryluk

Though, this is already happening in production. cc: @MelvinBot to confirm

The prod's dismissModalWithReport's dismissModal reveals whatever sits under the modal (the Inbox) and only then navigates. The growl just makes the intermediate frame legible.

https://github.com/Expensify/App/blob/285ed64ac37a7772870c271c8f4be2e87ed6ff21/src/libs/Navigation/Navigation.ts#L1052-L1056

  1. Go to the Inbox tab (no report open, or a different report open).
  2. Create a second workspace so its chat is not the report beneath the modal.
  3. FAB > Create expense > Scan, pick the new workspace, add a receipt and submit.
  4. The Inbox is visible for a frame before the workspace chat appears.

situchan avatar Oct 04 '26 19:10 situchan

Confirmed from code: the intermediate Inbox frame is already in production (9.5.0-5) on narrow layouts. Confirm new expenses with a “View” toast instead of scrolling to and highlighting the row v2 didn't change the navigation. It only added the growl, which makes that frame noticeable.

Evidence

The production commit is 285ed64. The submit navigation code is the same there, at the commit just before the PR, and on main (fb04231).

  • Narrow, report loaded but not pre-inserted: dismissNarrowWithReport calls dismissModalWithReport. The RHP closes first and shows the Inbox. The report is pushed only after the close animation.
  • Report not loaded in Onyx (DEFAULT handler): navigateAfterExpenseCreate calls dismissModalAndOpenReportInInboxTab, which then calls dismissModalWithReport. This gives the same Inbox frame on any layout.
  • No frame: the narrow pre-insert path (getSubmitHandler.ts, REPORT_PRE_INSERT) and the wide path for a loaded report (dismissWideToNewReport) insert the report under the RHP before closing it.

Why it went unnoticed in production: highlightTransactionOnSearchRouteIfNeeded returns early on the Inbox, so nothing appeared during the frame. On main, signalExpenseAddedGrowl fires for every global-create expense. The write is queued on the same close transition, so the growl appears while the Inbox is showing.

Not confirmed: why the new workspace's chat wasn't pre-inserted in the reporter's run. The reportPreInsert / dismissModal / default label on the submit telemetry span for that session would show which handler fired. I didn't reproduce this live, because the web dev build only runs main.


view run

MelvinBot avatar Oct 04 '26 19:10 MelvinBot

@GCyganek will work on this one

mhawryluk avatar Oct 12 '26 08:10 mhawryluk

@MelvinBot please assign me

GCyganek avatar Oct 13 '26 06:10 GCyganek

Done. I assigned you to this issue, GCyganek.


view run

MelvinBot avatar Oct 13 '26 06:10 MelvinBot

This issue has not been updated in over 15 days. @GCyganek eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

melvin-bot[bot] avatar Nov 05 '26 22:11 melvin-bot[bot]

PR in review @abdulrahuman5196

GCyganek avatar Nov 06 '26 09:11 GCyganek

I can review this since I reviewed growl PR and already have context.

situchan avatar Nov 06 '26 11:11 situchan

Hi @situchan I asked Vit to assign you to C+ review, thank you!

GCyganek avatar Nov 06 '26 11:11 GCyganek

Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

melvin-bot[bot] avatar Nov 06 '26 15:11 melvin-bot[bot]

PR merged

roryabraham avatar Nov 07 '26 00:11 roryabraham

@roryabraham @GCyganek

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.5.34-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/103826

melvin-bot[bot] avatar Nov 09 '26 23:11 melvin-bot[bot]

Contributor+ Checklist:

  • [x] [Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

    Link to the comment on the PR: no single PR caused a regression here. The Inbox frame was already in production. #87768 left the gap underneath it. Link to the comment on the Issue:

  • [x] [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

    Link to discussion:

  • [x] [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal

Test:

  1. Launch app -onboarding via track business expenses
  2. From inbox , create a scan expense via camera image entering description
  3. Note user directed to workspace chat and growl is shown
  4. Go to workspace settings and create new workspace
  5. Go to inbox
  6. Tap fab - create expense - scan
  7. Select new workspace created and create a scan expense via camera image entering description
  8. Verify Scan expense created from inbox directed to workspace chat and growl is shown without briefly showing inbox before redirection.

Do we agree 👍 or 👎

situchan avatar Nov 11 '26 03:11 situchan

Assigning to @mallenexpensify for payment on Monday

roryabraham avatar Nov 13 '26 23:11 roryabraham

Current assignee @mallenexpensify is eligible for the Awaiting Payment assigner, not assigning anyone new.

Payment Summary

Resolving PRs:

  • https://github.com/Expensify/App/pull/103826

  • Contributor: @GCyganek does not require payment (Contractor)

  • Reviewer: @situchan owed $175 via NewDot

BugZero Checklist (@mallenexpensify)

  • [ ] I have confirmed assignees, roles, and Upwork contracts look correct
  • [ ] I have paid out Upwork contracts / manual NewDot requests
  • [ ] [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon

@mallenexpensify this is ready for payment

roryabraham avatar Nov 16 '26 23:11 roryabraham

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

Claude posting on behalf of Matt:

Your call. Job price: $175 (standard, no Help Wanted, assigned 2026-11-13).

  • situchan (C+): 0% if 100015 caused the bug, 100% if not

The bug report names 100015, which situchan approved. The bug was filed inside its window, and a fix inside the window is unpaid. situchan says no single PR caused it.

Next: decide if 100015 caused it, then press Caps+Y and pay.

Evidence
  • C+ checklist, 8 test steps: comment
  • TestRail case: none yet.
  • Resolving PR 103826: by GCyganek (agency), merged 2026-11-07, approved by roryabraham and situchan. No revert.
  • Offending PR 100015: by mhawryluk (agency), approved by mountiny and situchan, production 2026-10-05. This issue was created 2026-10-02: inside the window.
  • situchan blames 87768 instead. roryabraham says it is ready.
  • Videos: author 2/5, C+ 2/5.

PAYPREP v1

mallenexpensify avatar Nov 17 '26 23:11 mallenexpensify