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 for payment 2024-06-13] [$250] Web - Workspace - Unable to navigate the invite list by using the arrow keys #41906

Closed
1 of 6 tasks
kbecciv opened this issue May 9, 2024 · 31 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented May 9, 2024

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.72-0
Reproducible in staging?: y
Reproducible in production?: y
Issue reported by: Applause - Internal Team

Action Performed:

  1. Create workspace
  2. Go to Members> Invite member
  3. In the invite members use the keyboard arrow keys
  4. Go back to Members page
  5. Go to Invite member
  6. Try to use the keyboard arrow keys

Expected Result:

User should navigate the list by using the arrow keys every time Invite new members page open

Actual Result:

User is not able to navigate the invite list by using the arrow keys when open Invite new members page

Workaround:

n/a

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

Bug6475664_1715246000978.Recording__3003.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015abf6304380bd09f
  • Upwork Job ID: 1790448510304206848
  • Last Price Increase: 2024-05-21
  • Automatic offers:
    • abdulrahuman5196 | Reviewer | 102482440
Issue OwnerCurrent Issue Owner: @alexpensify
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 9, 2024
Copy link

melvin-bot bot commented May 9, 2024

Triggered auto assignment to @alexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@kbecciv
Copy link
Author

kbecciv commented May 9, 2024

@alexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@dragnoir
Copy link
Contributor

dragnoir commented May 9, 2024

Proposal

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

on Workspace unable to navigate the invite list by using the arrow keys

What is the root cause of that problem?

When Members page is open, the members list is using the BaseSelectionList component.
On it, the useArrowKeyFocusManager is set to always active isActive: true

const [focusedIndex, setFocusedIndex] = useArrowKeyFocusManager({
initialFocusedIndex: flattenedSections.allOptions.findIndex((option) => option.keyForList === initiallyFocusedOptionKey),
maxIndex: Math.min(flattenedSections.allOptions.length - 1, CONST.MAX_OPTIONS_SELECTOR_PAGE_LENGTH * currentPage - 1),
disabledIndexes: flattenedSections.disabledOptionsIndexes,
isActive: true,
onFocusedIndexChange: (index: number) => {
scrollToIndex(index, true);
},
isFocused,
});

Then we open the Invite members page, we use again the useArrowKeyFocusManager but the 1st one is still active.

This is why all key events trigger on the Members page not on the Invite members page.

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

on BaseSelectionList component, we need to set the useArrowKeyFocusManager to active only when component is focused here

const [focusedIndex, setFocusedIndex] =  useArrowKeyFocusManager({
	initialFocusedIndex:  flattenedSections.allOptions.findIndex((option) =>  option.keyForList  ===  initiallyFocusedOptionKey),
	maxIndex:  Math.min(flattenedSections.allOptions.length  -  1, CONST.MAX_OPTIONS_SELECTOR_PAGE_LENGTH  *  currentPage  -  1),
	disabledIndexes:  flattenedSections.disabledOptionsIndexes,
-	isActive:  true,
+	isActive:  isFocused,
	onFocusedIndexChange: (index:  number) => {
	scrollToIndex(index, true);
	},
	isFocused,
});

POC:

20240509_201004.mp4

@alexpensify
Copy link
Contributor

On my testing list, I'll get to it soon.

@melvin-bot melvin-bot bot added the Overdue label May 13, 2024
@alexpensify
Copy link
Contributor

I wasn't able to get to this one over the weekend, still on my radar.

@melvin-bot melvin-bot bot removed the Overdue label May 13, 2024
@alexpensify alexpensify added the External Added to denote the issue can be worked on by a contributor label May 14, 2024
@melvin-bot melvin-bot bot changed the title Web - Workspace - Unable to navigate the invite list by using the arrow keys [$250] Web - Workspace - Unable to navigate the invite list by using the arrow keys May 14, 2024
Copy link

melvin-bot bot commented May 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~015abf6304380bd09f

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

melvin-bot bot commented May 14, 2024

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

@alexpensify
Copy link
Contributor

I confirmed that this is an issue and couldn't find another duplicate of this issue. We need proposals here.

@alexpensify
Copy link
Contributor

@abdulrahuman5196 - can you please confirm if the proposal above will fix this issue? Thanks!

@abdulrahuman5196
Copy link
Contributor

Hi I will check on this in my morning.

@alexpensify alexpensify removed their assignment May 17, 2024
@alexpensify alexpensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@alexpensify alexpensify self-assigned this May 17, 2024
@alexpensify
Copy link
Contributor

Heads up, I will be offline until Tuesday, May 28, 2024, and will not actively watch over this GitHub during that period.

@Christinadobrzyn - I need help here to ensure that we get proposals and they are reviewed. I'm trying to avoid this one going stale. Thanks!

Copy link

melvin-bot bot commented May 20, 2024

@alexpensify, @abdulrahuman5196, @Christinadobrzyn Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label May 20, 2024
@Christinadobrzyn
Copy link
Contributor

@abdulrahuman5196 can you take a peek at the above proposal? or let me know if should reach out to SWM to see if someone might be able to grab this! TY!

Copy link

melvin-bot bot commented May 22, 2024

Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Copy link

melvin-bot bot commented May 23, 2024

@alexpensify @luacmartins @abdulrahuman5196 @Christinadobrzyn 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!

@Christinadobrzyn
Copy link
Contributor

@luacmartins can you take a peek at this review? #41906 (comment)

Thank you!

@melvin-bot melvin-bot bot added the Overdue label May 27, 2024
@luacmartins
Copy link
Contributor

Sorry, was ooo for the last few days. I agree that @dragnoir's proposal looks good.

@melvin-bot melvin-bot bot removed the Overdue label May 27, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 27, 2024
Copy link

melvin-bot bot commented May 27, 2024

📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented May 27, 2024

📣 @dragnoir You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@alexpensify
Copy link
Contributor

Thanks, @Christinadobrzyn, for the help here. I'm back online and taking over again as the BZ member here.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels May 29, 2024
@alexpensify
Copy link
Contributor

Update: The PR is ready for review

@alexpensify
Copy link
Contributor

Weekly Update: The PR is waiting to go to Production

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 6, 2024
@melvin-bot melvin-bot bot changed the title [$250] Web - Workspace - Unable to navigate the invite list by using the arrow keys [HOLD for payment 2024-06-13] [$250] Web - Workspace - Unable to navigate the invite list by using the arrow keys Jun 6, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jun 6, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.79-11 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 2024-06-13. 🎊

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

Copy link

melvin-bot bot commented Jun 6, 2024

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:

  • [@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
  • [@abdulrahuman5196] 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:
  • [@abdulrahuman5196] 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:
  • [@abdulrahuman5196] Determine if we should create a regression test for this bug.
  • [@abdulrahuman5196] 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.
  • [@alexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 12, 2024
@alexpensify
Copy link
Contributor

Okay, we are ready to pay via Upwork tomorrow. @dragnoir, I had to manually send an Upwork offer. Please accept, and I can complete the process tomorrow. Thanks!

@alexpensify
Copy link
Contributor

alexpensify commented Jun 13, 2024

Paid via Upwork!

Payouts due: 2024-06-13

Upwork job is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

6 participants