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

[HOLD App#53186] [$250] Android - Workspace overview buttons are cut off at the bottom #55690

Open
2 of 8 tasks
lanitochka17 opened this issue Jan 23, 2025 · 19 comments
Open
2 of 8 tasks
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Overdue

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 23, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.89-2
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
**Component:**Workspace Settings

Action Performed:

  1. Navigate to hybrid app (Android)
  2. Create WS
  3. Navigate to overview
  4. Notice the bottom buttons ( invite, share and Delete)

Expected Result:

The buttons should be visible fully

Actual Result:

Those buttons are cut off at the bottom
Reproducible using Samsung Galaxy A15 5G/Android and Samsung galaxy s10 5G /Android

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021882576269780243662
  • Upwork Job ID: 1882576269780243662
  • Last Price Increase: 2025-01-30
Issue OwnerCurrent Issue Owner: @akinwale
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Jan 23, 2025
Copy link

melvin-bot bot commented Jan 23, 2025

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

Copy link

melvin-bot bot commented Jan 23, 2025

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

Copy link
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.

@jasperhuangg jasperhuangg added External Added to denote the issue can be worked on by a contributor Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jan 23, 2025
Copy link

melvin-bot bot commented Jan 23, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021882576269780243662

@melvin-bot melvin-bot bot changed the title Android - Workspace overview buttons are cut off at the bottom [$250] Android - Workspace overview buttons are cut off at the bottom Jan 23, 2025
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 23, 2025
Copy link

melvin-bot bot commented Jan 23, 2025

Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale (External)

@jasperhuangg
Copy link
Contributor

This is pretty minor and doesn't prevent the user from using the App, I don't think it's worth blocking deploy on this, although finding the PR that caused this issue is still good.

@jasperhuangg
Copy link
Contributor

I'm not really seeing anything in the blocker list that would point to this issue, I'm asking for a retest to see the behavior on prod.

@rohit9625
Copy link
Contributor

On Android Chrome, we can scroll down to see those buttons, which is how the website works.

@rohit9625
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Workspace overview buttons are cut off at the bottom on Android.

What is the root cause of that problem?

The default value of includeSafeAreaPaddingBottom is false for the WorkspacePageWithSections component. Since we do not pass this prop here:

<WorkspacePageWithSections
headerText={translate('workspace.common.profile')}
route={route}
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_PROFILE}
// When we create a new workspaces, the policy prop will not be set on the first render. Therefore, we have to delay rendering until it has been set in Onyx.
shouldShowLoading={policy === undefined}
shouldUseScrollView
shouldShowOfflineIndicatorInWideScreen
shouldShowNonAdmin
icon={Illustrations.Building}
shouldShowNotFoundPage={policy === undefined}

Causing the bottomNavigationBar to overlap buttons on Overview Page. The behavior is the same on Android Standalone App also.

What changes do you think we should make in order to solve the problem?

We should pass the includeSafeAreaPaddingBottom prop to ensure the bottom navigation buttons don't overlap the content of the overview page.

SafeAreaPadding_Demo.mp4

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

Since it's a UI-related change, we cannot cover this in automated tests.

What alternative solutions did you explore? (Optional)

Since the user still needs to scroll down to see the buttons completely, we can handle the shouldUseScrollView along with includeSafeAreaPaddingBottom like this:

const shouldUseScrollView = Browser.isMobile(); // Use scroll view on mobile web
<WorkspacePageWithSections
            // Other props
            shouldShowLoading={policy === undefined}
            shouldUseScrollView={shouldUseScrollView}
            includeSafeAreaPaddingBottom
           // Other props

However, shouldUseScrollView={false}, causing the description section to disappear. I doubt if this is the desired behavior to allocate more space by removing the description. If not, then we can show the description as Overflow Elipsis.

@izarutskaya izarutskaya mentioned this issue Jan 24, 2025
50 tasks
@akinwale
Copy link
Contributor

Looks like a screen resolution issue resulting in the items on the page to not being displayed completely without scrolling. @rohit9625's proposal can work here.

🎀👀🎀 C+ reviewed.

Copy link

melvin-bot bot commented Jan 27, 2025

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

@Beamanator
Copy link
Contributor

Beamanator commented Jan 27, 2025

If this came from #55285, I wonder if @bernhardoj should take a look at implementing the fix?

But @jasperhuangg is already assigned here so I'll run away 🏃 😅

@Beamanator Beamanator removed their assignment Jan 27, 2025
@akinwale
Copy link
Contributor

If this came from #55285, I wonder if @bernhardoj should take a look at implementing the fix?

But @jasperhuangg is already assigned here so I'll run away 🏃 😅

That PR is related to updating the focus trap package, which is unrelated to the view's ability to scroll on overflow. @bernhardoj Could you please take a look and confirm? Thanks.

@Beamanator
Copy link
Contributor

Okkk asked just b/c it seems like this issue was created while QAing that PR, but that doesn't mean they're necessarily related :D

Copy link

melvin-bot bot commented Jan 30, 2025

@akinwale, @jasperhuangg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Feb 3, 2025

@akinwale, @jasperhuangg 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@shubham1206agra
Copy link
Contributor

@mountiny mountiny changed the title [$250] Android - Workspace overview buttons are cut off at the bottom [HOLD App#53186] [$250] Android - Workspace overview buttons are cut off at the bottom Feb 4, 2025
Copy link

melvin-bot bot commented Feb 5, 2025

@akinwale, @jasperhuangg Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Overdue
Projects
None yet
Development

No branches or pull requests

6 participants