-
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
Enable IOUPreview for bill splits #18143
Conversation
2eb522d
to
8042ffb
Compare
doing final review now |
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.
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, I am idiot.
Just waiting on final review by @aimane-chnaif! Thanks for the urgency on this one! |
All tests well. reproducible step (as in video):
Screen.Recording.2023-05-05.at.7.33.10.PM.mov |
I confirmed that above happens on main as well. delete.failure.movrequest.failure.movAs all of these already happen on main, not a blocker for this PR |
Reviewer Checklist
Screenshots/VideosWebsplit.offline.movDesktopdesktop.mov |
🎯 @aimane-chnaif, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #18504. |
Thanks for the detailed review @aimane-chnaif. You should claim the bug bounty for those other issues you found too 😉 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@@ -180,7 +169,7 @@ class WorkspaceInviteMessagePage extends React.Component { | |||
<View style={[styles.mv4, styles.justifyContentCenter, styles.alignItemsCenter]}> | |||
<MultipleAvatars | |||
size={CONST.AVATAR_SIZE.LARGE} | |||
icons={this.getAvatars()} | |||
icons={OptionsListUtils.getAvatarsForLogins(this.props.invitedMembersDraft)} |
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 missed 2nd param - this.props.personalDetails
Here's follow-up PR: #18568
</Text> | ||
)} | ||
|
||
<Text>{lodashGet(props.action, 'originalMessage.comment', '')}</Text> |
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 think we should use decoded comment here for html characters
<Text>{lodashGet(props.action, 'originalMessage.comment', '')}</Text> | |
<Text>{Str.htmlDecode(lodashGet(props.action, 'originalMessage.comment', ''))}</Text> |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.12-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.12-0 🚀
|
@@ -105,10 +106,10 @@ class MoneyRequestConfirmationList extends Component { | |||
*/ | |||
getSplitOrRequestOptions() { | |||
return [{ | |||
text: this.props.translate( | |||
this.props.hasMultipleParticipants ? 'iou.split' : 'iou.request', | |||
text: Str.recapitalize(this.props.translate( |
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 #18823:
This change was overlooked. There's another case of letter needs to be uppercased as well as first letter.
i.e. "Request CA$6.00"
This could have been caught earlier if we had tested this copy change in Spanish.
chatReportID={props.chatReportID} | ||
isBillSplit={hasMultipleParticipants} |
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 #18671.
We were using participants.length to determine if action is a split action, so the check would fail if you delete all of the participants from the workspace.
This was fixed by checking the original type of the action
const isSplitBillAction = lodashGet(props.action, 'originalMessage.type', '') === CONST.IOU.REPORT_ACTION_TYPE.SPLIT;
CC @luacmartins @mountiny
Details
Enabled the IOUPreview to display within groups. Bill Splits amount, participant, comment, and currency data will show in the preview. Tapping it will open the group participants page for now.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/270707
Tests
1) Request money from a single user
2) Split a bill with a group of users
Offline tests
Run the above tests. [FOR TEST 1 ONLY] In addition, you should see a 'Total will update when you're back online' message in the IOUPReview if your users are on different currencies. This doesn't apply to group splits as we don't have an associated iouReport to read from.
QA Steps
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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android