Skip to content

[HOLD for payment 2024-02-22] [$250] Workspace - Workspace highlighted member blinks when check/uncheck mark #35761

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!


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

Activity

  1. added
    DeployBlockerCash
    on Feb 3, 2024
  2. github-actions commented on Feb 3, 2024

    @github-actions
    Contributor

    👋 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.
  3. lanitochka17 commented on Feb 3, 2024

    @lanitochka17
    Author

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

  4. melvin-bot commented on Feb 3, 2024

    @melvin-bot

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

  5. Krishna2323 commented on Feb 4, 2024

    @Krishna2323
    Contributor

    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
  6. added
    External
    Daily
    and removed
    DeployBlockerCash
    Hourly
    on Feb 5, 2024
  7. melvin-bot commented on Feb 5, 2024

    @melvin-bot
  8. changed the title [-]Workspace - Workspace highlighted member blinks when check/uncheck mark[/-] [+][$500] Workspace - Workspace highlighted member blinks when check/uncheck mark[/+] on Feb 5, 2024
  9. added
    Help Wanted
    on Feb 5, 2024
  10. 20 remaining items

  11. melvin-bot commented on Feb 8, 2024

    @melvin-bot

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

  12. removed
    Help Wanted
    on Feb 8, 2024
  13. added
    Reviewing
    Weekly
    and removed
    Daily
    on Feb 9, 2024
  14. Krishna2323 commented on Feb 9, 2024

    @Krishna2323
    Contributor

    @shubham1206agra, PR ready for review.

  15. Krishna2323 commented on Feb 21, 2024

    @Krishna2323
    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

  16. shubham1206agra commented on Feb 26, 2024

    @shubham1206agra
    Contributor

    @luacmartins Can you start payment process here?

  17. 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[/+] on Feb 26, 2024
  18. luacmartins commented on Feb 26, 2024

    @luacmartins
    Contributor

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

  19. miljakljajic commented on Feb 27, 2024

    @miljakljajic
    Contributor

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

  20. miljakljajic commented on Feb 27, 2024

    @miljakljajic
    Contributor

    @Krishna2323 paid, thank you!

  21. shubham1206agra commented on Feb 27, 2024

    @shubham1206agra
    Contributor

    @miljakljajic Accepted

  22. miljakljajic commented on Mar 1, 2024

    @miljakljajic
    Contributor

    Paid!

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

Metadata

Metadata

Labels

BugEngineeringExternalReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions