-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-05-03] [Regression] [$250] Web - Personal Details - Using spaces and a letter then removing it still shows the small dropdown box with an empty record #17664
Comments
Triggered auto assignment to @maddylewis ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01aa2953586b4b6c29 |
Current assignee @maddylewis is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
Triggered auto assignment to @youssef-lr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web Personal Details - Using spaces and a letter then removing it still shows the small dropdown box with an empty record. What is the root cause of that problem?When we type something within address field at that time it is using App/src/components/AddressSearch.js Lines 246 to 257 in cfca7c7
We can see at line 254-256 we are calling So here when we enter empty space at that time What changes do you think we should make in order to solve the problem?We have to update code as shown below at line 254 i.e. Use // If the text is empty, we set displayListViewBorder to false to prevent UI flickering
if (_.isEmpty(text.trim())) { // *** Trim before checking empty ***
setDisplayListViewBorder(false);
} So this will solve the issue as shown in result video. What alternative solutions did you explore? (Optional)None ResultsWeb.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Using spaces and a letter then removing it still shows the small dropdown box with an empty record What is the root cause of that problem?Inside App/src/components/AddressSearch.js Lines 254 to 256 in cfca7c7
What changes do you think we should make in order to solve the problem?In order to fix the issue, we can just trim the space, before comparing, we can avoid using onInputChange: (text) => {
if (props.inputID) {
props.onInputChange(text);
} else {
props.onInputChange({street: text});
}
// If the text is empty, we set displayListViewBorder to false to prevent UI flickering
if (!text.trim().length) {
setDisplayListViewBorder(false);
}
}, What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.The address autocomplete empty list is shown after making the search empty with spaces only. What is the root cause of that problem?This is a regression from this PR #17403 by adding padding vertical 6 to the list view. Currently, we completely hide the list view when the text is empty, a list item is pressed, or the list height is <= 2. This is to solved this issue #5810. I think it's expected to not trim the What changes do you think we should make in order to solve the problem?I guess the PR owner is the one who should fix this regression, but here is my solution. As mentioned before, the list view will be completely hidden if the height is <= 2, but this isn't valid anymore because we add padding vertical 6, which means we should add 12 to the calculation. App/src/components/AddressSearch.js Lines 279 to 282 in 4f7cfdb
|
@bernhardoj Thank you for pointing out the regression from #17403. Since, this is under regression period I'll be making a PR shortly. |
Oh that's an interesting case. Sorry for missing that. But who starts a search with spaces 😅? @ayazhussain79 is a real tester 😁. @mountiny Would you please assign me and @aman-atg to handle this. |
📣 @aman-atg You have been assigned to this job by @mountiny! |
📣 @s77rt You have been assigned to this job by @mountiny! |
Upwork job price has been updated to $250 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.5-6 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-03. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Regression Test Proposal
|
Payments:
just confirming the amounts before processing payment. lmk if that looks correct. |
@maddylewis The payment is only due to @ayazhussain79 |
thanks for confirming! ill get the offer sent to @ayazhussain79 shortly. |
@maddylewis offer accepted Thank you |
I think we are good to close this one? |
thanks everyone |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The dropdown box should not be displayed if you have removed the character entered.
Actual Result:
Using spaces and a letter then removing it still shows the small dropdown box with an empty record
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.1.3
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Recording.2524.mp4
2023-04-19.00-39-37.mp4
Expensify/Expensify Issue URL:
Issue reported by:@ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681848102529159
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: