-
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
[TS migration] Migrate ProfileAvatarWithIndicator.js component to TypeScript #40090
[TS migration] Migrate ProfileAvatarWithIndicator.js component to TypeScript #40090
Conversation
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.
@kubabutkiewicz LGTM! Please include test steps and screenshots!
@getusha could you prioritize a review here? We would like to get this merged until tomorrow as this is one of the last TS PRs remaining! |
Switched reviewers per https://expensify.slack.com/archives/C02NK2DQWUX/p1712864609143049 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-04-12.at.1.38.10.AM.movAndroid: mWeb ChromeScreen.Recording.2024-04-12.at.1.25.38.AM.moviOS: NativeScreen.Recording.2024-04-12.at.1.22.46.AM.moviOS: mWeb SafariScreen.Recording.2024-04-12.at.1.22.06.AM.movMacOS: Chrome / SafariScreen.Recording.2024-04-12.at.1.19.07.AM.movMacOS: DesktopScreen.Recording.2024-04-12.at.1.20.42.AM.mov |
Sorry guys, i thought i replied to this. 😄 🙏 |
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. One minor comment, but I think we haven't enforced the useOnyx
yet, so depending on the priority, we can let it go.
It's cool that rory got assigned here. He actually would be proposing the |
@fabioh8010 @allroundexperts @roryabraham replaced |
const [isLoadingOnyxValue] = useOnyx(ONYXKEYS.IS_LOADING_APP); | ||
const isLoading = isLoadingOnyxValue ?? true; |
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.
Note: This piece of code mimics the old behavior (withOnyx
+ default value assigment to isLoading
prop).
…s-migration/ProfileAvatarWithIndicator
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.4.63-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Fixed Issues
$ #40089
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop