-
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
[HOLD for payment 2023-10-13] [HOLD for payment 2023-10-12] [$500] Dev: Web - Hmm it's not there message appears if open private notes in offline mode #27591
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.hmm it's not there message appears if open private notes in offline mode What is the root cause of that problem?the
What changes do you think we should make in order to solve the problem?In this case, We can show offline view instead of not fount const isOfflineAndEmpty = !report.isLoadingPrivateNotes && network.isOffline && _.isEmpty(lodashGet(report, 'privateNotes', {}));
<FullPageNotFoundView
shouldShow={_.isEmpty(report.reportID) || isOfflineAndEmpty}
icon={isOfflineAndEmpty ? Expensicons.OfflineCloud : undefined}
titleKey={isOfflineAndEmpty ? "common.youAppearToBeOffline" : undefined}
subtitleKey={isOfflineAndEmpty ? "common.thisFeatureRequiresInternet" : undefined}
onBackButtonPress={() => Navigation.goBack()}
> we need to add prop icon to also we can remove subtitle or use other subtitle words What alternative solutions did you explore? (Optional)we can instead remove |
Job added to Upwork: https://www.upwork.com/jobs/~0114cd1c2b0e08bcd2 |
Triggered auto assignment to @NicMendonca ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
After clarification Proposal from @tienifr looks good to me #27591 (comment) |
Triggered auto assignment to @grgia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Dev: Web - Hmm it's not there message appears if open private notes in offline mode What is the root cause of that problem?After creating the WS, we don't fetch the private note data. So when users go offline and visit private note page, we don't allow the API call -> it's empty and isLoadingPrivateNotes is false -> we show the not found page App/src/pages/PrivateNotes/PrivateNotesListPage.js Lines 64 to 69 in 4d97719
What changes do you think we should make in order to solve the problem?We should not prevent API call when network is offline as what we did with other read APIs. When users go to privateNote page, change this line
to
|
@narefyev91 Sorry for the delay proposal. I see other places that use API.read(), we should not prevent API call when users go offline (that cause this bug). So for consistency, we should add other condition |
@tienifr based on your changes - what user will see - loading screen? |
Yes, I think it's better than offline view. Here's the demo @narefyev91 Screen.Recording.2023-09-18.at.15.51.46.mov |
I think there is no prevent API call here. because useEffect deps hase App/src/pages/PrivateNotes/PrivateNotesListPage.js Lines 64 to 69 in 4d97719
|
@ahmedGaber93 I mean when users go offline. |
Yup i think we need here correct behaviour - in case in expected results we not see a clear picture. |
Friendly bump - @grgia |
@narefyev91 could you explain what you mean by "offline screen" with a screenshot |
I prefer the offline page pattern @narefyev91, could you remind me which proposal that was? |
@grgia @narefyev91 I don't think the offline page is the good idea. The offline page should be shown for the page that really need the network (bank account). In this page, when we already loaded the data before (it was in Onyx) we can still use this page. Beside, in our App when calling API.read, we just need to update isLoading to false no matter the network is |
I think it is a normal and expected behavior to displaying offline page when user offline and no onxy data yet |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.77-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-12. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.78-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-13. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
@narefyev91 @NicMendonca Recording.4978.mp4 |
This doesn't seem fixed yet (we have missed the self-test and regression test), or there's a similar case as the one I reported here. - https://expensify.slack.com/archives/C049HHMV9SM/p1697131558107909 Furthermore, with this solution, consider the following scenario:
Question: Will the private notes still display, or will the offline page display? We need to make sure that the private notes are still showing. (IMO, showing Skeleton UI can be a better option) |
@grgia what do you think? ^ |
Yes, if the data is loaded, we should show it. |
@grgia So we need to confirm that the original proposal is already merged and then check the case I mentioned above |
@narefyev91 could you take a look at the progression of this issue? |
@tienifr can you please take a look at the latest comments - seems after we get on Private Notes - and after some times spinner is moving away and we still see "Hmmm is not here page" |
@grgia @narefyev91 After investigating the RCA, I found out that the PR cause the regressions. Before that PR, the failure API will not update the failureData. After it's merged, the failure data of API App/src/libs/actions/Report.js Line 2295 in e726c62
|
I don't think we should handle this one as the regression |
reporter: @gadhiyamanan - you've been paid! @tienifr do we need to keep this open for any reason? |
closing |
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:
It should show private notes
Actual Result:
hmm it's not there message appear
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Dev 1.3.70.5
Reproducible in staging?: no
Reproducible in production?: no
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
Screen.Recording.2023-09-15.at.6.55.49.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694784369659399
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: