-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
create announce room when 3 or more participants #48660
create announce room when 3 or more participants #48660
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 |
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.
Works great!
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.
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. |
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.
✋ 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 🚀
|
@@ -100,14 +86,22 @@ function WorkspaceInviteMessagePage({ | |||
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps | |||
}, []); | |||
|
|||
useEffect(() => { | |||
if (isEmptyObject(invitedEmailsToAccountIDsDraft)) { |
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.
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.
@@ -100,14 +86,22 @@ function WorkspaceInviteMessagePage({ | |||
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps | |||
}, []); | |||
|
|||
useEffect(() => { |
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.
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 room
menu option in Workspace settings when there are less than 3 participants.Fixed Issues
$ #34929
PROPOSAL: #34929 (comment)
Tests
Manage my Team’s expenses
to create a workspace.Account Settings
->Workspaces
Go to #announce room
is not displayed (Test 2)workspace
to go toWorkspace Settings
.Members
in LHN to navigate toMembers
pageInvite member
to add a new member to workspace.Go to #announce room
is not displayed (Test 3)Members
page andInvite member
again.Go to #announce room
is displayed (Test 4)Offline tests
Same as Steps for Tests Section.
QA Steps
Same as Steps for Tests Section.
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
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
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