Skip to content

Multiline for ExpensiTextInput #4649

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

Merged
merged 6 commits into from
Aug 24, 2021
Merged

Multiline for ExpensiTextInput #4649

merged 6 commits into from
Aug 24, 2021

Conversation

kakajann
Copy link
Contributor

@kakajann kakajann commented Aug 13, 2021

Details

Fixed Issues

Fixes #4625

Tests

QA Steps

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Screen Shot 2021-08-13 at 10 50 56 PM

Mobile Web

Screen Shot 2021-08-13 at 11 17 37 PM

Desktop

iOS

Screen Shot 2021-08-13 at 11 13 19 PM

Android

Screenshot_20210813-224941_New Expensify

@kakajann kakajann requested a review from a team as a code owner August 13, 2021 18:21
@MelvinBot MelvinBot requested review from AndrewGable and removed request for a team August 13, 2021 18:21
@kakajann kakajann changed the title remove ExpensiTextInput's height if there's multiline prop Multiline for ExpensiTextInput Aug 13, 2021
@parasharrajat
Copy link
Member

Looks good. One thing I noticed is that the Copy for email Input is wrong. It accepts multiple comma-separated emails or phone but the text says Invite a colleague to your workspace?

@kakajann
Copy link
Contributor Author

I didn't modify anything related email input. This PR's only concern is making new input work with multiline prop.

@parasharrajat
Copy link
Member

I didn't modify anything related to email input.

I know. I was just asking maybe a correction can be made, as it's just text. Anyways, it's fine.

@kakajann
Copy link
Contributor Author

@parasharrajat oh, sorry, I misunderstood 😅

I don't mind changing the text as collaborators suggestion

@shawnborton
Copy link
Contributor

shawnborton commented Aug 16, 2021

At first glance, it seems like the gap between the textarea label and the value is too large. Here is a regular text input for reference:
image

And from what I see above:
image

But maybe that's just my eyes playing tricks on me?

Otherwise can you confirm that the value of the color matches the same text color as text inputs? It appears to be black in the screenshots:

@kakajann
Copy link
Contributor Author

  • Input color was black, changed to themeColors.text (#0b1b34)
  • There was a small extra gap between label and input (and I guess it only appears on iOs, maybe because it doesn't support textAlignVertical="top"), so I solved using spacing.pv0.

Also iOs doesn't support numberOfLines prop and on iOs, input height will be as high as its content.

Here is the result

Screen Shot 2021-08-17 at 10 39 15 AM

@shawnborton
Copy link
Contributor

shawnborton commented Aug 23, 2021

The default height of the textarea feels a bit too tall IMO:
image

Could we make that shorter? Maybe to just 4 or 5 lines or something like that.

@kakajann
Copy link
Contributor Author

Sure, I'll update in an hour

@AndrewGable
Copy link
Contributor

@shawnborton - Anything else you'd like to see here?

@@ -879,7 +879,7 @@
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = 368M544MTT;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
INFOPLIST_FILE = "NewExpensify/Info.plist";
INFOPLIST_FILE = NewExpensify/Info.plist;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this required or related to your change?

ios/Podfile.lock Outdated
@@ -877,7 +877,7 @@ SPEC CHECKSUMS:
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
EXHaptics: 337c160c148baa6f0e7166249f368965906e346b
FBLazyVector: 7b423f9e248eae65987838148c36eec1dbfe0b53
FBReactNativeSpec: 884d4cc2b011759361797a4035c47e10099393b5
FBReactNativeSpec: c783a75db87c963c60afcd461fc38358805fe5ba
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this required or related to your change?

@kakajann
Copy link
Contributor Author

@AndrewGable code changes in ios folder is not required neither related. I think Pod automatically updated. Do u want me to revert it?

@AndrewGable
Copy link
Contributor

Can you confirm these changes happen on main? If so, yes we can commit them. Otherwise let's not include them in the branch.

@shawnborton
Copy link
Contributor

@kakajann mind updating your screenshots so I can see if my requested changes were applied? Thanks!

@kakajann
Copy link
Contributor Author

Latest change: 5 lines
Screen Shot 2021-08-25 at 12 19 10 AM

@shawnborton
Copy link
Contributor

Looks good, thanks!

@AndrewGable AndrewGable merged commit 26c8470 into Expensify:main Aug 24, 2021
@OSBotify
Copy link
Contributor

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

@isagoico
Copy link

@kakajann Any QA steps needed for this PR?

@isagoico
Copy link

This was tested with the following QA steps:

  1. Navigate to the workspace invite page
  2. Verify the text box has a bigger size (5 lines) and it's comfortable to type and edit for the user

And it was a pass 🎉 @kakajann please remember to add QA steps for future PRs 🙇

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @roryabraham in version: 1.0.88-2 🚀

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

@botify
Copy link

botify commented Sep 1, 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-09-08. 🎊

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

Successfully merging this pull request may close these issues.

[Hold for payment Sept 8th] Workspace invite - "Add personal message" box in workspace looks very small
7 participants