Skip to content

The margin between ToS checkbox and its error message is way more than the other fields - reported by @adeel0202 #7838

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

Closed
mvtglobally opened this issue Feb 20, 2022 · 35 comments
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2

Comments

@mvtglobally
Copy link

mvtglobally commented Feb 20, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Go to Settings > Payments > Add Payment method > Debit card
  2. Press Save without filling the form

Expected Result:

The ToS checkbox and its error message should have the same margin as other fields and their error messages

Actual Result:

The margin between ToS checkbox and its error message is way more than the other fields and their error messages

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.39-1
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Simulator Screen Shot - iPhone 13 - 2022-02-07 at 12 58 21

Expensify/Expensify Issue URL:
Issue reported by: @adeel0202
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1644254987542729

View all open jobs on GitHub

view this job

@mvtglobally mvtglobally added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Feb 20, 2022
@MelvinBot
Copy link

Triggered auto assignment to @CortneyOfstad (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Feb 20, 2022
@adeel0202
Copy link
Contributor

Proposal (If considered external)

We can remove the margin below the checkbox by removing styles.mb4 on line 307

style={[styles.mt4, styles.mb4]}

Result
Simulator Screen Shot - iPhone 13 - 2022-02-14 at 16 24 03

@CortneyOfstad
Copy link
Contributor

Sorry, was out last week sick — updating now!

@CortneyOfstad CortneyOfstad removed their assignment Feb 21, 2022
@CortneyOfstad CortneyOfstad added Engineering Improvement Item broken or needs improvement. labels Feb 21, 2022
@MelvinBot
Copy link

Triggered auto assignment to @PauloGasparSv (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@PauloGasparSv PauloGasparSv added the External Added to denote the issue can be worked on by a contributor label Feb 22, 2022
@MelvinBot
Copy link

Triggered auto assignment to @jliexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@PauloGasparSv PauloGasparSv added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Feb 22, 2022
@MelvinBot
Copy link

Triggered auto assignment to @jboniface (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@jboniface
Copy link

job post is here

@botify botify removed the Daily KSv2 label Feb 22, 2022
@MelvinBot MelvinBot added the Weekly KSv2 label Feb 22, 2022
@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported)

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 22, 2022
@MelvinBot
Copy link

Triggered auto assignment to @luacmartins (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@luacmartins
Copy link
Contributor

Thanks for the review @parasharrajat! Cool, just waiting on confirmation from the design team before we move on.

@adeel0202
Copy link
Contributor

There are total 11 usages of CheckboxWithLabel and out of those, 6 usages have marginBottom added. If we are to remove marginBottom from all those 6 usages then these pages will be modified: TermsStep, ACHContractStep, BankAccountStep & AddDebitCardPage.

@shawnborton
Copy link
Contributor

From a visual design perspective, I agree that the error message should look like this.

@luacmartins
Copy link
Contributor

Thanks @shawnborton! @adeel0202 let's continue by removing margingBottom from any CheckboxWithLabel.

@MelvinBot
Copy link

📣 @adeel0202 You have been assigned to this job by @luacmartins!
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 📖

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 28, 2022
@adeel0202
Copy link
Contributor

Thanks. I have applied on Upwork.

@adeel0202
Copy link
Contributor

@luacmartins, when I select Wells Fargo bank as you mentioned here, I'm redirected to Well Fargo's web login page and when I enter the test credentials there, I get invalid credentials error 😐
I need to access TermsStep and ACHContractStep pages as I'm going to make changes in these files too.

@luacmartins
Copy link
Contributor

Weird. Are you doing that in dev? I just tried it and it seems to work fine (check video below).

web.mov

@adeel0202
Copy link
Contributor

adeel0202 commented Mar 1, 2022

Yes, I'm on dev. Please check the video @luacmartins

dev.mp4

@luacmartins
Copy link
Contributor

Can you navigate straight to the step on web? e.g. /bank-account/contract?

@adeel0202
Copy link
Contributor

Yes @luacmartins, just checked that I can navigate to that step directly.

Screenshot 2022-03-02 at 6 05 17 PM

@adeel0202
Copy link
Contributor

@parasharrajat, just checked that we don't need to make any changes in ACHContractStep. There is bottom margin in the top two checkboxes of that component and those are necessary margins so can't remove those.

Screenshot 2022-03-04 at 1 04 10 PM

Also, can you please let me the know the url to access TermsStep directly?
cc: @luacmartins

@parasharrajat
Copy link
Member

try any of these keyboards in the URL based on the step you are looking.

        case 'new':
                return CONST.BANK_ACCOUNT.STEP.BANK_ACCOUNT;
            case 'company':
                return CONST.BANK_ACCOUNT.STEP.COMPANY;
            case 'personal-information':
                return CONST.BANK_ACCOUNT.STEP.REQUESTOR;
            case 'contract':
                return CONST.BANK_ACCOUNT.STEP.ACH_CONTRACT;
            case 'validate':
                return CONST.BANK_ACCOUNT.STEP.VALIDATION;
            case 'enable':
                return CONST.BANK_ACCOUNT.STEP.ENABLE;
            default:
                return '';
        }

@adeel0202
Copy link
Contributor

adeel0202 commented Mar 4, 2022

Thanks @parasharrajat, I have already tried all those in the URL but no luck. I have also managed to add a test bank account on staging (thanks to this slack thread), went through all the steps but still couldn't access TermsStep component 😐

@luacmartins
Copy link
Contributor

I'd hard-code currentStep here to show termsStep for testing purposes and navigate to /settings/payments/enable-payments. You can find these routes in linkingConfig.js.

The other alternative is to go through the Onfido flow, which might be problematic.

@adeel0202
Copy link
Contributor

I have raised the PR, but just to inform, I'm still not hired on Upwork for this job 😄

@luacmartins luacmartins added the Reviewing Has a PR in review label Mar 7, 2022
@adeel0202
Copy link
Contributor

The PR was deployed on production 8 days ago so this should be paid by now but I'm not even hired on Upwork yet. What is going on here? 👀😄
cc: @luacmartins

@luacmartins
Copy link
Contributor

Pinging @jboniface for payment.

@jboniface
Copy link

@adeel0202 sorry, it looks like the original post expired. can you apply here?

@adeel0202
Copy link
Contributor

Thanks @jboniface, I have applied on Upwork.

@jboniface
Copy link

paid with bonus

@parasharrajat
Copy link
Member

@jboniface I have also applied for C+.

@jboniface
Copy link

yeah, i saw, i've been trying to pay it but upwork is erroring for some reason @parasharrajat

@jboniface
Copy link

ok, should be all set now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests