Skip to content

[HOLD for payment 2021-12-15] Text inputs - Further improve the text inputs design #5462

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
isagoico opened this issue Sep 23, 2021 · 40 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Design Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@isagoico
Copy link

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. Navigate to any page in the app that has a text input (or several, for example: staging.new.expensify.com/bank-account/new)

Expected Result:

Text inputs should have a proper size and alignment.

Actual Result:

Adding comment from @shawnborton here

  • All inputs (text/selects) have too much horizontal padding by just 1px.
  • The position of the small gray label is slightly too high when the input has a value
  • Select inputs are too tall, they should be 52px tall but they are 54px which makes them taller than other inputs

Workaround:

None needed, visual issue.

Platform:

Where is this issue occurring?

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

Version Number: 1.1.1-0

Reproducible in staging?: yes
**Reproducible in production?:**yes

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

image

Expensify/Expensify Issue URL:

Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1632330334042400

View all open jobs on GitHub

@MelvinBot
Copy link

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

@MelvinBot
Copy link

Triggered auto assignment to @michelle-thompson (Design), see these Stack Overflow questions for more details.

@parasharrajat
Copy link
Member

  • Select the input to have two outer and inner borders and I disabled the Inner one but the outer border is causing the extra height. So we should enable inner and disable outer.
  • Input has this box model
    Screenshot 2021-09-24 00:46:01
    This seems to be correct except the border is 0.8px.

@shawnborton
Copy link
Contributor

So I think this is almost like a box-sizing mixup - 12px for horizontal padding is technically correct, but the border should be included in that. What should be happening is that you have a 1px border on the left edge, and then 11px of padding after that, and then the content. I agree, it is strange that the border is .8px and not 1px.

Figma screenshot for reference:
image

@parasharrajat
Copy link
Member

parasharrajat commented Sep 24, 2021

I don't think Box-model includes a border in padding on the Web, we are already using box-sizing:border-box. Thus we can set the padding to 11px on the x-axis.

What you said would be box-sizing:padding-box but that is not supported in any browser https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing#browser_compatibility

@shawnborton
Copy link
Contributor

Ah yeah, I think what I am saying is we just need to reduce the hard-coded horizontal padding value by 1px on each side 😄

@Dal-Papa Dal-Papa added the External Added to denote the issue can be worked on by a contributor label Sep 27, 2021
@MelvinBot
Copy link

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

@Dal-Papa
Copy link

Throwing the External label for contributors to grab.

@MelvinBot MelvinBot removed the Overdue label Sep 27, 2021
@parasharrajat
Copy link
Member

Proposal (based on the discussion above).

  1. Select the input to have two outer and inner borders and I disabled the Inner one but the outer border is causing the extra height. So we should enable inner and disable outer.

  2. I will reduce the horizontal padding to 11px so that it is 1px less on both sides.

  3. Doing point 1, should correctly place the labels as well. Otherwise, I can adjust that in the PR review.

@MitchExpensify
Copy link
Contributor

Upwork job

@Rehan-05
Copy link

Problem Statement: -

All inputs (text/selects) have too much horizontal padding by just 1px.
The position of the small gray label is slightly too high when the input has a value
Select inputs are too tall, they should be 52px tall but they are 54px which makes them taller than other inputs.

I have done deeply look at your issue. So, it can be solved by using react-native CSS properties in the following way.
Proposed Solution: -

  • We should minimize the Top padding then it will be fixed. And another thing that I will try is by doing just padding-Left it can also be a good solution. By disable the border, it will not be fixed. Error in the padding and the border height is not too much that can be a problem here.
  • Grey label can also be fixed by minimizing the horizontal padding.
  • The third and final issue is already proposed I can do it by reviewing that.

Thanks

@MelvinBot MelvinBot added Weekly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors and removed Daily KSv2 labels Oct 1, 2021
@MelvinBot
Copy link

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

@kadiealexander
Copy link
Contributor

Please refer to this post for updated information on the n6 hold, we've raised the bonus to $250 for all issues where a PR is created before the N6 hold is lifted.

@Rehan-05
Copy link

