fix company website field missing https#39162
Conversation
|
@dukenv0307 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] |
| [INPUT_IDS.BUSINESS_INFO_STEP.ZIP_CODE]: '', | ||
| [INPUT_IDS.BUSINESS_INFO_STEP.COMPANY_PHONE]: '', | ||
| [INPUT_IDS.BUSINESS_INFO_STEP.COMPANY_WEBSITE]: '', | ||
| [INPUT_IDS.BUSINESS_INFO_STEP.COMPANY_WEBSITE]: user?.isFromPublicDomain ? 'https://' : `https://www.${Str.extractEmailDomain(session?.email ?? '')}`, |
There was a problem hiding this comment.
We should create the util function in ReimbursementAccount/index.ts then use it here and WorkspaceResetBankAccountModal. We also shouldn't subscribe user in this file, instead of that we should subscribe user data in WorkspaceResetBankAccountModal
| function getDefaultCompanyWebsite(session: OnyxEntry<OnyxTypes.Session>, user: OnyxEntry<OnyxTypes.User>): string { | ||
| return user?.isFromPublicDomain ? 'https://' : `https://www.${Str.extractEmailDomain(session?.email ?? '')}`; | ||
| } | ||
| export default getDefaultCompanyWebsite; |
There was a problem hiding this comment.
| export default getDefaultCompanyWebsite; | |
| // eslint-disable-next-line import/prefer-default-export | |
| export {getDefaultCompanyWebsite}; |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-03-29.at.16.01.57.movAndroid: mWeb ChromeScreen.Recording.2024-03-29.at.15.46.18.moviOS: NativeScreen.Recording.2024-03-29.at.16.00.50.moviOS: mWeb SafariScreen.Recording.2024-03-29.at.15.44.47.movMacOS: Chrome / SafariScreen.Recording.2024-03-29.at.15.41.17.movMacOS: DesktopScreen.Recording.2024-03-29.at.15.48.26.mov |
|
Code looks good and tests well, I'll approve the PR when @tienifr finish recording the videos on small screen |
|
@dukenv0307 I added all video screenshots |
|
@cristipaval looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ 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/cristipaval in version: 1.4.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Details
Fixed Issues
$ #38585
PROPOSAL: #38585 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-03-29.at.16.10.53.mov
Android: mWeb Chrome
Screen.Recording.2024-03-29.at.16.08.15.mov
iOS: Native
Screen.Recording.2024-03-29.at.18.17.15.mov
iOS: mWeb Safari
Screen.Recording.2024-03-29.at.15.59.44.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-28.at.17.24.20.mov
MacOS: Desktop
Screen.Recording.2024-03-28.at.17.36.19.mov