-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-22] [$250] Category/Tags URL Pop-Up Persists and Flashes After Click in Safari #61119
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
Comments
Triggered auto assignment to @flaviadefaria ( |
Job added to Upwork: https://www.upwork.com/jobs/~021917975135639488153 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @suneox ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The pop-up lingers and flashes, creating a distracting and possibly confusing user experience. What is the root cause of that problem?
What changes do we need to make to resolve the problem?Modify the
const [isPressed, setIsPressed] = React.useState(false);
linkProps.onPress = () => setIsPressed(true);
<Tooltip text={linkHref} shouldRender={!isPressed}>
React.useEffect(() => {
if (isPressed) {
setIsPressed(false); // Reset state
onPress?.(); // Trigger navigation
}
}, [isPressed]); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)N/A Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@dmkt9 Thank you for your proposal. Could you please provide more details about the root cause of why this issue only happens on Safari? |
@suneox I don't know whether to call this issue a bug or a feature of MacOS (I can reproduce it with Edge/Chrome). Because the root of the problem is that the |
@dmkt9 This issue happens on the Tooltip. We need to find the root cause related to the action that hides the tooltip. In your current solution, you only handle it in BaseAnchorForCommentsOnly, which doesn't make sense for addressing the root cause. |
Strange, today I tried to reproduce this issue on Chrome/macOS but couldn’t, even though I previously debugged there. No worries, the issue still persists on Safari. @suneox I understand your concern that I’m merely "masking" the problem rather than resolving it. Let me explain step by step:
console.log({isVisible, children: children({isVisible, showTooltip, hideTooltip, updateTargetBounds})})
useEffect(() => {
return () => {
handleMouseEvents('leave')();
};
}, []);
|
🚨 Edited by proposal-police: This proposal was edited at 2025-05-06 18:01:08 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Category/Tags URL Pop-Up Persists and Flashes After Click in Safari What is the root cause of that problem?When a user clicks a
Once the new page loads, the tooltip becomes focused again because
Here is the video showing my debugging process — it will help you understand more easily: Screen.Recording.2025-05-07.at.01.05.13.mp4What changes do you think we should make in order to solve the problem?To prevent this issue, we should return early from the tooltip rendering logic if the current screen is not focused. This ensures that the tooltip does not persist during navigation. add if (!isFocused) {
return children;
} Note: This issue occurs only in Safari, but we can apply the fix conditionally for Safari only Screen.Recording.2025-05-07.at.00.59.57.movWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Thank you for the update. I’ll review the proposal in a few hours |
Since Safari events don't work as expected, and all proposals are just workarounds, the proposal from @huult makes more sense than @dmkt9, as it handles showing the tooltip when the screen is focused LGTM, so we can go with this proposal 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @JS00001, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I think that @huult 's proposal makes more sense, rather than introducing more state/useEffects. Assigning to you! |
📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @huult 🎉 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 are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.45-21 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-05-22. 🎊 For reference, here are some details about the assignees on this issue:
|
@suneox @flaviadefaria @suneox The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
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.1.37-2
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: @davidcardoza
Slack conversation (hyperlinked to channel name): #Quality
Action Performed:
Expected Result:
The URL pop-up should disappear after the link is tapped, indicating that the action has been completed.
Actual Result:
The pop-up lingers and flashes, creating a distracting and possibly confusing user experience.
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Platforms Tested:
On which of our officially supported platforms was this issue tested:Screenshots/Videos
Add any screenshot/video evidence
Recording.3187.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @flaviadefariaThe text was updated successfully, but these errors were encountered: