-
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
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] |
@@ -84,7 +93,7 @@ function resetFreePlanBankAccount(bankAccountID: number, session: OnyxEntry<Onyx | |||
[INPUT_IDS.BUSINESS_INFO_STEP.STATE]: '', | |||
[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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
src/libs/BankAccountUtils.ts
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 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
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