-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix: Private notes page shows not found in offline mode #28461
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] |
@tienifr can you please also upload video for web - seems missing - thanks! |
@narefyev91 I've updated that. |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid-web.movMobile Web - Safariios-web.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Sometimes - Not Found page is shown and replaced by loading (may happened on not fast devices) - if we could not find a way to not view it at all - we are good to go
🎀 👀 🎀 C+ reviewed
@narefyev91 You mean the |
Yup - forgot how to name it correctly lol - Not Found page |
I can't find a way to fix this. I think we're good to go. @grgia |
@tienifr @narefyev91 merged! |
✋ 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/grgia in version: 1.3.77-0 🚀
|
return; | ||
} | ||
Report.getReportPrivateNote(report.reportID); | ||
}, [report.reportID, network.isOffline]); | ||
}, [report.reportID, network.isOffline, report.isLoadingPrivateNotes]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isLoadingPrivateNotes
is in the dependencies list, getReportPrivateNotes
would be triggered continuously. I'll raise a fix PR ASAP to remove it. @narefyev91 @grgia
QA mentioned this is still failing the linked issue, can you please investigate? |
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|
@@ -64,11 +64,11 @@ function PrivateNotesListPage({report, personalDetailsList, network, session}) { | |||
const {translate} = useLocalize(); | |||
|
|||
useEffect(() => { | |||
if (network.isOffline) { | |||
if (network.isOffline && report.isLoadingPrivateNotes) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Details
Private notes page shows not found in offline mode. This PR fixes that.
Fixed Issues
$ #27591
PROPOSAL: #27591 (comment)
Tests
#admins
Offline tests
NA
QA Steps
#admins
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Screen.Recording.2023-09-29.at.20.19.43.mov
Mobile Web - Chrome
Screen.Recording.2023-09-29.at.17.41.21.mov
Mobile Web - Safari
Screen.Recording.2023-09-29.at.17.37.09.mov
Desktop
Screen.Recording.2023-09-29.at.17.39.19.mov
iOS
Screen.Recording.2023-09-29.at.17.33.26.mov
Android
Screen.Recording.2023-09-29.at.17.38.37.mov