-
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
[$250] Android - chat - After tapping header, emoji picker box is shown in details page #55233
Comments
Triggered auto assignment to @johncschuster ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
It will hide the emoji context menu if the current report is not focused anymore. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional) |
@johncschuster Eep! 4 days overdue now. Issues have feelings too... |
I will dig into this tomorrow AM |
@johncschuster Eep! 4 days overdue now. Issues have feelings too... |
I didn't get to work on this today |
@johncschuster this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Job added to Upwork: https://www.upwork.com/jobs/~021885115959959479707 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-03 11:47:54 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Android - chat - After tapping header, emoji picker box is shown in details page What is the root cause of that problem?We don't have logic to hide the emoji picker when navigating to another page. Currently, the emoji picker is only hidden when App/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx Lines 337 to 347 in 4459f86
What changes do you think we should make in order to solve the problem?We should update the App/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx Lines 337 to 347 in 4459f86
Updated code: const isCalledHideEmoji = useRef(false)
const handleHideEmojiPicker = () => {
// Prevent function call twice
if (isCalledHideEmoji.current) {
isCalledHideEmoji.current = false
return
}
if (!isActiveEmojiPickerAction(report?.reportID)) {
return;
}
isCalledHideEmoji.current = true
hideEmojiPicker();
};
useEffect(() => {
if (!isScreenFocused) {
handleHideEmojiPicker()
}
return () => {
handleHideEmojiPicker()
};
}, [isScreenFocused]); We can consider checking the previous value of What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A, UI bug What alternative solutions did you explore? (Optional)N/A |
@johncschuster, @ahmedGaber93 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Reviewing today |
Updated proposalImprove pseudocode to prevent the function from being called twice |
Thanks all for the proposals Using |
The click event is fired before the animation overlay of the emoji completes, which occurs on Android because it runs slower than other platforms |
Thanks all for the proposals The both proposal suggest hide the picker when navigate to another screen, @truph01 suggest doing that on
@truph01's proposal looks better as It will cover all cases that show the picker like composer, edit message and message reaction. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@ahmedGaber93 Thanks for your feedback.
I don’t believe this is a fair point to favor that solution because:
|
@truph01 Thanks for your feedback
I think this is a good point, are you able to reproduce the issue with the message reaction picker? |
I am able to reproduce 20250206224107800.mp4 |
Yes, I can reproduce it like you did in here. |
Updated my review #55233 (comment) |
I'm happy with the proposal, but just wanted to check the reason behind this:
it'd be great to work with our partners to resolve this in lower-level libraries. But it doesn't need to block us here. |
@Julesssss Libraries like react-native-modal often include animations (e.g., fade, slide) when showing or hiding the modal. These animations introduce a delay, making the modal appear smoother but not instantaneously. |
@johncschuster, @Julesssss, @ahmedGaber93 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Of course, I thought this was due to a laggy app but I missread. Lets continue! |
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
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: 9.0.85-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
After tapping header, emoji picker box must not be shown in details page
Actual Result:
After tapping header, emoji picker box is shown in details page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6714185_1736880311895.Screenrecorder-2025-01-15-00-10-37-26.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ahmedGaber93The text was updated successfully, but these errors were encountered: