Format whispers/welcome messages in the report action list of each chat#17527
Conversation
|
@shawnborton I tried to style it but I am terrible with CSS and didn't manage to make it work, can I get some help 🤗 This is the block: https://github.com/Expensify/App/pull/17527/files#diff-e6bee90bf18ae0cad1bb445ed9a9c0d989476874f1005810c0f8e93f1f39b99cR290-R307 |
|
@shawnborton Hmm btw, you need to run the query with one of the comments you sent to someone else so the header in the comment is visible, but you need to pull this PR as well: https://github.com/Expensify/Web-Expensify/pull/37069 Or maybe you know how to mimic it without it. |
|
@pecanoro I'm happy to help with the styling! |
|
Amazing, thank you @grgia I think I see you in the Figma file already, but here is a closer look at alignment: |
This comment was marked as outdated.
This comment was marked as outdated.
|
Looking at those now! |
|
|
Branch with styles for ya @pecanoro https://github.com/Expensify/App/compare/georgia-whisper-styles?expand=1 |
|
Amazing, it looks awesome! @grgia It's ok to push to this branch if you want to! |
|
just to writeitdown, I had to modify the query slightly for testing: UPDATE reportActions SET message = JSON_SET(message, '$.whisperedTo', JSON('[<recipientAccountID>]')) WHERE reportActionID='<reportActionID>'; |
0xmiroslav
left a comment
There was a problem hiding this comment.
Code looks good. Some minor feedback:
|
@pecanoro does this feature work on all public rooms or limited rooms for now? Asking because it doesn't work on my public rooms. Only works with your link - https://new.expensify.com/r/2660055103772983 |
|
I replied in the chat, but basically, this will only work right now in public rooms where I set the message in the back end. I only set the message to the testing one. The functionality will get expanded in the future for all rooms to have it, but it's not a thing right now. |
|
@0xmiroslav don't forget to fill out the checklist 🙏 |
|
BUG: "Only visible to you" text isn't translated into Spanish bug.mov |
|
@pecanoro please add this condition to |
Reviewer Checklist
Screenshots/VideosiOSios.mov |
Once this is fixed, I will approve. |
|
PR updated and I retested! Can you make sure I did not break it with my last commits? 😄 |
Confirmed and tested not breaking |
0xmiroslav
left a comment
There was a problem hiding this comment.
MVP looks good so far. Thanks for great work!
|
🎯 @0xmiroslav, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #17726. |
|
Thank you everyone! |
|
✋ 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/jasperhuangg in version: 1.3.3-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.3-2 🚀
|
| <View | ||
| style={StyleUtils.getReportActionItemStyle( | ||
| hovered | ||
| || isWhisper |
There was a problem hiding this comment.
Hi, this is out of scope of this PR but we caused this issue - #20451 (comment)
On native, the "New" message maker is hidden behind the whisper message because it's not transparent.









This PR gives style to whispers:
Welcome message:

Whispers:
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/276393
Tests
Offline tests
Can't join a chat room offline.
QA
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android