-
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 native - Workspace chat tooltip appears broken #53979
Comments
Triggered auto assignment to @alexpensify ( |
This bug is consistently reproducible for me |
It's reproducible for me on the android simulator but not on my android physical device |
Job added to Upwork: https://www.upwork.com/jobs/~021868166063366405980 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
@mananjadhav - We are waiting for proposals here. Heads up, I will be offline until Wednesday, December 18, 2024, and will not actively watch over this GitHub during that period.If this GitHub requires an urgent update, please ask for help in the #expensify-open-source Slack Room. If the inquiry can wait, I'll review it when I return online. |
Yes waiting for proposals |
Hi @mananjadhav @rayane-djouah My proposal here addresses and resolves this issue. |
Edited by proposal-police: This proposal was edited at 2024-12-17 10:01:40 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Android native - Workspace chat tooltip appears broken What is the root cause of that problem?The App/src/components/Tooltip/BaseGenericTooltip/index.native.tsx Lines 120 to 126 in e27c5ea
What changes do you think we should make in order to solve the problem?
const contentMeasuredWidthAnimated = useSharedValue<number>(0)
const wrapperMeasuredHeightAnimated = useSharedValue<number>(0)
...
const animationStyle = useAnimatedStyle(() => {
return StyleUtils.getTooltipAnimatedStyles({ tooltipContentWidth: contentMeasuredWidthAnimated.get(), tooltipWrapperHeight: wrapperMeasuredHeightAnimated.get(), currentSize: animation });
});
...
onLayout={(e) => {
const { height, width } = e.nativeEvent.layout;
if (height === wrapperMeasuredHeightAnimated.get()) {
return;
}
contentMeasuredWidthAnimated.set(width)
wrapperMeasuredHeightAnimated.set(height);
setContentMeasuredWidth(width)
setWrapperMeasuredHeight(height)
}} DetailDemo Videos
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 |
I think the proposal would work. I tested the code diff but will need to test thoroughly with the PR. I am going to check with an internal engineer if we're okay to remove the setTimeout. 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number:
Reproducible in staging?: Needs Reproduction
Reproducible in production?: Needs Reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @rayane-djouah
Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Expected Result:
A tooltip should shows over the composer's Create button saying "Get started! Submit your first expense"
Actual Result:
The tooltip appears broken
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @mananjadhavThe text was updated successfully, but these errors were encountered: