-
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
Business Info Page #30924
Business Info Page #30924
Conversation
…marcin/business-info-page
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
src/pages/ReimbursementAccount/BusinessInfo/substeps/ConfirmationBusiness.js
Outdated
Show resolved
Hide resolved
src/pages/ReimbursementAccount/BusinessInfo/substeps/AddressBusiness.js
Outdated
Show resolved
Hide resolved
const [selectedDate, setSelectedDate] = useState(value || defaultValue || undefined); | ||
|
||
useEffect(() => { | ||
// Value is provided to input via props and onChange never fires. We have to save draft manually. | ||
if (shouldSaveDraft && formID !== '') { |
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.
do we need a shouldSaveDraft
prop? Looks like for this action we need only formID. When we pass shouldSaveDraft but without formID this action still doesn't work. So looks like shouldSaveDraft is not needed
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 don't remember exactly as @MrMuzyk made this change in his PR, however I believe this is to keep the inputs and shouldSaveDraft
the same.
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 true that shouldSaveDraft
is not needed. I think it would make sense to cut it and rename formID
to formIDToSaveDraft
so it is clear what will happen once we pass it
src/pages/ReimbursementAccount/BusinessInfo/substeps/IncorporationStateBusiness.js
Outdated
Show resolved
Hide resolved
src/pages/ReimbursementAccount/BusinessInfo/substeps/PhoneNumberBusiness.js
Show resolved
Hide resolved
Can you fix accessibility props too? Otherwise, it will also throw a warning in the console. |
Have you done |
@shubham1206agra fixed padding issues on state selector and full name on confirmation page as well as the a11y props you asked for, is there anything else you found? |
Ah okay. Can we confirm by testing with an actual name and without any name at all? |
@shawnborton It should look like this since component is reused |
Cool, thanks for confirming! |
in the actual flow the user won't be able to leave this field empty, so this situation is not going to happen |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-11-14.at.8.10.38.PM.movAndroid: mWeb ChromeScreen.Recording.2023-11-14.at.7.15.13.PM.moviOS: NativeScreen.Recording.2023-11-14.at.7.31.27.PM.moviOS: mWeb SafariScreen.Recording.2023-11-14.at.4.59.13.PM.movMacOS: Chrome / SafariScreen.Recording.2023-11-13.at.9.41.37.PM.movMacOS: DesktopScreen.Recording.2023-11-14.at.7.21.44.PM.mov |
@Swor71 Can you quickly put test steps in the correct format? |
@mountiny Can you just confirm this placeholder #30924 (comment)? |
not sure if I understand, what is the problem with the format of test steps? |
I think not as a checklist I mean |
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.
One comment
INPUT_KEY: { | ||
COMPANY_NAME: 'companyName', | ||
COMPANY_TAX_ID: 'companyTaxID', | ||
COMPANY_WEBSITE: 'website', |
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 is this not companyWebsite?
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 see that has been used before, can we fix it here?
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.
@mountiny hm where did you find companyWebsite
as the key? I've moved what was there in the CompanyStep component to the new components and their respective keys:
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.
unless you meant the translation, which is here https://github.com/Expensify/App/pull/30924/files#diff-2a9066512656fa29b1565e362127de5cc11ba95b28f143a9db26f76dc3750785R1379
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.
Discussed we can do that later
0bb725a
into
Expensify:vit-tieredBankAccountFlow
const payload = { | ||
bankAccountID: getDefaultStateForField({reimbursementAccount, fieldName: 'bankAccountID', defaultValue: 0}), | ||
...values, | ||
...getBankAccountFields(['routingNumber', 'accountNumber', 'bankName', 'plaidAccountID', 'plaidAccessToken', 'isSavings']), | ||
companyTaxID: values.companyTaxID.replace(CONST.REGEX.NON_NUMERIC, ''), | ||
companyPhone: parsePhoneNumber(values.companyPhone, {regionCode: CONST.COUNTRY.US}).number.significant, |
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.
{BZ Checklist} this might have caused #50103,
RC:
- When navigating back to the company tax page, clicking the "Next" button again triggers UpdateCompanyInformationForBankAccount with the website data as "https://", which is an invalid value. As a result, the backend returns an Onyx error:
This was fixed in #50715
This PR adds Business Info Page sub step
Details
Fixed Issues
$ #30418
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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.2023-11-08.at.15.56.06.mp4
Android: mWeb Chrome
andr.web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop