Closed kbecciv closed 1 year ago
Triggered auto assignment to @JmillsExpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are β
)Inconsistent margin above Next button in 2FA Step 2
The ScrollView
on this page has a marginBottom of 20px (styles.mb5
) added here: https://github.com/Expensify/App/blob/17025aa62b1a8c40bb451a97000d3f4605c7bdae/src/pages/settings/Security/TwoFactorAuth/Steps/VerifyStep.js#L78-L79
This is responsible for the extra gap on this page of the flow.
Note The other pages follow the standard 8px gap on top of the footer button.
The root cause for the button appearing over the content for small screens is because the Footer button is placed outside the ScrollView
here which separates its rendering logic from the content (and makes it render over the content)
ScrollView
here: https://github.com/Expensify/App/blob/17025aa62b1a8c40bb451a97000d3f4605c7bdae/src/pages/settings/Security/TwoFactorAuth/Steps/VerifyStep.js#L79FixedFooter
component here (which includes the button) as part of the Parent ScrollView
here: https://github.com/Expensify/App/blob/fc8adf99a11a41154ec276d44495485958e43a7d/src/pages/settings/Security/TwoFactorAuth/Steps/VerifyStep.js#L78-L81contentContainerStyle={styles.flexGrow1}
as ScrollView style here to make sure the content takes all available spaceFixedFooter
component so the button has breathing space: https://github.com/Expensify/App/blob/fc8adf99a11a41154ec276d44495485958e43a7d/src/pages/settings/Security/TwoFactorAuth/Steps/VerifyStep.js#L114
This will make the button sit below the content (and be scrollable, but also sit on the bottom of the modal if container size is bigger than content)View
wrapper to the button that will make it sit at the bottom of the view.ScrollView
here We can remove padding from all steps, by incorporating the above change and also removing the styles.pt2
from the fixed footers
We can add some breathing room on the workspace list footer button by adding consistent styes.pt2
top padding on the button here: https://github.com/Expensify/App/blob/3f8f2c43430427cf3cf323fbf16013df72e59ff4/src/pages/workspace/WorkspacesListPage.js#L192-L198
styles.pt2
in the WorkspacesListPage.js
file:footer={
<View style={[styles.pt2]}>
<Button
accessibilityLabel={translate('workspace.new.newWorkspace')}
success
text={translate('workspace.new.newWorkspace')}
onPress={() => App.createWorkspaceAndNavigateToIt('', false, '', false, !isSmallScreenWidth)}
/>
</View>
}
IOS - Inconsistent margin above Next button in 2FA Step 2 + the submit button is fixed in the bottom of screen view instead of the page content.
Inconsistent margin above Next button in 2FA Step 2
There are 2 places that make there a lot of spacing above Next button
There are some marginTop and paddingTop for the button in the verify page https://github.com/Expensify/App/blob/3f8f2c43430427cf3cf323fbf16013df72e59ff4/src/pages/settings/Security/TwoFactorAuth/Steps/VerifyStep.js#L114
There is a margin bottom from ScrollView here https://github.com/Expensify/App/blob/3f8f2c43430427cf3cf323fbf16013df72e59ff4/src/pages/settings/Security/TwoFactorAuth/Steps/VerifyStep.js#L79
The submit button is fixed in bottom of the screen view instead of the page content We're putting the submit button outside of ScrollView, and we're using FixedFooter component as a wrapper https://github.com/Expensify/App/blob/b11bddc054f54bb46d5fb5aaf05e25b8a7df7faf/src/pages/settings/Security/TwoFactorAuth/Steps/VerifyStep.js#L114-L126
ScrollView
component, after the Form view here FixedFooter
by another component (because it's not fixed footer anymore). We can introduce another component, I.e ScreenSubmitButtonWrapper
, almost same as FixedFooter
component, but with default style as style={[styles.mt5, styles.mh5, styles.flex1, styles.justifyContentEnd]}
. It's almost align with FormAlertWithSubmitButtoncontentContainerStyle={styles.flexGrow1}
to ScrollView component here so it will expand to take all remaining space of screen.We can apply above changes for other steps of 2FA.
Result:
https://github.com/Expensify/App/assets/9639873/5b11f7fd-50fd-430b-8c36-980f5b7359d7
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too...
Good one. I agree we should fix the margins and ensure they're consistent. cc @Expensify/design to make sure the spec if clear.
Job added to Upwork: https://www.upwork.com/jobs/~01c6a99b3ba9660c1d
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External
)
Hmm I am not entirely sure what's being proposed here, but I think we just need to get rid of the additional padding above the green button, does that sound right?
I also thought we had a pattern where if the page content is longer than the available viewport, the green button would sit directly below the last bit of page content and not cover it up. For example, take a look at the Display name page, which has the ideal behavior I think:
Also, it looks like this effects other pages too:
@shawnborton do we then want to cover the floating button in this issue's scope? or we create another issue for that and only fix the padding here?
They are not separate issues IMO. If we fix the button behavior to match the contact methods page, the padding should be fixed at the same time.
@JmillsExpensify, @mananjadhav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@JmillsExpensify, @mananjadhav Whoops! This issue is 2 days overdue. Let's get this updated quick!
@JmillsExpensify @mananjadhav this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Agree with @shawnborton on the solution and next steps.
π£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πΈ
@neonbhai's proposal here looks good to me. Apologies for the delay, I was OOO for past few days.
π π π C+ reviewed.
Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@JmillsExpensify @mananjadhav @bondydaa this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!
π£ @mananjadhav Please request via NewDot manual requests for the Reviewer role ($500)
π£ @neonbhai π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer 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 π
π£ @Nathan-Mulugeta π An offer has been automatically sent to your Upwork account for the Reporter role π Thanks for contributing to the Expensify app!
waiting on PR
π― β‘οΈ Woah @mananjadhav / @neonbhai, great job pushing this forwards! β‘οΈ
The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus π
On to the next one π
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.74-3 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-10-05. :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.
For reference, here are some details about the assignees on this issue:
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:
We added the FixedFooter
to the page in this PR. This is where we could've tested the positioning of the button.
I don't think we need any change in the process, as this as a bug. I also don't think we need to add regression test here.
Friendly bump for payment^
cc: @JmillsExpensify
Payment summary:
$1,000 payment approved for @mananjadhav based on above summary.
Issue reporter and contributor are paid out, no regression tests. Closing this issue.
Hey @JmillsExpensify this issue was created on Aug 29, prior to bounty adjustment announcement, the reporter bounty should be $250 not $50, thanks.
That is true, this should adhere to the earlier pay scale (for contributors also I hope :bow: )
cc: @JmillsExpensify
@JmillsExpensify Can you help with the previous questions from the contributors? I am not sure what's the process for the old bounty?
Also I don't see the request being approved on the NewDot.
Lastly @JmillsExpensify I am a bit confused how the amount is $1000. If we consider the old bounty it should be $1500, and if we consider the new bounty it should be $750.
@JmillsExpensify following this comment Nathan-Mulugeta needs to be paid an extra $200 since the bug was reported under the old bounty.
@Nathan-Mulugeta I just sent you an offer for the remaining $200 please accept it so that I can pay you.
Thank you so much @flaviadefaria , I just accepted the offer.
Paid, thanks for your patience!
@mananjadhav yes it should be $750. I got confused working through that. Given that this was my mistake, I'll honor that amount, which benefits you.
@neonbhai Your proposal was made on Aug 29th, and your proposal wasn't accepted until later. Given that both those dates come after 25 August, the old rates do not apply.
In contrast, I agree with @Nathan-Mulugeta that his report came before the new payments were establish βΒ in fact, if you look at the original report it was months ago βΒ he is eligible for the older amounts.
Thanks for clarifying @JmillsExpensify!
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:
Margin should be consistent
Actual Result:
Inconsistent margin above Next button on 2FA Step 2 screen
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.53.2 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
https://github.com/Expensify/App/assets/93399543/3d3e7775-2e85-4f10-9bfe-47cde3cd4680
Expensify/Expensify Issue URL: Issue reported by: @Nathan-Mulugeta Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684403210538459
View all open jobs on GitHub
Upwork Automation - Do Not Edit