Allow messages only containing backticks to be created#13941
Conversation
|
@Santhosh-Sellavel @srikarparsi 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] |
|
@tgolen I can't send empty blocks still on slack Screen.Recording.2023-01-03.at.4.17.04.AM.mov |
|
I think Srikar is going to be OOO now so I can step in and help with the review now. @Santhosh-Sellavel Thanks for noting that, I think that is more of a feature request at this point though. I think in the PR we should focus on fixing the issue mentioned in the linked GH and then we can potentially improve the markdown logic although that might also fall into some larger project as there is lots of small markdown issues we might have worth refactor in the WAQ spirit. Lets see if Tim agrees but would you be able to test this PR now? |
|
I was talking with both @AndrewGable and @roryabraham about this yesterday, and we all kind of came to different conclusions about different things. I am personally against guessing what a user intends with their message and that anything the user types into the composer is a valid message. This means that messages with only 1, 2, or 3 backticks are all valid messages. This is against what Slack is doing for the case of 3 backticks. But really, do we need to copy Slack only for the case of 3 backticks? Is it that important? I don't think it's worth it. Then, you also have to kind of take GitHub behavior into account, which is more on the same side as me (anything typed is a valid message). The only exception I can give into with my reasoning is messages that only contain whitespace. I think the best path forward, for now, is to allow messages with anything except whitespace, and then if we really want to nail down the case of 3 backticks, we can open a discussion on Slack to discuss that. |
I agree with that! @Santhosh-Sellavel would you be able to follow up with the PR reviewer checklist? |
|
Yeah I'll do it today. |
Reviewer Checklist
Screenshots/VideosDesktop & WebScreen.Recording.2023-01-05.at.4.40.26.AM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-01-05.at.4.56.37.AM.moviOS & AndroidScreen.Recording.2023-01-05.at.4.52.43.AM.mov |
|
LHN Preview is different from the actual message is this expected? @tgolen |
|
The behavior in the LHN is expected. As far as I know, the LHN does not display any formatted text, so it will just show plaintext previews (and it seems to strip some characters). Anyway, I think that's fine, as well as any of those interesting display issues. Thanks for testing! |
|
Cool please assign me this #13854 |
|
Done!
…On Wed, Jan 4, 2023 at 5:02 PM Santhoshkumar Sellavel < ***@***.***> wrote:
Cool please assign me this #13854
<#13854>
—
Reply to this email directly, view it on GitHub
<#13941 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJMAB4VWDZCBOKOGQ5ALCDWQYMRFANCNFSM6AAAAAATPDROPY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
mountiny
left a comment
There was a problem hiding this comment.
@Santhosh-Sellavel Thank you, really appreciate the thorough testing 🙇
|
✋ 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 production by @luacmartins in version: 1.2.49-0 🚀
|


Fixed Issues
$ #13854
Tests
Offline tests
Same as the above, but do step 4-6 after coming back online
QA Steps
Same as the above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android