-
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 'SettingsProfileDetails' page to TypeScript #35307
[TS migration] Migrate 'SettingsProfileDetails' page to TypeScript #35307
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
src/pages/settings/Profile/PersonalDetails/PersonalDetailsInitialPage.tsx
Outdated
Show resolved
Hide resolved
…s-migration/SettingsProfileDetails
…s-migration/SettingsProfileDetails
…s-migration/SettingsProfileDetails
src/pages/settings/Profile/PersonalDetails/CountrySelectionPage.tsx
Outdated
Show resolved
Hide resolved
src/types/onyx/OnyxCommon.ts
Outdated
type Error = string | MaybePhraseKey; | ||
|
||
type Errors = Record<string, Error | null>; |
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.
What's the reason of this change? Let's be careful because Errors
is a type used in many files
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.
Its because for example of this
App/src/pages/settings/Profile/PersonalDetails/LegalNamePage.js
Lines 65 to 67 in f697c89
if (values.legalFirstName.length > CONST.LEGAL_NAME.MAX_LENGTH) { | |
ErrorUtils.addErrorMessage(errors, 'legalFirstName', ['common.error.characterLimitExceedCounter', {length: values.legalFirstName.length, limit: CONST.LEGAL_NAME.MAX_LENGTH}]); | |
} |
here we are not adding just string but this MaybePhraseKey
…s-migration/SettingsProfileDetails
…s-migration/SettingsProfileDetails
…s-migration/SettingsProfileDetails
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.
LGTM
@kubabutkiewicz please fix conflict |
@situchan Comments are resolved and conflicts are fixed, you can recheck 😄 |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
Please also update QA Steps
|
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 did not find an internal engineer to review this PR, trying to assign a random engineer to #25214 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
@kubabutkiewicz there's conflict |
…s-migration/SettingsProfileDetails
@situchan conflicts resolved 😄 |
@tylerkaraszewski all yours |
There are conflicts again. |
…s-migration/SettingsProfileDetails
@tylerkaraszewski conflicts resolved |
@kubabutkiewicz job2 still failing |
will take a look at this today |
…s-migration/SettingsProfileDetails
I merged this, but it caused the failure here: I am going to revert this PR and let you re-create it kubabutkiewicz, sorry about the extra work, but you can look at the failure above and resolve that in the next iteration. |
We probably shouldn't have duplicate |
🚀 Deployed to staging by https://github.com/tylerkaraszewski in version: 1.4.44-0 🚀
|
will take a look soon on that |
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
Fixed Issues
$ #25214
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.mp4
Android: mWeb Chrome
mchrome.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
msafari.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4