Skip to content

Chat - Compose box is hidden behind keypad in expense thread and concierge #87377

Closed

Description

@lanitochka17

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: V9.3.54-1
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #85229
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:

  1. Launch app
  2. Open concierge
  3. Turn to landscape
  4. Keep cursor in compose box
  5. Note keypad opens and compose box hidden behind keypad
  6. Open workspace chat with an expense
  7. On workspace chat page, Keep cursor in compose box
    8.Note keypad opens and compose box shown above keypad
  8. Open the expense
    10.In expense thread, Keep cursor in compose box
    11.Note keypad opens and compose box hidden behind keypad

Expected Result:

Compose box must not be hidden behind keypad in expense thread and concierge page

Actual Result:

Compose box is hidden behind keypad in expense thread and concierge page and visible in workspace chat page above keypad.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Bug7124789_1775649886264.Screenrecorder-2026-04-08-17-28-14-966.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @GCyganek

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Apr 8, 2026
  2. melvin-bot commented on Apr 8, 2026

    @melvin-bot

    @mjasikowski recently merged #85229, but they are OOO right now, so I'll auto-assign someone else.

  3. melvin-bot commented on Apr 8, 2026

    @melvin-bot

    Triggered auto assignment to @jasperhuangg (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Apr 8, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. added
    Hourly
    and removed
    Daily
    on Apr 8, 2026
  6. github-actions commented on Apr 8, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  7. OSBotify commented on Apr 8, 2026

    @OSBotify
    Contributor

    Investigation Summary

    Classification: Frontend bug
    Causing PR: #85229 - "Unlock landscape mode" by @GCyganek (High confidence)
    Related Issues: #77280

    Recommendation: REVERT

    PR #85229 introduced landscape mode support on Android and iOS but introduced a regression where the compose box is hidden behind the keyboard in certain screens (Concierge and expense thread) in landscape mode on Android. The fix is non-trivial since the bug affects only specific screens and not others, but the causing PR is clear and clean to revert.

    Assigned: @GCyganek (PR author), @mjasikowski, @rushatgabhane, @truph01 (approving reviewers)
    Labels: DeployBlockerCash kept - this is a Frontend bug in Expensify/App. No label changes needed.

    Detailed Analysis

    Evidence

    • The issue body itself references PR Unlock landscape mode #85229 directly as the regression source
    • melvin-bot also flagged @mjasikowski (who merged it) as the relevant author
    • PR Unlock landscape mode #85229 was merged on 2026-04-07 and appears 4th in chronological order in the StagingDeployCash deploy checklist for v9.3.54-1
    • The bug is marked as "not reproducible in production" and "new feature, does not exist in prod" - consistent with this being a staging-only regression introduced by this PR

    Verification

    • Affected files: src/components/Composer/implementation/index.native.tsx, src/components/SafeArea/index.native.tsx, Android orientation XMLs (android/app/src/main/res/values/orientation.xml), android/app/src/main/java/com/expensify/chat/MainActivity.kt
    • The PR removes the portrait_only orientation lock from Android (MainActivity.kt and orientation.xml resource files) and introduces useIsInLandscapeMode and getLandscapeTextInputRefProxy to manage keyboard behavior in landscape mode
    • The compose box behavior differs between workspace chat (works) and Concierge/expense thread (broken), indicating the landscape keyboard avoidance logic is not applied consistently across all screen types

    Root Cause

    The PR unlocks landscape mode on Android by removing the requestedOrientation = SCREEN_ORIENTATION_PORTRAIT lock and associated resource booleans, then adds JS-side landscape detection and a Proxy-based ref wrapper to suppress auto-focus on text inputs. However, the keyboard avoidance (ensuring the compose box stays above the keyboard) is not correctly applied for all report types. The SafeArea-based keyboard dismiss pressable targets and the getLandscapeTextInputRefProxy changes appear to work for workspace chat but fail to properly handle the keyboard offset for Concierge and expense thread screens, leaving the compose box hidden behind the soft keyboard in those contexts.

  8. 7 remaining items

  9. removed their assignment
    on Apr 13, 2026
  10. melvin-bot commented on Apr 13, 2026

    @melvin-bot

    @GCyganek Eep! 4 days overdue now. Issues have feelings too...

  11. GCyganek commented on Apr 14, 2026

    @GCyganek
    Contributor

    will be checked soon

  12. added
    Reviewing
    Weekly
    and removed
    Daily
    on Apr 14, 2026
  13. melvin-bot commented on May 11, 2026

    @melvin-bot

    This issue has not been updated in over 15 days. @mjasikowski, @GCyganek, @truph01 eroding to Monthly issue.

    P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

  14. GCyganek commented on May 13, 2026

    @GCyganek
    Contributor

    pr in prod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringMonthlyReviewing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions