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 2026-11-09] [$175] Concierge-Transition from landscape to portrait Concierge page misaligned. #102091
Version Number: V9.2.92 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:#100886 Email or phone of affected tester (no customers):dreamnitethedragon+vegst@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Redmi note 10s android 13 App Component: Chat Report View
Action Performed:
Launch app - use Expensifail account with control workspace
Tap Concierge icon on top
Turn landscape
Turn to portrait
Expected Result:
Transition from landscape to portrait Concierge page must not misalign.
Actual Result:
Transition from landscape to portrait Concierge page misaligned.
⚠️Preliminary analysis (low confidence) — treat as a starting point, not a conclusion. I could not reproduce this (browser control was unavailable in this run, and this is an Android-native-only repro anyway).
Blocker: the Applause attachment isn't embedded and the Screenshots/Videos section is still _To be added by Applause Leads_. "Misaligned" is ambiguous — a horizontal shift and a vertical shift point at completely different code. Please attach the video; it will cut the candidate list below down to one.
Leading hypothesis: the Concierge welcome-state background is parallax-driven by the device gyroscope, and its offset is never reset. In AnimatedEmptyStateBackground.tsx:36-54, xOffset/yOffset accumulate gyroscope velocity and are clamped to ±30px / ±20px, but nothing ever returns them to 0. Physically rotating the phone to landscape and back injects a large rotation, pinning both offsets at their clamp — so the welcome artwork stays permanently offset by up to 30px horizontally and 20px vertically. This only shows up on a real device with a gyroscope (the reporter used a Redmi Note 10s), which is why emulator rotation wouldn't reproduce it.
Other candidates, and what to rule out first
Useful framing: on Android native, rotation does not flip the responsive breakpoint — isSmallScreenWidth is hardcoded true in useResponsiveLayout/index.native.ts:37. Only isInLandscapeMode, isExtraSmallScreenHeight/Width, safe-area insets, and measured layout values change. So the bug is in one of those four.
Gyroscope offsets (above) — a horizontal/vertical shift of the background artwork only, header and text still aligned. Fix would be resetting xOffset/yOffset on an orientation change, or dropping the sensor offset when dimensions change.
Collapsible header height — CollapsibleHeaderOnKeyboard/index.native.tsx:98-105 wraps ReportHeader on every report screen (ReportScreen.tsx:136-139) and restores a cached naturalHeight on landscape→portrait. This file already carries fixes titled "Fix landscape->portrait not restoring header original height" and "Claim offer banner is cut off after rotating device to portrait", so it has failed this exact way before. It matters here because the Concierge onboarding header is variable-height — it can carry the stacked Book-a-call button, the onboarding help dropdown, and EarlyDiscountBanner (HeaderView.tsx:541-547). Symptom would be a clipped header / everything below shifted up. I traced the restore-vs-onLayout ordering and it appears to self-correct, so I'd rank this second — but it's the first thing to check if the video shows a vertical shift.
Stale left/right safe-area insets — useWindowDimensions/index.native.ts:10 reads useSafeAreaFrame(), and SafeArea/index.native.tsx applies left/right edges with landscape-specific handling. Android landscape adds left/right nav-bar/cutout insets; if they don't clear on the way back to portrait, the whole page sits shifted. Symptom would be the entire page offset horizontally, with a blank strip on one side.
Ruled out: SafeAreaProvider is not seeded from initialWindowMetrics, and the insets → padding chain (useSafeAreaPaddings → ScreenWrapper → ScreenWrapperContainer) recomputes correctly on every inset change — no stale memo there.
Possibly related (same rotation-handling cluster on Android, worth checking for a shared root cause):
None of these look like a duplicate — different surfaces, different symptoms.
One note on the report: the linked PR feat: use Table component for Add existing expense flow is just the PR under regression test. It touches the Add-existing-expense table and doesn't go near rotation, the report screen, or safe areas, so it isn't the cause.
Next Steps: Attach the Applause video, then reply with @MelvinBot <your feedback> to refine this analysis.
When opening Concierge chat on mobile and rotating from portrait to landscape and back to portrait, the Concierge empty/welcome state background artwork becomes misaligned.
Root Cause
In src/pages/inbox/report/AnimatedEmptyStateBackground.tsx, device gyroscope velocity is accumulated to create a parallax tilt effect for the welcome background:
When the user physically rotates the device between landscape and portrait, the gyroscope registers a large angular velocity, driving xOffset and yOffset to their maximum clamped values (IMAGE_OFFSET_X = ±30px, IMAGE_OFFSET_Y = ±20px).
Because the accumulation formula has no decay towards zero when the device returns to rest (x = 0, y = 0 produces value + 0 = value), the background offsets remain permanently pinned at the clamp boundaries.
Furthermore, on orientation changes (isInLandscapeMode), neither xOffset nor yOffset is reset to its initial centered position (0), leaving the artwork permanently shifted and misaligned after rotating back to portrait.
Proposed Changes
Reset the shared animation offsets on orientation changes in src/pages/inbox/report/AnimatedEmptyStateBackground.tsx:
In addition, apply a slight decay factor (or decay towards 0) in the worklet when velocity drops to zero, ensuring the parallax naturally recenters when the device is held stationary:
Hi @situchan, I think Melvin's analysis is looking at the wrong thing. It blames the gyroscope offsets in AnimatedEmptyStateBackground. Meanwhile the video shows the "Claim offer" banner in the concierge header collapsing after rotating back to portrait which make the title gets squeezed and the button stays on the same row. The background artwork isn't what's misaligned
RCA
In portrait, the "Claim offer" button is pushed onto its own line by giving the right component flexBasis: '100%' inside the flexWrap row of BillingBanner
In landscape this style is dropped so everything sits in one row. When we rotate back to portrait, flexBasis: '100%' is applied again to the already mounted view, but on android the percentage flex basis isn't re-resolved after the orientation relayout. So the row doesn't wrap anymore and the button stays on the same line as the icon and the title gets squeezed
This is the same issue we had with the "Learn more" banner in #97156, which uses the same BillingBanner layout and was fixed in #97953
We can apply the same fix as #97953 to EarlyDiscountBanner to use styles.mnw100 with styles.maxWidth100Percentage instead of styles.flexBasis100, and add a key based on shouldDisplayButtonsInSeparateLine so the right component is remounted with a fresh layout when the orientation changes
Hi @mallenexpensify, it seems like Melvin's PR implemented the fix from my comment (#102091 (comment)), while Melvin's proposal pointed to a completely different cause. Based on this discussion, would it be possible to consider partial compensation for this one? Thanks!
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR: N/A
Link to the comment on the 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:
[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.
Regression Test Proposal
Precondition:
Test:
Android: Native
Open the app and tap the Concierge icon at the top.
Verify the early discount banner shows with the "Claim offer" button on its own line below the icon and title.
Rotate the device to landscape.
Verify the banner shows the "Claim offer" button inline on the same row as the title.
Rotate the device back to portrait.
Verify the "Claim offer" button wraps back onto its own line, and the title is not squeezed.
Repeat steps 3-6 a few times and verify the layout is correct each time.
All other platforms (regression test)
Open the Concierge chat on a narrow screen (mobile web, or a resized desktop window).
Verify the "Claim offer" button shows on its own line below the title.
Open the Concierge chat on a wide screen.
Verify the "Claim offer" button shows inline next to the title, followed by the close (X) button when the 25% discount is active.
Tap "Claim offer" and verify it opens the Subscription page.
@zeryns unfortunately, currently, we're unable to compensate for issues where Help Wanted wasn't added. I created an internal issue earlier today that could be the first step for something to change, it's still TBD though. Are you part of #expensify-open-source? I'll post there and also update CONTRIBUTING.md if the update takes place.
Activity
applause-bot commentedon Sep 23, 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/4f1de02468f8154a703c56db095156d3484edc7f603a830e9a447d6ecfd8e2bb
MelvinBot commentedon Sep 23, 2026
Blocker: the Applause attachment isn't embedded and the Screenshots/Videos section is still
_To be added by Applause Leads_. "Misaligned" is ambiguous — a horizontal shift and a vertical shift point at completely different code. Please attach the video; it will cut the candidate list below down to one.Leading hypothesis: the Concierge welcome-state background is parallax-driven by the device gyroscope, and its offset is never reset. In
AnimatedEmptyStateBackground.tsx:36-54,xOffset/yOffsetaccumulate gyroscope velocity and are clamped to ±30px / ±20px, but nothing ever returns them to0. Physically rotating the phone to landscape and back injects a large rotation, pinning both offsets at their clamp — so the welcome artwork stays permanently offset by up to 30px horizontally and 20px vertically. This only shows up on a real device with a gyroscope (the reporter used a Redmi Note 10s), which is why emulator rotation wouldn't reproduce it.Other candidates, and what to rule out first
Useful framing: on Android native, rotation does not flip the responsive breakpoint —
isSmallScreenWidthis hardcodedtrueinuseResponsiveLayout/index.native.ts:37. OnlyisInLandscapeMode,isExtraSmallScreenHeight/Width, safe-area insets, and measured layout values change. So the bug is in one of those four.xOffset/yOffseton an orientation change, or dropping the sensor offset when dimensions change.CollapsibleHeaderOnKeyboard/index.native.tsx:98-105wrapsReportHeaderon every report screen (ReportScreen.tsx:136-139) and restores a cachednaturalHeighton landscape→portrait. This file already carries fixes titled "Fix landscape->portrait not restoring header original height" and "Claim offer banner is cut off after rotating device to portrait", so it has failed this exact way before. It matters here because the Concierge onboarding header is variable-height — it can carry the stacked Book-a-call button, the onboarding help dropdown, andEarlyDiscountBanner(HeaderView.tsx:541-547). Symptom would be a clipped header / everything below shifted up. I traced the restore-vs-onLayoutordering and it appears to self-correct, so I'd rank this second — but it's the first thing to check if the video shows a vertical shift.useWindowDimensions/index.native.ts:10readsuseSafeAreaFrame(), andSafeArea/index.native.tsxappliesleft/rightedges with landscape-specific handling. Android landscape adds left/right nav-bar/cutout insets; if they don't clear on the way back to portrait, the whole page sits shifted. Symptom would be the entire page offset horizontally, with a blank strip on one side.Ruled out:
SafeAreaProvideris not seeded frominitialWindowMetrics, and the insets → padding chain (useSafeAreaPaddings→ScreenWrapper→ScreenWrapperContainer) recomputes correctly on every inset change — no stale memo there.Possibly related (same rotation-handling cluster on Android, worth checking for a shared root cause):
None of these look like a duplicate — different surfaces, different symptoms.
One note on the report: the linked PR feat: use Table component for Add existing expense flow is just the PR under regression test. It touches the Add-existing-expense table and doesn't go near rotation, the report screen, or safe areas, so it isn't the cause.
Next Steps: Attach the Applause video, then reply with
@MelvinBot <your feedback>to refine this analysis.view run
melvin-bot commentedon Sep 23, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (
External)melvin-bot commentedon Sep 23, 2026
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
ashusatyarthi-wq commentedon Sep 27, 2026
Proposal
Problem
When opening Concierge chat on mobile and rotating from portrait to landscape and back to portrait, the Concierge empty/welcome state background artwork becomes misaligned.
Root Cause
src/pages/inbox/report/AnimatedEmptyStateBackground.tsx, device gyroscope velocity is accumulated to create a parallax tilt effect for the welcome background:xOffsetandyOffsetto their maximum clamped values (IMAGE_OFFSET_X= ±30px,IMAGE_OFFSET_Y= ±20px).x = 0, y = 0producesvalue + 0 = value), the background offsets remain permanently pinned at the clamp boundaries.isInLandscapeMode), neitherxOffsetnoryOffsetis reset to its initial centered position (0), leaving the artwork permanently shifted and misaligned after rotating back to portrait.Proposed Changes
src/pages/inbox/report/AnimatedEmptyStateBackground.tsx:Why this solution is best:
Test Plan
melvin-bot commentedon Sep 28, 2026
@situchan Eep! 4 days overdue now. Issues have feelings too...
zeryns commentedon Sep 30, 2026
Hi @situchan, I think Melvin's analysis is looking at the wrong thing. It blames the gyroscope offsets in
AnimatedEmptyStateBackground. Meanwhile the video shows the "Claim offer" banner in the concierge header collapsing after rotating back to portrait which make the title gets squeezed and the button stays on the same row. The background artwork isn't what's misalignedRCA
In portrait, the "Claim offer" button is pushed onto its own line by giving the right component
flexBasis: '100%'inside theflexWraprow ofBillingBannerApp/src/pages/settings/Subscription/CardSection/BillingBanner/EarlyDiscountBanner.tsx
Lines 86 to 88 in cdc03d5
App/src/pages/settings/Subscription/CardSection/BillingBanner/BillingBanner.tsx
Line 114 in cdc03d5
In landscape this style is dropped so everything sits in one row. When we rotate back to portrait,
flexBasis: '100%'is applied again to the already mounted view, but on android the percentage flex basis isn't re-resolved after the orientation relayout. So the row doesn't wrap anymore and the button stays on the same line as the icon and the title gets squeezedThis is the same issue we had with the "Learn more" banner in #97156, which uses the same
BillingBannerlayout and was fixed in #97953App/src/pages/workspace/companyCards/WorkspaceCompanyCardExpensifyCardPromotionBanner.tsx
Lines 58 to 63 in cdc03d5
Solution
We can apply the same fix as #97953 to
EarlyDiscountBannerto usestyles.mnw100withstyles.maxWidth100Percentageinstead ofstyles.flexBasis100, and add akeybased onshouldDisplayButtonsInSeparateLineso the right component is remounted with a fresh layout when the orientation changesApp/src/pages/settings/Subscription/CardSection/BillingBanner/EarlyDiscountBanner.tsx
Lines 86 to 88 in cdc03d5
POC
Before.mov
After.mov
I'd be happy to post a proposal in the correct format for this issue if this looks right. Thanks!
melvin-bot commentedon Sep 30, 2026
@situchan 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
melvin-bot commentedon Oct 2, 2026
@situchan Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
30 remaining items
melvin-bot commentedon Nov 6, 2026
@situchan Still overdue 6 days?! Let's take care of this!
melvin-bot commentedon Nov 8, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Nov 8, 2026
Payment Summary
Resolving PRs:
Fix Claim offer banner not wrapping after rotating to portrait on Android #103255
Reviewer: @situchan owed $175 via NewDot
BugZero Checklist (@mallenexpensify)
zeryns commentedon Nov 9, 2026
Hi @mallenexpensify, it seems like Melvin's PR implemented the fix from my comment (#102091 (comment)), while Melvin's proposal pointed to a completely different cause. Based on this discussion, would it be possible to consider partial compensation for this one? Thanks!
mallenexpensify commentedon Nov 11, 2026
Claude posting on behalf of Matt:
I'll pay these tomorrow, apologies for the delay
situchan commentedon Nov 11, 2026
Contributor+ Checklist:
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR: N/A
Link to the comment on the 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:
[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.
Regression Test Proposal
Precondition:
Test:
Android: Native
All other platforms (regression test)
Do we agree 👍 or 👎
zeryns commentedon Nov 11, 2026
@mallenexpensify gentle bump on my question above, thanks!
mallenexpensify commentedon Nov 11, 2026
Payment Summary
Contributor+: @situchan due $175 via NewDot
@zeryns unfortunately, currently, we're unable to compensate for issues where
Help Wantedwasn't added. I created an internal issue earlier today that could be the first step for something to change, it's still TBD though. Are you part of #expensify-open-source? I'll post there and also update CONTRIBUTING.md if the update takes place.