-
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
emoji/mention suggestion are displayed #30521
emoji/mention suggestion are displayed #30521
Conversation
Coming from #29434 (comment): I think @burczu is already off for the weekend. If so I can do expedite 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.
Still doesn't work with MacOS emoji
Screen.Recording.2023-10-27.at.9.41.23.PM.mov
@situchan yes I just read the conversation on slack, I am pushing the changes to support native emoji also. It is not included in the LTR or RTL range so need to check for it in a different function |
@situchan I have fixed it for native emojis also and have tested on all the platforms. |
Nice! I like the approach of removing LTR pattern. |
Yes I have ensured that it doesn't break the original issue. You can also test it, although I have added screen recording in the PR description |
Not caused by this PR but is this expected? Cursor moves to the end when type at the beginning Screen.Recording.2023-10-28.at.12.00.43.AM.mov |
Yes, that's happening because Screen.Recording.2023-10-27.at.11.36.43.PM.movBut if you directly place the cursor at the start, it works normally. This issue seems to be related to |
That seems like separate issue though and happens only when RTL text is added which is not normal flow. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
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.
Thanks for the quick fix.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
// Ensure that the text starts with RTL characters if not we return the same text to avoid concatination with special character at the start which leads to unexpected behaviour for Emoji/Mention suggestions. | ||
if (!hasRTLCharacters(text)) { | ||
// If text is empty string return empty string to avoid an empty draft due to special character. | ||
if (text === '' || CONST.UNICODE.LTR.match(text)) { |
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.
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.
@aimane-chnaif Thanks for the feedback. I have fixed the issue and raised the PR #30559.
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.3.93-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.93-1 🚀
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.3.94-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.3.94-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.94-2 🚀
|
Details
This PR fixes the regression caused by #29434.
Fixed Issues
$ #28149
PROPOSAL:
Tests
Offline tests
QA Steps
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
MacOS: Chrome
chrome.mov
MacOS: Desktop
desktop.mov
Android: mWeb Chrome
WhatsApp.Video.2023-10-27.at.8.16.07.PM.mp4
iOS: Native
ios.mov
iOS: mWeb Safari
iOSWeb.mov
MacOS: Safari
safariweb.mov
Android: Native
android.mp4