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-02-22] [$250] Workspace - Workspace highlighted member blinks when check/uncheck mark #35761

Closed
2 of 6 tasks
lanitochka17 opened this issue Feb 3, 2024 · 25 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 3, 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.36-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): gocemate@gmail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Navigate to Workspace> Members
  2. Check mark any member (Admin should not be the first on the list)

Expected Result:

Selected member should not blink

Actual Result:

Workspace member blinks when check/uncheck mark

Workaround:

Unknown

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

Bug6366038_1706972862809.Recording__2048.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01faff94e6cefb944b
  • Upwork Job ID: 1754496368396689408
  • Last Price Increase: 2024-02-05
  • Automatic offers:
    • shubham1206agra | Reviewer | 28150587
    • Krishna2323 | Contributor | 28150588
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Feb 3, 2024
Copy link
Contributor

github-actions bot commented Feb 3, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave
CC @greg-schroeder

Copy link

melvin-bot bot commented Feb 3, 2024

Triggered auto assignment to @luacmartins (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@Krishna2323
Copy link
Contributor

Krishna2323 commented Feb 4, 2024

Proposal

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

Workspace - Workspace highlighted member blinks when check/uncheck mark

What is the root cause of that problem?

This is caused because we update to focusedIndex to -1 whenever we select any member and then immediately set it to 0, which cause this flicker, the focus is removed for once and gets back immediately.

The focus is removed from here:

if (shouldUnfocusRow) {
// Unfocus all rows when selecting row with click/press
setFocusedIndex(-1);

And then immediately reapplied here:

useEffect(() => {
// do not change focus on the first render, as it should focus on the selected item
if (isInitialSectionListRender) {
return;
}
// set the focus on the first item when the sections list is changed
if (sections.length > 0) {
updateAndScrollToFocusedIndex(0);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [sections]);

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

Remove the condition below because it has no need now, the condition was added due to this issue #25884, but now we don't update the focus to next option, so it's redundant.

if (shouldUnfocusRow) {
// Unfocus all rows when selecting row with click/press
setFocusedIndex(-1);

Result

flickering_issue.mp4

@mountiny mountiny added External Added to denote the issue can be worked on by a contributor Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01faff94e6cefb944b

@melvin-bot melvin-bot bot changed the title Workspace - Workspace highlighted member blinks when check/uncheck mark [$500] Workspace - Workspace highlighted member blinks when check/uncheck mark Feb 5, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

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

@mountiny
Copy link
Contributor

mountiny commented Feb 5, 2024

@Krishna2323 can you please link offending PR

@mountiny mountiny changed the title [$500] Workspace - Workspace highlighted member blinks when check/uncheck mark [$250] Workspace - Workspace highlighted member blinks when check/uncheck mark Feb 5, 2024
Copy link

melvin-bot bot commented Feb 5, 2024

Upwork job price has been updated to $250

@mountiny
Copy link
Contributor

mountiny commented Feb 5, 2024

Moving the price down since this seems like easy bug to solve

@Krishna2323
Copy link
Contributor

Krishna2323 commented Feb 5, 2024

@mountiny, I'm don't think it is caused by a recent PR. This is the PR which added code to remove focus after an option is selected and this PR later added code to focus on first option whenever an option is selected. And due to the immediate change of removing focus & adding back we get the flickering.

@melvin-bot melvin-bot bot added the Overdue label Feb 7, 2024
@luacmartins
Copy link
Contributor

Still looking for proposals

@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2024
@Krishna2323
Copy link
Contributor

I have a proposal here 😅, @shubham1206agra can you pls review 🙏🏻

@shubham1206agra
Copy link
Contributor

@Krishna2323's proposal looks good to me.
🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 8, 2024

Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 8, 2024
@luacmartins luacmartins added Help Wanted Apply this label when an issue is open to proposals by contributors Bug Something is broken. Auto assigns a BugZero manager. labels Feb 8, 2024
Copy link

melvin-bot bot commented Feb 8, 2024

📣 @shubham1206agra 🎉 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 Feb 8, 2024

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

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

Copy link

melvin-bot bot commented Feb 8, 2024

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

@luacmartins luacmartins removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 8, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 9, 2024
@Krishna2323
Copy link
Contributor

@shubham1206agra, PR ready for review.

@Krishna2323
Copy link
Contributor

Melv failed here, PR was deployed to production on 15th Feb, I think this is ready for payments process :)
Screenshot 2024-02-22 at 2 07 25 AM

@shubham1206agra
Copy link
Contributor

@luacmartins Can you start payment process here?

@luacmartins luacmartins changed the title [$250] Workspace - Workspace highlighted member blinks when check/uncheck mark [HOLD for payment 2024-02-22] [$250] Workspace - Workspace highlighted member blinks when check/uncheck mark Feb 26, 2024
@luacmartins
Copy link
Contributor

Added to the title. @miljakljajic could you please assist with payment? Thank you!

@miljakljajic
Copy link
Contributor

@shubham1206agra I can't pay you until you accept the offer in upwork

@miljakljajic
Copy link
Contributor

@Krishna2323 paid, thank you!

@shubham1206agra
Copy link
Contributor

@miljakljajic Accepted

@miljakljajic
Copy link
Contributor

Paid!

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. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants