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-04-03] [$500] Web -Workspace-Highlight for the checkbox goes out of bound on members page #37599

Closed
1 of 6 tasks
kbecciv opened this issue Mar 1, 2024 · 14 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. 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 Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Mar 1, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.46.0
Reproducible in staging?: y
Reproducible in production?: y
Issue reported by:

Action Performed:

  1. Go to workspace settings page > Members
  2. Mark one of the members' checkbox
  3. Click on down arrow on keyboard
  4. Observe the highlight on the checkbox

Expected Result:

The highlight should not go out of bounds

Actual Result:

The highlight on the checkbox goes out of bound

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

Bug6398225_1709297242623.invitemembershighlightbug.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016007b30fb57512d8
  • Upwork Job ID: 1763710609566830592
  • Last Price Increase: 2024-03-01
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 1, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Mar 1, 2024

@greg-schroeder 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

@Krishna2323
Copy link
Contributor

Krishna2323 commented Mar 1, 2024

Proposal

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

What is the root cause of that problem?

Here we applied selectMultipleStyle which has styles.mr3 to Checkmark icon container which is inside PressableWithFeedback which has the focus.

<View style={selectMultipleStyle}>

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

Move selectMultipleStyle to PressableWithFeedback style prop.

Result

Alternative

Override margin right on view with mragin right 0 and apply styles.mr3 to PressableWithFeedback.

Alternative 2

Use Checkbox component and remove styles.mr3 from StyleUtils.getMultiselectListStyles and directly apply styles.mr3 to Checkbox.

{canSelectMultiple && (
    <Checkbox
        isChecked={item.isSelected}
        onPress={handleCheckboxPress}
        accessibilityLabel={item.text}
        style={[styles.mr3]}
        containerStyle={selectMultipleStyle}
    />
)}

Alternative 3

Remove styles.mr3 from StyleUtils.getMultiselectListStyles and directly apply styles.mr3 to PressableWithFeedback

Additional

Also, there is an issue with the Checkbox inside BaseListItem, it can be selected even if the option is disabled, we can pass disabled={isDisabled} to Checkbox or PressableWithFeedback to solve that issue also.

Result

checkbox_styles.mp4

@Krishna2323
Copy link
Contributor

Proposal Update

Added alternatives

@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Mar 1, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

Job added to Upwork: https://www.upwork.com/jobs/~016007b30fb57512d8

@melvin-bot melvin-bot bot changed the title Web -Workspace-Highlight for the checkbox goes out of bound on members page [$500] Web -Workspace-Highlight for the checkbox goes out of bound on members page Mar 1, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 1, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

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

@greg-schroeder
Copy link
Contributor

Probably a low prio #wave8 issue eh @zanyrenney?

@rayane-djouah
Copy link
Contributor

same root cause with #37511, will be fixed by #37521

@rayane-djouah
Copy link
Contributor

rayane-djouah commented Mar 2, 2024

good catch @Krishna2323 on this:

Additional
Also, there is an issue with the Checkbox inside BaseListItem, it can be selected even if the option is disabled, we can pass disabled={isDisabled} to Checkbox or PressableWithFeedback to solve that issue also.

@aimane-chnaif should we include this in our PR ? or should it be handled separately ? I didn't find any open issue for this bug.

fixed by 7bc882c

@Krishna2323
Copy link
Contributor

@rayane-djouah, I think that is also fixed on main.

@rayane-djouah
Copy link
Contributor

rayane-djouah commented Mar 2, 2024

@rayane-djouah, I think that is also fixed on main.

yes, fixed by 7bc882c

@greg-schroeder
Copy link
Contributor

all right, so closing then!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Mar 27, 2024
@melvin-bot melvin-bot bot changed the title [$500] Web -Workspace-Highlight for the checkbox goes out of bound on members page [HOLD for payment 2024-04-03] [$500] Web -Workspace-Highlight for the checkbox goes out of bound on members page Mar 27, 2024
Copy link

melvin-bot bot commented Mar 27, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.56-8 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-04-03. 🎊

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

  • @ishpaul777 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Mar 27, 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:

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

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

No branches or pull requests

5 participants