-
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
[Migration]: migrate GetAssistancePage to typescript #34553
Conversation
@cubuspl42 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] |
I'm glad it was possible to migrate this page and figure out the proper typing. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeget-assistance-android-compressed.mp4Android: mWeb Chromeget-assistance-android-web-compressed.mp4iOS: Nativeget-assistance-ios-compressed.mp4iOS: mWeb Safariget-assistance-ios-web-compressed.mp4MacOS: Chrome / Safariget-assistance-web.mp4MacOS: Desktop |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@DylanDylann @pecanoro Can you pls confirm Staging URL we need to validate? |
@mvtglobally There are no general URLs for this page. You can follow these step in the below video Screen.Recording.2024-01-17.at.12.07.52.mov |
type GetAssistancePageProps = GetAssistanceOnyxProps & { | ||
/** Route object from navigation */ | ||
route: RouteProp<{params: {backTo: Route}}>; | ||
}; |
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.
@pecanoro Unfortunately I missed this PR before the merge, this is not a big deal but this part should look a bit different:
type GetAssistancePageProps = GetAssistanceOnyxProps & StackScreenProps<SettingsNavigatorParamList, typeof SCREENS.GET_ASSISTANCE>;
And improved type:
// src/navigation/types.ts
[SCREENS.GET_ASSISTANCE]: {
backTo: Route;
};
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.
Noted, I'll catch similar cases in the future. Do you have some other concerns about this PR?
Would you file a follow-up PR with this typing improvement?
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.
I will create a quick PR to update
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.
@cubuspl42 The PR is created here, tested on web
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.26-2 🚀
|
Details
New feature
Fixed Issues
$ #25179
PROPOSAL: NA
Tests
Offline tests
Same above
QA Steps
Same above
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
a.mp4
Android: mWeb Chrome
c.mp4
iOS: Native
iOS: mWeb Safari
s.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
d.mp4