-
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
fix:copy-update admin only posting rooms #24643
fix:copy-update admin only posting rooms #24643
Conversation
@joelbettner 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] |
I have read the CLA Document and I hereby sign the CLA |
will update videos for all platforms, waiting for confirmation #23819 (comment) |
@eVoloshchak PR is up for your review |
@joelbettner since you are assigned by melvin can you review please? |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-21.at.23.53.53.movMobile Web - Chromescreen-20230821-235646.mp4Mobile Web - SafariScreen.Recording.2023-08-21.at.23.53.16.movDesktopScreen.Recording.2023-08-21.at.23.54.30.moviOSScreen.Recording.2023-08-21.at.23.51.02.movAndroidscreen-20230821-235940.mp4 |
@ishpaul777, the code looks good, there are a couple of small changes required
|
I am making the required changes. Just one question is there a utility get user role? if not can you point me to similar situation and how it is handled in codebase? |
|
what should be the copy for admins in room? is it the same as when room is for all Members to send messages. |
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.
👍
please confirm if these are copy for welcome messages in different conditions. (I dont want to make a assumption that may results is regression later). i'll commit and upload videos as soon as i get confirmation if (isAdminsOnlyPostingRoom(report) && !isUserPolicyAdmin) {
welcomeMessage.phrase1 = Localize.translateLocal('reportActionsView.beginningOfChatHistoryAdminOnlyPostingRoom');
} else if (isAnnounceRoom(report)) {
welcomeMessage.phrase1 = Localize.translateLocal('reportActionsView.beginningOfChatHistoryAnnounceRoomPartOne', {workspaceName});
welcomeMessage.phrase2 = Localize.translateLocal('reportActionsView.beginningOfChatHistoryAnnounceRoomPartTwo', {workspaceName});
} |
@ishpaul777, yes, exactly |
@ishpaul777, tests are failing |
@eVoloshchak fixed |
@eVoloshchak Please review changes I'll add videos if everything looks good to you. |
🎯 @eVoloshchak, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #25621. |
🚀 Deployed to staging by https://github.com/joelbettner in version: 1.3.56-2 🚀
|
This PR is causing this regression: #25718 |
{(!isAdminsOnlyPostingRoom || isUserPolicyAdmin) && ( | ||
<> | ||
<Text | ||
style={[styles.textStrong]} | ||
onPress={() => Navigation.navigate(ROUTES.getReportDetailsRoute(props.report.reportID))} | ||
suppressHighlighting | ||
> | ||
{ReportUtils.getReportName(props.report)} | ||
</Text> | ||
<Text>{roomWelcomeMessage.phrase2}</Text> | ||
</> | ||
)} |
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.
I guess the check should have rendered the second phrase if the room was archived
This change caused this regression: #25718
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|
🚀 Deployed to staging by https://github.com/joelbettner in version: 1.3.58-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
Details
Fixed Issues
$ #23819
PROPOSAL: #23819 (comment)
Tests
Welcome to #room_name!
¡Bienvenido a #room_name!
Only admins can send messages in this room.
Solo los administradores pueden enviar mensajes en esta sala.
Offline tests
QA Steps
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)/** 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
Screen.Recording.2023-08-22.at.2.10.07.AM-1.mov
Mobile Web - Chrome
Screen.Recording.2023-08-22.at.2.43.46.AM-1.mov
Screen.Recording.2023-08-22.at.2.45.52.AM-1.mov
Mobile Web - Safari
Screen.Recording.2023-08-22.at.2.22.52.AM-1.mov
Desktop
Screen.Recording.2023-08-22.at.2.36.53.AM.mov
iOS
Screen.Recording.2023-08-22.at.3.27.32.AM.mov
Android
android.mp4