-
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-10-13] [$500] Web - Send message screen - User navigates to Room tab when drag to select e-mail from Chat tab #28047
Comments
Triggered auto assignment to @laurenreidexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Send message screen - User navigates to Room tab when drag to select e-mail from Chat tab What is the root cause of that problem?This is a feature that allows users to swipe to change tabs. Depending on the browser, dragging to select (not just text, maybe images, or something else) can cause a swipe action to change tabs. What changes do you think we should make in order to solve the problem?This issue only happens on the web app, so we can disable this feature on them <TopTab.Navigator
screenOptions={{
swipeEnabled: shouldDisableSwipe,
}}
... |
ProposalPlease re-state the problem that we are trying to solve in this issue.When attempting to select the email address in the text input of the Chat tab, the tab swipes to show the Room tab. What is the root cause of that problem?Attempting to swipe or drag anywhere on the tab screens results in a swipe action which will change the current tab, regardless of the focused or active control. What changes do you think we should make in order to solve the problem?Add a PanResponder to the target control in order to handle the swipe action and prevent the tab from swiping. This can be added to a wrapper View for the text input control in
Since this will also affect the text input on the Room tab, we can create a lib file that defines the pan responder and then wrap each of the affected text inputs with a View that uses the pan responder's handlers. What alternative solutions did you explore? (Optional)None. 28047-demo.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~013efbb12cd17aad2f |
Current assignee @laurenreidexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
@ginsuma Please don't just copy the title to re-state the problem. Your solution is not fixing this issue; we still want to be able to navigate the tab with a swipe on all platforms. |
@akinwale Your proposal looks good. We already have the same pan responder in the |
Hope that makes sense. |
Triggered auto assignment to @puneetlath, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Should we udpate our text inputs to work like this more generally? Is there ever a scenario where we want this swipe gesture to work when swiping within a text input? |
This only really affects text inputs that are used within swipeable tabs, so maybe we could have a separate component called SwipeInterceptTextInput (or a better name?), which can be used in these scenarios. The root view of the component would have the necessary pan handlers set up. |
That makes sense. Would there be a downside of adding this swipe intercept code to all TextInputs anyways? |
I can't say for sure. In App/src/components/TextInput/BaseTextInput.js Lines 282 to 285 in 3e9fdf6
So essentially create a new prop |
I like that approach. What do you think @mollfpr? |
Yup, I agree with making the component generic in case we have a similar case happen. |
📣 @mollfpr 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
Great, let's do it. |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.78-4 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-10-13. 🎊 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: 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:
|
Payment Summary:
Please update the checklist steps above so we can close out. Thanks! |
@laurenreidexpensify Could this be considered eligible for the speed bonus? There was a delay with merging the PR. Thanks. cc @puneetlath |
No offending PR. The issue arises when implementing the slide tab navigation, but we improve our
This should be a one time bug, the regression step should be enough.
Precondition: the account should be in beta or at least can create a room chat.
|
@laurenreidexpensify Could you confirm if we are eligible for the speed bonus? Thanks! |
@puneetlath do you agree this is eligible for the speed bonus? |
Yes, that seems fair given me accidentally not merging after approving. |
@laurenreidexpensify I make manual requests in NewDot for this issue 😄 |
$750 payment approved for @mollfpr based on summary above. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The e-mail address should be easily highlighted
Actual Result:
User navigates to Room tab when drag to select e-mail from Chat tab
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.73.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
Notes/Photos/Videos: Any additional supporting documentation
Bug6210931_Recording__1060.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: