Skip to content

[HOLD for payment 2023-11-07] [$500] WS - Members - List of users invited to the workspace does not scroll with Up and Down arrows #29022

Closed

Description

@lanitochka17

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. Go to staging.new.expensify.com or open Desktop App
  2. Login with Expensifail account
  3. Create new or go to existing workspace
  4. Go to Workspace > Members
  5. Click Invite
  6. Scroll user list with Up and Down Arrows on keyboard

Expected Result:

The user list is scrolled with Up and Down arrows

Actual Result:

The userlist does not scroll with Up and Down arrows

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome
  • Windows / Chrome

Version Number: 1.3.79-3

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Notes/Photos/Videos: Any additional supporting documentation

Bug6227828_1696612682443.Desktop-User-list-not-scroll.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d02644145db5dadc
  • Upwork Job ID: 1711429026906808320
  • Last Price Increase: 2023-10-16
  • Automatic offers:
    • jayeshmangwani | Contributor | 27251251

Activity

  1. added
    Daily
    Bug
    on Oct 6, 2023
  2. melvin-bot commented on Oct 6, 2023

    @melvin-bot

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

  3. melvin-bot commented on Oct 6, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. jayeshmangwani commented on Oct 6, 2023

    @jayeshmangwani
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Scroll is not happeing on Invite new members page, when we use the up and down key from keyboard

    What is the root cause of that problem?

    We are using BaseSelectionList Component to display the members on the Invite page,

    On BaseSelectionList page we have created a useCallback function scrollToIndex that is responsible for scrolling of the list

    const scrollToIndex = useCallback((index, animated = true) => {
    const item = flattenedSections.allOptions[index];

    2nd line of this function access the flattenedSections.allOptions, that is used for getting the value of the item,

    const item = flattenedSections.allOptions[index];

    So issue is happening because , initially allOptions will be empty array and when we have allOptions is empty then item will be null/undefined ,

    const flattenedSections = useMemo(() => {
    const allOptions = [];

    If item will null then we are returning early on scrollToIndex function thats why scrolling is not happening

    const scrollToIndex = useCallback((index, animated = true) => {
    const item = flattenedSections.allOptions[index];
    if (!listRef.current || !item) {
    return;
    }

    What changes do you think we should make in order to solve the problem?

    Initially flattenedSections.allOptions will be empty but when memoized will be complete then we will have the allOptions array, so I would suggest that we should pass the to flattenedSections.allOptions dependency to scrollToIndex useCallback function

    // If we don't disable dependencies here, we would need to make sure that the `sections` prop is stable in every usage of this component.
    // eslint-disable-next-line react-hooks/exhaustive-deps
    }, []);

    [flattenedSections.allOptions]
    
    Result
    result.mov

    What alternative solutions did you explore? (Optional)

    N/A

  5. removed
    Bug
    on Oct 6, 2023
  6. added
    Bug
    on Oct 6, 2023
  7. melvin-bot commented on Oct 6, 2023

    @melvin-bot

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

  8. melvin-bot commented on Oct 6, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  9. shmaxey commented on Oct 6, 2023

    @shmaxey
    Contributor

    Isa is OOO for a few days, can you please carry forward for her? Thanks!

  10. added
    External
    on Oct 9, 2023
  11. 35 remaining items

  12. removed
    Reviewing
    on Oct 31, 2023
  13. melvin-bot commented on Oct 31, 2023

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.93-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2023-11-07. 🎊

    After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

    • External issue reporter
    • Contributor that fixed the issue
    • Contributor+ that helped on the issue and/or PR

    For reference, here are some details about the assignees on this issue:

  14. melvin-bot commented on Oct 31, 2023

    @melvin-bot

    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:

    • [@rushatgabhane] The PR that introduced the bug has been identified. Link to the PR:
    • [@rushatgabhane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
    • [@rushatgabhane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
    • [@rushatgabhane] Determine if we should create a regression test for this bug.
    • [@rushatgabhane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
    • [@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  15. puneetlath commented on Nov 6, 2023

    @puneetlath
    Contributor

    @rushatgabhane friendly reminder about the checklist so that we can pay tomorrow.

  16. added
    Daily
    and removed
    Weekly
    on Nov 7, 2023
  17. melvin-bot commented on Nov 10, 2023

    @melvin-bot

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

  18. melvin-bot commented on Nov 10, 2023

    @melvin-bot

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

  19. puneetlath commented on Nov 10, 2023

    @puneetlath
    Contributor

    @rushatgabhane bump on the checklist again please.

  20. rushatgabhane commented on Nov 13, 2023

    @rushatgabhane
    Member
    1. The PR that introduced the bug has been identified. Link to the PR: Selection List refactor phase 3: base #27767

    2. The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: https://github.com/Expensify/App/pull/27767/files#r1391988766

    3. A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N.A.

    4. Determine if we should create a regression test for this bug. - No

    5. If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again - N.A.

  21. jayeshmangwani commented on Nov 16, 2023

    @jayeshmangwani
    Contributor

    @puneetlath bump for payment

  22. puneetlath commented on Nov 16, 2023

    @puneetlath
    Contributor

    Payment summary:

    Sorry for the delay, I didn't realize the checklist was done. @jayeshmangwani you've been paid. @rushatgabhane please request via NewDot.

    Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions