-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[HOLD for payment 2024-02-07] [HOLD for payment 2024-02-07] [$500][Wave 9][Low] Mweb - BA - When user selects "State", the drop down list gets scrolled #32305
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b6d7a0421d65ccee |
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
I don't understand the issue since there is no drop down menu for selecting state. In the video, the scrolling occurs due to the user scrolling up, right? |
This is not a bug, it's intentional. All lists always scroll to the selected item, if any.
App/src/components/SelectionList/BaseSelectionList.js Lines 317 to 333 in 4fc20d3
|
I don't think this is a bug or problem as it is useful as of UX perspective. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Every time we close a state selection page, the page is scrolled to the top. What is the root cause of that problem?We have a logic to highlight and scroll to the top every time the App/src/components/SelectionList/BaseSelectionList.js Lines 358 to 369 in 6301426
When we close the state selection page, the App/src/components/StatePicker/StateSelectorModal.js Lines 95 to 99 in 6301426
State selection page itself is a modal, so when we close it, the App/src/components/StatePicker/StateSelectorModal.js Lines 76 to 78 in 6301426
What changes do you think we should make in order to solve the problem?Memoize the const sections = useMemo(() => [{data: searchResults, indexOffset: 0}], [searchResults]); |
I agree, I don't think this is a bug - there's a search at the top of the page when selecting a state so the user could search for a different state if they don't see it in the drop-down. Why would it help to have the list start over once you've selected a state? Closing without action. |
@Christinadobrzyn hi, the bug here is that every time the user closes the State selection page (either by pressing back or selecting a new state), the list is scrolled to the top (0:14 - 0:16). This doesn't happen on a country selection page for example. |
Hi @bernhardoj thanks for the information. I'm still not sure what the bug is. Here's the video of what I see. Maybe the "issue" is that there are states listed above the one selected? 2023-12-05_09-46-33.mp4Where do you see a country selection that I can test? |
@Christinadobrzyn you can try to reduce the playback speed to 0.25x and play it back in 0:31 to 0:32. After selecting a new state, the state list is scrolled to the top. I think it's easier to notice this on android as shown in the OP video. Here is a recording of the slowed recording above. Screen.Recording.2023-12-06.at.03.05.32.movFor the country selection page, you can visit |
@Christinadobrzyn can you check this again, please? |
Ah okay, I do see that it looks like the state scroll to the top once a state is selected - thanks for pointing that out @bernhardoj However, I don't think that is something we need to focus on fixing. Do you see any reason why that would impact the use of the product? It's really hard to even notice and I don't think it deters from the functionality but I'm not an engineer so maybe it's doing something else on the backend? @eVoloshchak or @bernhardoj why should this be fixed? |
@Christinadobrzyn yes, it doesn't impact the use of the product, but personally, I always think we should always fix a flaw in the code. |
Okay sounds good - asking the team for their thoughts! https://expensify.slack.com/archives/C01SKUP7QR0/p1702322692823169 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I think this could be part of Wave 6 so I'm just checking with the team to see what our workflow should be to associate the bug with a wave - https://expensify.slack.com/archives/C01SKUP7QR0/p1702404266022039?thread_ts=1701355181.491179&cid=C01SKUP7QR0 |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Current assignee @Christinadobrzyn is eligible for the Bug assigner, not assigning anyone new. |
Payment Summary
BugZero Checklist (@Christinadobrzyn)
|
Hi, seems like baseSelectionList has multiple sources of truth if multiple options can be selected. I tested two solutions but it seems would need a more complicated refactor of this core component. One thing that seems to work is that Pushing State Selector to a Page State Selector seems to be a modal right now. It looks like a page but behaves like a modal This brings many bugs: Bug 1Back button takes us 2 steps back:Screen.Recording.2024-02-07.at.3.06.58.AM.movBug 2Side Panel does not close when tapping outsideScreen.Recording.2024-02-07.at.3.06.13.AM.movBug 3Inconsistent reloading behavior on State (user goes a step back)Screen.Recording.2024-02-07.at.3.22.17.AM.movAll other pages like these (Year Picker, Currency Selector, Status Clear After Pages) have been made a route (and conversely don't show this behavior) I'll suggest we add a route to the page before proceeding with a fix |
Those 3 bugs look pretty bad, so if can resolve those while resolving this issue - that would be great. We need to know the root cause of this. Applying a workaround would work in this case, but the bug could potentially come back in case we refactor those pages (use different navigation lib, use modals, etc.) in the future |
just checking in here, are we working on a regression? Or can I pay this out? @eVoloshchak @neonbhai |
still working on this! |
|
Hey @neonbhai were you able to move forward with this? |
Bumping ^ |
This issue seems to be no longer reproducible on latest main: Screen.Recording.2024-02-19.at.2.45.31.AM.mov@eVoloshchak please help double check this |
Can't reproduce in staging either. |
Ah okay, if it's not reproducible, I assume that means we can pay this out? Here's the payment summary here - it notes the 50% regression penalty - let me know if there's something different with that. Also does this need a regression test @eVoloshchak? |
@Christinadobrzyn, this was fixed, but not by this PR (since it was reverted) |
Ah okay, thank you for confirming @eVoloshchak! I will close this but let me know if I'm missing anything! |
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: 1.4.6-1
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:
Expected Result:
When user selects "State", the drop down list must not be scrolled
Actual Result:
When user selects "State", the drop down list gets scrolled
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6296573_1701377547280.usethu.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: