-
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
feat: Step 3 UI #51667
feat: Step 3 UI #51667
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@hungvu193 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] |
I'll review this weekend! |
I think we missed some regexes for zipcode: zipcode.movHere's the old regex for zipcode: App/src/components/AddressForm.tsx Lines 121 to 131 in bef062b
|
Also please add the validation for invalid phone number: Screen.Recording.2024-11-04.at.13.19.56.mov |
If we choose other country that don't have state option visible, we should also remove the validation for it: Screen.Recording.2024-11-04.at.13.24.51.mov |
This seems to me like a regex for US zipcodes only (I've tried to enter mine which is Polish and it wasn't passing). I'll try to find a universal one. |
@hungvu193 I've fixed all of the comments and got approval on translations. Everything should work correctly now. Validation for zipCode is rather loose because of how diverse these codes can be. I might have to look into typings in FormProvider in the new method I've added but Im not 100% sure. |
I got this crashed while entering VBBA flow, I don't think it comes from our PR, so can you please merge main again? ty Screen.Recording.2024-11-05.at.09.23.26.mov |
Here's the offending PR btw, looks like it's still in progress (#51981) |
@hungvu193 I've applied the fix from the offending PR in here so you can finish review process |
Thanks I'll continue the testing 👍 |
src/pages/ReimbursementAccount/NonUSD/BusinessInfo/substeps/ContactInformation.tsx
Outdated
Show resolved
Hide resolved
@MrMuzyk Now, we have another bug, Screen.Recording.2024-11-05.at.16.41.01.mov |
It's probably caused by the fact that when user comes back to any of the sub steps from the confirmation screen we don't want to save anything he changed unless he confirms it. Condition to display state field probably is based on draft value. Looking for a fix now |
@hungvu193 I've fixed known issues and found and fixed a few more edge cases when it came to autocomplete and editing from confirmation screen. You can check again |
Thank you. I'll check again in a while 💯 |
I still can reproduce the issue, here are the steps:
Screen.Recording.2024-11-05.at.22.19.29.mov |
@hungvu193 Fixed that issue and rebased with latest main |
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.
All good so far! One comment left.
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-06.at.18.24.29.movAndroid: mWeb ChromeScreen.Recording.2024-11-06.at.18.14.47.moviOS: Nativeios.moviOS: mWeb SafarimSfari.movMacOS: Chrome / SafariScreen.Recording.2024-11-06.at.18.02.34.movMacOS: DesktopDesktop.mov |
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.
Tests well!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Details
This PR introduces UI for step 3 in global reimbursements flow.
Fixed Issues
$ #50899
PROPOSAL:
Tests
Same as QA steps
Offline tests
QA Steps
Note:
AddressFormFields component was updated. While everything should remain exactly the same following places were affected by this:
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
steo3-android-native.mp4
Android: mWeb Chrome
step3-android-chrome.mp4
iOS: Native
step3-ios-native.mp4
iOS: mWeb Safari
step3-ios-safari.mp4
MacOS: Chrome / Safari
step3-web.mp4
MacOS: Desktop
step3-desktop.mp4