-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Clean up CheckboxWithLabel refactor #8682
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
Conversation
|
Hey, I'm just seeing this after getting back from being sick for all of last week. I'll review this tomorrow. Sorry for the delay |
|
Hey! No worries, I just created this one yesterday. |
Luke9389
left a comment
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.
Yep this all looks good to me.
Thanks for waiting
|
@Luke9389 looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
|
Hmmm, It looked like the tests were passing 🤔 |
|
Yea we can see they were passing by clicking 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. |
|
@luacmartins Can you please clarify how we can test this part of PR /iou/send/enable-payments "Terms step". This one is tricky to test, I'd recommend hard coding the step to always be shown in IOS? |
|
@kbecciv you could test it by navigating to |
|
@luacmartins Team is really facing hard time to validate the last step. Few times we hit KI #7185 preventing the full flow completion Screen_Recording_20220427-182245_New.Expensify.mp4Screen_Recording_20220427-183443_New.Expensify.mp4 |
|
@mvtglobally I think it's fine to skip the last step if all the other checkboxes worked as intended. I tried to get to that step myself, but wasn't able to either. |
|
🚀 Deployed to production by @chiragsalian in version: 1.1.57-17 🚀
|
| const wrapperStyles = _.isArray(props.style) ? [...defaultStyles, ...props.style] : [...defaultStyles, props.style]; | ||
|
|
||
| // We keep track of the checkbox "state" in a local variable so that this component has an uncontrolled input interface | ||
| let isChecked = props.defaultValue ? props.defaultValue : props.isChecked; |
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.
Details
Cleans up the
CheckboxWithLabelrefactor.Fixed Issues
$ #8679
Tests
npm run storybookWorkspace > Connect bank accountseveral steps along the flowPayments > Add payment method > Debit cardSettings > Profile > Set timezone automatically/iou/send/enable-payments"Terms step". This one is tricky to test, I'd recommend hard coding the step to always be shown hereVerify that no errors appear in the JS console
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followed/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)QA Steps
Same as the steps in the
Testssection above.Screenshots
Web
web.mov
Mobile Web
mweb.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov
Storybooks
storybook.mov