-
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
Fix - @-mentions don't work in the same message as an inline code block or a multi-line code block #52780
base: main
Are you sure you want to change the base?
Conversation
@allgandalf Please 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/Videos |
Okay this is working great, I have some issues with my iOS build it's failing. I will update the checklist soon. @MonilBhavsar can you please confirm if the unit tests match what you originally expected ? |
@FitseTLT there are failing tests here |
All unrelated @allgandalf |
Please merge main, we cannot merge this PR with failing tests |
Passed |
I wonder if this case in the test is correct?
I think the output should be
|
Yeah, `` would in itself be a block so we would need a short mention there |
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.
Tests well on all platforms, I will wait for the unit tests to get updated and then approve
@FitseTLT can you please prioritize this one? |
@allgandalf @MonilBhavsar I know what you guys are trying to say. But the scope of this issue is to determine if a short mention is inside a code block or not and the logic I used is (whether it is right or wrong) exactly the logic we use for long mentions in our parser and in this case the consecutive backticks are taken as one by our parser so the short mention is still inside a code block. Even if we set it as a short mention our parser will put it inside a code block and that would be wrong here is a demo with the long mention. 2024-11-26.15-26-07.mp4 |
Details
Fixed Issues
$ #52214
PROPOSAL: #52214 (comment)
Tests
Precondition: You are on private domain
some of the test cases you can test with
The output should look like:
Offline tests
Same as above
QA Steps
Same as above
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)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop