Skip to content

[HOLD for payment 2021-12-27] Workspace settings - Modals are not scrollable in landscape mode - Reported by: @parasharrajat  #6496

Closed

Description

@isagoico

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Navigate to workspace settings
  2. Change the orientation to landscape
  3. Click on any of the options

Expected Result:

All modals should be scrollable so users can reach the options in landscape mode.

Actual Result:

Modals are not scrollable and options are not reachable in landscape mode.

Workaround:

Use the app in portrait mode.

Platform:

Where is this issue occurring?

  • iOS
  • Android
  • Mobile Web

Version Number: 1.1.16-10

Reproducible in staging?: Yes
Reproducible in production?: Yes

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

Notes/Photos/Videos: Any additional supporting documentation

WhatsApp.Video.2021-11-26.at.11.54.04.AM.mp4

Expensify/Expensify Issue URL:

Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1637861287011000

View all open jobs on GitHub

Activity

  1. MelvinBot commented on Nov 26, 2021

    @MelvinBot
    Contributor

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

  2. changed the title [-]Workspace settings - Modals are not scrollable in landscape mode[/-] [+]Workspace settings - Modals are not scrollable in landscape mode - Reported by: @parasharrajat [/+] on Nov 26, 2021
  3. PrashantMangukiya commented on Nov 26, 2021

    @PrashantMangukiya
    Contributor

    Proposed Solution:

    We have to replace <View> with <Scrollview> for various page used in workspace settings as under:

    Within src/pages/ReimbursementAccount/BankAccountStep.js change line 179

    {!subStep && (
    <>

    i.e. Change <> to <ScrollView>


    Within src/pages/workspace/bills/WorkspaceBillsPage.js Change line 27

    {(hasVBA, policyID) => (
    <>

    i.e. change <> to <ScrollView style={[styles.flex1]} contentContainerStyle={[styles.pb5]}>


    Within src/pages/workspace/card/WorkspaceCardPage.js Change line 28

    {(hasVBA, policyID, isUsingECard) => (
    <>

    i.e. Change <> to <ScrollView style={[styles.flex1]} contentContainerStyle={[styles.pb5]}>


    Within src/pages/workspace/invoices/WorkspaceInvoicesPage.js Change line 27

    {(hasVBA, policyID) => (
    <>

    i.e. change from <> to <ScrollView style={[styles.flex1]} contentContainerStyle={[styles.pb5]}>


    Within file src/pages/workspace/reimburse/WorkspaceReimbursePage.js Change line 27

    {(hasVBA, policyID) => (
    <>

    i.e Change from <> to <ScrollView style={[styles.flex1]} contentContainerStyle={[styles.pb5]}>


    Within file src/pages/workspace/travel/WorkspaceTravelPage.js Change line 27

    {(hasVBA, policyID) => (
    <>

    i.e. Change from <> to <ScrollView style={[styles.flex1]} contentContainerStyle={[styles.pb5]}>


    Within file src/pages/workspace/WorkspaceSettingsPage.js Change line 138

    {hasVBA => (
    <View style={[styles.pageWrapper, styles.flex1, styles.alignItemsStretch]}>

    i.e. Change line 138 from
    <View style={[styles.pageWrapper, styles.flex1, styles.alignItemsStretch]}>
    to
    <ScrollView style={[styles.flex1]} contentContainerStyle={[styles.p5, styles.alignItemsStretch]}>

    Not sure but if need we have to do similar changes on other pages if need.

    Below is the screen record after this updates:

    iOS.mp4
  4. parasharrajat commented on Nov 26, 2021

    @parasharrajat
    Member

    Proposal

    1. All the pages of Workspace use WorkspacePageWithSections. There is one issue with the styling of WorkspacePageWithSections wrapper.
    2. It does use the ScrollView but makes the content container flex:1 which will block the scrolling.

    To fix this

    1. We just need to remove the styles.flex1 style from the contentContainerStyle at
      contentContainerStyle={[styles.flex1]}

    It will fix all the pages in one shot.

    Apart from it, I can see that there are some duplicate styling used for this component and I will clear it as well. Such as styles.settingsPageBackground is not needed here.

  5. Dal-Papa commented on Nov 29, 2021

    @Dal-Papa

    Sounds like there are good proposals. Slapping the External label on this bad boy.

  6. added
    External
    on Nov 29, 2021
  7. MelvinBot commented on Nov 29, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @stephanieelliott (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  8. stephanieelliott commented on Nov 29, 2021

    @stephanieelliott
    Contributor

    Posted to Upwork: https://www.upwork.com/jobs/~017a033299ad4b8dff

    @Dal-Papa which proposal shall we go with here?

  9. Dal-Papa commented on Nov 30, 2021

    @Dal-Papa

    @stephanieelliott : It looks like @parasharrajat is the one that's more of a long term solution to this problem as opposed to a workaround so I'd go with that.

  10. 18 remaining items

  11. MelvinBot commented on Dec 9, 2021

    @MelvinBot
    Contributor

    Current assignee @parasharrajat is eligible for the Exported assigner, not assigning anyone new.

  12. added
    Help Wanted
    on Dec 9, 2021
  13. MelvinBot commented on Dec 9, 2021

    @MelvinBot
    Contributor

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

  14. stephanieelliott commented on Dec 9, 2021

    @stephanieelliott
    Contributor

    @parasharrajat can you grab the Upwork job when you get a chance so I can hire you: https://www.upwork.com/jobs/~017a033299ad4b8dff

  15. parasharrajat commented on Dec 9, 2021

    @parasharrajat
    Member

    Sorry, @stephanieelliott I missed the earlier ping. Applied now.

  16. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Dec 20, 2021
  17. changed the title [-]Workspace settings - Modals are not scrollable in landscape mode - Reported by: @parasharrajat [/-] [+][HOLD for payment 2021-12-27] Workspace settings - Modals are not scrollable in landscape mode - Reported by: @parasharrajat [/+] on Dec 20, 2021
  18. botify commented on Dec 20, 2021

    @botify

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.21-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2021-12-27. 🎊

  19. laurenreidexpensify commented on Dec 28, 2021

    @laurenreidexpensify
    Contributor

    @parasharrajat $500 paid - $250 for reporting, $250 for solution

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

Metadata

Metadata

Labels

Awaiting PaymentEngineeringExternalHelp WantedWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions