[Bug resolution] for [#31822: Conversation disappears from LHN when creating an IOU with a new user in offline mode]#32633
Conversation
|
@narefyev91 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
| } | ||
| return reportIDsRef.current || []; | ||
| }, [allReportActions, betas, chatReports, policies, priorityMode, isLoading]); | ||
| }, [allReportActions, betas, chatReports, policies, priorityMode, isLoading, network]); |
There was a problem hiding this comment.
can we specify directly network.isOffline in deps and not the whole network object?
There was a problem hiding this comment.
Yes, that is what I originally tested with. That also works perfectly.
I changed it to be the whole object instead because it visually looked neater, and I didn't find that the network object has any other attributes apart from isOffline that change quite frequently.
Would you like me to commit the version where network is replaced with network.isOffline?
There was a problem hiding this comment.
Yup let's just have network.isOffline in deps - maybe who knows in the future it will be more items in network - and we will prevent already any regression from it
Reviewer Checklist
Screenshots/VideosWebweb.mp4Mobile Web - Chromeandroid-web.mp4Mobile Web - Safariios-web.mp4Desktopdesktop.mp4iOSios.mp4Androidandroid.mp4 |
|
@talhajavedmukhtar can you please resolve merge conflicts? |
narefyev91
left a comment
There was a problem hiding this comment.
LGTM! Just needs to resolve merge conflicts
🎀 👀 🎀 C+ reviewed
|
@narefyev91 merge conflicts resolved. |
arosiclair
left a comment
There was a problem hiding this comment.
Looks like you also need to run prettier/eslint
edit SidebarLinksData props Co-authored-by: Andrew Rosiclair <arosiclair@gmail.com>
|
@arosiclair ran the file through eslint and fixed the problems. No linting errors now. |
arosiclair
left a comment
There was a problem hiding this comment.
Need to run prettier too (npm run prettier). If you're using vscode, you can also just use the extension.
|
Done. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 1.4.11-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.11-25 🚀
|
Details
Fixed Issues
$ #31822
PROPOSAL: #31822 (comment)
Tests
Offline tests
All required info already included in the Tests section; the problem explicitly involves the offline state.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Recording
Android: mWeb Chrome
Recording
iOS: Native
Recording
iOS: mWeb Safari
Recording
MacOS: Chrome / Safari
Recording
MacOS: Desktop
Recording