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

Fix : Pressing Tab button in AddressSearch inputs #6345

Merged
merged 5 commits into from
Nov 19, 2021

Conversation

developvsn
Copy link
Contributor

@developvsn developvsn commented Nov 17, 2021

Details

Fixed Issues

$ 6235

Tests | QA Steps

1.Navigate to Company Information window.
2.Type an address that yield results in address search input.
3.Press "Tab" key or click to other input.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

web.mov

Desktop

desktop.mov

iOS

Android

Mobile Web

@developvsn developvsn requested a review from a team as a code owner November 17, 2021 09:33
@MelvinBot MelvinBot requested review from NikkiWines and removed request for a team November 17, 2021 09:33
@developvsn
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@github-actions
Copy link
Contributor

github-actions bot commented Nov 17, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

Copy link
Contributor

@NikkiWines NikkiWines left a comment

Choose a reason for hiding this comment

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

Needs some minor adjustments, mainly stylistic.

src/components/AddressSearch.js Outdated Show resolved Hide resolved
src/components/AddressSearch.js Outdated Show resolved Hide resolved
src/components/AddressSearch.js Outdated Show resolved Hide resolved
src/components/AddressSearch.js Outdated Show resolved Hide resolved
src/components/AddressSearch.js Outdated Show resolved Hide resolved
src/components/AddressSearch.js Outdated Show resolved Hide resolved
src/components/AddressSearch.js Outdated Show resolved Hide resolved
src/components/AddressSearch.js Outdated Show resolved Hide resolved
src/components/AddressSearch.js Show resolved Hide resolved
@@ -82,14 +83,30 @@ const AddressSearch = (props) => {
}
};

const checkPressingTab = (event) => {
if (event.key !== 'Tab') {
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, I don't think this needs to be it's own variable. Why not do the following?

onKeyPress: (event) => {
    if (event.key !== 'Tab' || isSelected) {
        return;
    }
    googlePlacesRef.current.setAddressText('');
},

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We tried similar way, but with "&&" operator instead "||", which led to the fact that only the last entered character would fit in the text field. Thank you.

Copy link
Contributor

@NikkiWines NikkiWines left a comment

Choose a reason for hiding this comment

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

👍

@NikkiWines NikkiWines merged commit 8293550 into Expensify:main Nov 19, 2021
@OSBotify
Copy link
Contributor

@developvsn, Great job getting your first Expensify/App pull request over the finish line! 🎉

I know there's a lot of information in our contributing guidelines, so here are some points to take note of 📝:

  1. Now that your first PR has been merged, you can be hired for another issue. Once you've completed a few issues, you may be eligible to work on more than one job at a time.
  2. Once your PR is deployed to our staging servers, it will undergo quality assurance (QA) testing. If we find that it doesn't work as expected or causes a regression, you'll be responsible for fixing it. Typically, we would revert this PR and give you another chance to create a similar PR without causing a regression.
  3. Once your PR is deployed to production, we start a 7-day timer ⏰. After it has been on production for 7 days without causing any regressions, then we pay out the Upwork job. 💰

So it might take a while before you're paid for your work, but we typically post multiple new jobs every day, so there's plenty of opportunity. I hope you've had a positive experience contributing to this repo! 😊

@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.

@parasharrajat
Copy link
Member

@NikkiWines These commits are not signed.

@NikkiWines
Copy link
Contributor

Nice catch @parasharrajat, I completely missed that (I've become too reliant on our automated checks in other repos 😅)

Let's wait on consensus from Cole in this Slack thread, but I think Brandon's suggestion to revert + re-merge with signed commits is a good idea.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @NikkiWines in version: 1.1.15-18 🚀

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

@developvsn
Copy link
Contributor Author

Nice catch @parasharrajat, I completely missed that (I've become too reliant on our automated checks in other repos 😅)

Let's wait on consensus from Cole in this Slack thread, but I think Brandon's suggestion to revert + re-merge with signed commits is a good idea.

Nikki can you help with slack, I think we might lose some up-to-date information. We sent an invite request to contributors' email a month ago already.

@NikkiWines
Copy link
Contributor

Ah, if you haven't been invited yet can you resend the email? It may have somehow gotten lost, someone on our contributor-management team will add you to slack.

Going to push up a revert of this and then revert the revert so that the same changes are implemented but the commits are signed.

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @roryabraham in version: 1.1.16-10 🚀

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
4 participants