-
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
[HOLD for payment 2023-12-13][$500] Mention(@) and emoji(:) popup does not close when dragging a file #30153
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01ebdf425a95b3b890 |
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Suggestions popup doesn't close when dragging a file What is the root cause of that problem?We do nothing to close suggestions popup when dragging a file What changes do you think we should make in order to solve the problem?
to
This works as expected Result30153.mp4What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Mention and emoji suggestions appear over the drop screen when dragging a file on to the composer with suggestions open. What is the root cause of that problem?I think the expected behaviour should be not necessarily to close the suggestions popup. Instead we want the 'Drop to Upload' screen to be over the suggestions popup. We are using this host here to show suggestions.
Suggestions are wrapped inside Portal with this host name hereApp/src/components/AutoCompleteSuggestions/index.native.js Lines 8 to 11 in 71d11e8
but here we are porting it to the body
so the suggestions popover appears over the "Drop to Upload" screen. What changes do you think we should make in order to solve the problem?I think we should remove <Portal hostName="suggestions"><View style={StyleUtils.getBaseAutoCompleteSuggestionContainerStyle({left, width, bottom})}>{componentToRender}</View></Portal> What alternative solutions did you explore? (Optional)We might wrap the const componentToRender = (
<Portal hostName="suggestions">
<BaseAutoCompleteSuggestions
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
ref={containerRef}
/>
</Portal>
);
return (
Boolean(width) &&
<View style={StyleUtils.getBaseAutoCompleteSuggestionContainerStyle({left, width, bottom})}>{componentToRender}</View>
); ResultScreen.Recording.2023-10-23.at.12.29.59.PM.mov |
@s-alves10 Would you publish your branch? |
Is the suggestions popup closing the expected behaviour? I think it need not close. In my opinion, the expected behaviour should be that the drop screen should be over the suggestions popup. |
Please check this branch https://github.com/s-alves10/App/tree/fix/issue-30153 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Mention(@) and emoji(:) popup does not close when dragging a file What is the root cause of that problem?We don't have the logic to close the suggestion popup when we drag a file What changes do you think we should make in order to solve the problem?In
After we send the attachment or close the preview modal, the composer will be focused again and the popup will be opened, so we don't need to update What alternative solutions did you explore? (Optional) |
this has same root cause(we dont hide popover when dragging over) as #26553 which was decided to close. |
I think this is apparently a bug and needs to be fixed cc @cubuspl42 |
@ishpaul777 Thanks for referencing the earlier issue, as it's always good to know that this was considered before. I do agree with @s-alves10 that this is an obvious visual glitch. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Mention(@) and emoji(:) popup does not close when dragging a file What is the root cause of that problem?We are not closing the Popover when a file is dragging, case not handled What changes do you think we should make in order to solve the problem?To resolve the issue, Hiding only suggestion and emojipopover when dragover would solve the issue but it would be not enough as there are other popoover which can cause the same issue here React.useEffect(() => {
// hide popover on drag enter
const listener = () => {
closePopover();
};
document.addEventListener('dragenter', listener);
return () => {
document.removeEventListener('dragenter', listener);
};
}, [closePopover]); Note: This will hide any popover menu visibile on Drag enter Screen.Recording.2023-09-03.at.12.23.11.AM.mov |
We need to use portal for the issue #27036 Mention suggestions wouldn't show when cancelling the dragging in your solution I think your solution would work for other popovers, but we need to show suggestions again after dragging is cancelled or completed cc @cubuspl42 |
I am not suggesting to remove the portal altogether. I think we should use the host "suggestions" instead of document body for the portal. |
@cubuspl42 I skimmed the issue and looks like we don't quite have a proposal we want to move forward with, is that correct? Are there any that are close and could be accepted with some changes? |
Sorry for the lack of updates. I think we'll be able to pick a proposal from the existing ones, possibly with small adjustments. It's a good observation that the context menu is also affected! Would it be possible to use our |
Will you let me know your thoughts on #30153 (comment)? |
I don't feel like it's a necessity to automatically show the suggestion popup after the drag is finished. I would personally prefer it if it didn't open automatically; still, both behaviors sound acceptable. |
I'm saying the case where dragging is cancelled. The composer would get focused again but the suggestion popup doesn't show. We have been treating this as a bug up to now. A similar issue is #22447. |
Triggered auto assignment to @joelbettner, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@cubuspl42 @joelbettner @sonialiap this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 @cubuspl42 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @daveSeife 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@cubuspl42 The proposal from @ishpaul777 looks good. I assigned him to this issue. |
A draft PR will be up by tomorrow. (thursday) |
@sonialiap I reported this bug before here #27564. Could you help to update reporter on the OP |
This issue has not been updated in over 15 days. @cubuspl42, @joelbettner, @sonialiap, @ishpaul777 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR is merged |
Automation didn't run. The PR went to production on Dec 6, updating issue title to payment on Dec 13 and making payments |
@ishpaul777 contributor $500 paid ✔️ |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.88.1
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697872753258699
Action Performed:
Notice the popup does not dismiss
Expected Result:
Popup closes when dragging a file
Actual Result:
Popup does not close when dragging a file
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
t4popupDragingFile.MacChrome.mp4
Recording.5106.mp4
MacOS: Desktop
t4PupupDragingfile.MacDesktop.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: