-
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-07-10] [$1000] Web - 'Find a member' doesn't update dynamically on the placeholder #21061
Comments
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.'Find a member' doesn't update dynamically on the placeholder What is the root cause of that problem?When clicking invite button we will clear the text input and reset this.state.value in here
And then App/src/components/TextInput/BaseTextInput.js Lines 85 to 89 in 1aa30d1
but Inside deactivateLabel itself we're checking if this.state.value.length !== 0 we will do nothingApp/src/components/TextInput/BaseTextInput.js Line 165 in 1aa30d1
It causes race condition where inputValue becomes empty but the state.value doesn't update to empty yet inside deactivateLabel , causing the label not to be deactivated
What changes do you think we should make in order to solve the problem?We should move this code App/src/components/TextInput/BaseTextInput.js Lines 85 to 89 in 1aa30d1
to the callback of setState function
What alternative solutions did you explore? (Optional)We also pass new param to this.deactivateLabel(inputValue); function and using this params to check instead of this.state.value
|
I have posted my proposal here #19231 (comment), so copying it here ProposalPlease re-state the problem that we are trying to solve in this issue.Text input label does not deactivate (move back as the placeholder) when we clear the input value (it will be cleared when going back from the invite page). To reproduce it, make sure to type something first. What is the root cause of that problem?Actually, we already have the code that SHOULD deactivate the label when we clear the input value here: App/src/components/TextInput/BaseTextInput.js Lines 71 to 89 in 7378626
As you can see, we update the App/src/components/TextInput/BaseTextInput.js Lines 164 to 171 in 7378626
If it's empty, then we proceed to deactivate the label. The problem is, the What changes do you think we should make in order to solve the problem?Call the More specifically, move this code to be inside the App/src/components/TextInput/BaseTextInput.js Lines 85 to 89 in 7378626
I guess we also can change |
While we expect to overhaul this entire flow soon, I'm going to go ahead and triage. I also wasn't able to reproduce on either Safari or desktop. |
Job added to Upwork: https://www.upwork.com/jobs/~01a2b58955cd2caa4f |
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.'Find a member' doesn't update dynamically on the placeholder What is the root cause of that problem?The root of this problem is that the In your code, you called the As I said before value state is not changed yet in this case. So if you check the value immediately after the What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)Or, we can add an argument to the |
📣 @teguhkurnia! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
This issue is almost same as this issue where @bernhardoj had proposed #19231 (comment) solution. It solves the issue. But for consistency we decided to change the requirement of that issue. So, considering this issue just the extension of #19231. We have decided to go with @bernhardoj's proposal. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @johnmlee101, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Makes sense to me. |
📣 @bernhardoj You have been assigned to this job by @johnmlee101! |
PR is ready. cc: @sobitneupane |
🎯 ⚡️ Woah @sobitneupane / @bernhardoj, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.35-5 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-07-10. 🎊 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:
|
https://github.com/Expensify/App/pull/9056/files#r1257910704
https://expensify.slack.com/archives/C049HHMV9SM/p1688978277278329
yes.
|
Regression Test Proposal
Do we agree 👍 or 👎 |
Payment Requested on Expensify |
@JmillsExpensify, @johnmlee101, @sobitneupane, @bernhardoj Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@JmillsExpensify, @johnmlee101, @sobitneupane, @bernhardoj 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Where are we with payment? |
@JmillsExpensify, @johnmlee101, @sobitneupane, @bernhardoj Huh... This is 4 days overdue. Who can take care of this? |
Circling back on this now. |
@bernhardoj I sent you an offer via Upwork. I'll pay the bonus when closing out the contract. Thanks! |
Accepted |
All paid out, including the bonus. Still need to create the issue for TestRail, so I'll do that before closing this one out. |
Test created. Closing this one. |
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:
Action Performed:
Expected Result:
'Find a member' should be update dynamically on the placeholder
Actual Result:
'Find a member' doesn't update dynamically on the placeholder
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.29.3
Reproducible in staging?: yes
Reproducible in production?: yrs
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
error-2023-06-11_12.23.01.1.mp4
Recording.5028.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686466494275769
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: