Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.57k stars 2.91k forks source link

Chat - Specific "not found page" link crashes the app #52866

Open IuliiaHerets opened 1 day ago

IuliiaHerets commented 1 day ago

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: v9.0.65-1 Reproducible in staging?: Y Reproducible in production?: N Issue reported by: Applause Internal Team

Action Performed:

  1. Access staging.new.expensify.com
  2. Sign into a new account
  3. Send this link in composer after onboarding flow: www.staging.new.expensify.com/r/6272828282

Expected Result:

User expects to get a page not found message

Actual Result:

The first time around, the app crashes, after reloading from crash, it displays the correct page not found

Workaround:

Unknown

Platforms:

Screenshots/Videos

https://github.com/user-attachments/assets/61a900b1-a104-4e7c-bd6b-695fdcc35827

2111.txt

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @nkuoch
melvin-bot[bot] commented 1 day ago

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

melvin-bot[bot] commented 1 day ago

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

melvin-bot[bot] commented 1 day ago

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

github-actions[bot] commented 1 day ago

:wave: 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.
nkdengineer commented 1 day ago

Proposal

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

The first time around, the app crashes, after reloading from crash, it displays the correct page not found

What is the root cause of that problem?

Screenshot 2024-11-21 at 16 16 11

We have Onyx error when changing key from undefined to ''

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

We should fallback as '-1' here

  reportID: reportOnyx.reportID ?? '-1',

https://github.com/Expensify/App/blob/376f9f08755b0555cf3666c5a880542af57c7da1/src/pages/home/ReportScreen.tsx#L172

What alternative solutions did you explore? (Optional)

adelekennedy commented 17 hours ago

I don't think this is a deploy blocker - keeping it hourly in case @nkuoch you disagree, preemptively adding external label in case