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 2022-03-02] Implement display character limit counter and hint on TextInput #7522

Closed
luacmartins opened this issue Feb 2, 2022 · 19 comments
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 Weekly KSv2

Comments

@luacmartins
Copy link
Contributor

luacmartins commented Feb 2, 2022

We should implement a character counter and hint to TextInput:

  1. Add a maxLength={Int} prop. Defaults to null. Make sure this is passed down to RN's TextInput component.
  2. Add a hint="string" prop. Defaults to an empty string.
  3. Display the character counter and hint under the input.

Notes:

  1. Inline errors should always replace the hints.
  2. Hint copy should be padded on the left to align with input value and label.
  3. Character counter should have the same padding on the left.

Screen Shot 2022-02-02 at 10 37 38 AM

@luacmartins luacmartins added External Added to denote the issue can be worked on by a contributor Engineering Daily KSv2 labels Feb 2, 2022
@MelvinBot
Copy link

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

@luacmartins
Copy link
Contributor Author

Actually, we might use Applause to do this audit for us. Removing the External label.

@luacmartins luacmartins removed the External Added to denote the issue can be worked on by a contributor label Feb 2, 2022
@luacmartins
Copy link
Contributor Author

luacmartins commented Feb 2, 2022

Oops, this one is still external! My bad! Reassigning original contributor manager and re-adding the External label.

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

Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new.

@mateusbra
Copy link
Contributor

mateusbra commented Feb 2, 2022

@luacmartins currently we have inlineErrors formatted this way:
image
You think we should also change the behavior of inlineError styles to fit the provided images you gave us?(padding left)
The provided images has more padding left than the currently we use

@luacmartins
Copy link
Contributor Author

@mateusbra inline errors aligning with labels and input value is the design going forward.

@puneetlath
Copy link
Contributor

@luacmartins just to clarify, we just want a contributor to go ahead and implement these changes to our TextInput component right? I'm not quite sure I follow how Applause would be involved here.

@luacmartins
Copy link
Contributor Author

Yes, correct. That comment was meant for another issue, sorry about the confusion!

@puneetlath
Copy link
Contributor

Cool, no worries!

@puneetlath
Copy link
Contributor

Since @parasharrajat is doing a bunch of work on consolidating our various TextInput components, it might make sense for him to include this. That seems like the least risky approach to me. @parasharrajat what do you think?

@parasharrajat
Copy link
Member

parasharrajat commented Feb 3, 2022

Yeah, I can take it. And move this milestone to the top of the list so that it can be done early. I don't want to have conflicts at best.

@puneetlath
Copy link
Contributor

Ok sounds good. I'll add it as a milestone to our existing Upwork job for the TextInput refactor.

@puneetlath puneetlath added Weekly KSv2 Exported and removed Daily KSv2 labels Feb 3, 2022
@botify botify removed the Weekly KSv2 label Feb 3, 2022
@MelvinBot MelvinBot added the Weekly KSv2 label Feb 3, 2022
@MelvinBot
Copy link

Current assignee @parasharrajat is eligible for the Exported assigner, not assigning anyone new.

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

Current assignee @puneetlath is eligible for the Exported assigner, not assigning anyone new.

@puneetlath puneetlath removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 3, 2022
@luacmartins
Copy link
Contributor Author

Not overdue! PR was merged, but not deployed yet.

1 similar comment
@puneetlath
Copy link
Contributor

Not overdue! PR was merged, but not deployed yet.

@MelvinBot MelvinBot removed the Overdue label Feb 14, 2022
@puneetlath
Copy link
Contributor

Awaiting production deploy.

@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 23, 2022
@botify botify changed the title Implement display character limit counter and hint on TextInput [HOLD for payment 2022-03-02] Implement display character limit counter and hint on TextInput Feb 23, 2022
@botify
Copy link

botify commented Feb 23, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.39-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 2022-03-02. 🎊

@puneetlath
Copy link
Contributor

Paid!

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 Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants