-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Added go to room menu items to workspace #19295
Added go to room menu items to workspace #19295
Conversation
@marcaaron @abdulrahuman5196 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] |
This comment was marked as outdated.
This comment was marked as outdated.
@alitoshmatov There are 2 issues I am seeing
screen-recording-2023-05-20-at-24933-pm_3LuM8F1z.mp4 |
@abdulrahuman5196 |
@alitoshmatov The issue 2 happens to me everytime. Only time it doesn't happen is when I am already in the workspace room and navigate again to the same room. |
@alitoshmatov I did a quick dive deep check and it seems both the issues I have pointed out is available in main as well. So I think we should good for this PR since this doesn't create those issues. I will file the issues in our bugs channel. It should be related to react navigation anyway. |
@marcaaron The changes looks good and have verified at platforms at added the reviewers checklist as well. |
@abdulrahuman5196 Updated spanish version of message based on slack response https://expensify.slack.com/archives/C01GTK53T8Q/p1684872852297929?thread_ts=1684826176.793429&cid=C01GTK53T8Q |
Reviewer Checklist
Screenshots/VideosWebUntitled.20.mp4Mobile Web - ChromeUntitled.17.mp4Mobile Web - SafariUntitled.21.mp4DesktopUntitled.18.mp4iOSUntitled.19.mp4AndroidUntitled.22.mp4 |
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.
Changes looks good and checklist is also complete
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.
LGTM
✋ 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/hayata-suenaga in version: 1.3.20-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.20-5 🚀
|
*/ | ||
const goToRoom = useCallback( | ||
(type) => { | ||
const room = _.find(props.reports, (report) => report && report.policyID === policy.id && report.chatType === type); |
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.
Thread reports were not considered in this filter condition, which caused this regression:
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.
wait I'm confused here why did I self request a review???
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.
ah I see Marc was OOO
anyway, thank you for reporting Miroslav 🙇
icon: Expensicons.Hashtag, | ||
text: props.translate('workspace.common.goToRoom', {roomName: CONST.REPORT.WORKSPACE_CHAT_ROOMS.ADMINS}), | ||
onSelected: () => goToRoom(CONST.REPORT.CHAT_TYPE.POLICY_ADMINS), | ||
}, | ||
{ | ||
icon: Expensicons.Hashtag, | ||
text: props.translate('workspace.common.goToRoom', {roomName: CONST.REPORT.WORKSPACE_CHAT_ROOMS.ANNOUNCE}), | ||
onSelected: () => goToRoom(CONST.REPORT.CHAT_TYPE.POLICY_ANNOUNCE), | ||
}, |
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 missed an edge case here. This showed up even when the data was not loaded. This resulted in a crash. #30381
Details
In workspace three dot menu, added items to go to
#announce
and#admins
pageFixed Issues
$ #18896
PROPOSAL: #18896 (comment)
Tests
Offline tests
Same as Tests
QA Steps
Same as tests
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
18896-web.mov
Mobile Web - Chrome
18896-mweb.mp4
Mobile Web - Safari
18896-safari.mp4
Desktop
18896-desktop.mov
iOS
18896-ios.mp4
Android
18896-android.mp4