Only show Split Bill option in the user's own workspace chat - #29551
Conversation
|
@MonilBhavsar 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] |
|
👋 @youssef-lr can you link this to the relevant issue please, and then link it to the wave7 project board as HIGH. Thanks! |
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Deploying with
|
| Latest commit: |
a16d2f2
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e893682e.helpdot.pages.dev |
| Branch Preview URL: | https://youssef-hide-split-bill-appr.helpdot.pages.dev |
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
|
Testing based on this hard coding |
|
It's old logic but can't Lines 3416 to 3432 in a16d2f2 |
Yeah we'll add this change for all policies soon, currently we're only allowing this functionality in the Teachers Unite workspace. |
| if ( | ||
| (isChatRoom(report) && participants.length > 0) || | ||
| (hasMultipleParticipants && !isPolicyExpenseChat(report) && !isMoneyRequestReport(report)) || | ||
| (isControlPolicyExpenseChat(report) && report.isOwnPolicyExpenseChat) |
There was a problem hiding this comment.
Looks like isOwnPolicyExpenseChat is always set. Otherwise it can result into undefined. Right?
There was a problem hiding this comment.
if this is check is true isControlPolicyExpenseChat then we'll always have that option set I think.
MonilBhavsar
left a comment
There was a problem hiding this comment.
Could you also please link issue in gh?
Reviewer Checklist
Screenshots/VideosWebweb1.movweb2.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
|
✋ 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/youssef-lr in version: 1.3.85-0 🚀
|
|
@youssef-lr Is this internal PR? I think applause shouldn't access the workspace as per this post |
|
@francoisl as per this post, we are not sure if applause can test this PR. Could you confirm please? |
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.85-4 🚀
|
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.3.86-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.86-5 🚀
|

Details
Fixed Issues
$ https://expensify.slack.com/archives/C02NZ2HGJAZ/p1697196979533819?thread_ts=1697129448.032929&cid=C02NZ2HGJAZ
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly 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)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
Screen.Recording.2023-10-16.at.15.23.14.mov
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop