-
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
Mention list doesnt automatically popup when typing @ #25660
Mention list doesnt automatically popup when typing @ #25660
Conversation
@arosiclair 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] |
@WikusKriek Does this fix the native ios as well? |
@techievivek this is ready. |
Actually found that waiting for selection to update in state and then calling calculateMentionSuggestion fixes the issue on all platforms. const onSelectionChange = (e) => {
LayoutAnimation.configureNext(LayoutAnimation.create(50, LayoutAnimation.Types.easeInEaseOut, LayoutAnimation.Properties.opacity));
setSelection(e.nativeEvent.selection);
/**
* we pass here e.nativeEvent.selection.end directly to calculateEmojiSuggestion
* because in other case calculateEmojiSuggestion will have an old calculation value
* of suggestion instead of current one
*/
};
useEffect(() => {
calculateEmojiSuggestion(selection.end);
calculateMentionSuggestion(selection.end);
}, [calculateEmojiSuggestion, calculateMentionSuggestion, selection.end]);
``` |
@WikusKriek Sorry for the delay in reviews, only web/desktop seems to be working for me, I am unable to build on ios/android.(something is messed up on my end).
Do you think you can push that change in this PR? |
No worries I also had quite a battle with android builds the past few days. I can push that change yes. |
@techievivek I applied the new changes, am busy uploading new screen recordings. Still have android left. |
@WikusKriek Did you fix the issue with native ios? I can't see that in the screen recording. |
Going to pass this to a C+ so they can move this forward. |
const onSelectionChange = (e) => { | ||
LayoutAnimation.configureNext(LayoutAnimation.create(50, LayoutAnimation.Types.easeInEaseOut, LayoutAnimation.Properties.opacity)); | ||
setSelection(e.nativeEvent.selection); | ||
}; |
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.
useCallback can still be used with empty dependency array
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.
bump for this minor change
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.
Done @situchan.
I confirmed fix on iOS as well |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.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.
LGTM
✋ 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 staging by https://github.com/Beamanator in version: 1.3.58-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.3.59-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
Details
Suggestion list will display when opening chat and typing @ on all platforms except iOS native.
Fixed Issues
$ #25649
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
Same as Test 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
Web
Web.2023-08-13.at.17.53.34.mov
Screen.Recording.2023-08-23.at.14.23.49.mov
Mobile Web - Chrome
Android.chrome.2023-08-13.at.17.51.57.mov
Mobile Web - Safari
IOS.safari.2023-08-13.at.16.41.03.mov
Screen.Recording.2023-08-23.at.14.54.50.mov
Desktop
Desktop.2023-08-13.at.17.55.39.mov
iOS
Screen.Recording.2023-08-22.at.13.03.53.mov
Screen.Recording.2023-08-23.at.14.45.23.mov
Android
Android.native.2023-08-13.at.17.46.09.mov