-
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
17032 — migrate ReportHeaderSkeletonView to PressableWithFeedback #20344
17032 — migrate ReportHeaderSkeletonView to PressableWithFeedback #20344
Conversation
@thesahindia @jasperhuangg One of you needs to 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] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-06-07.at.8.27.26.PM.movMobile Web - ChromeScreen.Recording.2023-06-07.at.9.02.02.PM.movMobile Web - SafariScreen.Recording.2023-06-07.at.8.32.03.PM.movDesktopScreen.Recording.2023-06-07.at.8.28.43.PM.moviOSScreen.Recording.2023-06-07.at.8.30.37.PM.movAndroidScreen.Recording.2023-06-07.at.9.04.36.PM.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.
Looks good to me!
✋ 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/jasperhuangg in version: 1.3.27-0 🚀
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 1.3.27-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.27-7 🚀
|
Details
This PR replaces react-native
Pressable
with our own implementationPressableWithFeedback
Fixed Issues
$ #17032
PROPOSAL: #17032
Tests
The skeleton is visible only when report is in loading state:
!reportID || !this.props.isSidebarLoaded || _.isEmpty(this.props.personalDetails);
To test it you either need to make sure personalDetails are not loaded yet and throttle the internet connection or change the condition in line 276 ofreportScreen.js
fromisLoading
totrue
Note! Back button is only visible on small screen!
Offline tests
Same as test steps
QA Steps
Same as test steps. The viable path of testing would be hard throttle internet connection when chat should be loaded
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
desktop.-.web.mov
Mobile Web - Chrome
android.-.web.mov
Mobile Web - Safari
iOS.-.web.mov
Desktop
desktop.-.native.mov
iOS
iOS.-.native.mov
Android
android.-.native.mov