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. |
|
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.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
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