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

[$250] [hold for payment 2024-10-04] Members - Dropdown button is not full width #49749

Closed
3 of 6 tasks
IuliiaHerets opened this issue Sep 25, 2024 · 27 comments
Closed
3 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 25, 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: 9.0.40-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch New Expensify app.
  2. Go to workspace settings > Members.
  3. Invite a member if there is no other member.
  4. Long tap on the member.

Expected Result:

The dropdown button should be full width.

Actual Result:

The dropdown button is not full width.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Screenshot 2024-09-26 at 05 00 16

Bug6615247_1727295516935.ScreenRecording_09-26-2024_04-17-03_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021841837363965759666
  • Upwork Job ID: 1841837363965759666
  • Last Price Increase: 2024-10-03
Issue OwnerCurrent Issue Owner: @
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 25, 2024
Copy link

melvin-bot bot commented Sep 25, 2024

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

Copy link

melvin-bot bot commented Sep 25, 2024

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

Copy link
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.

@IuliiaHerets
Copy link
Author

Production
IMG_7106

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-control

@Nodebrute
Copy link
Contributor

Nodebrute commented Sep 25, 2024

Edited by proposal-police: This proposal was edited at 2024-09-25 21:30:48 UTC.

Proposal

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

Dropdown button is not full width

What is the root cause of that problem?

We are adding these extra styles here we don't need them

<View style={[styles.flexRow, styles.gap2, shouldUseNarrowLayout && styles.mb3]}>

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

We can remove these styles from here, this will fix the issue

<View style={[styles.flexRow, styles.gap2, shouldUseNarrowLayout && styles.mb3]}>

Other minor styling can be adjusted in the PR

What alternative solutions did you explore? (Optional)

We can remove this VIEW from here

<View style={[styles.flexRow, styles.gap2, shouldUseNarrowLayout && styles.mb3]}>

  <>
                {(shouldUseNarrowLayout ? canSelectMultiple : selectedEmployees.length > 0) ? (
                    <ButtonWithDropdownMenu<WorkspaceMemberBulkActionType>
                        shouldAlwaysShowDropdownMenu
                        pressOnEnter
                        customText={translate('workspace.common.selected', {selectedNumber: selectedEmployees.length})}
                        buttonSize={CONST.DROPDOWN_BUTTON_SIZE.MEDIUM}
                        onPress={() => null}
                        options={getBulkActionsButtonOptions()}
                        isSplitButton={false}
                        style={[shouldUseNarrowLayout && styles.flexGrow1, shouldUseNarrowLayout && styles.mb3]}
                        isDisabled={!selectedEmployees.length}
                    />
                ) : (
                    <Button
                        success
                        onPress={inviteUser}
                        text={translate('workspace.invite.member')}
                        icon={Expensicons.Plus}
                        innerStyles={[shouldUseNarrowLayout && styles.alignItemsCenter]}
                        style={[shouldUseNarrowLayout && styles.flexGrow1, shouldUseNarrowLayout && styles.mb3]}
                    />
                )}
            </>

@ishpaul777
Copy link
Contributor

offending PR #48876

@daledah
Copy link
Contributor

daledah commented Sep 25, 2024

Proposal

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

The dropdown button is not full width.

What is the root cause of that problem?

We have some styles here that don't have effect

<View style={[styles.flexRow, styles.gap2, shouldUseNarrowLayout && styles.mb3]}>

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

We should remove useless style styles.flexRow, styles.gap2 and add styles.w100 like we did here

            <View style={[shouldUseNarrowLayout && styles.mb3, styles.w100]}>

What alternative solutions did you explore? (Optional)

@aldo-expensify
Copy link
Contributor

Both of the existing proposals end up with the 3-vertical-dot getting cut on the right side:

image

@Nodebrute
Copy link
Contributor

Nodebrute commented Sep 25, 2024

@aldo-expensify have you tested my proposal?
Screenshot 2024-09-26 at 4 16 05 AM

@aldo-expensify
Copy link
Contributor

@Nodebrute now I tested removing the View as your alternative solution suggest and that seems to work. I'll test a bit more and prepare the PR.

@Krishna2323
Copy link
Contributor

Krishna2323 commented Sep 25, 2024

@aldo-expensify, The issue occurs because we missed to add wrapperStyle={styles.w100} to the ButtonWithDropdownMenu.

