Skip to content

[HOLD for payment 2024-08-13] [$250] iOS - Workspace - Dropdown button is not disabled when no selection is made #46619

Closed

Description

@m-natarajan

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when validating #45732
Version Number: 9.0.15-4
Reproducible in staging?: y
Reproducible in production?: no new feature
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
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:

Action Performed:

  1. Launch New Expensify app.
  2. Go to workspace settings > Members.
  3. Invite a few members if there is no members.
  4. Long press on any member.
  5. Tap Select.
  6. Unselect the member.
  7. Tap on the dropdown button.

Expected Result:

Dropdown button should be disabled when no selection is made (same behavior on Search).

Actual Result:

Dropdown button is not disabled when no selection is made. Remove members option is present when no member is selected.

This issue happens for other pages like Categories, Taxes, Tags etc

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

Bug6558585_1722458560418.select.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01646ead25f1035d7c
  • Upwork Job ID: 1818788590509081901
  • Last Price Increase: 2024-07-31
Issue OwnerCurrent Issue Owner: @lschurr

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    DeployBlockerIndicates it should block deploying the API
    on Jul 31, 2024
  2. melvin-bot commented on Jul 31, 2024

    @melvin-bot

    Triggered auto assignment to @lschurr (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.

  3. melvin-bot commented on Jul 31, 2024

    @melvin-bot

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

  4. github-actions commented on Jul 31, 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.
  5. neonbhai commented on Jul 31, 2024

    @neonbhai
    Contributor

    Proposal

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

    Dropdown button is not disabled when no selection is made

    What is the root cause of that problem?

    We don't disable the button when no members are selected:

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

    We will add a isDisabled prop checking selectedEmployees.length here:

    <ButtonWithDropdownMenu<WorkspaceMemberBulkActionType>
    shouldAlwaysShowDropdownMenu
    pressOnEnter
    customText={translate('workspace.common.selected', {selectedNumber: selectedEmployees.length})}
    buttonSize={CONST.DROPDOWN_BUTTON_SIZE.MEDIUM}
    onPress={() => null}

    isDisabled={!selectedEmployees.length}

    Additionally:

    We will also not add the Remove Members option here if selectedEmployees.length is zero

    {
    text: translate('workspace.people.removeMembersTitle'),
    value: CONST.POLICY.MEMBERS_BULK_ACTION_TYPES.REMOVE,
    icon: Expensicons.RemoveMembers,
    onSelected: askForConfirmationToRemove,
    },

    We will do the same for WorkspaceTagsPage, WorkspaceCategoriesPage, PolicyDistanceRatesPage, WorkspaceReportFieldsPage, WorkspaceTaxesPage which use the same pattern of selection and have the issue present.

  6. 25 remaining items

  7. melvin-bot commented on Aug 6, 2024

    @melvin-bot

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

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

    • @jayeshmangwani requires payment through NewDot Manual Requests
    • @neonbhai requires payment (Needs manual offer from BZ)
  8. melvin-bot commented on Aug 6, 2024

    @melvin-bot

    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:

    • [@jayeshmangwani] The PR that introduced the bug has been identified. Link to the PR:
    • [@jayeshmangwani] 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:
    • [@jayeshmangwani] 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:
    • [@jayeshmangwani] Determine if we should create a regression test for this bug.
    • [@jayeshmangwani] 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.
    • [@lschurr] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  9. changed the title [-][HOLD for payment 2024-08-13] [HOLD for payment 2024-08-09] [$250] iOS - Workspace - Dropdown button is not disabled when no selection is made[/-] [+][HOLD for payment 2024-08-13] [$250] iOS - Workspace - Dropdown button is not disabled when no selection is made[/+] on Aug 7, 2024
  10. added and removed on Aug 9, 2024
  11. melvin-bot commented on Aug 13, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@lschurr)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1818788590509081901/hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  12. lschurr commented on Aug 13, 2024

    @lschurr
    Contributor

    @neonbhai - Offer sent in Upwork :)

  13. neonbhai commented on Aug 13, 2024

    @neonbhai
    Contributor

    @lschurr Thank you, accepted!

  14. lschurr commented on Aug 13, 2024

    @lschurr
    Contributor

    All set. Payment summary is correct.

  15. jayeshmangwani commented on Aug 13, 2024

    @jayeshmangwani
    Contributor
    • [@jayeshmangwani] The PR that introduced the bug has been identified. Link to the PR: Mobile Selection Mode #46096
    • [@jayeshmangwani] 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: Mobile Selection Mode #46096 (comment)
    • [@jayeshmangwani] 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: N/A
    • [@jayeshmangwani] Determine if we should create a regression test for this bug. NO, IMO, there's no need to create a test for this since we missed including it as part of the new feature.
    • [@jayeshmangwani] 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.
  16. jayeshmangwani commented on Aug 15, 2024

    @jayeshmangwani
    Contributor

    Requested on ND as per #46619 (comment)

  17. JmillsExpensify commented on Aug 21, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @jayeshmangwani

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions