Closed kavimuru closed 1 year ago
Triggered auto assignment to @trjExpensify (NewFeature
), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details.
@puneetlath @shawnborton can we firm up the OP on this one a bit before I move it along to guide the proposal? How much bottom padding do we want to add etc?
It should match the same padding that is on the top... so that might be either like 12px or 16px?
Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new.
Platforms
in OP are β
)Thanks! Updated. Adding bug
and external
Job added to Upwork: https://www.upwork.com/jobs/~01b61ef9ad2019e632
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External
)
Add some bottom padding to the copy link bottom-docked dialog on mobile
This is a feature request.
To maintain consistency we should use the same padding on bottom (12px) here for CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED
modal
Triggered auto assignment to @alex-mechler (External
), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Feature request : add some bottom padding to the copy link bottom-docked dialog on mobile
This is required because we didn't define any padding-bottom for "bottom-docked" modal in mobile
We just need to add paddingBottom: 12
here
Note:- The solution is for the bottom-docked modal and not just specific to the scenario when the only item is "Copy URL to Clipboard". It's only more noticeable here because it also has descriptionText as URL (eg. https://test.com) but it should be fix in all scenarios.
Feature request : add some bottom padding to the copy link bottom-docked dialog on mobile
paddingTop: 12 rule
remove paddingTop: 12
π£ @IlyaApaniuk! π£
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:
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Contributor details Your Expensify account email: ilya21968@gmail.com Upwork Profile Link: https://www.upwork.com/freelancers/~01517205235949d8f7
β Contributor details stored successfully. Thank you for contributing to Expensify!
add some bottom padding to the copy link bottom-docked dialog on mobile
the problem is we depond on safeAreView
to set padding bottom in modal container view.
and this work fine if iphone have home bar notch, but in devices dos't have home bar notch there is no bottom padding is set in modal container view.
if no safeAreaView padding bottom we need to add it here by on of the two soulation:
const modalPaddingStyles = StyleUtils.getModalPaddingStyles({
...
// first soluation
safeAreaPaddingBottom: insets.bottom === 0 ? 12 : safeAreaPaddingBottom,
...
// second soluation
modalContainerStyleMarginBottom: insets.bottom === 0 ? 12 : modalContainerStyle.marginBottom,
...
});
To add some bottom padding to the copy link bottom-docked dialog on mobile
Padding-bottom for "bottom-docked" modal in mobile is not defined in code!
To add bottom padding to the copy link bottom-docked dialog on mobile, you can add the following style to the modalContainerStyle object inside the "CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED" switch case: modalContainerStyle = { width: '100%', borderTopLeftRadius: 20, borderTopRightRadius: 20, paddingTop: 12, paddingBottom: 16, // add bottom padding justifyContent: 'center', overflow: 'hidden', };
Alternative to add some bottom padding to the BOTTOM_DOCKED modal type, we can modify the modalContainerStyle object for this case in the switch statement. We can add a paddingBottom property with the desired value of padding (for example, 16):
case CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED: modalStyle = { ...modalStyle, ...{ alignItems: 'center', justifyContent: 'flex-end', }, }; modalContainerStyle = { width: '100%', borderTopLeftRadius: 20, borderTopRightRadius: 20, paddingTop: 12, justifyContent: 'center', overflow: 'hidden', paddingBottom: 16, // add bottom padding here };
shouldAddBottomSafeAreaPadding = true;
swipeDirection = undefined;
animationIn = 'slideInUp';
animationOut = 'slideOutDown';
break;
This will add a 16 point bottom padding to the BOTTOM_DOCKED modal type. You can adjust the value to whatever padding you need.
@shawnborton, this will not be specific to only copy link
. The bottom padding will be applied to all the bottom docked modals e.g. emoji picker, confirmation modal. All modals docked to the bottom have a top padding of 12 pixels so I believe it's fine to add 12px bottom padding? Can you please confirm it?
Yup, confirmed. Let's make this change global to all bottom-docked modals.
~@alex-mechler, I like @aman-atg's proposal.~
~C+ reviewed πππ~
@thesahindia I think we need to add this margin only in screens dosn't have home bar like the second image but first image with home bar don't need extra margin, and if we add to it, it will be shown inconsistent.
Ahh, that makes sense!
@alex-mechler, let's assign @ahmedGaber93. Their proposal is better.
C+ reviewed πππ
Their proposal looks good to me as well. Good catch about the safe area view impacting this as well. Assigning them!
π£ @ahmedGaber93 You have been assigned to this job by @alex-mechler! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
@alex-mechler @thesahindia PR is ready for review.
@trjExpensify, @alex-mechler, @ahmedGaber93, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!
Not overdue! PR is in production. Not sure why the title wasn't updated.
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.3-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-04-28. :confetti_ball:
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:
Not sure why automation failed, thats the comments that should have been posted though!
It wasn't a regression. It was a design choice. Also I think we don't have to add any regression test steps for this.
Agreed. I think this would be classed as a visual bug, so we wouldn't have a regression test case written up for it.
I've sent the below offers. No #urgency bonus applies here because the issue was assigned on the 14th and approved/merged on the 19th. Let me know if you disagree with that though:
@trjExpensify
the issue was assigned on the 14th and approved/merged on the 19th.
The dates mentioned are correct, but this period includes 2 days weekend, so I think the PR merged within 3 business days
Yup, the 15th and the 16th were weekends, so that would be exactly 3 business days.
Hm, why are we discounting Friday as a business day, when the issue was assigned on that day? Assigned on the 14th at 7:29 UTC, merged on the 19th at 7:31 UTC.
π not sure why I miscounted there, but yeah, that is correct. That would be just over the 3 day mark
Accepted the offer. Thanks!
Settled up with you both, closing!
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Problem:
Incorrect bottom padding in the copy URL bottom-docked modal
Solution:
Increase the bottom padding to match the top padding.
Context/Examples/Screenshots/Notes:
Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL: Issue reported by: @puneetlath Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681313186606359
View all open jobs on GitHub
Upwork Automation - Do Not Edit