-
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
[$500] Web - Navigation breaks on opening attachment, reload and opening search by shortcut #28241
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01d3cee7fe8b187729 |
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App does not close the image attachment when we open attachment, reload and open search page using shortcut and it breaks the further navigation What is the root cause of that problem?Here, when the This is not correct since this useEffect block should only trigger when What changes do you think we should make in order to solve the problem?We should make sure this line is only triggered when
or that can be put here if we want to exclude the full logic of the What alternative solutions did you explore? (Optional)An alternative is to use isFirstRender approach to not run the |
This May be the use of a Context to trigger close to all modals not just the latest. @dukenv0307 ideas? About the proposal: I am curious wouldn't the useEffect itself detect changes to passed dependency? IMO, this this useEffect should only run |
@parasharrajat yes, but
(This is different from Also we have the same fix using |
@parasharrajat Yes we can maybe use a Context to pass a |
@dukenv0307 what if we close this modal on Pressing "Ctrl +K/cmd+K". We put a check if Modal is visible Close it before opening Search. thoughts? |
@LiaqatSaeed we're already trying to do that here. The problem is that currently doesn't work, which is being addressed in my proposal. |
Ok, I see. Now, it is clear to me. Thanks for explaining. @dukenv0307's proposal looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @deetergp, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@dukenv0307 Can you please create the PR today? I will be OOO from 29 Sept to 4 Oct so I will try to get it done by tomorrow. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Navigation breaks on opening attachment, reload and opening search by shortcut What is the root cause of that problem?Here when the PopoverWithoutOverlay is rendered the first time, it always sets the closeModal function to null, which overrides the closeModal function that is set by the attachment modal when the attachment modal is first rendered. So it fails to close the attachment modal when using the shortcut here. What changes do you think we should make in order to solve the problem?We can check the Modal is open and will not override the method We can export if (!Modal.closeModal) {
Modal.setCloseModal(props.isVisible ? () => props.onClose(props.anchorRef) : null);
} What alternative solutions did you explore? (Optional)N/A |
Please re-state the problem that we are trying to solve in this issue.when users open an image attachment within the application, reload the application, and then attempt to open the search page using a keyboard shortcut, the application fails to close the previously opened image attachment. This behavior disrupts further navigation within the application. What is the root cause of that problem?The root cause of this problem appears to be related to how the application manages the state of opened attachments and how it handles navigation. Specifically, when the attachment is initially rendered, it doesn't close properly when switching to the search page using a keyboard shortcut. What changes do you think we should make in order to solve the problem?file path: https://github.com/Expensify/App/blob/main/src/components/PopoverWithoutOverlay/index.js Create a Ref for
By using this approach, you maintain a reference to the previous value of Video:-https://drive.google.com/file/d/1j6K3FmCYpXD-zXvj5smSgu2RhRZuK5YR/view?usp=sharing |
@deetergp Can you please assign me? So I can raise a PR to @parasharrajat review before he is OOO. |
It's too late. I will be OOO in about 2 hours. So it's fine, we can take time to assign this. I would say let's start this on Monday so we don't start the countdown while I am away. |
@parasharrajat, I am wondering if you checked my proposal earlier today! Would love your feedback. Feedback will help me either way! 🙂 |
bump @deetergp - #28241 (comment) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
The final revert PR is here #29784. After this is merged let's retest existence your issue. |
@parasharrajat are we holding payment here? 👀 |
Yes @NicMendonca Next steps:
|
@deetergp, @parasharrajat, @NicMendonca, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I believe we are still waiting on the resolution of #27244? |
@deetergp @parasharrajat @NicMendonca @dukenv0307 this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @parasharrajat is eligible for the Internal assigner, not assigning anyone new. |
Looks like #27244 has been merged and is in the regression period. We should know by Tuesday. |
@deetergp, @parasharrajat, @NicMendonca, @dukenv0307 Eep! 4 days overdue now. Issues have feelings too... |
@deetergp @parasharrajat what's the next steps for this one? Are we paying out now? |
Would someone be willing to retest this to see if #27244 resolved our issue? |
I already did. We are just waiting for payments here for the work done on this issue. |
Oh sorry, the hold for payment automation didn't click in |
Reporter: @dhanashree-sawant - $50 |
@dhanashree-sawant, @dukenv0307 you've been paid! @parasharrajat don't forget to request payment via Expensify! 🎉 |
Payment requested as per #28241 (comment) |
$500 approved for @parasharrajat |
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 close the image attachment when we open search page using shortcut
Actual Result:
App does not close the image attachment when we open attachment, reload and open search page using shortcut and it breaks the further navigation
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Build v1.3.74-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
attachment.preview.search.breaks.navigation.windows.chrome.mp4
Recording.1641.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695575577105459
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: