-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-02-18] [$250] Search - Different behavior when using app and device back button in selection mode #45896
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
Comments
Triggered auto assignment to @adelekennedy ( |
We think that this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Search - Different behavior when using app and device back button in selection mode What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?We should use useEffect(() => {
const backAction = () => {
if (isMobileSelectionModeActive) {
setIsMobileSelectionModeActive(false);
return true;
}
return false;
};
BackHandler.addEventListener('hardwareBackPress', backAction);
return () => {
BackHandler.removeEventListener('hardwareBackPress', backAction);
};
}, [isMobileSelectionModeActive]); What alternative solutions did you explore? (Optional) |
@adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@adelekennedy 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@adelekennedy 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
added to a project |
Job added to Upwork: https://www.upwork.com/jobs/~0189e7d6f2ae38bc4a |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App returns to the previous page What is the root cause of that problem?We already have a custom back handler for Android here but it doesn't cover the case when the
What changes do you think we should make in order to solve the problem?We should handle the back button for the selection mode case in App/src/pages/Search/SearchPageBottomTab.tsx Lines 74 to 76 in d69b203
While testing I found a problem that is if we add a App/src/components/Search/index.tsx Lines 112 to 114 in d69b203
The solution here is we should only turn off the selection mode after the
and update
App/src/components/Search/index.tsx Line 75 in d69b203
OPTIONAL: We can also create a function in
We can also call
App/src/pages/Search/SearchPageBottomTab.tsx Lines 74 to 76 in d69b203
The test branch here for more details: https://github.com/nkdengineer/App/tree/fix/45896 What alternative solutions did you explore? (Optional)ResultScreen.Recording.2024-08-01.at.12.57.08.mov |
@eVoloshchak @adelekennedy this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
I think we should proceed with @nkdengineer's proposal 🎀👀🎀 C+ reviewed! |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.95-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 2025-02-18. 🎊 For reference, here are some details about the assignees on this issue:
|
@eVoloshchak @adelekennedy @eVoloshchak The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Triggered auto assignment to @trjExpensify ( |
@trjExpensify I will be ooo for payment on the 18th - adding you here! |
Sure thing! Let's get the checklist here, @eVoloshchak. |
Bump on the checklist @eVoloshchak to pay this out. |
Regression Test Proposal iOS/Android native only
Do we agree 👍 or 👎 |
The test is valid, but I don't think we need a unique test for this case. |
Fair enough. Payment summary as follows:
Closing, thanks! |
$250 approved for @eVoloshchak |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.10-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
App will dimiss the selection mode and remains on the same page
Actual Result:
App returns to the previous page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6549153_1721637282851.Screen_Recording_20240722_161640_New_Expensify.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: