-
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 'Task' page to TypeScript #35484
[TS migration] Migrate 'Task' page to TypeScript #35484
Conversation
9dcae8a
to
2683540
Compare
2683540
to
9a0d540
Compare
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.
Left comments, after LGTM.
77a10c3
to
b0b0964
Compare
b0b0964
to
8344608
Compare
9326c1b
to
6c38232
Compare
const headerMessage = OptionsListUtils.getHeaderMessage(recentReports?.length + personalDetails?.length !== 0 || currentUserOption, Boolean(userToInvite), debouncedSearchValue); | ||
const headerMessage = OptionsListUtils.getHeaderMessage( | ||
recentReports?.length + personalDetails?.length !== 0 || Boolean(currentUserOption), | ||
Boolean(userToInvite), |
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.
Boolean(userToInvite), | |
!!userToInvite, |
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 think Boolean is better since it is straight forward conversion
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.
The convention is to use !! across files, I agree with @kubabutkiewicz
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.
We don't have such a convention in the contributional guidelines.
I think using Boolean
is better as you always understand what is going on and do not need to focus on the quantity of !
const headerMessage = OptionsListUtils.getHeaderMessage(recentReports?.length + personalDetails?.length !== 0 || currentUserOption, Boolean(userToInvite), debouncedSearchValue); | ||
const headerMessage = OptionsListUtils.getHeaderMessage( | ||
recentReports?.length + personalDetails?.length !== 0 || Boolean(currentUserOption), | ||
Boolean(userToInvite), |
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.
The convention is to use !! across files, I agree with @kubabutkiewicz
@@ -2,7 +2,7 @@ import type Report from './Report'; | |||
|
|||
type Task = { | |||
/** Title of the Task */ | |||
title: string; | |||
title?: string; |
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.
Why was this changed?
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.
We can change the description without the title
b5268ef
to
eb5cf4b
Compare
eb5cf4b
to
dd2e3bf
Compare
@marcochavezf 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] |
Assigning @allroundexperts for C+ review |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-03-07.at.1.21.01.AM.movAndroid: mWeb ChromeScreen.Recording.2024-03-07.at.1.19.52.AM.moviOS: NativeScreen.Recording.2024-03-07.at.1.19.02.AM.moviOS: mWeb SafariScreen.Recording.2024-03-07.at.1.17.45.AM.movMacOS: Chrome / SafariScreen.Recording.2024-03-07.at.1.12.46.AM.movMacOS: DesktopScreen.Recording.2024-03-07.at.1.15.38.AM.mov |
✋ 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/marcochavezf in version: 1.4.49-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.50-5 🚀
|
Details
Fixed Issues
$#25212
PROPOSAL:
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 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
android-native-converted.webm
Android: mWeb Chrome
aandroid-web-converted.webm
iOS: Native
ios-mobile-converted.mp4
iOS: mWeb Safari
ios-web-converted.mp4
MacOS: Chrome / Safari
desktop-web-converted.mov
MacOS: Desktop
desktop-native-converted.mov