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.47k stars 2.82k forks source link

[$250] Expense - After editing expense details, page not scrolled and focused to system message #50659

Open IuliiaHerets opened 2 days ago

IuliiaHerets commented 2 days 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: Reproducible in staging?: Y Reproducible in production?: Y Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Open 1:1 chat
  3. Submit an expense
  4. Enter description and merchant

Expected Result:

After editing expense details, page must be scrolled and focused to system message.

Actual Result:

After editing expense details, page not scrolled and focused to system message.

Workaround:

Unknown

Platforms:

Screenshots/Videos

https://github.com/user-attachments/assets/f886e84d-27ad-4619-93df-ca49b0fb77bb

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021845669426671518848
  • Upwork Job ID: 1845669426671518848
  • Last Price Increase: 2024-10-14
Issue OwnerCurrent Issue Owner: @rojiphil
melvin-bot[bot] commented 2 days ago

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

IuliiaHerets commented 2 days ago

@VictoriaExpensify 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

mkzie2 commented 2 days ago

Proposal

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

After editing expense details, page not scrolled and focused to system message.

What is the root cause of that problem?

We don't notifyNewAction when updating all fields of money request

https://github.com/Expensify/App/blob/1220039898fa66fea87343c678c827b679394267/src/libs/actions/IOU.ts#L5574

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

We should call notifyNewAction to scroll to the bottom after we edit the money request

Report.notifyNewAction(transactionThreadReportID, Report.getCurrentUserAccountID(), params.reportActionID);

https://github.com/Expensify/App/blob/1220039898fa66fea87343c678c827b679394267/src/libs/actions/IOU.ts#L5574

OPTIONAL: We can check if the transaction thread report is one transaction thread we will notifyNewAction to parentReport

We should do the same for other update money request functions.

What alternative solutions did you explore? (Optional)

melvin-bot[bot] commented 8 hours ago

Job added to Upwork: https://www.upwork.com/jobs/~021845669426671518848

melvin-bot[bot] commented 8 hours ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (External)