You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-12-13][$500] Mention(@) and emoji(:) popup does not close when dragging a file #30153
changed the title [-] Mention(@) and emoji(:) popup does not close when dragging a file[/-][+][$500] Mention(@) and emoji(:) popup does not close when dragging a file[/+]on Oct 23, 2023
Please 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.
What alternative solutions did you explore? (Optional)
We might wrap the BaseAutoCompleteSuggestions with Portal and remove createPortal in the index.js of AutoCompleteSuggestions specified above.
With this change, the componentToRender and return of index.js of AutoCompleteSuggestions will be something like this.
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!
changed the title [-][$500] Mention(@) and emoji(:) popup does not close when dragging a file[/-][+][HOLD for payment 2023-12-13][$500] Mention(@) and emoji(:) popup does not close when dragging a file[/+]on Dec 15, 2023
Activity
[-] Mention(@) and emoji(:) popup does not close when dragging a file[/-][+][$500] Mention(@) and emoji(:) popup does not close when dragging a file[/+]melvin-bot commentedon Oct 23, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01ebdf425a95b3b890
melvin-bot commentedon Oct 23, 2023
Triggered auto assignment to @sonialiap (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 23, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Oct 23, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 (
External)dummy-1111 commentedon Oct 23, 2023
Proposal
Please 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?
updateShouldShowSuggestionMenuToFalsefunction to receiveshouldShowargumentUpdate
App/src/pages/home/report/ReportActionCompose/SuggestionEmoji.js
Lines 112 to 119 in 35aa3db
App/src/pages/home/report/ReportActionCompose/SuggestionMention.js
Lines 240 to 247 in 35aa3db
to
App/src/pages/home/report/ReportActionCompose/Suggestions.js
Lines 74 to 77 in 35aa3db
to
This works as expected
Result
30153.mp4
What alternative solutions did you explore? (Optional)
c3024 commentedon Oct 23, 2023
Proposal
Please 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.
App/src/pages/home/report/ReportActionCompose/ReportActionCompose.js
Line 349 in 71d11e8
Suggestions are wrapped inside
Portalwith this host name hereApp/src/components/AutoCompleteSuggestions/index.native.js
Lines 8 to 11 in 71d11e8
but here we are porting it to the
bodyApp/src/components/AutoCompleteSuggestions/index.js
Line 56 in 71d11e8
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
createPortalin thereturnofindex.jsofAutoCompleteSuggestionsspecified above and wrap theViewwithPortallike thisWhat alternative solutions did you explore? (Optional)
We might wrap the
BaseAutoCompleteSuggestionswithPortaland removecreatePortalin theindex.jsofAutoCompleteSuggestionsspecified above.With this change, the
componentToRenderandreturnofindex.jsofAutoCompleteSuggestionswill be something like this.Result
Screen.Recording.2023-10-23.at.12.29.59.PM.mov
jakub-trzebiatowski commentedon Oct 23, 2023
@s-alves10 Would you publish your branch?
c3024 commentedon Oct 23, 2023
@cubuspl42
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.
42 remaining items
DylanDylann commentedon Nov 23, 2023
@sonialiap I reported this bug before here #27564. Could you help to update reporter on the OP
melvin-bot commentedon Dec 5, 2023
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!
jakub-trzebiatowski commentedon Dec 6, 2023
PR is merged
sonialiap commentedon Dec 15, 2023
Automation didn't run. The PR went to production on Dec 6, updating issue title to payment on Dec 13 and making payments
[-][$500] Mention(@) and emoji(:) popup does not close when dragging a file[/-][+][HOLD for payment 2023-12-13][$500] Mention(@) and emoji(:) popup does not close when dragging a file[/+]sonialiap commentedon Dec 18, 2023
@ishpaul777 contributor $500 paid ✔️
@cubuspl42 reviewer $500 paid ✔️
@DylanDylann bug report $50 - paid ✔️