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

Removes onTransitionEnd callback #5965

Merged
merged 3 commits into from
Oct 21, 2021

Conversation

AlfredoAlc
Copy link
Contributor

@AlfredoAlc AlfredoAlc commented Oct 20, 2021

Details

Removes onTransitionEnd callback where the focus is set to TextInput.

Fixed Issues

$ #5403

Tests

  1. Sign in to New Expensify with any account.
  2. Navigate to Settings.
  3. Click on Payments.
  4. If no Paypal account is added, add one.
  5. Click on Paypal account.
  6. Verify that the name is not autofocused.

QA Steps

  1. Sign in to New Expensify with any account.
  2. Navigate to Settings.
  3. Click on Payments.
  4. If no Paypal account is added, add one.
  5. Click on Paypal account.
  6. Verify that the name is not autofocused.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

web.mov

Desktop

Desktop.mov

iOS

iOS.mp4

Android

Android.mov

@AlfredoAlc AlfredoAlc requested a review from a team as a code owner October 20, 2021 21:15
@MelvinBot MelvinBot requested review from Luke9389 and removed request for a team October 20, 2021 21:15
@Luke9389
Copy link
Contributor

@AlfredoAlc this is a small thing, but would you change the steps in the description to indicate what we want to see? Also it's nice to include a link to the site in step one for our QA testers. For example:

  1. Sign in to new.expensify.com with any account
  2. Navigate to Settings.
  3. Click on Payments.
  4. If no Paypal account is added, add one.
  5. Click on Paypal account.
  6. Verify that the name is not autofocused.

Copy link
Contributor

@Luke9389 Luke9389 left a comment

Choose a reason for hiding this comment

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

It doesn't look like the paypalUsernameInputRef is used anywhere else, so you can take it out of the constructor and the ExpensiTextInput.

@Luke9389
Copy link
Contributor

Went to go see what's going on with the iOS test, looks like we have some versioning issues.

@Luke9389
Copy link
Contributor

Not gonna merge this just yet. There's a discussion about the iOS tests here if you'd like to follow along: https://expensify.slack.com/archives/C01GTK53T8Q/p1634754414008400

Copy link
Member

@parasharrajat parasharrajat left a comment

Choose a reason for hiding this comment

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

This PR is going against the issue and the proposal. It should place the cursor at the end instead of removing the autofocus.

cc: @Luke9389

@AlfredoAlc
Copy link
Contributor Author

@parasharrajat It was later discussed that it would be better to remove the autofocus.
#5403 (comment)

@parasharrajat
Copy link
Member

parasharrajat commented Oct 21, 2021

Thanks. Didn't see the other proposal.

@Luke9389
Copy link
Contributor

I've got a PR up to fix the iOS tests. Once that's merged you should be able to pull master and we can get this squared away.

@AlfredoAlc
Copy link
Contributor Author

@Luke9389 Thanks for keeping me updated!

@Luke9389
Copy link
Contributor

Alright, @AlfredoAlc, you should be able to merge master and the tests will work.

@Luke9389
Copy link
Contributor

@AlfredoAlc just want to double-check (I ask all my contributors this). Have you tested this since the last code change you made?

Copy link
Member

@parasharrajat parasharrajat left a comment

Choose a reason for hiding this comment

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

LGTM based on new proposal.

@AlfredoAlc
Copy link
Contributor Author

@Luke9389 Yes, I tested on all platforms.

@Luke9389 Luke9389 merged commit b7e9054 into Expensify:main Oct 21, 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.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @Luke9389 in version: 1.1.8-10 🚀

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

@OSBotify
Copy link
Contributor

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

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

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.

None yet

4 participants