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
[Due for payment 2025-09-22] [Due for payment 2025-08-15] [$250] Optimize the PopoverWithMeasuredContent bottom_docked modal performance #67034
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Wrap PopoverWithMeasuredContent with a wrapper that returns BOTTOM_DOCKED modal on small screens.
Background
PopoverWithMeasuredContent is a wrapper around the regular Popover component that allows us to use a more sophisticated positioning schema responsively (without having to provide a static width and height for the popover content). This way, we can shift the position of popover so that the content is anchored where we want it relative to the anchor position.
Problem
Right now in Popover component (that PopoverWithMeasuredContent uses) returns BOTTOM_DOCKED Modal whenever we have isSmallScreenWidth. All the logic of popover measurement calculation is useless, yet it executes. It includes rendering invisible popover to measure it.
Solution
When we know were on a small screen we can return BOTTOM_DOCKED modal earlier, thus skipping expensive position calculation logic.
Perfomance gains
5 - 15 % in a following scenario (see screens):
changed the title [-]Optimize the PopoverWithMeasuredContent bottom_docked modal performance[/-][+][$250] Optimize the PopoverWithMeasuredContent bottom_docked modal performance[/+]on Jul 24, 2025
changed the title [-][Due for payment 2025-08-15] [$250] Optimize the PopoverWithMeasuredContent bottom_docked modal performance[/-][+][Due for payment 2025-09-22] [Due for payment 2025-08-15] [$250] Optimize the PopoverWithMeasuredContent bottom_docked modal performance[/+]on Sep 15, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.13-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ZhenjaHorbach@isabelastisser 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]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
ZhenjaHorbach The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment:
ZhenjaHorbach If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
ZhenjaHorbach If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
This isn't a bug
It's the performance issue
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
I'm not sure tests are needed here since it's the performance issue
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
[-]Optimize the PopoverWithMeasuredContent bottom_docked modal performance[/-][+][$250] Optimize the PopoverWithMeasuredContent bottom_docked modal performance[/+]melvin-bot commentedon Jul 24, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021948304149496243134
melvin-bot commentedon Jul 24, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (
External)melvin-bot commentedon Jul 24, 2025
Triggered auto assignment to @isabelastisser (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.40 remaining items
[-][Due for payment 2025-08-15] [$250] Optimize the PopoverWithMeasuredContent bottom_docked modal performance[/-][+][Due for payment 2025-09-22] [Due for payment 2025-08-15] [$250] Optimize the PopoverWithMeasuredContent bottom_docked modal performance[/+]melvin-bot commentedon Sep 15, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Sep 15, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.13-1 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-09-22. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Sep 15, 2025
@ZhenjaHorbach @isabelastisser 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]
isabelastisser commentedon Sep 15, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
ZhenjaHorbach The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment:
ZhenjaHorbach If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
ZhenjaHorbach If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
isabelastisser commentedon Sep 15, 2025
Payment summary:
@jmusial does not require payment (Contractor)
@ZhenjaHorbach requires payment through NewDot Manual Requests for C+ review $250
melvin-bot commentedon Sep 22, 2025
Payment Summary
Upwork Job
BugZero Checklist (@isabelastisser)
ZhenjaHorbach commentedon Sep 23, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
This isn't a bug
It's the performance issue
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
I'm not sure tests are needed here since it's the performance issue
ZhenjaHorbach commentedon Sep 24, 2025
@isabelastisser
I think we are ready to close this issue!
isabelastisser commentedon Sep 24, 2025
All set!
ZhenjaHorbach commentedon Sep 24, 2025
Requested in ND!
flaviadefaria commentedon Oct 2, 2025
$250 approved for @ZhenjaHorbach