<ButtonWithDropdownMenu<WorkspaceMemberBulkActionType>
shouldAlwaysShowDropdownMenu
pressOnEnter
customText={translate('workspace.common.selected', {selectedNumber: selectedEmployees.length})}
buttonSize={CONST.DROPDOWN_BUTTON_SIZE.MEDIUM}
onPress={() => null}
options={getBulkActionsButtonOptions()}
isSplitButton={false}
style={[shouldUseNarrowLayout && styles.flexGrow1, shouldUseNarrowLayout && styles.mb3]}
isDisabled={!selectedEmployees.length}
/>

The same id done in PolicyDistanceRatesPage.

<ButtonWithDropdownMenu<WorkspaceDistanceRatesBulkActionType>
shouldAlwaysShowDropdownMenu
pressOnEnter
customText={translate('workspace.common.selected', {selectedNumber: selectedDistanceRates.length})}
buttonSize={CONST.DROPDOWN_BUTTON_SIZE.MEDIUM}
onPress={() => null}
options={getBulkActionsButtonOptions()}
style={[shouldUseNarrowLayout && styles.flexGrow1]}
wrapperStyle={styles.w100}
isSplitButton={false}
isDisabled={!selectedDistanceRates.length}
/>

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Sep 25, 2024
@aldo-expensify
Copy link
Contributor

Thanks @Krishna2323 , but if removing the View works the same, I think I prefer that since the simpler the code, the easier to maintain.

@Nodebrute
Copy link
Contributor

@Krishna2323, We are not adding wrapperStyle={styles.w100} in Categories Page and it's working fine there. Also, notice here the dropdown button is not wrapped in extra styles

return (
<ButtonWithDropdownMenu
onPress={() => null}
shouldAlwaysShowDropdownMenu
pressOnEnter
buttonSize={CONST.DROPDOWN_BUTTON_SIZE.MEDIUM}
customText={translate('workspace.common.selected', {selectedNumber: selectedCategoriesArray.length})}
options={options}
isSplitButton={false}
style={[shouldUseNarrowLayout && styles.flexGrow1, shouldUseNarrowLayout && styles.mb3]}
isDisabled={!selectedCategoriesArray.length}
/>

cc: @aldo-expensify

@aldo-expensify
Copy link
Contributor

@rayane-djouah is C+
#49760 implements @Nodebrute 's alternative proposal

@aldo-expensify aldo-expensify added Awaiting Payment Auto-added when associated PR is deployed to production and removed DeployBlockerCash This issue or pull request should block deployment Reviewing Has a PR in review labels Sep 26, 2024
@aldo-expensify
Copy link
Contributor

Tested well in staging: #49760 (comment)

@joekaufmanexpensify joekaufmanexpensify added the Reviewing Has a PR in review label Sep 27, 2024
@rayane-djouah
Copy link
Contributor

rayane-djouah commented Sep 28, 2024

Note

The production deploy automation failed: This should be on [HOLD for Payment 2024-10-04] according to #49662 production deploy checklist, confirmed in #49760 (comment)

cc @joekaufmanexpensify

@joekaufmanexpensify joekaufmanexpensify changed the title Members - Dropdown button is not full width [hold for payment 2024-10-04] Members - Dropdown button is not full width Sep 30, 2024
@joekaufmanexpensify
Copy link
Contributor

Done!

@joekaufmanexpensify joekaufmanexpensify added the External Added to denote the issue can be worked on by a contributor label Oct 3, 2024
Copy link

melvin-bot bot commented Oct 3, 2024

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

@melvin-bot melvin-bot bot changed the title [hold for payment 2024-10-04] Members - Dropdown button is not full width [$250] [hold for payment 2024-10-04] Members - Dropdown button is not full width Oct 3, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 3, 2024
Copy link

melvin-bot bot commented Oct 3, 2024

Current assignee @rayane-djouah is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 3, 2024
@joekaufmanexpensify joekaufmanexpensify added Weekly KSv2 and removed Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Oct 3, 2024
@joekaufmanexpensify
Copy link
Contributor

Discussing payment here

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 3, 2024
@joekaufmanexpensify
Copy link
Contributor

Payment due here:

  • @Nodebrute - $125 for proposal via Upwork. No payment is required here given proposal offered with no help wanted label, but we appreciate your assistance in getting this deploy blocker done!
  • @rayane-djouah - $250 for C+ review via Upwork.

@joekaufmanexpensify
Copy link
Contributor

Offer sent to both of you in Upwork! Payment due tomorrow

@Nodebrute
Copy link
Contributor

@joekaufmanexpensify Thank You. Accepted🙏.

@joekaufmanexpensify
Copy link
Contributor

Payment sent to both of you!

@joekaufmanexpensify
Copy link
Contributor

Upwork job closed.

@joekaufmanexpensify
Copy link
Contributor

All set

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

No branches or pull requests

8 participants