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

[$500] [MEDIUM] mweb - In employee WS, opening an expense detail page and tapping back, page gets scrolled. #34573

Closed
1 of 6 tasks
kbecciv opened this issue Jan 16, 2024 · 89 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kbecciv
Copy link

kbecciv commented Jan 16, 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: 1.4.25-4
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Tap on employee Workspace chat with lot of expenses
  3. Tap on any IOU to open detail page
  4. Tap back button and note page gets scrolled
  5. Tap back button again and note page gets scrolled

Expected Result:

When in employee WS, opening an expense detail page and tapping back, page must not get scrolled.

Actual Result:

When in employee WS, opening an expense detail page and tapping back, page gets scrolled.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6344133_1705400980897.az_recorder_20240116_042406.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01122bfdd943c30cad
  • Upwork Job ID: 1747243693339979776
  • Last Price Increase: 2024-05-07
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 16, 2024
@melvin-bot melvin-bot bot changed the title mweb - In employee WS, opening an expense detail page and tapping back, page gets scrolled. [$500] mweb - In employee WS, opening an expense detail page and tapping back, page gets scrolled. Jan 16, 2024
Copy link

melvin-bot bot commented Jan 16, 2024

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

Copy link

melvin-bot bot commented Jan 16, 2024

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 16, 2024
Copy link

melvin-bot bot commented Jan 16, 2024

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

@Ykumar1415
Copy link

I tried to produce this issue and it it showing the same.

Copy link

melvin-bot bot commented Jan 16, 2024

📣 @Ykumar1415! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot melvin-bot bot added the Overdue label Jan 18, 2024
@situchan
Copy link
Contributor

No proposals yet

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 18, 2024
@CortneyOfstad
Copy link
Contributor

Not overdue

@CortneyOfstad
Copy link
Contributor

Not overdue...

@melvin-bot melvin-bot bot removed the Overdue label Jan 22, 2024
Copy link

melvin-bot bot commented Jan 23, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Jan 24, 2024
@situchan
Copy link
Contributor

Still looking for proposals

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 25, 2024
@situchan
Copy link
Contributor

Same

@melvin-bot melvin-bot bot removed the Overdue label Jan 29, 2024
Copy link

melvin-bot bot commented Jan 30, 2024

@CortneyOfstad @situchan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Jan 30, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Jan 31, 2024
@CortneyOfstad
Copy link
Contributor

Not overdue – still waiting on proposals.

@melvin-bot melvin-bot bot removed the Overdue label Apr 15, 2024
Copy link

melvin-bot bot commented Apr 16, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@CortneyOfstad
Copy link
Contributor

@Piotrfj — I've been reviewing this and can you provide some additional context as to why you think an Onyx update is needed? Reviewing this with the team, we're having trouble making that connection. Any additional insight you can provide would be great 👍

@koko57
Copy link
Contributor

koko57 commented Apr 18, 2024

@CortneyOfstad Piotr meant that while we go back to the previous chat Onyx is updated and this update causes scrolling of the screen. When we go back while online GetNewerActions request is sent and the report data in Onyx is updated.

I've checked it on the WEB and it also gets scrolled - let me know if I reproduced it correctly. I also tried when offline and it also gets scrolled after the data from the request is applied. It happens when you hover over the chat navigating back.

Screen.Recording.2024-04-18.at.14.13.21.mp4

FYI: Piotr has been reassigned to another project from Callstack - me or someone from our team will take it over shortly and continue the investigation

@koko57
Copy link
Contributor

koko57 commented Apr 19, 2024

@CortneyOfstad I'm continuing Piotr's investigation and what I've noticed is that removing shouldEnableAutoScrollToTopThreshold prop the list is not scrolled when going back. This

const shouldEnableAutoScroll = hasNewestReportAction && (!reportActionID || !isNavigatingToLinkedMessage);
is always true, so the list is autoscrolled to the bottom. Looks like hasNewestReportAction condition is always true as well (I wonder if there are cases that is not true). For me doesn't really makes sense as I think it should be true only right after we get a new unread message, after we read it it should be false.

I'll continue my investigation and think of a solution to suppress scrolling down when we don't get any new message.

@melvin-bot melvin-bot bot added the Overdue label Apr 19, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

@JmillsExpensify, @CortneyOfstad, @mollfpr, @Piotrfj Huh... This is 4 days overdue. Who can take care of this?

Copy link

melvin-bot bot commented Apr 23, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@JmillsExpensify JmillsExpensify removed their assignment Apr 24, 2024
@melvin-bot melvin-bot bot removed the Overdue label Apr 24, 2024
@CortneyOfstad
Copy link
Contributor

@koko57 any update on your investigation? Thank you!

@koko57
Copy link
Contributor

koko57 commented Apr 24, 2024

@CortneyOfstad sorry, I've been busy with my other high priority issue, I haven't had much time to work on this one since Monday. I will look at it today.

I think the root cause I've presented is correct, I don't think that there's another reason for this behaviour, so the only thing that I'm still thinking of is how to fix this issue.

@koko57
Copy link
Contributor

koko57 commented Apr 25, 2024

Still looking for a proper solution

@melvin-bot melvin-bot bot added the Overdue label Apr 26, 2024
@CortneyOfstad
Copy link
Contributor

@koko57 — any update on any solutions?

@melvin-bot melvin-bot bot removed the Overdue label Apr 29, 2024
@koko57
Copy link
Contributor

koko57 commented Apr 29, 2024

@CortneyOfstad Still working on it. I'm trying to understand why do we have these two const in both ReportActionsView and ReportActionsList

const hasNewestReportAction = reportActions[0]?.created === report.lastVisibleActionCreated || reportActions[0]?.created === transactionThreadReport?.lastVisibleActionCreated;

const hasNewestReportAction = sortedReportActions?.[0].created === report.lastVisibleActionCreated;

and why we would need them as they seem to be always true.

Copy link

melvin-bot bot commented Apr 30, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@koko57
Copy link
Contributor

koko57 commented Apr 30, 2024

Still working on it

@CortneyOfstad
Copy link
Contributor

Sounds good @koko57 👍

@melvin-bot melvin-bot bot added the Overdue label May 3, 2024
@CortneyOfstad
Copy link
Contributor

@koko57 can you provide an update by EOD on where we're at with this? Thanks!

@melvin-bot melvin-bot bot removed the Overdue label May 6, 2024
@koko57
Copy link
Contributor

koko57 commented May 6, 2024

@CortneyOfstad I'm testing a few options, but still I don't quite understand the thing I mentioned here. Is there anybody who can help me with this one?

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

Copy link

melvin-bot bot commented May 7, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@koko57
Copy link
Contributor

koko57 commented May 7, 2024

@CortneyOfstad I merged with main today - and I can't reproduce it on Android either. The page still scrolls on the web. If it's desired for the web I think we can close this issue

@CortneyOfstad
Copy link
Contributor

Thanks @koko57! I agree and we can close this. Thanks!

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. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
No open projects
Development

No branches or pull requests