-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-12-12] [$500] Start Chat - Invalid red dot briefly appears by closing 'room' tab when there's no prior action #30618
Comments
Triggered auto assignment to @abekkala ( |
Job added to Upwork: https://www.upwork.com/jobs/~01cccde7c0776bc3a8 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.An invalid red dot appears briefly when closing the 'room' tab when there is no prior action What is the root cause of that problem?When the input is blurred, this will be triggered, causing the error to show. Normally we won't see it since the navigation happens very quickly after clicking, but if we long press outside the RHN, and after 1-2 seconds, release the press, we'll see the error very clearly. What changes do you think we should make in order to solve the problem?We need to assign a We also need to fix here so that it will pass through the
This will make sure the click on the background element to close the RHN, no matter long press or normal press, will never cause the error to show. If there's any element, if pressed ,like the What alternative solutions did you explore? (Optional)NA Resultpoc-resize.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Start Chat - Invalid red dot briefly appears by closing 'room' tab when there's no prior action What is the root cause of that problem?When the input gets changed or blurred the validation is called and sets the error, we have a smooth transition between pages that's why we can see the error for a second. App/src/pages/workspace/WorkspaceSettingsPage.js Lines 75 to 88 in 5b5d465
What changes do you think we should make in order to solve the problem?We can return from validation when the page gets blurred, either we can apply this in const navigation = useNavigation();
useEffect(() => {
const removeBlurListener = navigation.addListener('blur', () => {
isNavigating.current = true;
});
const removeFocusListener = navigation.addListener('focus', () => {
isNavigating.current = false;
});
return () => {
removeBlurListener();
removeFocusListener();
};
}, [navigation]);
if (isNavigating.current) {
return {};
} Before fixbefore_fix.mp4After fixafter_fix.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Red dot briefly appears when closing create-room page by tapping outside the RHN even when there is no prior action What is the root cause of that problem?Lines 356 to 359 in 5b5d465
As you can see above, we set touched state to true and run validator when focused element gets blurred. When the room tab gets active, the room name input gets focused. When closing the RHN, the name input gets blurred and so the validator runs by the above code. This is the root cause What changes do you think we should make in order to solve the problem?This issue is related to the current form validation logic. We need to change this. Line 356 in 5b5d465
Lines 367 to 369 in 5b5d465
Lines 373 to 375 in 5b5d465
Result30618.mp4What alternative solutions did you explore? (Optional)We can disable the validation in navigation blur event handler
We can apply this change to the form to generalize |
@jjcoffee whoo! already a couple proposals! Can you review when you have a moment? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Red dot briefly appears when closing create-room page by tapping outside the RHN even when there is no prior action What is the root cause of that problem?Line 358 in a31933a
When onBlur() , we do validate.So when click tab, or during click outside of Modal, we will see error text. What changes do you think we should make in order to solve the problem?We can set What alternative solutions did you explore? (Optional)We can catch event of click of outside of modal and then disable validate.
|
Sorry this one slipped through the cracks, will review on Monday! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Apologies, will have to be tomorrow that I review this one! |
@yh-0218 We don't want to set @s-alves10 Correct me if I'm wrong but I think your proposal would briefly show the error in the same situation, as long as some text was entered. I don't think this is what we want here. @Krishna2323 I'm unsure why the event listeners get added in the cleanup of the @dukenv0307 I like the general approach in your proposal, but I'm not sure how generic a solution it will be since it requires modifying specific inputs to pass through the |
Actually, we just need to find the inputs that are wrapped by a Passing through the event is best practice and it's not something that only becomes necessary due to my solution 😄 So I think of my proposal as "generic solution + fix 1 existing bug in RoomNameInput", not "non-generic solution that requires modifying certain inputs" |
@jjcoffee, we are always removing the listeners in cleanup function whenever we are using
|
Sorry wasn't able to get to this today, will review on Monday! |
@jjcoffee @Julesssss the updated PR is ready for review |
I'm heading out for the Thanksgiving holiday and will be back bright and early Monday morning. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.3-11 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-12-04. 🎊 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.
For reference, here are some details about the assignees on this 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:
|
PAYMENTS FOR DEC 04
@jjcoffee can you please complete the checklist above? |
Regression Test Proposal
Do we agree 👍 or 👎 |
@abekkala Checklist complete! Also note that there was a regression. |
Contributor who fixed: @dukenv0307 [$250] offer 50% penalty for regression. Offer Link remains but at payout will be edited to $250 |
We can pay this one out tomorrow |
payments will be sent Tue Dec 12 |
@dukenv0307 & @jjcoffee - payments sent and contract ended - thank you! 🎉 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.93-0
Reproducible in staging?: Y
Reproducible in production?: Y
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
No red dots should be seen when closing the Room tab
Actual Result:
An invalid red dot appears briefly when closing the 'room' tab when there is no prior action
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Bug6257374_1698700833243.WEB_-_Red_dot_-_room_tab.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: