-
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
Clean up CheckboxWithLabel refactor #8682
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. |
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 LabelComponent = props.LabelComponent; | ||
const defaultStyles = [styles.flexRow, styles.alignItemsCenter]; | ||
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
CheckboxWithLabel
refactor.Fixed Issues
$ #8679
Tests
npm run storybook
Workspace > Connect bank account
several steps along the flowPayments > Add payment method > Debit card
Settings > 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 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
Same as the steps in the
Tests
section above.Screenshots
Web
web.mov
Mobile Web
mweb.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov
Storybooks
storybook.mov