-
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
Allow Adding/Viewing tag on a Split Bill #31647
Allow Adding/Viewing tag on a Split Bill #31647
Conversation
…ture/31631-tags-in-split-bills
…ture/31631-tags-in-split-bills
I've added one more case how to determine if a report is a policy expense chat - 5082a84. Because, a report can not have |
@cubuspl42 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] |
…ture/31631-tags-in-split-bills
The code looks good, I left minor comments 👍 |
…ture/31631-tags-in-split-bills
I'm testing |
A silly question: what does it mean to have tags? I think that a setup of a test account that "has tags" could be a part of QA Steps / Tests |
I means that a workspace should have tags for testing the new functionality. |
I misread this, I thought that this is a property of a user. Still, I'm not sure how to add tags to a workspace. Is it obvious? |
I can add you to a workspace where there are some tags. |
@rezkiy37 Thank you. Account: |
@cubuspl42, I've added you as an admin to a workspace called "Control Policy". No, it does not. |
…ture/31631-tags-in-split-bills
Reviewer Checklist
Screenshots/VideosWebtags-in-split-bills-web.mp4Mobile Web - Chrometags-in-split-bills-android-web-compressed.mp4Mobile Web - Safaritags-in-split-bills-ios-web.mp4DesktopiOSAndroidtags-in-split-bills-android-compressed.mp4 |
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.
Will a QA person know how to find "participant that is a workspace and has tags."? I don't think this description is precise enough, as it is a new feature
I think we could provide steps for crafting such workspace for testing purposes
I agree, makes sense. I will clarify it 🙂 |
@cubuspl42, I've added this block. I hope it is clear now. WDYT? |
@rezkiy37 I was missing the fact that you need to use OldDot! Maybe for QA people it would be obvious. Thanks for adding this! |
…ture/31631-tags-in-split-bills
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/yuwenmemon in version: 1.4.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.4.8-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
@@ -1290,10 +1255,10 @@ function splitBill(participants, currentUserLogin, currentUserAccountID, amount, | |||
* @param {String} comment | |||
* @param {String} currency | |||
* @param {String} category | |||
* @param {String} tag |
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 #34988
When creating the optimistic split transaction, we needed to pass the category & tag to buildOptimisticTransaction
Details
The PR introduces tags for split bills when a participant is a workspace. The app shows tags only for workspace participants with tags. All other cases users cannot add a tag to a split bill request. Also, we need to implement viewing a category on a newly created split bill.
Fixed Issues
$ #31631
PROPOSAL: N/A
Tests
Note: the backend is not ready yet to handle tags for split bills. So, we can check a newly added property in
offline
.Note: "a workspace with some tags" means, that before testing, you should have a created workspace, which contains tags. For manipulating with tags, please use the OD. Also, the workspace's type should be "Collect" or "Control". If you cannot create your own, I can invite you to already prepared workspace.
1. Split bill with a tag
2. Split bill without a tag
3. Request money with a tag
4. Request money without a tag
Offline tests
Same as "Tests".
QA Steps
Same as "Tests".
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)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
Android: Native
Android.mp4
Android: mWeb Chrome
Android.Chrome.mp4
iOS: Native
IOS.mp4
iOS: mWeb Safari
IOS.Safari.mp4
MacOS: Chrome / Safari
Chrome.mp4
MacOS: Desktop
Desktop.mp4