-
Notifications
You must be signed in to change notification settings - Fork 3k
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
17548 Personal details push to page #21049
17548 Personal details push to page #21049
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@0xmiroslav 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] |
@0xmiroslav Sorry for the new PR creation, don't know why a signed commit was missing and trying to fix it the PR got closed with no commits |
@0xmiroslav last comment from the other PR: |
@0xmiroslav can I help with something else? cc: @mountiny |
@gedu Can you please include recordings on all the platforms? |
# Conflicts: # src/libs/Navigation/AppNavigator/ModalStackNavigators.js # src/libs/Navigation/AppNavigator/Navigators/RightModalNavigator.js # src/libs/Navigation/linkingConfig.js
@mountiny Uploaded the videos, is missing the iOS ones, I'm having some issues running it.
So I'm updating my xCode version |
@mountiny I will need to upgrade my OS at least to Monterey 12.5 to use xcode 14.2, because downgrading to 13.2 didn't work, |
@mountiny @0xmiroslav all videos are up |
@cristipaval will be abel to handle this pr as a reviewer 🙇 |
I found a bug checking the bank flow, seems that after the navigation refactor something is broken, the state picker isn't getting rerender (adding bank manually) so I'm checking it |
@0xmiroslav @mountiny updated bank_flow_state.mp4 |
# Conflicts: # src/components/TextInput/BaseTextInput.js
@0xmiroslav any updates? |
@0xmiroslav can I help with something? so we can merge this PR? cc: @mountiny |
I am checklisting right now. Thanks for patience |
thanks everyone, asked about it in Slack https://expensify.slack.com/archives/C01GTK53T8Q/p1690375860010059 |
given this already exists in the App, I think we can safely proceed with this |
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.
✋ 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/mountiny in version: 1.3.46-0 🚀
|
👋🏼 I have a deploy blocker that I think is related to this PR: #23725 Does anyone have more context on this? |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.47-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.46-2 🚀
|
This caused a "regression?" #23768 After opening the modal we should always set the search text to the current selected value. For App consistency I think we consider this as a bug. |
@s77rt yeah, my bad I haven't checked that scenario. Should I handle it or you're going with the accepted #23768 (comment)? |
@koko57 I think we will be going with the contributor as he got assigned already. |
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.47-6 🚀
|
onInputChange: PropTypes.func, | ||
|
||
/** A ref to forward to MenuItemWithTopDescription */ | ||
forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({current: PropTypes.instanceOf(React.Component)})]), |
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.
When we migrated the StatePicker
component, we missed adding the label
prop, which caused a regression here.
if (key !== 'country') { | ||
return; | ||
} | ||
setCurrentCountry(value); |
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 reset the value of address state which led to this issue.
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.
Is this a regression? Seems more like an improvement, we didn't use to reset such values previously right?
We missed to make change in |
@@ -137,7 +138,6 @@ function AddressForm(props) { | |||
label={props.translate('common.zip')} | |||
accessibilityLabel={props.translate('common.zip')} | |||
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT} | |||
containerStyles={[styles.mt4]} |
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.
Turns out we need margin here. If the input is focused the label looks too close to the input above it. (#29137)
errorText: '', | ||
shouldSaveDraft: false, | ||
inputID: undefined, | ||
onBlur: () => {}, |
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.
Coming from #30195 , onBlur
is crucial for the Form validation; it should have been preserved when migrating the StatePicker
to the new push-to-page component.
Details
Updated dropdowns fields to be MenuItems which sends the user to another page to pick the option
Standarized the spaces between Inputs, created a new FormSpace component.
Fixed Issues
$ #17548
PROPOSAL: #17548 (comment)
Main PR where all started: #18424
Tests
Errors on Empty State
Update the menu Country item (no USA)
Update the menu Country item (USA)
Update the menu State item (USA)
Autocomplete address
Offline tests
Errors on Empty State
Update the menu Country item (no USA)
Update the menu Country item (USA)
Update the menu State item (USA)
QA Steps
Errors on Empty State
Update the menu Country item (no USA)
Update the menu Country item (USA)
Update the menu State item (USA)
Autocomplete address
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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)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
Web
chrome_pushDetails.mp4
safari_pushDetails.mp4
Mobile Web - Chrome
androidChrome_pushDetails.mp4
Mobile Web - Safari
iphoneSafari_pushDetails.mp4
Desktop
desktop_pushDetails.mp4
iOS
iphone_pushDetails.mp4
Android
android_pushDetails.mp4