-
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 2024-02-01] [$500] mWeb - Clicking back button takes user to wrong page from avatar preview page #27856
Comments
Triggered auto assignment to @NicMendonca ( |
Job added to Upwork: https://www.upwork.com/jobs/~014e3810eaf600caf1 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @CortneyOfstad ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App takes user to settings page What is the root cause of that problem?When we click What changes do you think we should make in order to solve the problem?We should put the attachment modal in a new route similar to the report attachments (Example report attachment route: The new route can look something like Then navigate to that route when clicking What alternative solutions did you explore? (Optional)It doesn't have to be a new route, if we want to keep the current route, adding |
Was able to recreate. @aimane-chnaif, thoughts on the proposal above? |
ProposalPlease re-state the problem that we are trying to solve in this issueApp takes user to settings page What is the root cause of that problem?When we click What changes do you think we should make in order to solve the problem?To address the issue, we propose implementing improvements within the Integrate a Hardware Back Button Library: We recommend incorporating a library that allows us to monitor hardware back button presses. A suitable choice is the BackPressed library, which provides essential functionality for detecting these events. Recognition of Back Button Presses: With the library integrated, we can proceed to implement logic that recognizes when a hardware back button press occurs while the modal is open. This recognition should be limited to instances when the modal is visible to prevent unintended interference with the default hardware back button behavior. Modal Closure on Back Press: Upon detecting a back button press while the modal is open, our code will execute actions to promptly close the modal. This action ensures that the modal behaves as expected when the user presses the back button. Conditional Override of Default Behavior: Importantly, our implementation will override the default hardware back button behavior only when the modal is currently displayed. In all other circumstances, the default behavior of the hardware back button remains unchanged. By following these steps and incorporating this solution into the For the actual implementation within your From the actual code: App/src/components/AttachmentModal.js Line 102 in 4c207ec
App/src/components/AttachmentModal.js Lines 314 to 323 in 4c207ec
So we could implement something like the below: useEffect(() => {
const backHandler = BackHandler.addEventListener(
'hardwareBackPress',
() => {
if (isModalOpen) {
closeModal();
return true; // Prevent default behavior (navigating back)
}
return false; // Allow default behavior (navigating back)
}
);
return () => {
backHandler.remove();
};
}, [isModalOpen]); What alternative solutions did you explore? (Optional)N/A |
@NicMendonca, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@aimane-chnaif proposals here for you! ^ |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@NicMendonca, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
reviewing today |
@aimane-chnaif any updates? |
@NicMendonca @aimane-chnaif 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! |
@aimane-chnaif The PR is ready for review |
This issue has not been updated in over 15 days. @johnmlee101, @NicMendonca, @aimane-chnaif, @dukenv0307 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@aimane-chnaif @dukenv0307 what's the latest on this one? |
@NicMendonca The PR is still reviewing. |
@johnmlee101, @NicMendonca, @aimane-chnaif, @dukenv0307, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.31-7 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 2024-02-01. 🎊 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:
|
@NicMendonca Please help to re-open this issue, the PR is deployed to production. |
why was it closed 😕 |
I am going on leave starting tomorrow, so just paid everyone out today! |
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:
App should take user back to profile page
Actual Result:
App takes user to settings page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.72.6
Reproducible in staging?: y
Reproducible in production?: new feature
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
Screen_Recording_20230920_112520_Chrome.mp4
Screen_Recording_20230920_080235_Chrome.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695198495998809
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: