Skip to content
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 2021-12-15] Wrong margin between pronoun form elements #5556

Closed
anthony-hull opened this issue Sep 28, 2021 · 28 comments
Closed
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2

Comments

@anthony-hull
Copy link
Contributor

anthony-hull commented Sep 28, 2021

Action Performed:

Choose self-select in the preferred pronouns section of your settings

Expected Result:

Spacing between preferred pronouns input field and the text input field below to be the same as those between First name and Last name.

Actual Result:

Spacing is less
image

Platform:

Where is this issue occurring?

  • Web - only checked web. Likely not platform specific as it's just css margin
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number:
v1.1.1-8
Reproducible in staging?:
Reproducible in production?:
yes

View all open jobs on GitHub

@anthony-hull anthony-hull added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Sep 28, 2021
@MelvinBot
Copy link

Triggered auto assignment to @lschurr (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 Sep 28, 2021
@anthony-hull
Copy link
Contributor Author

Proposal:
use styles.mt2 in:

<ExpensiTextInput
value={this.state.selfSelectedPronouns}
onChangeText={selfSelectedPronouns => this.setState({selfSelectedPronouns})}
placeholder={this.props.translate('profilePage.selfSelectYourPronoun')}
/>

as this is the value used as margins between inputs in FullNameInputRow:

<View style={[styles.flex1, styles.ml2]}>
<ExpensiTextInput
label={translate('common.lastName')}
value={lastName}
onChangeText={onChangeLastName}
placeholder={translate('profilePage.doe')}
translateX={-10}
/>
</View>

@lschurr lschurr added Engineering Improvement Item broken or needs improvement. labels Sep 28, 2021
@MelvinBot
Copy link

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

@lschurr lschurr removed their assignment Sep 28, 2021
@anthony-hull
Copy link
Contributor Author

I can see there is a translateX as well. I would have a look at if this affects the spacing vs just the margin style and make sure the spacing is the same.

@marcochavezf
Copy link
Contributor

👍🏽 Adding external label

@marcochavezf marcochavezf added the External Added to denote the issue can be worked on by a contributor label Sep 29, 2021
@MelvinBot
Copy link

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

@marcochavezf marcochavezf removed their assignment Sep 29, 2021
@PrashantMangukiya
Copy link
Contributor

Proposed Solution:

I tested that directly applying style to <ExpensiTextInput /> is not working as expected. So better solution is to wrap <ExpensiTextInput /> within a <View> and apply style to view. It is works perfect on all platform.

i.e. Current code for ProfilePage.js is as under:

{this.state.pronouns === this.props.translate('pronouns.selfSelect') && (
<ExpensiTextInput
value={this.state.selfSelectedPronouns}
onChangeText={selfSelectedPronouns => this.setState({selfSelectedPronouns})}
placeholder={this.props.translate('profilePage.selfSelectYourPronoun')}
/>
)}

We have to Wrap <ExpensiTextInput /> (line 239-243) within View as under, Also we need to apply styles.mt1 because some top margin comes from ExpensiTextInput component, so adding styles.mt1 is enough, so space looks similar to between first name and lastname.

{this.state.pronouns === this.props.translate('pronouns.selfSelect') && ( 
  <View style={styles.mt1}>
      <ExpensiTextInput
          value={this.state.selfSelectedPronouns}
          onChangeText={selfSelectedPronouns => this.setState({selfSelectedPronouns})}
          placeholder={this.props.translate('profilePage.selfSelectYourPronoun')}
      />
  </View>
)}

Below are screenshot after updates done as suggested, It is working perfect on all platform.

Web

Web

Mobile Web

Mobile Web

Desktop

Desktop

iOS

iOS

Android

Android

If my solution accepted then kindly message me so I can submit pr immediately.

@MelvinBot
Copy link

@kevinksullivan Eep! 4 days overdue now. Issues have feelings too...

@anthony-hull
Copy link
Contributor Author

This is the sort of minor tweak I would have done when implementing. I consider a proposal more of an approach rather than a full implementation else you end up doing the work before getting hired on each job.

Is the expectation on these small jobs that you implement before proposing?

@MelvinBot
Copy link

@kevinksullivan Still overdue 6 days?! Let's take care of this!

@kevinksullivan
Copy link
Contributor

Apologies for the delay. I would think the expectation is to get your proposal approved prior to implementation. Job posted here:

https://www.upwork.com/jobs/~010ec755aca3433065

@nvdnvd00
Copy link

nvdnvd00 commented Oct 9, 2021

My Proposed Solution:
NeosShot2021-10-10 at 00 10 41@2x
NeosShot2021-10-10 at 00 16 28@2x

The marginBottom of Preferred Pronouns is unnecessary, I wrap selfSelectedPronouns by a View with marginTop, so this spacing only display when input available

Web
NeosShot2021-10-10 at 00 27 22@2x

@MelvinBot MelvinBot added Weekly KSv2 and removed Overdue labels Dec 2, 2021
@MelvinBot
Copy link

Triggered auto assignment to @parasharrajat (Exported)

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 2, 2021
@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

@kevinksullivan
Copy link
Contributor

kevinksullivan commented Dec 2, 2021

Apologies @anthony-hull , looks like this was dropped over time. I reapplied labels to get reviews in motion.

@parasharrajat
Copy link
Member

Thanks, everyone for the proposals. I would go with @anthony-hull proposal for the reason that It's a minor change and UI can be adjusted to look as expected. he also reported the issue.
cc: @puneetlath

@MelvinBot
Copy link

📣 @anthony-hull You have been assigned to this job by @puneetlath!
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 Dec 2, 2021
@puneetlath
Copy link
Contributor

Sounds good to me. Thanks everyone for your proposals. I've gone ahead assigned the issue to you @anthony-hull.

@kevinksullivan can you hire @anthony-hull in Upwork please?

@kevinksullivan
Copy link
Contributor

Needed a repost. @anthony-hull i sent you an invte to the job. Here's the link

https://www.upwork.com/jobs/~014c6783114d6e9ab8

@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 8, 2021
@botify botify changed the title Wrong margin between pronoun form elements [HOLD for payment 2021-12-15] Wrong margin between pronoun form elements Dec 8, 2021
@botify
Copy link

botify commented Dec 8, 2021

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.18-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 2021-12-15. 🎊

@kevinksullivan
Copy link
Contributor

Sorry @anthony-hull , I just had to send you an offer that you have to accept. Once you accept the offer I'll get this paid!

@MelvinBot MelvinBot removed the Overdue label Dec 17, 2021
@anthony-hull
Copy link
Contributor Author

Thank you! I've accepted

@mallenexpensify
Copy link
Contributor

Happened to be trolling cruising by and wanted to get this paid before the weekend. Paid @anthony-hull $250 for the job and $250 for the reporting bonus. Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2
Projects
None yet
Development

No branches or pull requests