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

Create custom TextInput #3414

Merged
merged 57 commits into from
Aug 9, 2021
Merged

Create custom TextInput #3414

merged 57 commits into from
Aug 9, 2021

Conversation

kakajann
Copy link
Contributor

@kakajann kakajann commented Jun 8, 2021

Details

Fixed Issues

Fixes #3108

Tests

Make sure form inputs match specs & screenshots below

QA Steps

Same as above

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Specific Specs

  • Text size should be 13pt for field label and 15pt for text
  • Keeping our existing border style (blue when focused/active, red when error/active) and button style (green for primary actions)
  • Field inside the box should be white (both in a selected field and unselected field)
  • Field label text should be grey (both in a selected field and unselected field)
  • These field changes need to be made to all fields on the mobile app
  • Input/select height should be 52
  • The horizontal padding should be 12
  • The vertical padding should be 8, though the label/text should be vertically centered

Screenshots

Web

web.mov

Mobile Web

web.mobile.mov

Desktop

desktop.app.mov

iOS

ios.mov

@kakajann kakajann requested a review from a team as a code owner June 8, 2021 03:11
@MelvinBot MelvinBot requested review from MariaHCD and removed request for a team June 8, 2021 03:11
@MariaHCD MariaHCD removed their request for review June 10, 2021 12:27
@MariaHCD
Copy link
Contributor

MariaHCD commented Jun 10, 2021

Un-assigning myself as this isn't ready for review yet. Feel free to assign pullerbear again once ready for reviews!

@kakajann kakajann changed the title create custom textinput [WIP] Create custom TextInput Jun 20, 2021
@kakajann
Copy link
Contributor Author

kakajann commented Jul 3, 2021

@shawnborton Could you take a look at this PR?

@kakajann kakajann changed the title [WIP] Create custom TextInput Create custom TextInput Jul 5, 2021
@shawnborton
Copy link
Contributor

Can do, will take a pass at this today!

@shawnborton
Copy link
Contributor

Some weird behavior with Chrome and autofill:
image

Not entirely sure how to fix or diagnose that.

@shawnborton
Copy link
Contributor

For select/picker menus, can we make it so that you can tap anywhere on the picker to launch the menu? Currently it looks like it only works if you tap on the value text, but if you tap the label or anything else, it doesn't launch.

Beamanator
Beamanator previously approved these changes Aug 5, 2021
Copy link
Contributor

@Beamanator Beamanator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested again on the devices that were giving us trouble before, and everything seems great! Time to merge :D

@Beamanator
Copy link
Contributor

@roryabraham back to you (since you requested changes recently) - also thanks so much for the help reviewing this beast of a PR!

@kakajann
Copy link
Contributor Author

kakajann commented Aug 7, 2021

@roryabraham requesting a review

Copy link
Contributor

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we took this change a bit too far. Can we undo the last commit, and then just make the simple change of getting rid of styles.picker.inputAndroid and styles.picker.inputIOS, and replacing them with styles.picker.inputNative.

inputAndroid: styles.expensiPicker(disabled).inputNative,
});

pickerStyles.propTypes = propTypes;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a style, not a react component. So it doesn't make sense to include propTypes, defaultProps, or displayName.

@roryabraham
Copy link
Contributor

Approved, we can merge as soon as iOS E2E tests pass.

@kakajann
Copy link
Contributor Author

kakajann commented Aug 9, 2021

Approved, we can merge as soon as iOS E2E tests pass.

Thank you. I was waiting for e2e tests to request a review again)

@roryabraham roryabraham merged commit 629078d into Expensify:main Aug 9, 2021
@OSBotify
Copy link
Contributor

OSBotify commented Aug 9, 2021

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @roryabraham in version: 1.0.83-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 failure ❌
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@Jag96
Copy link
Contributor

Jag96 commented Aug 12, 2021

Left a note on the issue linked above but also tagging here, this PR is causing a deploy blocker: #4597 (comment). @kakajann please have a look

@botify
Copy link

botify commented Aug 17, 2021

This has been deployed to production and is now subject to a 7-day regression period.
If no regressions arise, payment will be issued on 2021-08-24. 🎊

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @isagoico in version: 1.0.85-9 🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@mananjadhav
Copy link
Collaborator

I am tagging this PR to highlight an issue fixed here. All conditions in ternary expressions or left-hand operands on conditional renders, should be boolean. This PR is one of the PRs that uses conditional render with string operands, hence I am tagging it here for the contributors to check.

We've also updated the item in the checklist with this PR to avoid this issue in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Hold of payment Aug 17th] Update form styles on Expensify.cash mobile app
10 participants