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

[$250] Android - 3-button navigation bar overlaps the Copilot account #53842

Open
2 of 8 tasks
IuliiaHerets opened this issue Dec 10, 2024 · 70 comments
Open
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 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

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Dec 10, 2024

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: v9.0.73-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

Prerequire - Make sure that your Android device uses 3-button navigation bar
Steps:

  1. Navigate to hybrid app in android mobile (Account A) and https://staging.new.expensify.com in other device(Account B)
  2. Account B add a copilot to the account (account A)
  3. In app - Log in to Account A.
  4. Go to settings and click the account switcher

Expected Result:

Android 3-button navigation bar doesn't overlap the copilot account

Actual Result:

Android 3-button navigation bar overlaps the copilot account

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6689888_1733827150043.Screen_Recording_20241210_124450_Expensify.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021869485429092398114
  • Upwork Job ID: 1869485429092398114
  • Last Price Increase: 2024-12-18
Issue OwnerCurrent Issue Owner: @jayeshmangwani
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 10, 2024
Copy link

melvin-bot bot commented Dec 10, 2024

Triggered auto assignment to @OfstadC (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.

@ChavdaSachin
Copy link
Contributor

ChavdaSachin commented Dec 10, 2024

Edited by proposal-police: This proposal was edited at 2024-12-10 12:05:45 UTC.

Proposal

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

Android - 3-button navigation bar overlaps the Copilot account

What is the root cause of that problem?

A case was missed during android edge-to-edge implementation

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

Change innerContainerStyle and add a condition to retain scrollContainerStyle only on web.

                    shouldUseModalPaddingStyle={false}
                    innerContainerStyle={{paddingBottom: unmodifiedPaddings.bottom}}
                    scrollContainerStyle={!shouldUseNarrowLayout && styles.pb4}

innerContainerStyle={styles.pb0}
scrollContainerStyle={styles.pb4}

Like it is implemented here

shouldUseModalPaddingStyle={false}
innerContainerStyle={{paddingBottom: unmodifiedPaddings.bottom}}

result

Search menu and FAB menu for comparison

Result Search Menu FAB menu
Screenshot 2024-12-10 at 5 32 54 PM Screenshot 2024-12-10 at 5 27 25 PM Screenshot 2024-12-10 at 5 27 39 PM

Note: unmodifiedPaddings.bottom dynamically computes the padding value based on the host device.

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)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@daledah
Copy link
Contributor

daledah commented Dec 11, 2024

Edited by proposal-police: This proposal was edited at 2024-12-11 04:44:20 UTC.

Proposal

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

  • Android 3-button navigation bar overlaps the copilot account

What is the root cause of that problem?

  • This style:

    innerContainerStyle={styles.pb0}
    scrollContainerStyle={styles.pb4}

    is added via commit on purpose. When we added it, the edge-to-edge mode is not applied.

  • Now, with the edge-to-edge mode, we need to add an additional padding bottom space to the bottom of the modal to make sure the 3-button navigation bar will not overlap the Copilot account modal. But, because we are using innerContainerStyle={styles.pb0}, the modalContainerStyle.paddingBottom in:

modalContainerStyle,

is 0. As a result, the final paddingBottom value in:

style={[styles.defaultModalContainer, modalPaddingStyles, modalContainerStyle, !isVisible && styles.pointerEventsNone]}

is 0.

  • So, the Copilot modal is not applied an additional paddingBottom style to make sure it is not overlaped by the 3-button-navigation.

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

  • In:

innerContainerStyle={styles.pb0}

Instead of using paddingBottom: 0, we can use: paddingBottom: paddingBottom with the paddingBottom is {paddingBottom} = useStyledSafeAreaInsets()

  • This fix will make sure the app is not broken in macos chrome platform.

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

What alternative solutions did you explore? (Optional)

@OfstadC
Copy link
Contributor

OfstadC commented Dec 11, 2024

Will test this this afternoon

@OfstadC
Copy link
Contributor

OfstadC commented Dec 13, 2024

I didn't get a chance to test this yet - will tackle on Tuesday when i'm back in office

@melvin-bot melvin-bot bot added the Overdue label Dec 16, 2024
Copy link

melvin-bot bot commented Dec 17, 2024

@OfstadC Whoops! This issue is 2 days overdue. Let's get this updated quick!

@OfstadC
Copy link
Contributor

OfstadC commented Dec 17, 2024

Not able to reproduce
image

I tried on 4 different devices with the 3 button navigation and all copilot accounts were visible to select

@melvin-bot melvin-bot bot removed the Overdue label Dec 17, 2024
@ChavdaSachin
Copy link
Contributor

I was able to repro this with 6 copilots and pixel 6 emulator

@izarutskaya
Copy link

Reproducible in latest build v9.0.76-12

Screenshot_20241218_184948_Expensify

@OfstadC OfstadC added the External Added to denote the issue can be worked on by a contributor label Dec 18, 2024
@melvin-bot melvin-bot bot changed the title Android - 3-button navigation bar overlaps the Copilot account [$250] Android - 3-button navigation bar overlaps the Copilot account Dec 18, 2024
Copy link

melvin-bot bot commented Dec 18, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 18, 2024
Copy link

melvin-bot bot commented Dec 18, 2024

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

@jayeshmangwani
Copy link
Contributor

jayeshmangwani commented Dec 20, 2024

@ChavdaSachin 's Proposal looks good and worked well while testing; let's go with it.

@daledah's Proposal looks good, previously selected proposal has an issue with scrollView's bottom padding style

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Dec 20, 2024

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

@daledah
Copy link
Contributor

daledah commented Dec 20, 2024

@jayeshmangwani The selected solution will break the UI in web, which was added via commit on purpose. Could you help check again?

Before After
Screenshot 2024-12-20 at 13 40 50 Screenshot 2024-12-20 at 13 42 14

@jayeshmangwani
Copy link
Contributor

@daledah I couldn’t see much of a difference locally. I applied the suggested changes and reviewed it again, but I’m unsure what major differences to look for. Could you add a comparison video for clarity?

@daledah
Copy link
Contributor

daledah commented Dec 20, 2024

I couldn’t see much of a difference locally. I applied the suggested changes and reviewed it again, but I’m unsure what major differences to look for

In the latest main branch, the ScrollView includes a bottom padding style (we move the padding bottom to the scroll view in past PR), but this style is missing after applying the selected solution. You can see the different in my images above.

@jayeshmangwani
Copy link
Contributor

You can see the different in my images above.

I can’t see the difference locally; could you add a full video instead of just a cropped screenshot?

@daledah
Copy link
Contributor

daledah commented Dec 20, 2024

@jayeshmangwani Here is video:

  • Before:
Screen.Recording.2024-12-20.at.14.39.04.mov
  • After:
Screen.Recording.2024-12-20.at.14.38.32.mov

@jayeshmangwani
Copy link
Contributor

jayeshmangwani commented Dec 20, 2024

@daledah Are you sure you’ve applied these changes?
I’ve tried a few times, and it’s working fine for me.

Screenshot 2024-12-20 at 1 17 04 PM

Copy link

melvin-bot bot commented Jan 28, 2025

@youssef-lr, @OfstadC, @jayeshmangwani Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label Jan 28, 2025
@jayeshmangwani
Copy link
Contributor

There are a few updates on the Slack thread, and it looks like Chris is handling all similar issues. Tagging you, @chrispader, so you can track this issue while addressing the translucent issue holistically.

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

melvin-bot bot commented Feb 4, 2025

@youssef-lr, @OfstadC, @jayeshmangwani Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label Feb 4, 2025
Copy link

melvin-bot bot commented Feb 6, 2025

@youssef-lr, @OfstadC, @jayeshmangwani 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

Copy link

melvin-bot bot commented Feb 10, 2025

@youssef-lr, @OfstadC, @jayeshmangwani 10 days overdue. Is anyone even seeing these? Hello?

@OfstadC
Copy link
Contributor

OfstadC commented Feb 11, 2025

Any update @jayeshmangwani ? 😃

@jayeshmangwani
Copy link
Contributor

@chrispader, is there an ongoing PR for these Slack changes that we can track?

@melvin-bot melvin-bot bot removed the Overdue label Feb 11, 2025
Copy link

melvin-bot bot commented Feb 17, 2025

@youssef-lr, @OfstadC, @jayeshmangwani Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label Feb 17, 2025
@jayeshmangwani
Copy link
Contributor

@mountiny, I’m tagging you here based on the Slack thread about fixing the bottom padding for Android.

Do you have any idea which PR is tackling the 3-button navigation issue? I see this PR, but it’s been in draft for a month

@melvin-bot melvin-bot bot removed the Overdue label Feb 17, 2025
@jayeshmangwani
Copy link
Contributor

@OfstadC, can we please make this Issue weekly until we know, for which PR we’re waiting on?

@mountiny
Copy link
Contributor

@jayeshmangwani That is correct PR I think, Margelo had limited hours, but I hope they can speed things up now

@OfstadC
Copy link
Contributor

OfstadC commented Feb 17, 2025

Thanks @mountiny - i'll leave this is Daily for now unless you think it should be moved to weekly 😃

Copy link

melvin-bot bot commented Feb 21, 2025

@youssef-lr, @OfstadC, @jayeshmangwani 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 Feb 21, 2025
@jayeshmangwani
Copy link
Contributor

Monitoring this PR #55633 , same as last update #53842 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Feb 23, 2025
Copy link

melvin-bot bot commented Feb 27, 2025

@jayeshmangwani Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Feb 27, 2025
@jayeshmangwani
Copy link
Contributor

No new updates on the PR from this update.

@melvin-bot melvin-bot bot removed the Overdue label Feb 27, 2025
Copy link

melvin-bot bot commented Mar 5, 2025

@jayeshmangwani Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Mar 5, 2025
@jayeshmangwani
Copy link
Contributor

Unfortunately, no new updates here 😄.

@melvin-bot melvin-bot bot removed the Overdue label Mar 5, 2025
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 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
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

9 participants