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
Spend - Empty state seen on background when switching to landscape mode on "Filters" page. #91678
Version Number: 9.3.82-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#90029 Email or phone of affected tester (no customers):ibellicotest+2250@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Motorola MotoG60 / Android 12 (Hybrid app) App Component: Search
Action Performed:
Prerequisite: Account has no expenses yet.
Open the Expensify app.
Navigate to "Spend" > "Expenses"
Tap on "Filters" icon.
While on filters page, switch to landscape mode.
Note that empty state screen and insights are briefly visible on background.
Switch to portrait mode.
Note that empty state screen and insights are visible again.
Open any filter. (For example: Status)
Switch to landscape mode.
Note that empty state screen and insights are visible again.
Expected Result:
Expenses list or empty state screen from "Spend" should not be visible on background while turning to landscape mode on "Filters" page.
Actual Result:
Empty state screen and insights are visible on background while turning to landscape mode on "Filters" page.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
When opening the Filters page on "Spend > Expenses" (with no expenses) on Android and switching to landscape mode, the empty state screen and insights briefly flash visible in the background behind the filter overlay.
What is the root cause of that problem?
PR #90029 changed advanced filters from a navigation screen (which fully replaced the underlying view) to a modal overlay using PopoverWithMeasuredContent with smallScreenModalType=CENTERED_SWIPEABLE_TO_RIGHT.
On Android native, isSmallScreenWidth is hardcoded to true, so useFullscreenAdvancedFilters() always returns true, and the filter always renders as a modal overlay (not a popup).
The problem is in Backdrop/index.tsx:22-23: the Entering and Exiting Keyframe animations are recreated on every render (not memoized). When orientation changes trigger a re-mount of the Backdrop component, the fadeIn entering animation replays from opacity 0, causing a brief window where the background content is visible.
Additionally, the backdropStyle is reactive to windowWidth/windowHeight, and the modal receives updated deviceWidth/deviceHeight props during orientation change — this cascade of state updates can cause intermediate render frames where the overlay doesn't fully cover the screen.
What changes do you think we should make in order to fix the problem?
Memoize the Keyframe animation objects in Backdrop/index.tsx using useMemo to prevent the fade-in animation from replaying during orientation-triggered re-renders:
Modal renders via BaseModal → ReanimatedModal with a Backdrop + Container
User rotates device → windowWidth/windowHeight swap → re-renders cascade through the modal tree
Backdrop's non-memoized Keyframe animations are recreated, potentially replaying the fade-in from opacity 0
Background content (empty state + insights) is briefly visible through the transparent-to-opaque backdrop transition
Alternative explanation considered: React Native's Modal component on Android may have known layout issues during orientation changes where its native overlay momentarily fails to cover the new screen dimensions. Even if this is a contributing factor, memoizing the animations would eliminate the most visible symptom (the replay of the fade-in).
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
Activity
applause-bot commentedon May 26, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/904f454353dbc4512fdca18c91a64bc799d86cd9a8c36e27fc801d1bc2be2b19
melvin-bot commentedon May 26, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #90029
melvin-bot commentedon May 26, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 26, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
MelvinBot commentedon May 26, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When opening the Filters page on "Spend > Expenses" (with no expenses) on Android and switching to landscape mode, the empty state screen and insights briefly flash visible in the background behind the filter overlay.
What is the root cause of that problem?
PR #90029 changed advanced filters from a navigation screen (which fully replaced the underlying view) to a modal overlay using
PopoverWithMeasuredContentwithsmallScreenModalType=CENTERED_SWIPEABLE_TO_RIGHT.On Android native,
isSmallScreenWidthis hardcoded totrue, souseFullscreenAdvancedFilters()always returnstrue, and the filter always renders as a modal overlay (not a popup).The problem is in
Backdrop/index.tsx:22-23: theEnteringandExitingKeyframe animations are recreated on every render (not memoized). When orientation changes trigger a re-mount of the Backdrop component, thefadeInentering animation replays from opacity 0, causing a brief window where the background content is visible.Additionally, the
backdropStyleis reactive towindowWidth/windowHeight, and the modal receives updateddeviceWidth/deviceHeightprops during orientation change — this cascade of state updates can cause intermediate render frames where the overlay doesn't fully cover the screen.What changes do you think we should make in order to fix the problem?
Memoize the Keyframe animation objects in
Backdrop/index.tsxusinguseMemoto prevent the fade-in animation from replaying during orientation-triggered re-renders:This ensures the entering animation only runs once when the modal first opens, and is not retriggered by dimension-change re-renders.
Investigation details
Data flow:
SearchAdvancedFiltersButtonrendersFilterPopupButtonwithsmallScreenModalType=CENTERED_SWIPEABLE_TO_RIGHTPopoverWithMeasuredContentdetectsisSmallScreenWidth=trueand renders aModalBaseModal→ReanimatedModalwith a Backdrop + ContainerwindowWidth/windowHeightswap → re-renders cascade through the modal treeAlternative explanation considered: React Native's
Modalcomponent on Android may have known layout issues during orientation changes where its native overlay momentarily fails to cover the new screen dimensions. Even if this is a contributing factor, memoizing the animations would eliminate the most visible symptom (the replay of the fade-in).Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.bernhardoj commentedon May 26, 2026
This is because we use modal. If we decided to use a navigation page/screen, then this issue will be gone.
JS00001 commentedon May 26, 2026
Lets use a navigation screen here
JS00001 commentedon May 26, 2026
Fixed by CP, popup no longer exists