-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2023-05-05] [$1000] Settings - Contact method menu item right arrow icon is not vertically centre align #17756
Comments
Triggered auto assignment to @MitchExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
This comment was marked as duplicate.
This comment was marked as duplicate.
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
Changes <MenuItem
title={menuItemTitle}
description={description}
onPress={() => Navigation.navigate(ROUTES.getEditContactMethodRoute(partnerUserID))}
brickRoadIndicator={indicator}
shouldShowBasicTitle
shouldShowRightIcon
disabled={!_.isEmpty(pendingAction)}
+ wrapperStyle={[styles.alignItemsCenter]}
/>
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~019d89a1784228879a |
Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @techievivek ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Right arrow icon is not vertically aligned in the center for more than 1 line description What is the root cause of that problem?App/src/components/MenuItem.js Lines 202 to 203 in b74c71c
For the right icon parent container, we are providing a fixed height of 40px. So even if its content is centered with below properties, it won't be vertically aligned center with the overall menuItem height. Lines 1222 to 1227 in b74c71c
What changes do you think we should make in order to solve the problem?We can remove the fixed height from the Result Screen.Recording.2023-04-22.at.12.58.05.AM.mov |
@dhairyasenjaliya Incorrect root cause. @Pujan92 's proposal looks good to me. It is better to fix this for all not just the contact details page. Suggestion: I would just apply App/src/components/MenuItem.js Line 203 in b74c71c
Other than this, @Pujan92 Can you please also add more Stories for MenuItem's different states? Normally, we extend stories while working on such issues. cc: @techievivek 🎀 👀 🎀 C+ reviewed |
ProposalPlease re-state the problem that we are trying to solve in this issue.Contact method right arrow icon is not aligned to center vertically What is the root cause of that problem?Right icon View has fixed height so justify content is not sufficient. What changes do you think we should make in order to solve the problem?We just need to add styles.alignSelfCenter to right icon. Changes
What alternative solutions did you explore? (Optional) |
📣 @nurulmayapriyani! 📣 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.
Format:
|
@parasharrajat I don't think Result WEB **Android ** |
@parasharrajat updated screencasts in the proposal. @dhairyasenjaliya I believe the wrapper container doesn't require that fixed height here(as irrespective of height the icon needs to be in the center) and better to take the available height to easily place content in the center with already provided styles. |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Adding @Pujan92 to the job. |
📣 @Pujan92 You have been assigned to this job by @techievivek! |
Thanks! PR is ready for review. |
Invites sent for eventual payment - Upwork job |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.7-3 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 2023-05-05. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Made a calendar reminder to pay out on the 5th! 🎉 |
Bump @MitchExpensify |
[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: It was designed this way since the start and is not caused by any PR. Then we introduced description support to menuItem which required this change [@parasharrajat] 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: NA [@parasharrajat] Determine if we should create a regression test for this bug. No regression Test needed. This should be covered with storybooks. |
I ain't late 😆 (Thanks all the same) |
Paid and closing - Good job everyone! |
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:
Expected Result:
Right arrow beside email should be vertically centre align
Actual Result:
Right arrow beside email is not vertically centre align
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.2.3
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Expensify/Expensify Issue URL:
Issue reported by:@dhairyasenjaliya
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681921369044789
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: