-
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
Add leaveRoom action #15392
Add leaveRoom action #15392
Conversation
|
@sobitneupane @joelbettner One of you needs to 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] |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - ChromeScreen.Recording.2023-03-06.at.12.44.03.PM.movMobile Web - Safarimobile-web-safari.movDesktopdesktop.moviOSios.movAndroid |
Sorry jumped the gun, found this during testing @marcochavezf EDIT: fixed it for ya since I noticed there was some other logic that needed fixing, also opened this PR https://github.com/Expensify/Auth/pull/7604 that we should probably deploy before yours since your PR enables the "Public" option in the new room page. |
@marcochavezf Auth PR was just merged, if it isn't deployed tomorrow I'll ask for a CP for ya |
Add leaveRoom action (cherry picked from commit 17cf77e)
…-15392 🍒 Cherry pick PR #15392 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/jasperhuangg in version: 1.2.80-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
The LeaveRoom button looks good on web: Screen.Recording.2023-03-08.at.12.49.12.mov |
On Android (and I think the other platforms) the latest version hasn't been updated. The possible reason here. |
Tested well on the remaining platforms (1.2.80-1) 👍🏽 |
🚀 Deployed to production by https://github.com/roryabraham in version: 1.2.80-2 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
onyxMethod: CONST.ONYX.METHOD.SET, | ||
key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`, | ||
value: { | ||
stateNum: CONST.REPORT.STATE_NUM.SUBMITTED, |
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.
@marcochavezf what is the reason that we use
value: {
stateNum: CONST.REPORT.STATE_NUM.SUBMITTED,
statusNum: CONST.REPORT.STATUS.CLOSED,
},
Than directly set the report to null?
cc: @parasharrajat
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.
Hi @wildan-m, iirc we just close the report (where this values represent a closed report) to hide instead of removing completely from Onyx. And I think that's because in case we receive an update for that report, we don't show it again
Also I noticed this code doesn't exist in main, and was changed in this PR https://github.com/Expensify/App/pull/27966/files#diff-8afe5b71ee0436c21364148c86dadd640f2bff3e3d916addbb1f1f6f7e5b6a43R1939-R1940
Requires https://github.com/Expensify/Web-Expensify/pull/36572Details
Hides and shows the
Leave Room
button according to the chatType or visibility and triggers theLeaveRoom
command to leave the room.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/263097
Tests
INSERT INTO reportNameValuePairs (reportID, name, value) VALUES (, "visibility", "public_announce");
Alternatively you can use the reportID of an existing public room, ask @MitchExpensify
Leave Room
and verify the member's list is updated in the first browser sessionOffline tests
Same as
Test
steps, but before Clicking on theLeave Room
put the browser/app offline and verify the room disappears from the LHNQA Steps
marco@expensify.com
andmarco@expensifail.com
)Leave Room
and verify the member's list is updated in the other account.PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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-03-02.at.11.17.14.mov
Mobile Web - Chrome
Screen.Recording.2023-03-02.at.12.02.30.mov
Mobile Web - Safari
Screen.Recording.2023-03-02.at.12.01.10.mov
Desktop
Screen.Recording.2023-03-02.at.12.03.23.mov
iOS
Screen.Recording.2023-03-02.at.11.56.43.mov
Android
Screen.Recording.2023-03-02.at.11.58.05.mov