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. |
situchan
left a comment
There was a problem hiding this comment.
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 |
neil-marcellini
left a comment
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
@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 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
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