App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-12-06] [Hold for payment on 25th Nov] [$1000] Android/iOS - Changing orientation breaks layout

Open isagoico opened this issue 5 years ago • 48 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel! https://www.upwork.com/jobs/~0130cf8bfe4742fbde


Action Performed:

  1. On an Android with a big screen
  2. Open the app
  3. On LHN, change the orientation to landscape

Expected Result:

Layout should not break

Actual Result:

Layout is broken after changing the orientation to landscape.

Workaround:

Closing and reopening the app removes the issue.

Platform:

Where is this issue occurring?

  • Android

Version Number: 1.1.3-3

Reproducible in staging?: yes Reproducible in production?: yes

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

https://user-images.githubusercontent.com/44479856/135330285-511e2742-6a5d-44bc-b431-bef7b7ca25db.mp4

Expensify/Expensify Issue URL:

Issue reported by: @Santhosh-Sellavel Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1631730111364600

View all open jobs on GitHub

isagoico avatar Sep 29 '21 18:09 isagoico

Triggered auto assignment to @laurenreidexpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Sep 29 '21 18:09 MelvinBot

Triggered auto assignment to @MonilBhavsar (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Sep 29 '21 18:09 MelvinBot

I was able to reproduce this issue in a Galaxy A52 (6.5-inch screen size)

isagoico avatar Sep 29 '21 18:09 isagoico

Was able to reproduce the reported issue on Android simulator and iOS device...

Screenshot_1632993247

... But looking more into screen orientation of our app, looks like we need to improve it a lot. In the app, on login page in landscape mode, the highlighted part of screen is responsive, Trying to scroll down by sideways makes one feel like app is unresponsive...

IMG_9001 2

...We also need to improve transition when changing from landscape to portrait and vice versa.

https://user-images.githubusercontent.com/32012005/135423219-eaf7c2ab-ac96-42c3-9088-ac97bbaaccc8.MP4

MonilBhavsar avatar Sep 30 '21 09:09 MonilBhavsar

Having some issues getting this on Upwork, will upload tomorrow

laurenreidexpensify avatar Sep 30 '21 15:09 laurenreidexpensify

https://www.upwork.com/jobs/~0130cf8bfe4742fbde

laurenreidexpensify avatar Oct 01 '21 13:10 laurenreidexpensify

Triggered auto assignment to @Julesssss (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Oct 01 '21 13:10 MelvinBot

@MonilBhavsar @Julesssss you can decide between two of you who wants to stay assigned 🙃

laurenreidexpensify avatar Oct 01 '21 13:10 laurenreidexpensify

Oh, I should have unassigned myself from this one after adding external label.

MonilBhavsar avatar Oct 01 '21 13:10 MonilBhavsar

Honestly, I think we should just block landscape mode for now. It can be a lot of work to support a rarely used feature.

Julesssss avatar Oct 01 '21 14:10 Julesssss

👍 I see slack doesn't have this feature too

MonilBhavsar avatar Oct 01 '21 14:10 MonilBhavsar

I do think we should just fix this – though we should take it one problem at a time. It doesn't need to be a top priority for us, but when we find something that's very broken with orientation change, we can fix it.

roryabraham avatar Oct 01 '21 16:10 roryabraham

Although the team mostly disagrees that landscape mode is an important feature for mobile, valid counterpoints have been made here. We support iPad, and landscape mode is arguably the best way to consume the app. So we should fix landscape bugs.

Julesssss avatar Oct 01 '21 17:10 Julesssss

Please refer to this post for updated information on the n6 hold, we've raised the bonus to $250 for all issues where a PR is created before the N6 hold is lifted.

kadiealexander avatar Oct 08 '21 01:10 kadiealexander

sorry, can somebody explain what does n6 hold mean?

kakajann avatar Oct 12 '21 18:10 kakajann

@kakajann Refer these post 1 & post 2

Santhosh-Sellavel avatar Oct 12 '21 18:10 Santhosh-Sellavel

I will action this tomorrow and increase price on Upwork, making a daily so I remember to do it!

laurenreidexpensify avatar Oct 12 '21 18:10 laurenreidexpensify

Bounty is now $500 for this

laurenreidexpensify avatar Oct 13 '21 11:10 laurenreidexpensify

Proposal

I think the only way to fix the issue mentioned above is increasing the delay from 100ms to 1s in here: https://github.com/Expensify/App/blob/c9926d910fd3ebe4ebb16d0c7cea43dea0a732c3/src/components/withWindowDimensions.js#L42

Other than that, there's some other issues to be concerned, such as:

If you open this menu, u can't be able to close on landscape mode.

Screen Shot 2021-10-14 at 6 20 29 PM

In the devices with notch (maybe only iPhone), some buttons are blocked.

Screen Shot 2021-10-14 at 6 22 48 PM Screen Shot 2021-10-14 at 6 23 07 PM

This kind of issues can be fixed by using safe area insets and I would like to work on this.

kakajann avatar Oct 14 '21 13:10 kakajann

@kakajann these are valid issues please report it in slack and get separate issue created with help of @isagoico

Santhosh-Sellavel avatar Oct 14 '21 14:10 Santhosh-Sellavel