-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
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>'; |
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.
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 |
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.
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 🚀
|
@@ -258,6 +280,7 @@ class ReportActionItem extends Component { | |||
<View | |||
style={StyleUtils.getReportActionItemStyle( | |||
hovered | |||
|| isWhisper |
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.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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