-
Notifications
You must be signed in to change notification settings - Fork 3k
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-04-27] [$1000] Back button in split bill page is 20px padding left inconsistent with other pages of the app #17366
Comments
Triggered auto assignment to @laurenreidexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Back button in split bill page is 20px padding left inconsistent with other pages of the app What is the root cause of that problem?
App/src/pages/workspace/WorkspacesListPage.js Lines 178 to 183 in 42bea4b
Left padding is first adjusted by App/src/components/HeaderWithCloseButton.js Line 131 in 42bea4b
Lines 1874 to 1881 in 42bea4b
App/src/styles/utilities/spacing.js Lines 353 to 355 in 42bea4b
However, the This App/src/pages/iou/ModalHeader.js Line 31 in 42bea4b
What changes do you think we should make in order to solve the problem?Since the <View style={[styles.headerBar, props.shouldShowBackButton && styles.pl2]}> I have videos showing the final result, but they're slightly too big to add to this comment. I can upload them to Slack if you'd like to take a look. |
Job added to Upwork: https://www.upwork.com/jobs/~010c9460f2554a482b |
Current assignee @laurenreidexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.In this issue, we can notice that the left padding for the Modal header is of 20px, which is inconsistent with the rest of the app, where the left padding for the back button / header is 8px. What is the root cause of that problem?This looks like a regression / missed case from #16679. This issue is present in not just Split Bill flow, but also on the Request Money and Send Money flow. This is because all of the above mentioned flows make use of the App/src/pages/iou/ModalHeader.js Line 31 in 5d69c8e
What changes do you think we should make in order to solve the problem?We need to selectively set the padding to 8px if the back button is visible. This needs to be done here: App/src/pages/iou/ModalHeader.js Line 31 in 5d69c8e
This can be done by using the conditional statement to the View style such that when the prop What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.Back button in split bill page is 20px padding left inconsistent with other pages of the app What is the root cause of that problem?Split bill page use App/src/pages/iou/ModalHeader.js Line 31 in ecc94d3
While other pages use HeaderWithCloseButton component, if have back button it has padding left 8px with style styles.pl2 App/src/components/HeaderWithCloseButton.js Line 131 in 42bea4b
What changes do you think we should make in order to solve the problem?Add style What alternative solutions did you explore? (Optional)NA ResultScreencast.from.13-04-2023.22.16.43.webm |
Triggered auto assignment to @flodnv ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.the left padding of the Modal header is 20px, which doesn't match the 8px left padding used in other parts of the app for the back button/header What is the root cause of that problem?The issue causing the Back button in split bill page to have inconsistent padding of 20px on the left compared to other pages of the app is likely due to the "mr2" style applied to the containing View element. What changes do you think we should make in order to solve the problem?To fix this issue, modify the styles applied to the containing View element by removing the "mr2" style. For example: const ModalHeader = props => ( <View style={[styles.reportOptions, styles.flexRow, styles.pr5]}> <Tooltip text={props.translate('common.close')}> <TouchableOpacity onPress={() => Navigation.dismissModal()} style={[styles.touchableButtonImage]} accessibilityRole="button" accessibilityLabel={props.translate('common.close')} > ); |
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. |
Thanks for the proposal everyone. Proposal from @Prince-Mendiratta looks good to me. 🎀👀🎀 C+ reviewed |
@sobitneupane Just so I can get some clarity, the accepted proposal looks very identical to mine including the solution, however, mine wasn't selected even though it came first. Is there a different selection process for identical proposals, or is there a small detail in the identical accepted proposal that mine doesn't have that I should include in future proposals? |
@Victor-Nyagudi You are not supposed to propose solution before |
Noted. |
📣 @Prince-Mendiratta You have been assigned to this job by @flodnv! |
Thanks, go ahead @Prince-Mendiratta |
Bug reporter, Contributor and C+ all hired in Upwork |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.2-5 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-04-27. 🎊 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:
|
@sobitneupane pls complete your steps above, thanks! |
I don't think we need a regression test for this as it's a stylistic consistency issue rather than a UI bug |
Everyone has been paid, including 50% 3 day bonus, just waiting for Sobit to finish last steps before closing. |
https://expensify.slack.com/archives/C049HHMV9SM/p1682597327733349 |
Agreed |
Nice work 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:
Split bill pages should have 8px padding-left as we have used in page navigation before back button throughout the app
Actual Result:
Split bill pages have 20px padding-left instead of standard 8px
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.2.99-4
Reproducible in staging?: y
Reproducible in production?: y
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
inconsistent.padding.before.back.button.mp4
Recording.217.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681289696995609
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: