App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-12-15] Wrong margin between pronoun form elements

Open anthony-hull opened this issue 5 years ago • 28 comments

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 avatar Sep 28 '21 13:09 anthony-hull

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

MelvinBot avatar Sep 28 '21 13:09 MelvinBot

Proposal: use styles.mt2 in: https://github.com/Expensify/App/blob/b37e87ecca6fc7e2f20e1b7770df16dbf6eca3cb/src/pages/settings/Profile/ProfilePage.js#L239-L243

as this is the value used as margins between inputs in FullNameInputRow: https://github.com/Expensify/App/blob/b37e87ecca6fc7e2f20e1b7770df16dbf6eca3cb/src/components/FullNameInputRow.js#L54-L62

anthony-hull avatar Sep 28 '21 14:09 anthony-hull

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

MelvinBot avatar Sep 28 '21 15:09 MelvinBot

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.

anthony-hull avatar Sep 28 '21 15:09 anthony-hull

👍🏽 Adding external label

marcochavezf avatar Sep 29 '21 15:09 marcochavezf

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

MelvinBot avatar Sep 29 '21 15:09 MelvinBot

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: https://github.com/Expensify/App/blob/f9f0b3f908483353f1908f678a08136d5e5bda44/src/pages/settings/Profile/ProfilePage.js#L238-L244

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.

PrashantMangukiya avatar Oct 04 '21 18:10 PrashantMangukiya

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

MelvinBot avatar Oct 04 '21 19:10 MelvinBot

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?

anthony-hull avatar Oct 06 '21 09:10 anthony-hull

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

MelvinBot avatar Oct 06 '21 19:10 MelvinBot

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

kevinksullivan avatar Oct 07 '21 19:10 kevinksullivan

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

nvdnvd00 avatar Oct 09 '21 17:10 nvdnvd00

Looking for engineering review. Issue s reproducible and job is posted.

kevinksullivan avatar Oct 16 '21 15:10 kevinksullivan

bump!

anthony-hull avatar Oct 27 '21 15:10 anthony-hull

This issue has not been updated in over 15 days. eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

MelvinBot avatar Nov 08 '21 19:11 MelvinBot

@kevinksullivan how does an engineer get assigned? is it not automatic? there are no assignees

anthony-hull avatar Nov 29 '21 20:11 anthony-hull

Triggered auto assignment to @parasharrajat (Exported)

MelvinBot avatar Dec 02 '21 00:12 MelvinBot

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

MelvinBot avatar Dec 02 '21 00:12 MelvinBot

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

MelvinBot avatar Dec 02 '21 00:12 MelvinBot

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

kevinksullivan avatar Dec 02 '21 00:12 kevinksullivan