You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD #10894] Windows - Chat -Photo preview screen disappears after resizing window to full screen #20522
Please re-state the problem that we are trying to solve in this issue.
Image preview screen disappears after resizing window from small to full screen or vice versa
What is the root cause of that problem?
For responsiveness, we use withWindowDimensions HOC in the project. AttachModal component is remounted when isSmallScreenWidth props(from withWindowDimensions) is changed due to the following code lines.
What changes do you think we should make in order to solve the problem?
We store draft comments in Oynx store. Similarly, we can store the attachment in Oynx store and load attachment info when page refreshing or remounting.
In order to do this
Add Oynx key for storing pending attachment
Store the attachment in Oynx store when picked file is valid
Load the attachment info from Oynx store when mounting
Result20522_mac_chrome.mp4
What alternative solutions did you explore? (Optional)
Looks like something related to react-navigation may have been mentioned in this issue discussion.
As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.
Similarly, we can store the attachment in Oynx store and load attachment info when page refreshing or remounting
I like the idea, but I don't think we have a straightforward way to do that for now. I believe that this should be on HOLD for something in #10894. @Beamanator can you confirm / help find the specific issue this should be on HOLD for that will enable us to support offline image caching?
changed the title [-] Windows - Chat -Photo preview screen disappears after resizing window to full screen[/-][+][HOLD #10894] Windows - Chat -Photo preview screen disappears after resizing window to full screen[/+]on Jun 14, 2023
This issue has not been updated in over 15 days. @JmillsExpensify 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!
Activity
melvin-bot commentedon Jun 9, 2023
Triggered auto assignment to @JmillsExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 9, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)dummy-1111 commentedon Jun 11, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Image preview screen disappears after resizing window from small to full screen or vice versa
What is the root cause of that problem?
For responsiveness, we use withWindowDimensions HOC in the project.
AttachModalcomponent is remounted whenisSmallScreenWidthprops(from withWindowDimensions) is changed due to the following code lines.App/src/libs/Navigation/NavigationRoot.js
Line 66 in 035783a
App/src/libs/Navigation/AppNavigator/createResponsiveStackNavigator/index.js
Lines 36 to 56 in 035783a
This is the root cause of this issue.
What changes do you think we should make in order to solve the problem?
We store draft comments in Oynx store. Similarly, we can store the attachment in Oynx store and load attachment info when page refreshing or remounting.
In order to do this
Result
20522_mac_chrome.mp4
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Jun 11, 2023
Looks like something related to
react-navigationmay have been mentioned in this issue discussion.As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our
DeprecatedCustomActions.jsfiles should not be accepted.Feel free to drop a note in #expensify-open-source with any questions.
melvin-bot commentedon Jun 12, 2023
@JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!
roryabraham commentedon Jun 12, 2023
I like the idea, but I don't think we have a straightforward way to do that for now. I believe that this should be on HOLD for something in #10894. @Beamanator can you confirm / help find the specific issue this should be on HOLD for that will enable us to support offline image caching?
JmillsExpensify commentedon Jun 14, 2023
Yes, I agree. Doing that now, in fact.
[-] Windows - Chat -Photo preview screen disappears after resizing window to full screen[/-][+][HOLD #10894] Windows - Chat -Photo preview screen disappears after resizing window to full screen[/+]Beamanator commentedon Jun 14, 2023
Huh, I don't quite understand why this is an "offline image caching" issue - it seems like it's just about resizing the browser, right?
22 remaining items
melvin-bot commentedon Oct 6, 2023
This issue has not been updated in over 15 days. @JmillsExpensify 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!
JmillsExpensify commentedon Oct 12, 2023
Still on hold for the image improvements.
JmillsExpensify commentedon Oct 24, 2023
Still held on image improvements
JmillsExpensify commentedon Nov 24, 2023
Holding for image initiative.
JmillsExpensify commentedon Dec 13, 2023
Same
JmillsExpensify commentedon Jan 24, 2024
Closing this issue in line with our decision to not prioritize resizing issues anytime soon.