You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Workspace - Selected contact with green tick is not scrolled up &shown while inviting members #30517
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: 1.3.92-0 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:
Launch app
Tap profile icon
Tap Workspaces
Tap on a Workspace
Tap Members
Tap on invite
Scroll down little bit and select a member
Expected Result:
In workspace, while inviting members, when user scrolls down and selects a contact, the selected contact with green tick must be scrolled up &shown
Actual Result:
In workspace, while inviting members, when user scrolls down and selects a contact, the selected contact with green tick is not scrolled up &shown
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Workspace - Selected contact with green tick is not scrolled up &shown while inviting members[/-][+][$500] Workspace - Selected contact with green tick is not scrolled up &shown while inviting members[/+]on Oct 27, 2023
Please re-state the problem that we are trying to solve in this issue.
In workspace, while inviting members, when user scrolls down and selects a contact, the selected contact with green tick is not scrolled up &shown
What is the root cause of that problem?
in mobile device, we’re not scrolling to the newly selected index when selecting an option deep down
What changes do you think we should make in order to solve the problem?
We should scroll to the newly selected index when selecting an option deep down, by calling scrollToIndex, to ensure the newly selected option will always be on screen.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Please re-state the problem that we are trying to solve in this issue.
The members list does not scroll to the top to show the selected member immediately after selection.
What is the root cause of that problem?
This seems to simply not have been implemented.
What changes do you think we should make in order to solve the problem?
Honestly, I think this needs more product design consideration. Scrolling up on select can be jarring, especially in a multi-select field where the user is trying to select multiple options. They have to scroll back down to where they were after each selection.
If you want to maintain visibility of the selected options, I'd make the top section sticky to remain visible, but don't adjust scroll position so the user keeps their place.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Since there was no dependence here before
And the sections that we used inside this function were empty because useCallback didn't update the function
What prevented calling scrollToLocation
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
[-]Workspace - Selected contact with green tick is not scrolled up &shown while inviting members[/-][+][$500] Workspace - Selected contact with green tick is not scrolled up &shown while inviting members[/+]melvin-bot commentedon Oct 27, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01adbd2c2b60d2a242
melvin-bot commentedon Oct 27, 2023
Triggered auto assignment to @strepanier03 (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 27, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Oct 27, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (
External)dukenv0307 commentedon Oct 27, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
In workspace, while inviting members, when user scrolls down and selects a contact, the selected contact with green tick is not scrolled up &shown
What is the root cause of that problem?
in mobile device, we’re not scrolling to the newly selected index when selecting an option deep down
What changes do you think we should make in order to solve the problem?
We should scroll to the newly selected index when selecting an option deep down, by calling scrollToIndex, to ensure the newly selected option will always be on screen.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
erquhart commentedon Oct 27, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The members list does not scroll to the top to show the selected member immediately after selection.
What is the root cause of that problem?
This seems to simply not have been implemented.
What changes do you think we should make in order to solve the problem?
Honestly, I think this needs more product design consideration. Scrolling up on select can be jarring, especially in a multi-select field where the user is trying to select multiple options. They have to scroll back down to where they were after each selection.
If you want to maintain visibility of the selected options, I'd make the top section sticky to remain visible, but don't adjust scroll position so the user keeps their place.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
ZhenjaHorbach commentedon Oct 27, 2023
Should be fixed in this MR
#29848
Since there was no dependence here before
And the sections that we used inside this function were empty because useCallback didn't update the function
What prevented calling scrollToLocation
App/src/components/SelectionList/BaseSelectionList.js
Lines 176 to 181 in 93d7191
3 remaining items
strepanier03 commentedon Nov 2, 2023
Deployed to prod 8 hours ago but I'm out sick today so I'll test tomorrow.
melvin-bot commentedon Nov 3, 2023
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Nov 6, 2023
@strepanier03, @sobitneupane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
strepanier03 commentedon Nov 6, 2023
Forgot about this, testing now.
strepanier03 commentedon Nov 6, 2023
I can confirm that this is working now, I am no longer able to reproduce the behavior this GH was created for.
strepanier03 commentedon Nov 6, 2023
@sobitneupane - I believe we can just close this now as it was an internal report and we didn't hire a contributor to fix this.
If you have no objections I'm going to close this out at the end of the day or tomorrow morning.
sobitneupane commentedon Nov 7, 2023
Yup. Good to close.
mvtglobally commentedon Nov 9, 2023
Issue not reproducible during KI retests. (First week)
strepanier03 commentedon Nov 10, 2023
Closing, thanks all!