Fix thread header for workspace chats#19185
Conversation
|
@Santhosh-Sellavel @madmax330 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] |
|
@grgia Screen.Recording.2023-05-18.at.9.46.12.PM.mov |
Screen.Recording.2023-05-18.at.9.52.36.PM.movWhile creating a thread from a message sent on the workspace chat. Two times API's hit both seemed to fail with following response Response for first API
Repsonse for second API
|
|
@Santhosh-Sellavel the optimistic data being wrong for the loading screen seems to be a separate bug. But cc @chiragsalian it looks like there's a problem with creating workspace threads in NON-ROOM workspace chats |
|
@grgia so what's next here? Should we skip testing these steps
|
|
@grgia bump! |
|
@Santhosh-Sellavel yes, let's skip those steps. |
|
@grgia Test steps are wrong as we know that cannot create a thread from workspace chat messages on creating from workspace rooms work |
|
@Santhosh-Sellavel I'll add ONYX test steps. We'll just manually add a correctly formatted report in console to test. I'll ping you when I've added it |
|
@Santhosh-Sellavel I believe we pushed a fix and this can be tested with original steps now |
|
Sorry on it today |
|
@grgia thread created now. An error is shown while sending a message on the workspace chat thread.
|
|
@chiragsalian could you take a look at this flow one more time? #19185 (comment) |
|
@Santhosh-Sellavel this PR should not be blocked by the last bug, we just need to be able to test the headers |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-06-07.at.9.43.46.PM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-06-07.at.10.13.55.PM.movDesktopScreen.Recording.2023-06-07.at.9.44.34.PM.moviOS & AndroidScreen.Recording.2023-06-07.at.10.23.35.PM.mov |
Santhosh-Sellavel
left a comment
There was a problem hiding this comment.
LGTM, tests well!
| } | ||
|
|
||
| return [workspaceName, roomName].join(' • '); | ||
| return roomName ? [workspaceName, roomName].join(' • ') : workspaceName; |
There was a problem hiding this comment.
NAB shouldn't the • symbol be in the CONST?
|
✋ 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/madmax330 in version: 1.3.26-0 🚀
|
This comment was marked as resolved.
This comment was marked as resolved.
|
@isagoico • That is for thread from workspace room chat. |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.26-4 🚀
|

Details
We should not append the • if the chat is in a workspace and not a room.
Fixed Issues
$ #19186
Tests
Verify that no errors appear in the JS console
Open a thread made in a workspace chat (not a workspace room chat)
Verify that the header title is the thread parent and the subtitle is
<Workspace Name>Open a thread from a workspace room chat.
Verify that the header title is the thread parent and the subtitle is
<Workspace Name • Subtitle >Offline tests
QA Steps
Verify that no errors appear in the JS console
Verify that no errors appear in the JS console
Create a new workspace and add a member
Send a message in the workspace chat
Create a thread from that message
Verify that the header title is the thread parent and the subtitle is
<Workspace Name>Create a room in the workspace
Send a message in the workspace room
Create a thread from that message
Verify that the header title is the thread parent and the subtitle is
<Workspace Name • Subtitle >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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android