create announce room when 3 or more participants#48660
create announce room when 3 or more participants#48660NikkiWines merged 14 commits intoExpensify:mainfrom
Conversation
|
@rojiphil the backend changes should be live now! |
|
Tested with the BE changes and works well. |
|
@allroundexperts 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] |
|
Note: Recent changes in ESLint has introduced some errors in the build but the errors are not due to our PR here. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-26.at.6.23.59.PM.movAndroid: mWeb ChromeScreen.Recording.2024-09-26.at.6.17.47.PM.moviOS: NativeScreen.Recording.2024-09-26.at.6.00.11.PM.moviOS: mWeb SafariScreen.Recording.2024-09-26.at.5.58.05.PM.movMacOS: Chrome / SafariScreen.Recording.2024-09-26.at.5.46.38.PM.movMacOS: DesktopScreen.Recording.2024-09-26.at.5.51.29.PM.mov |
|
@allroundexperts friendly bump here |
Giving it another look today. |
|
@rojiphil You have lint errors. Can you please fix? |
@allroundexperts The errors are due to recent changes to eslint and is not related to our PR here. More specifically, it is related to |
|
Can you merge main please? |
Done |
|
Escalated here. |
|
Working very good. Finalising the checklist now. Screen.Recording.2024-09-26.at.5.46.38.PM.mov |
NikkiWines
left a comment
There was a problem hiding this comment.
Looks good and tests well so far, just one eslint error for WorkspaceInviteMessagePage.tsx with the following error:
error 'withOnyx' is deprecated. Use `useOnyx` instead of `withOnyx` whenever possible.
@NikkiWines Fixed the lint error. |
|
✋ 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/NikkiWines in version: 9.0.41-0 🚀
|
|
Hi all, as linked above - it looks like this caused #49899 - can you take a quick look, and we can decide how to proceed? Thanks! |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.41-10 🚀
|
| }, []); | ||
|
|
||
| useEffect(() => { | ||
| if (isEmptyObject(invitedEmailsToAccountIDsDraft)) { |
There was a problem hiding this comment.
We needed an early return here for cases where the welcomeNote is intentionally not set. This is to avoid default value being set for such cases. This caused #49899.
| // eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps | ||
| }, []); | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
This caused issue where the welcome message re-appears when deleted - More information here #49996
@allroundexperts @NikkiWines
Details
This PR removes the creation of #announce room during workspace creation and, instead, optimistically creates the workspace when 3 or more participants are added to the workspace.
Also, we hide the
Go to #announce roommenu option in Workspace settings when there are less than 3 participants.Fixed Issues
$ #34929
PROPOSAL: #34929 (comment)
Tests
Manage my Team’s expensesto create a workspace.Account Settings->WorkspacesGo to #announce roomis not displayed (Test 2)workspaceto go toWorkspace Settings.Membersin LHN to navigate toMemberspageInvite memberto add a new member to workspace.Go to #announce roomis not displayed (Test 3)Memberspage andInvite memberagain.Go to #announce roomis displayed (Test 4)Offline tests
Same as Steps for Tests Section.
QA Steps
Same as Steps for Tests Section.
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 */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
Mobile Web - Chrome
48660-mweb-chrome-001.mp4
Mobile Web - Safari
48660-mweb-safari-001.mp4
Web
48660-web-safari-001.mp4
Desktop
48860-desktop-001.mp4
iOS
48860-ios-native-001.mp4
Android
48660-android-native-001.mp4