Rehan-05 commented Oct 8, 2021 via email

@kadiealexander
Copy link
Contributor

Hey Rehan! Happy to! Could you please request this in a quick email to [email protected] so I can grab your email address and get you added? 😊

@MitchExpensify
Copy link
Contributor

MitchExpensify commented Nov 3, 2021

Hey @parasharrajat ! If you could accept the invite to the new Upwork posting that would be great, then I'll issue payment! https://www.upwork.com/jobs/~01bf778387677c2274

The OG post closed because of the n6 hold

@parasharrajat
Copy link
Member

I will accept the job but I am still working on a follow up PR so let's just not release the payment for now and until that PR is deployed we can hold the payment.

@MitchExpensify
Copy link
Contributor

Ok thanks for the heads up! Offer sent

@mallenexpensify mallenexpensify changed the title [HOLD for payment 2021-10-30] Text inputs - Further improve the text inputs design Text inputs - Further improve the text inputs design Nov 5, 2021
@mallenexpensify
Copy link
Contributor

Removed [HOLD for payment 2021-10-30] from the title

@MelvinBot
Copy link

This issue has not been updated in over 15 days. @pecanoro, @parasharrajat, @MitchExpensify, @michelle-thompson 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 MelvinBot added the Monthly KSv2 label Nov 29, 2021
@parasharrajat
Copy link
Member

In progress... Not monthly

@mallenexpensify mallenexpensify added Weekly KSv2 and removed Monthly KSv2 labels Dec 2, 2021
@botify botify added Weekly KSv2 and removed Weekly KSv2 labels 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. 🎊

@botify botify changed the title Text inputs - Further improve the text inputs design [HOLD for payment 2021-12-15] Text inputs - Further improve the text inputs design Dec 8, 2021
@parasharrajat
Copy link
Member

Requesting price increase for this job. Originally

Why
  1. Scope of the issue increased drastically, from Actual results and proposal.
  2. I had to create two PR's to cover the changes.
  3. Eventually plan changed from adjusting the input styles to refactoring them. I had to refactor(redesign) the existing BaseExpensiInput(which was not part of this issue) to fix the root cause which was not mentioned in the issue but will save us further issues like this one.
  4. I had to refactor the uses of ExpensiInput throughout the app. Thus testing them all for regressions. It could have been a separate issue and PR. but that did not make sense without this PR so I decided to do it in one.

Based on the above and the Actual time spent is way more than anticipated, I request the price increase for the job. The fact that the payment of one-liner issues is greater than this does not justify it.
cc: @MitchExpensify

@shawnborton
Copy link
Contributor

I think that is a fair assessment Rajat, I agree with you.

@mallenexpensify
Copy link
Contributor

@pecanoro can you review this internal SO to determine the price increase?

@pecanoro
Copy link
Contributor

@parasharrajat what do you think it's a fair price?

@parasharrajat
Copy link
Member

@pecanoro Sorry, which price?

@pecanoro
Copy link
Contributor

Oh sorry, maybe I didn't explain myself properly haha How much would you like it increased?

@parasharrajat
Copy link
Member

Well, that would be hard for me to tell. I can't arbitrarily tell a value. What does the internal SO say? I would say at least $500.

@pecanoro
Copy link
Contributor

$500 sounds reasonable. I don't want to arbitrarily increase prices without your input, you are more aware of the time you invested in the issue than me and we want it to be fair.

@parasharrajat
Copy link
Member

Ok. $500 is fine. Anyways, there is a hold bonus so that should cover it. Thanks, @pecanoro.

@mallenexpensify
Copy link
Contributor

@parasharrajat so it should be

  • $250 original issue
  • $250 n6 hold bonus
  • $500 scope increase.
  • Total - $1000

is that accurate? cc @MitchExpensify since you're CM

@parasharrajat
Copy link
Member

Looks good to me. Thanks.

@mallenexpensify
Copy link
Contributor

mallenexpensify commented Dec 14, 2021

Paid (cuz I was already in this issue and it's due tomorrow). Thanks @parasharrajat

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 Design Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests