-
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
Enable Form inputs to manipulate related field values #9207
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@@ -161,7 +165,7 @@ const AddressSearch = (props) => { | |||
label: props.label, | |||
containerStyles: props.containerStyles, | |||
errorText: props.errorText, | |||
hint: props.hint, | |||
hint: displayListViewBorder ? undefined : props.hint, |
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 added this because I noticed that the dropdown was showing below the hint, which looked odd.
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.
Working pretty well. Obviously, this doesn't fill the state field when entering a UK address (as expected). But the ZIP code input field was updated.
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.
Okay, I managed to test successfully.
✋ 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 @Julesssss in version: 1.1.70-2 🚀
|
2 similar comments
🚀 Deployed to staging by @Julesssss in version: 1.1.70-2 🚀
|
🚀 Deployed to staging by @Julesssss in version: 1.1.70-2 🚀
|
@luacmartins We are not able to test _Send money > Enter Amount > Select User > Pay with Expensify > Bank Account > Additional Details . We are blocked by this issue #7185 |
@kavimuru thanks for letting me know. I think that's ok if all the other flows were tested and passed. We should be good here. |
🚀 Deployed to production by @yuwenmemon in version: 1.1.71-2 🚀
|
👋🏻 Coming here from #16448, which was introduced by this PR App/src/components/AddressSearch.js Line 168 in 671dd98
If you select an item from the list, we manually set In short, this just surfaced a limitation of the initial implementation in #6115. This wasn't needed in the original PR since there was no tooltip logic, but now it should also set |
Details
Fixed Issues
$ #9059
Tests
../.env.staging
to../.env
, to avoid CORS errors with theAddressSearch
componentnpm run storybook
and in theForm
tests, enter an address and verify that theState
field is updated as well.Settings > Payments > Add payment method > Debit card
+ > Send money > Enter Amount > Select User > Pay with Expensify > Bank Account > Additional Details
Settings > Workspace > Connect bank account > Company information
Settings > Workspace > Connect bank account > Personal information
Settings > Workspace > Connect bank account > Additional information
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
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)QA Steps
Settings > Payments > Add payment method > Debit card
+ > Send money > Enter Amount > Select User > Pay with Expensify > Bank Account > Additional Details
Settings > Workspace > Connect bank account > Company information
Settings > Workspace > Connect bank account > Personal information
Settings > Workspace > Connect bank account > Additional information
Screenshots
Web
web.mov
Mobile Web
mweb.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov
Storybook
storybook.mov