Skip to content

[HOLD for payment 2023-09-06] [HOLD for payment 2023-09-04] [$1000] cursor should display as disabled on select all checkbox even if only non removable members are present #25859

Closed

Description

@kavimuru

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 Settings > Workspaces
  2. click on new workspace button
  3. go to members
  4. hover on select all checkbox

Expected Result:

cursor should be display as disabled because there the member is admin

Actual Result:

cursor does not display as disabled

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

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

Version Number: 1.3.57-1
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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2023-08-23.at.1.48.28.PM.mov
Recording.1502.mp4

Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692778734596109

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e6456f8777d856ec
  • Upwork Job ID: 1694799760529616896
  • Last Price Increase: 2023-08-24

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Aug 24, 2023
  2. c3024 commented on Aug 24, 2023

    @c3024
    Contributor

    Proposal

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

    Checkbox does not show disabled cursor when there are no eligible members to be selected

    What is the root cause of that problem?

    PR #22622 moved the checkbox and select all into the SelectionList but the logic of disabling these was missed which was present in earlier page like this

    disabled={_.isEmpty(removableMembers)}

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

    We pass

    disabled={flattenedSections.allOptions.length === flattenedSections.disabledOptionsIndexes.length}

    for this Pressable and the following Checkbox

    What alternative solutions did you explore? (Optional)

    We may use the old logic like this
    We should pass a prop called disabled to the SelectionList and use it in the Pressable and Checkbox like this.
    Add this in WorkspaceMembersPage simlar to the logic in the earlier page.

    let removableMembers = {};
        _.each(data, (memberOption) => {
            const member = props.personalDetails[memberOption.keyForList];
            if (member.accountID === props.session.accountID || member.login === props.policy.owner || member.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) {
                return;
            }
            removableMembers[member.accountID] = member;
        });

    and pass

    disabled={_.isEmpty(removableMembers)}

    here


    and add default prop

    disabled = false

    here

    function BaseSelectionList({

    and add

    disabled = {disabled}

    here


    and here

  3. melvin-bot commented on Aug 24, 2023

    @melvin-bot

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

  4. melvin-bot commented on Aug 24, 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
  5. OSBotify commented on Aug 24, 2023

    @OSBotify
    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.
  6. melvin-bot commented on Aug 24, 2023

    @melvin-bot

    Triggered auto assignment to @aldo-expensify (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  7. c3024 commented on Aug 24, 2023

    @c3024
    Contributor

    PR #22622 moved the checkbox and select all into the SelectionList but the logic of disabling these was missed.
    We need to add

    disabled={flattenedSections.allOptions.length === flattenedSections.disabledOptionsIndexes.length}

    to the Pressable and CheckBox.
    Detailed proposal here

  8. melvin-bot commented on Aug 24, 2023

    @melvin-bot

    📣 @UsamaPLUTON! 📣
    Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
    Please follow these steps:

    1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
    2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
    3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
      Screen Shot 2022-11-16 at 4 42 54 PM
      Format:
    Contributor details
    Your Expensify account email: <REPLACE EMAIL HERE>
    Upwork Profile Link: <REPLACE LINK HERE>
    
  9. 58 remaining items

  10. removed
    Help Wanted
    on Sep 4, 2023
  11. joekaufmanexpensify commented on Sep 4, 2023

    @joekaufmanexpensify
    Contributor

    @aldo-expensify / @c3024 mind completing the BZ checklist here so we can prep to issue payment?

  12. c3024 commented on Sep 4, 2023

    @c3024
    Contributor

    [@c3024] Determine if we should create a regression test for this bug.
    [@c3024] 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.

    This fix is for showing the disabled cursor for the 'Select All' and 'Checkbox'. When there are no select-able options, clicking on the checkbox/'Select All' did not toggle the checkbox nor selected any of the following options even before this fix as well.
    Since, this is about fixing only the appearance of disabled cursor on hovering the checkbox and 'Select All', I think this does not require a regression test.

  13. joekaufmanexpensify commented on Sep 5, 2023

    @joekaufmanexpensify
    Contributor

    @c3024 thanks!

  14. joekaufmanexpensify commented on Sep 5, 2023

    @joekaufmanexpensify
    Contributor

    @aldo-expensify could you please complete your portion too when you have a sec?

  15. joekaufmanexpensify commented on Sep 5, 2023

    @joekaufmanexpensify
    Contributor

    Once the checklist is complete, we need to issue the following payments here:

  16. joekaufmanexpensify commented on Sep 5, 2023

    @joekaufmanexpensify
    Contributor

    @c3024 offer sent for $1,000! ($500 will be issued as bonus).

  17. aldo-expensify commented on Sep 5, 2023

    @aldo-expensify
    Contributor

    Completed bugzero checklist

  18. c3024 commented on Sep 6, 2023

    @c3024
    Contributor

    Thanks. Accepted the offer @joekaufmanexpensify

  19. joekaufmanexpensify commented on Sep 6, 2023

    @joekaufmanexpensify
    Contributor

    BZ checklist complete, all set to issue payment!

  20. joekaufmanexpensify commented on Sep 6, 2023

    @joekaufmanexpensify
    Contributor

    @c3024 $1,500 sent and contract ended!

  21. joekaufmanexpensify commented on Sep 6, 2023

    @joekaufmanexpensify
    Contributor

    @gadhiyamanan $250 sent and contract ended!

  22. joekaufmanexpensify commented on Sep 6, 2023

    @joekaufmanexpensify
    Contributor

    Upwork job closed.

  23. joekaufmanexpensify commented on Sep 6, 2023

    @joekaufmanexpensify
    Contributor

    Bug is fixed, BZ checklist complete, and all payment issued. Closing as this is all set. Thanks everyone!

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions