[Better Expense Report View] Add messages count ChatBubble to MoneyRequestReportView rows#58626
Conversation
|
Waiting for 58360 to be merged. |
|
@ 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] |
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
|
Left you some design comments, let's try to align this with our mockups please - thanks! |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
testing on the adhoc build definitely feels slower than on staging - might need to also focus on performance once we clean up the logic and design cc @Kicu |
Thanks for pointing out. Though I did want to focus on performance from the get go, that's why I decided to create a fresh component and copy things from |
| containerStyles={[styles.ml3, styles.mt0, styles.mb2]} | ||
| transaction={transactionItem} | ||
| /> | ||
| {hasCategoryOrTag && ( |
There was a problem hiding this comment.
In the wide screen, for displaying category, tag, error, chat bubble, I suggest we should split it into two column first
<View style={[styles.flexColumn ,....>
<View style={[styles.flexRow ,....>
...... Displaying Category, Tag
</View>
<View>
...... Chat bubble
</View>
</View>
There was a problem hiding this comment.
This will be more readable and avoid duplicated code as I think. Please correct me If I missed anything
There was a problem hiding this comment.
@JakubKorytko What do you think about my suggestion here?
|
Thanks for the comments, I've addressed them all. However, I am not sure about 1 particular style that is line height. In the figma, the line height is really specific (11.6 for mobile, 12 for web/desktop), and I couldn't find it anywhere in the code. I've done it this way: App/src/components/TransactionItemRow/DataCells/ChatBubbleCell.tsx Lines 40 to 60 in ac666ed Please, let me know if you want me to add 2 new variables to styles, set it to similar existing value or leave it as it is. |
|
@JakubKorytko I think we'd just use |
|
Just DM @JakubKorytko to discuss about #58626 (comment). Waiting for him to update it |
| nextToRBR: shouldShowChatBubbleComponent && !hasCategoryOrTag, | ||
| nextToCategoryOrTag: shouldShowChatBubbleComponent && hasCategoryOrTag, |
There was a problem hiding this comment.
Why do we need this object? Shouldn't we always show it near the end of the row, next to the total?
Yes the line-height can be |
|
Yup, totally agree with that. The real important thing here is that the text is just perfectly vertically centered within the box. The line height technically shouldn't matter too much (we could literally make it just |
Reviewer Checklist
Screenshots/Videos |
mountiny
left a comment
There was a problem hiding this comment.
Agreed on the feedback, but great to move this ahead!
|
✋ 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/mountiny in version: 9.1.17-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.1.17-1 🚀
|












Explanation of Change
This PR extends PR 58360 by adding a ChatBubble column that displays the total number of messages and whether the thread has been read recently; its background color is green or the default theme.
Things to note:
Fixed Issues
$ #57508
PROPOSAL: N/A
Tests
Important: in order to test change function canUseTableReportView to return true, or have BETA tableReportView set
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop