-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add support for demotion from workspace action report #56288
Add support for demotion from workspace action report #56288
Conversation
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
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.
Can you please list the tests you did in this PR, along with some screenshots?
@flodnv , I recorded a small video to show it. Screen.Recording.2025-02-06.at.13.14.11.mov |
Shouldn't this be merged first, before the auth and web PRs? Otherwise we would have an action that's not properly displayed |
Co-authored-by: Ionatan Wiznia <[email protected]>
I noticed that unlike the other comments or the welcome message, the demotion message doesn't appear realtime if the chat is open. Which leds me to believe I need to register that action type somewhere (even found one spot in Auth that may be related: I believe it should behave like any other message, right? Otherwise if we are in the chat we would need to go to another one and then back to get it loaded (will probably not happen a lot but still a bad UX). |
|
Yes. I keep |
@flodnv I filled the form and checked the high traffic account, but I think it doesn't apply for testing this feature, right? Also about the unit tests, I configure and ran jest here, but I think the necessary tests are already in Auth, where happens the real action happens. The action here is the role change, which already have tests. Not sure if it makes sense to mock what auth is doing in the demotion case here, unless I'm missing something. What you think? |
Does this PR need a C+ review? If so, could you re-assign another C+? I'll be off from the C+ 🙏 Thank you! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
Yeah, this does not change much if the account is big or not. I completed the checklist but now you have conflicts, can you resolve those? I'll merge afterwards. |
Yep. Done, @iwiznia 😃 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Explanation of Change
Add support for the new ActionReport that whispers to admin or auditors that they were demoted from their roles.
This is the implementation for this issue and details discussed here: #49634 (comment)
Fixed Issues
$ #49634
PROPOSAL:
Tests
Additional tests:
Offline tests
QA Steps
Same as tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop