-
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
[CP Staging] Fixes not found page not being shown properly when not having access to report #28584
Conversation
@rushatgabhane 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] |
@ospfranco Could you please add tests steps 🙏🏼 |
I just did the original steps in #28489.
I didn't quite get the comments from @b4s36t4 on the original issue, so not sure if this is really the use case it was being solved when switching threads. |
Just add a note here that we should change the default value of App/src/pages/home/ReportScreen.js Lines 107 to 109 in 52f0e3c
|
Let's do it all in a single PR then. |
Test steps for fixing #28508:
|
I think the test case is :
|
Reviewer Checklist
Screenshots/VideosWebCleanShot.2023-10-02.at.09.19.29.mp4Mobile Web - ChromeCleanShot.2023-10-02.at.09.22.24.mp4Mobile Web - SafariCleanShot.2023-10-02.at.09.53.47.mp4DesktopCleanShot.2023-10-02.at.10.02.41.mp4iOSCleanShot.2023-10-02.at.09.48.55.mp4AndroidCleanShot.2023-10-02.at.09.40.15.mp4 |
Screenshots for #28584 (comment) : Screenshots/VideosWebCleanShot.2023-10-02.at.10.38.09.mp4Mobile Web - ChromeCleanShot.2023-10-02.at.10.48.52.mp4Mobile Web - SafariCleanShot.2023-10-02.at.10.25.11.mp4DesktopCleanShot.2023-10-02.at.10.15.54.mp4iOSCleanShot.2023-10-02.at.10.22.02.mp4AndroidCleanShot.2023-10-02.at.11.03.49.mp4 |
@ospfranco Let's add the steps to 'QA Steps' section |
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.
@ospfranco Could you please update this check to check for reportActions
emptiness : more context #28508 (comment)
if (report.reportID && report.reportID === getReportID(route) && !isLoadingInitialReportActions) {
return;
}
@fedirjh done |
Co-authored-by: Fedi Rajhi <fedirjh@gmail.com>
Co-authored-by: Fedi Rajhi <fedirjh@gmail.com>
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.
Thanks!
[CP Staging] Fixes not found page not being shown properly when not having access to report (cherry picked from commit fac61c8)
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.3.75-9 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.75-12 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.77-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|
Details
Attempts to fix the skeleton being shown instead of a not found page. I tried slowing the network and could not reproduce the issue either. @fedirjh and @b4s36t4 could you take a look at let me know if it fixes it.
Also partly tackles skeleton being shown instead of the you don't have access page. That one also suggests a change in the default value for
isLoadingReportActions
which might also help here? Not sure.Fixed Issues
$ #28489
$ #28508
PROPOSAL:
Tests
Open a URL with a non-existing ID: localhost:8082/r/12345. Not found view is shown properly.
Repeated the same with a slow 3g connection throttled via Chrome Network tab. Skeleton is shown while page is loading, then eventually not found page is shown.
Verify that no errors appear in the JS console
Offline tests
QA Steps
Same as tests
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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android