-
Notifications
You must be signed in to change notification settings - Fork 3k
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
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 |
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.
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:
***@***.***>
|
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.
@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 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.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android