Fix/12515: Default rooms are not grayed out when creating a new workspace while offline#12664
Conversation
|
Adding @MonilBhavsar and @eVoloshchak to the review based on the issue, and removing myself - but if you want another pair of eyes let me know! |
|
@dangrous I am so sorry, but this PR isn't ready for review. I just marked as draft |
|
@tienifr this looks like a draft Proposal? |
|
Please only make a PR and request Pullerbear once your proposal is accepted |
|
@MonilBhavsar Thanks for your comment. I just only create a PR to make clear my proposal. Took note of your comment for the next time |
|
Thank you! Currently unassigning myself from PR Review. Feel free to comment on the issue when you are ready to submit your proposal |
|
Bug: reports are grayed out when offline even after connecting back to the internet once Screen.Recording.2022-11-17.at.18.27.44.mov |
|
@tienifr did you get a chance to look at the above comment and why is it happening? |
|
@MonilBhavsar Yes, I'm re-checking my PR and will let you know why it happens asap |
|
I had a quick look at the API and looks like this needs to be fixed in the frontend. |
5e4db99 to
9453d9c
Compare
|
Hi @eVoloshchak, I just pushed a new commit to fix the above bug. We need to update pendingFields in success data to fix it. Please help to review it. Thanks |
|
@tienifr thanks! |
|
@tienifr could you also please add online and offline toggle steps to Test and QA section |
| onyxMethod: CONST.ONYX.METHOD.MERGE, | ||
| key: `${ONYXKEYS.COLLECTION.REPORT}${announceChatReportID}`, | ||
| value: {pendingAction: null}, | ||
| value: { |
There was a problem hiding this comment.
Don't we still have to set pendingAction to null in all 3 of these?
There was a problem hiding this comment.
@eVoloshchak I just added pendingAction to null, thanks for pointing out that
There was a problem hiding this comment.
And also test locally successful
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2022-11-23.at.12.03.15.movMobile Web - Chrome22-11-23-12-24-25.mp4Mobile Web - SafariRPReplay_Final1669198619.MP4DesktopScreen.Recording.2022-11-23.at.12.05.17.moviOSRPReplay_Final1669198804.MP4Android22-11-23-12-29-05.mp4 |
eVoloshchak
left a comment
There was a problem hiding this comment.
LGTM!
cc: @MonilBhavsar
|
Hi @MonilBhavsar Please help to take a look at this PR. Thanks so much |
|
Reviewing and testing now |
MonilBhavsar
left a comment
There was a problem hiding this comment.
Looks good and works well!
|
🚀 Deployed to staging by @MonilBhavsar in version: 1.2.31-2 🚀
|
|
The production deploy comment failed for this PR, but this was deployed to production on v1.2.32-2 on Nov 28. |
Details
When offline, if the user creates a new workspace, the workspace isn't grayed out in the LHN and on the search page. This PR fixes it.
Fixed Issues
$ #12151
$ #12151 (comment)
Tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesWaiting 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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)Screenshots
Web
Screen.Recording.2022-11-11.at.14.58.01.mp4
Mobile Web - Chrome
Screen.Recording.2022-11-17.at.15.19.16.mp4
Mobile Web - Safari
Screen.Recording.2022-11-17.at.15.11.51.mp4
Desktop
Screen.Recording.2022-11-17.at.15.02.58.mp4
iOS
Screen.Recording.2022-11-17.at.15.26.16.mp4
Android
Screen.Recording.2022-11-17.at.16.01.38.mp4