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

[HOLD App#11795] [$1000] Workspace - Invite new members list always scrolls to top after selecting 4 or more #12998

Closed
kavimuru opened this issue Nov 24, 2022 · 35 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Monthly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Nov 24, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Click on avatar
  2. Click on Workspace
  3. Select Workspace
  4. Click Manage Members
  5. Click on Invite Members
  6. Select at least 8 Members

Expected Result:

User should be able to view the most recent selected member

Actual Result:

List scrolls to top with first selected member

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.2.31-5
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Recording.999.mp4
Screen.Recording.2022-11-24.at.5.13.20.PM.mov
Screen.Recording.2022-11-24.at.5.12.44.PM.mov

Expensify/Expensify Issue URL:
Issue reported by: @syedsaroshfarrukhdot
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1669292832144069

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0174a96dd459e1553d
  • Upwork Job ID: 1598666700904955904
  • Last Price Increase: 2022-12-08
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 24, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 24, 2022

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

@hungvu193
Copy link
Contributor

hungvu193 commented Nov 25, 2022

I think this a feature, not a bug.

// If we just toggled an option on a multi-selection page, scroll to top
if (this.props.selectedOptions.length !== prevProps.selectedOptions.length) {
this.scrollToIndex(0);
return;
}

this.scrollToIndex(this.state.focusedIndex);

In case we don't want it scroll to top (which's kind of annoying with me too) we can comment or delete this piece of code.

-            // If we just toggled an option on a multi-selection page, scroll to top
-           // if (this.props.selectedOptions.length !== prevProps.selectedOptions.length) {
-            //     this.scrollToIndex(0);
-            //     return;
-           // }
-           this.scrollToIndex(this.state.focusedIndex);

@melvin-bot melvin-bot bot added the Overdue label Nov 28, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 28, 2022

@davidcardoza Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot
Copy link

melvin-bot bot commented Nov 30, 2022

@davidcardoza Huh... This is 4 days overdue. Who can take care of this?

@davidcardoza
Copy link
Contributor

Hmm...This feels like a bug, but I want a second opinion before moving forward with creating a job. Applying the engineering label.

@melvin-bot
Copy link

melvin-bot bot commented Nov 30, 2022

Triggered auto assignment to @cristipaval (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@davidcardoza
Copy link
Contributor

@cristipaval thoughts?

@melvin-bot melvin-bot bot removed the Overdue label Nov 30, 2022
@cristipaval
Copy link
Contributor

Hey @davidcardoza ! Yes, this is reproducible and I would also consider it a bug.

@davidcardoza
Copy link
Contributor

Job posted - https://www.upwork.com/jobs/~01770333bb615437f2 waiting for proposals

@syedsaroshfarrukhdot
Copy link
Contributor

syedsaroshfarrukhdot commented Dec 1, 2022

Proposal:-

We can fix this issue by pushing most recently selected user to top

} else {
newSelectedOptions = [...prevState.selectedOptions, option];
}

We could change it to

     newSelectedOptions = [option, ...prevState.selectedOptions];

After Fix:-

Screen.Recording.2022-12-02.at.4.13.55.AM.mov
Screen.Recording.2022-12-02.at.4.30.18.AM.mov

@cristipaval
Copy link
Contributor

cristipaval commented Dec 2, 2022

@davidcardoza How did you create the upwork job? I think you should have applied the External label to this issue and everything would have been created automatically along with some others like C+ assignment. Or actually I think I should have done that after reviewing the issue. Sorry for missing it.

@cristipaval cristipaval added External Added to denote the issue can be worked on by a contributor and removed Engineering labels Dec 2, 2022
@melvin-bot
Copy link

melvin-bot bot commented Dec 2, 2022

Current assignee @davidcardoza is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot changed the title Workspace - Invite new members list always scrolls to top after selecting 4 or more [$1000] Workspace - Invite new members list always scrolls to top after selecting 4 or more Dec 2, 2022
@melvin-bot
Copy link

melvin-bot bot commented Dec 2, 2022

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

@melvin-bot
Copy link

melvin-bot bot commented Dec 2, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 2, 2022
@melvin-bot
Copy link

melvin-bot bot commented Dec 2, 2022

Current assignee @cristipaval is eligible for the External assigner, not assigning anyone new.

@cristipaval
Copy link
Contributor

Ok, I removed the Upwork job created by you @davidcardoza and applied External label. I had to remove it to avoid a duplicate job posting on Upwork.

@parasharrajat
Copy link
Member

This is being discussed on slack. I will chime in later. There are some instructions but I need to check what things will be affected by the expected changes. If there are things that also needs to be fixed with the new expected changes.

@melvin-bot melvin-bot bot added the Overdue label Dec 9, 2022
@cristipaval
Copy link
Contributor

We're still discussing on Slack. I hope we get a conclusion asap.

@melvin-bot melvin-bot bot removed the Overdue label Dec 12, 2022
@mountiny mountiny changed the title [$1000] Workspace - Invite new members list always scrolls to top after selecting 4 or more [HOLD App#11795] [$1000] Workspace - Invite new members list always scrolls to top after selecting 4 or more Dec 14, 2022
@melvin-bot melvin-bot bot added the Overdue label Dec 14, 2022
@mountiny mountiny removed 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 Overdue labels Dec 14, 2022
@mountiny mountiny added Monthly KSv2 and removed Daily KSv2 labels Dec 14, 2022
@melvin-bot melvin-bot bot removed the Overdue label Dec 14, 2022
@mountiny
Copy link
Contributor

After discussing, I am putting this issue on hold for #11795, there we will redesign the option lists so the UX is better and works fine across platforms. Better to address these issues which are not blockers in structured manner.

@cristipaval
Copy link
Contributor

Thanks @mountiny ! I'll close the upwork job for now.

@syedsaroshfarrukhdot
Copy link
Contributor

syedsaroshfarrukhdot commented Dec 30, 2022

Am I eligible for reporting bonus ?

@davidcardoza
Copy link
Contributor

The issue was put on hold. Reporting bonuses are paid out only after an issue/bug has been resolved.

@cristipaval
Copy link
Contributor

@JmillsExpensify , replying to your comment here.

We discussed about this issue here. Please have a look when you've got a minute.

@JmillsExpensify
Copy link

Nice, thanks. I commented in the related Slack thread. Re-posing below.

Looks like we never really decided what to do here. I personally like the sticky header and feel that it’s better than the auto-scroll up. That said, I think this is squarely new feature territory and I’m not sure this is really critical right now. I think I’d opt to keep punting this.

@davidcardoza
Copy link
Contributor

I concur with the sentiment @JmillsExpensify, the decision regarding the implementation of a sticky header versus auto-scroll functionality has yet to be determined and is probably deserving of a broader conversation to implement as a new feature.

@cristipaval Is there any reason to keep this issue on hold?

@cristipaval
Copy link
Contributor

We can disable the auto scroll functionality as a solution for this issue or just simply close this issue and disable the auto-scroll when we start a broader conversation about the sticky header.

@davidcardoza
Copy link
Contributor

I vote the latter of the two option, let's punt until we have begun speccing out the sticky header.

@cristipaval
Copy link
Contributor

I'm also leaning towards closing this one and disable the auto-scroll when we start working on the sticky header.

@cristipaval
Copy link
Contributor

Closing for now, @JmillsExpensify feel free to reopen it if you don't agree.

@melvin-bot
Copy link

melvin-bot bot commented Aug 24, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

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. Monthly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants