Skip to content
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

[$250] [Search v2.2] Chat is scrolled to the bottom when refreshing the page #48808

Closed
1 of 6 tasks
IuliiaHerets opened this issue Sep 9, 2024 · 46 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 9, 2024

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: v9.0.31-0
Reproducible in staging?: Y
Reproducible in production?: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Log in to Newdot
  2. Go to Search option from bottom tab
  3. Click on "Chat" type from LHP
  4. Click on any message which is not at the bottom of a chat report
  5. When the report view is opened in RHP refresh the browser
  6. Now notice how the chat report is scrolled to the bottom

Expected Result:

The chat report in RHP is not scrolled down to the bottom and stays in the same report action opened before refreshing the page

Actual Result:

The chat report in RHP is scrolled down to the bottom and user has to scroll up to find the chat report opened before refreshing the page

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6597778_1725902355625.2024-09-09_19_35_43.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021833217065296959946
  • Upwork Job ID: 1833217065296959946
  • Last Price Increase: 2024-09-16
  • Automatic offers:
    • ikevin127 | Contributor | 103886648
    • huult | Contributor | 104028956
Issue OwnerCurrent Issue Owner: @rojiphil
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 9, 2024
Copy link

melvin-bot bot commented Sep 9, 2024

Triggered auto assignment to @alexpensify (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 Sep 9, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 9, 2024
@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-control

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 9, 2024
Copy link
Contributor

github-actions bot commented Sep 9, 2024

👋 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.

@luacmartins
Copy link
Contributor

I'll take this since it's part of Search

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Sep 9, 2024
@melvin-bot melvin-bot bot changed the title Web - Search-Chat is scrolled to the bottom when refreshing the page [$250] Web - Search-Chat is scrolled to the bottom when refreshing the page Sep 9, 2024
Copy link

melvin-bot bot commented Sep 9, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 9, 2024
@luacmartins luacmartins changed the title [$250] Web - Search-Chat is scrolled to the bottom when refreshing the page [$125] Web - Search-Chat is scrolled to the bottom when refreshing the page Sep 9, 2024
Copy link

melvin-bot bot commented Sep 9, 2024

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

Copy link

melvin-bot bot commented Sep 9, 2024

Upwork job price has been updated to $125

@luacmartins
Copy link
Contributor

We should navigate the user to the reportActionID as well, not only the report

@luacmartins luacmartins assigned ikevin127 and unassigned rojiphil Sep 9, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 9, 2024
@luacmartins
Copy link
Contributor

@shubham1206agra

Copy link

melvin-bot bot commented Sep 9, 2024

📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@luacmartins luacmartins changed the title [$125] Web - Search-Chat is scrolled to the bottom when refreshing the page [$125] [Search v2.2] Chat is scrolled to the bottom when refreshing the page Sep 9, 2024
Copy link

melvin-bot bot commented Sep 18, 2024

📣 @huult 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@huult
Copy link
Contributor

huult commented Sep 19, 2024

Thank you for everything. I will create a pull request for this ticket tonight.

@Pujan92
Copy link
Contributor

Pujan92 commented Sep 19, 2024

The report action list is missing the initialScrollIndex in the InvertedFlatList.

@huult, I was just wondering if this is the issue then how it is working for the central pane ReportActionsList

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 19, 2024
@huult
Copy link
Contributor

huult commented Sep 19, 2024

Proposal updated

  • Added a new solution

Hi @ikevin127 , While creating the pull request, I found a better solution. The pull request is already open. Can you check it? Thanks!

@ikevin127
Copy link
Contributor

ikevin127 commented Sep 19, 2024

Thanks @Pujan92!

I was just wondering if this is the issue then how it is working for the central pane ReportActionsList

@huult This is a valid question when it comes to the RCA, which I wasn't able to figure out.

I checked out your updated proposal and to be honest I'm reluctant when it comes to adding more useEffects / timeouts in a component which is already complex because these can degrade performance.

I think the best way to go here would be to dig into why the link / scroll to message works when the list is in central pane but not when it's in RHP.

If you're wiling to dig deeper and update your proposal to expand on the RCA and fix the issue such that it would work in RHP as well please let us know - otherwise we can re-open this for proposals 👍

@huult
Copy link
Contributor

huult commented Sep 19, 2024

Proposal updated

  • Updated RCA
  • Updated solutions to fix this issue
  • Added new POC based on the new solution

@ikevin127, I've updated the proposal. Can you help check it again? Thank you!

@ikevin127

This comment was marked as outdated.

@ikevin127
Copy link
Contributor

@huult 🟢 The latest proposal update, RCA and solution are the perfect fix here, I tested it and can confirm that it works as expected without any scroll jumps, works exactly like on the central pane on browser refresh 👍

You can proceed to implementing the latest solution in the opened PR and tag me there once it's ready for review.

Notes for PR:

  • the onStartReached function could become:
const onStartReached = useCallback(() => {
    InteractionManager.runAfterInteractions(() => requestAnimationFrame(() => loadNewerChats(false)));
}, [loadNewerChats]);

which is preferred over the inline function suggested because of performance reasons.

@alexpensify
Copy link
Contributor

@ikevin127 are we waiting for an update here? Sorry, I don't see the extra PR. Thanks!

@ikevin127
Copy link
Contributor

@alexpensify PR #49477 for this issue was just deployed to production, no extra PR needed. ⚠️ Automation failed, this should be on [HOLD for Payment 2024-10-04] according to today's production deploy from #49477 (comment).

@alexpensify
Copy link
Contributor

Thank you for flagging the payment date and clarifying the status.

@alexpensify
Copy link
Contributor

alexpensify commented Oct 4, 2024

Payouts due: 10-04-24

Upwork job is here.

Closing - I believe that I sent the payment via Upwork, but something looks off in Upwork. Please reply if you didn't get the payment and go through the payment process again.

@ikevin127
Copy link
Contributor

@alexpensify I only got $125, was that on purpose or a mistake ?

Screenshot 2024-10-04 at 15 24 13

@alexpensify
Copy link
Contributor

alexpensify commented Oct 4, 2024

No, there was an issue in Upwork, so I input a Bonus too. Let me know if that second payment didn't go through. Here is what I see on my side:

2024-10-04_15-28-31

@ikevin127
Copy link
Contributor

@alexpensify Indeed, Upwork is acting weird today (reported in other issues too).

So far nothing changed, I got $125 for this issue, looks same as #48808 (comment) and in Overwiew I only see the $125 transaction:

Screenshot 2024-10-04 at 15 33 05

Contract details look like this right now:

Screenshot 2024-10-04 at 15 33 33

@alexpensify
Copy link
Contributor

Ok, I have a note to check again on Monday. Maybe there is a delay or something on the Upwork side. All my payment states are not updating correctly in Upwork today. If there is still an issue on Monday, I'll reach out to their support since I input a Bonus to correct the price issue.

@ikevin127
Copy link
Contributor

Understood!

For context: the same thing happened in this issue: #48161 and the BZ wasn't able to do anything with the payment once the initial contract was ended without me being paid anything, so I'm assuming that your additional $125 bonus did not go through once the initial contract was ended after the $125 payment.

In the other issue, the BZ sent me another contract saying:

No idea what happened there. It doesn't show as being paid either. I'll send you another offer, but if you happen to get a rogue $125 show up - I'll trust your honesty to let me know. :)

To which I replied with:

Sure, I accepted the new contract and will let you know in case it comes twice 👍

@huult
Copy link
Contributor

huult commented Oct 6, 2024

@alexpensify , Can you also check for me on Upwork? My contract for this ticket has ended, but the status on Upwork is still 'work in progress. thank you

@ikevin127
Copy link
Contributor

@alexpensify I still did not get the other $125, only got half of the payment for this issue so far.

@alexpensify
Copy link
Contributor

Thanks for these updates! There is an issue an Upwork that is being investigated to address the payment process. I'm going to hold until there is a fix. Convo: https://expensify.slack.com/archives/C01GTK53T8Q/p1728319262830679

@alexpensify
Copy link
Contributor

alexpensify commented Oct 8, 2024

@huult and @ikevin127 - our team figured out the Upwork bug, and I tried to complete the payment via another payment path in Upwork. Their support team is working on a permanent fix for the bug. I'd really appreciate it if you could confirm today's payment was sent successfully. Thanks!

@ikevin127
Copy link
Contributor

✅ Confirmation that I just got the other $125, thanks Al !

@huult
Copy link
Contributor

huult commented Oct 9, 2024

It was sent to me. Thank you, @alexpensify

@alexpensify
Copy link
Contributor

Awesome, thank you for confirming! This bug is a wild one on the Upwork side, so I appreciate your patience.

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. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants