Skip to content

[HOLD for payment 2023-05-16] [HOLD for payment 2023-05-09] [$1000] Placeholder padding inconsistent among different fields #17873

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
6 tasks done
kavimuru opened this issue Apr 23, 2023 · 33 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Apr 23, 2023

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 any chat and open a IOU request modal
  2. Enter any amount and go to the description page
  3. Notice the Whats it for field padding.
  4. Next, go to the home screen and click the search icon
  5. Notice the padding for Name, email or phone number field.

Expected result:

Padding of the field to be consistent across pages.

Actual result:

Padding of the field is inconsistent.

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.4
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

WhatsApp.Video.2023-04-23.at.12.16.47.PM.mp4
Recording.336.mp4

Expensify/Expensify Issue URL:
Issue reported by: @allroundexperts
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682234271392199

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0108c6b42413507adb
  • Upwork Job ID: 1650563842550210560
  • Last Price Increase: 2023-04-24
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 23, 2023
@MelvinBot
Copy link

Triggered auto assignment to @isabelastisser (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@MelvinBot
Copy link

MelvinBot commented Apr 23, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@allroundexperts
Copy link
Contributor

allroundexperts commented Apr 24, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Placeholder padding is inconsistent among different pages

What is the root cause of that problem?

The root cause of the issue is that we're supplying placeholderText prop to the text input in the SearchPage as seen here where as we're using label for placeholder text in the MoneyRequestDescriptionPage as seen here.

What changes do you think we should make in order to solve the problem?

The most simplest way to solve this is to replace this line with following:

label={this.props.translate('optionsSelector.nameEmailOrPhoneNumber')}

We can also deprecate the placeholderText and remove it from storybook as well.

I've also noticed that the spacing from top of Search page is different than other pages as well. Although unrelated to this ticket, but we can solve that as well by replacing styles.mv3 here with styles.mb3.

What alternative solutions did you explore? (Optional)

If we want to address the source of inconsistency, then we'll have to check the TextInput component itself. Inside it, we're applying a pv0 style if label is not present. This can be seen here. We can remove the !hasLabel condition from here to make the padding consistent with other pages. However, I feel like this might cause regressions. As such, I prefer the above solution more.

We can also act the other way around and make the TextInput in the MoneyRequestDescriptionPage use placeholderText instead of label. This can be seen here.

Note: Whatever solution we choose, must be applied to other components as well since the inconsistency appears there as well. If we fix this inside TextInput component itself, then all the inconsistencies will be catered for by default.

@isabelastisser isabelastisser added the External Added to denote the issue can be worked on by a contributor label Apr 24, 2023
@melvin-bot melvin-bot bot changed the title Placeholder padding inconsistent among different fields [$1000] Placeholder padding inconsistent among different fields Apr 24, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~0108c6b42413507adb

@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 24, 2023
@MelvinBot
Copy link

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

@parasharrajat
Copy link
Member

parasharrajat commented Apr 24, 2023

@shawnborton Is this a bug in your opinion? This is how it has been on all pages.

@shawnborton
Copy link
Contributor

Yeah, the search input was implemented wayyyy before we implemented the inputs that have the floating labels that move upwards when you focus or have a value.

That being said, we should make the search input match and use that same style.

@parasharrajat
Copy link
Member

Thanks for the input @shawnborton. But we are using the same TextInput for search as well.

What happens is that because we don't have a floating label on the search, we don't need the padding top. Thus we remove the padding and vertically center the text, keeping the same height of 52px.

I remember that we have gone through this earlier while updating to floating design on TextInput. We decided to vertically center the placeholder and text for no label inputs.

Now, if we apply the padding same as normal textinput, this is how it will look.
Screenshot 2023-04-25 at 13-47-26 New Expensify

Even if we apply the same padding for both top and bottom, the gap will remain same from bottom as this issue.


Please let me know what should be done here to keep the same styles.

@parasharrajat
Copy link
Member

@allroundexperts Thanks for the proposal. I will review that once we have decided the expected change.

@shawnborton
Copy link
Contributor

I think we should just use the floating label style for this input.

@parasharrajat
Copy link
Member

Ok, so we should add a label to this input.

@shawnborton
Copy link
Contributor

Yeah, just make the placeholder that's there now the label.

@parasharrajat
Copy link
Member

@allroundexperts's main proposal looks good to me. Change the placeholder to label.

cc: @PauloGasparSv

🎀 👀 🎀 C+ reviewed

@PauloGasparSv
Copy link
Contributor

Agreed so I'm assigning @allroundexperts here!

I've also noticed that the spacing from top of Search page is different than other pages as well. Although unrelated to this ticket, but we can solve that as well by replacing styles.mv3 here with styles.mb3.

Nice catch, let's do that too!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 25, 2023
@MelvinBot
Copy link

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

@allroundexperts
Copy link
Contributor

PR created #17991

@PauloGasparSv
Copy link
Contributor

It seems we caused this regression and @allroundexperts created a fix P.R. for that!

I'll review it and CP it to staging here.

@MelvinBot
Copy link

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@PauloGasparSv
Copy link
Contributor

Hey, I'm actually still checking if the deploy blocker #18154 was caused by changes made here.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels May 2, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Placeholder padding inconsistent among different fields [HOLD for payment 2023-05-09] [$1000] Placeholder padding inconsistent among different fields May 2, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 2, 2023
@MelvinBot
Copy link

Reviewing label has been removed, please complete the "BugZero Checklist".

@MelvinBot
Copy link

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.8-8 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 2023-05-09. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@MelvinBot
Copy link

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:
  • [@parasharrajat] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@parasharrajat] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@parasharrajat] Determine if we should create a regression test for this bug.
  • [@parasharrajat] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@isabelastisser] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Weekly KSv2 and removed Weekly KSv2 Daily KSv2 labels May 8, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-05-09] [$1000] Placeholder padding inconsistent among different fields [HOLD for payment 2023-05-16] [HOLD for payment 2023-05-09] [$1000] Placeholder padding inconsistent among different fields May 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.12-0 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 2023-05-16. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:
  • [@parasharrajat] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@parasharrajat] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@parasharrajat] Determine if we should create a regression test for this bug.
  • [@parasharrajat] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@isabelastisser] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@adeel0202
Copy link
Contributor

Hi. I reported the regression here which was fixed in this PR, so I think that makes me eligible for the reporting bonus 😅

@isabelastisser
Copy link
Contributor

Update, all contributors are hired in Upwork. Please accept it and I will process the payment, thanks!

@parasharrajat C+.
@allroundexperts issue reporter; accepted proposal.
@adeel0202 Regression issue reporter.

@isabelastisser
Copy link
Contributor

Hey @parasharrajat , please complete the bugzero checklist above, thanks!

#17873 (comment)

@isabelastisser
Copy link
Contributor

Update: all contributors were paid in Upwork.

@parasharrajat, please complete the checklist when you have a chance, thanks!

@parasharrajat
Copy link
Member

parasharrajat commented May 17, 2023

[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:

Not a bug but a change request.

[@parasharrajat] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: NA

[@parasharrajat] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: Not Required

[@parasharrajat] Determine if we should create a regression test for this bug. No

[@parasharrajat] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again. #17873 (comment)

@parasharrajat
Copy link
Member

Regression Test Steps

  1. Go to any chat and open an IOU request modal
  2. Enter any amount and go to the description page
  3. Notice the What's it for field. The field should have a normal TextInput style where the label floats up on focus.
  4. Go to the Search page, New Chat page, and new group page one by one.
  5. Observe that the search field should have a normal TextInput style where the label floats up on focus.
  6. Repeat the same steps for Workspace Member Invite, Request money & Split money pages.

Do you agree 👍 or 👎 ?

@isabelastisser
Copy link
Contributor

Based on the C+ recommendation, we are all set to close this issue now.

[@parasharrajat] Determine if we should create a regression test for this bug. No

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 Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants