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

Android - Workspace - The Save button does not have the right alignment in offline mode #54636

Open
2 of 8 tasks
IuliiaHerets opened this issue Dec 28, 2024 · 4 comments
Open
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@IuliiaHerets
Copy link

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.79-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5382287
Issue reported by: Applause Internal Team
Device used: Samsung S23FE/ Android 14
App Component: Workspace Settings

Action Performed:

  1. Go to the Expensify app
  2. Go offline
  3. Tap on Settings
  4. Tap on Workspaces
  5. Go to the settings of any workspace
  6. Tap on the Workspace profile
  7. Tap on the Workspace name

Expected Result:

The Save button is displayed close to the navigation bar.

Actual Result:

The Save button is displayed far from the navigation bar and from the keypad when is displayed. There is a empty space between the button and the nav bar. The offline message is also displayed far from the navigation bar when the keypad is displayed.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6703178_1735333654794!save_button
Bug6703178_1735333654789!save_button_-_keypad

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 28, 2024
Copy link

melvin-bot bot commented Dec 28, 2024

Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@BhuvaneshPatil
Copy link
Contributor

Proposal

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

For android, In workspace name edit page we have extra padding at the bottom of submit button and offline indicator.

What is the root cause of that problem?

We are setting includeSafeAreaPaddingBottom as false here.

<ScreenWrapper
includeSafeAreaPaddingBottom={false}
shouldEnableMaxHeight
testID={WorkspaceNamePage.displayName}
>

As it's false the extra padding is applied at this place -

containerStyles={
includeSafeAreaPaddingBottom
? [styles.offlineIndicatorMobile]
: [styles.offlineIndicatorMobile, {paddingBottom: paddingBottom + styles.offlineIndicatorMobile.paddingBottom}]
}

Thus we are seeing extra padding at bottom.

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

We need to remove the prop includeSafeAreaPaddingBottom from ScreenWrapper component in WorkspaceNamePage component.
Or we can pass it as true.

Same is done here -

<ScreenWrapper
includeSafeAreaPaddingBottom
shouldEnableMaxHeight
testID={DisplayNamePage.displayName}

Screenshot 2024-12-28 at 3 59 05 PM

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

NA

What alternative solutions did you explore? (Optional)

NA

@parasharrajat
Copy link
Member

Proposal looks solid but what caused this issue?

@parasharrajat
Copy link
Member

Looks like this will be solved in #51504 during their next PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
None yet
Development

No branches or pull requests

4 participants