Skip to content
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

Set openByDefault prop only for small screen width #2814

Merged
merged 1 commit into from
May 12, 2021
Merged

Set openByDefault prop only for small screen width #2814

merged 1 commit into from
May 12, 2021

Conversation

tugbadogan
Copy link
Contributor

@tugbadogan tugbadogan commented May 12, 2021

cc @Jag96

Details

When we set openByDefault on persistent drawer, it stays open when the orientation is changed back to portrait even though the current route is set to a chat. This is causing an issue in react-navigation and drawer is not being closed when another chat is selected.

Fixed Issues

Fixes #2447

Tests

Verified that chats are accessible when the orientation is switched between landscape and portrait. And chat view is not closed when the app is sent to background.

QA Steps

  1. Open app in Landscape orientation
  2. Open any chat
  3. Rotate device to Portrait
  4. Observe that chat window is visible instead of drawer
  5. Try to open another chat
  6. Observe that drawer is closed and chat view is opened

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Mobile Web

Screen.Recording.2021-05-12.at.01.16.24.mov

Desktop

Screen.Recording.2021-05-12.at.01.19.50.480p.mov

iOS (iPhone)

Screen.Recording.2021-05-11.at.19.29.18.480p.mov

iOS (iPad)

Screen.Recording.2021-05-12.at.01.11.39.480p.mov

Android

Screen.Recording.2021-05-12.at.01.55.49.480p.2.mov

@tugbadogan tugbadogan requested a review from a team as a code owner May 12, 2021 00:23
@MelvinBot MelvinBot requested review from TomatoToaster and removed request for a team May 12, 2021 00:23
@tugbadogan
Copy link
Contributor Author

This fix works best when it's applied on top of this change #2799

Copy link
Contributor

@TomatoToaster TomatoToaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat and simple fix! Would you mind if we wait till that one is merged to merge this one? Or is it fine to just merge it?

@tugbadogan
Copy link
Contributor Author

Neat and simple fix! Would you mind if we wait till that one is merged to merge this one? Or is it fine to just merge it?

Thanks for the quick review @TomatoToaster , I think it's fine to just merge this one as it doesn't depend on #2799

@TomatoToaster TomatoToaster merged commit 03b448b into Expensify:main May 12, 2021
@OSBotify
Copy link
Contributor

🚀 Deployed to staging in version: 1.0.42-3🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production in version: 1.0.44-0🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@tugbadogan tugbadogan deleted the tugbadogan-fix-non-accessible-chats-in-portrait-mode branch July 10, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iPad - Chat - Chats are not accessible on iPad in Portrait mode (Pay on June 15th)
3 participants