Skip to content

[Due for payment 2025-04-28] Expense - Report page is blank when submitting expense to workspace with no report #60228

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
6 of 8 tasks
jponikarchuk opened this issue Apr 15, 2025 · 13 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2

Comments

@jponikarchuk
Copy link

jponikarchuk commented Apr 15, 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.28-1
Reproducible in staging?: Yes
Reproducible in production?: Unable to check, new feature
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat that has no expense report.
  3. Click + > Create expense > Manual.
  4. Enter amountn > Next.
  5. Click Show more.
  6. Note that Report field has a report title.
  7. Click Report.

Expected Result:

Report page should display the report title in Step 6.

Actual Result:

Report page 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

1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @mallenexpensify
@jponikarchuk jponikarchuk added Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment labels Apr 15, 2025
Copy link

melvin-bot bot commented Apr 15, 2025

Triggered auto assignment to @mallenexpensify (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 Apr 15, 2025

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Apr 15, 2025
Copy link

melvin-bot bot commented Apr 15, 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 Apr 15, 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.

@daledah
Copy link
Contributor

daledah commented Apr 15, 2025

Proposal

Please re-state the problem that we are trying to solve in this issue.

  • The Report page appears blank.

What is the root cause of that problem?

What changes do you think we should make in order to solve the problem?


!!getOutstandingReports(policyID, allReports ?? {}).at(0)

with:


const policyID = Object.values(allReports ?? {}).find(
    (report) =>
        report?.reportID === transaction?.reportID ||
        report?.reportID === transaction?.participants?.at(0)?.reportID,
)?.policyID;

shouldShowNotFoundPage={expenseReports.length === 0}

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

  • None

What alternative solutions did you explore? (Optional)

Option 1:

  • In this screen, we can pass the current selected reportName via its url.

  • Then in here:

        if (expenseReports.length === 0) {
            return [{text: route.params.reportName, value: '', keyForList: route.params.reportName, isSelected: true, isInteractive: false, isDisabled: false}];
        }

Option 2:

  • We can display the empty state view when expenseReports.length === 0

@rayane-d
Copy link
Contributor

Discussing in https://expensify.slack.com/archives/C01GTK53T8Q/p1744712146580769

@mallenexpensify
Copy link
Contributor

Basically I think we should put the button behind the tableReportView beta and then we dont have to hodl the deploy and get through these follow ups safely

Vit recommended the above, if we go this route, we can remove Hourly

@luacmartins
Copy link
Contributor

We'll put this button behind a beta and tackle the issue as a follow up.

@luacmartins
Copy link
Contributor

No longer available in staging. Demoting.

@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Apr 15, 2025
Copy link

melvin-bot bot commented Apr 21, 2025

@waterim Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added Overdue Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Apr 21, 2025
@melvin-bot melvin-bot bot changed the title Expense - Report page is blank when submitting expense to workspace with no report [Due for payment 2025-04-28] Expense - Report page is blank when submitting expense to workspace with no report Apr 21, 2025
@melvin-bot melvin-bot bot removed the Overdue label Apr 21, 2025
Copy link

melvin-bot bot commented Apr 21, 2025

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

If no regressions arise, payment will be issued on 2025-04-28. 🎊

For reference, here are some details about the assignees on this issue:

  • @waterim does not require payment (Contractor)

Copy link

melvin-bot bot commented Apr 21, 2025

@luacmartins / @techievivek @mallenexpensify @waterim The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@luacmartins
Copy link
Contributor

This has been fixed. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants