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

[$500] iOS - Settings - A black line appears above the animation #36687

Closed
1 of 6 tasks
kbecciv opened this issue Feb 16, 2024 · 13 comments
Closed
1 of 6 tasks

[$500] iOS - Settings - A black line appears above the animation #36687

kbecciv opened this issue Feb 16, 2024 · 13 comments
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

Comments

@kbecciv
Copy link

kbecciv commented Feb 16, 2024

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


Version Number: 1.4.42.0
Reproducible in staging?: y
Reproducible in production?: new feature
Issue reported by: Applause - Internal Team

Issue found when executing PR #35306

Action Performed:

  1. Navigate to Account settings - About - Troubleshoot
  2. Swipe to the bottom of the page
  3. Swipe to the top
  4. Repeat steps 2 and 3 until you can repro the bug

Expected Result:

There shouldn't be a black line.

Actual Result:

A black line appears above the animation. The issue is more likely to appear of you enlarge the system font size. I'm not able to repro it at all on the smallest setting.

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Screen_Recording_20240216_134904_New.Expensify.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018a96da75c014ee8f
  • Upwork Job ID: 1758473498052935680
  • Last Price Increase: 2024-02-16
@kbecciv kbecciv added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor labels Feb 16, 2024
@melvin-bot melvin-bot bot changed the title iOS - Settings - A black line appears above the animation [$500] iOS - Settings - A black line appears above the animation Feb 16, 2024
Copy link

melvin-bot bot commented Feb 16, 2024

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

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

melvin-bot bot commented Feb 16, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Feb 16, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 16, 2024
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.

Copy link

melvin-bot bot commented Feb 16, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Feb 16, 2024

We think that this bug might be related to #wave8-collect-admins
CC @zanyrenney

@shahinyan11
Copy link
Contributor

@kbecciv I think you attached the wrong video

@Gonals
Copy link
Contributor

Gonals commented Feb 16, 2024

@kbecciv I think you attached the wrong video

+1

@kbecciv
Copy link
Author

kbecciv commented Feb 16, 2024

@shahinyan11 @Gonals My apologies, reattached a new video.

@brandonhenry
Copy link
Contributor

Proposal

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

In the iOS app, a black line intermittently appears above an animation within the Settings > About > Troubleshoot section. This visual glitch seems to manifest more frequently when the system font size is enlarged.

What is the root cause of that problem?

The issue likely stems from a rendering problem in the animation view's layout constraints or a clipping issue where the bounds of the animated content are not properly respected. Given that the problem is more pronounced with increased font sizes, it suggests that dynamic type adjustments might be affecting the view's layout.

Examination of the Current Code

The TroubleshootPage component uses the IllustratedHeaderPageLayout to render its content, including the animation provided by LottieAnimations.Desk.

  1. TroubleshootPage Component (TroubleshootPage.tsx):

  2. IllustratedHeaderPageLayout Component:

    • Used to render the header with an illustration (animation).
    • The layout or styling of this component might be contributing to the black line issue.
    • Source: IllustratedHeaderPageLayout.tsx

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

  1. Check Lottie Animation Rendering:

    • Investigate if the Lottie component or the specific animation used (illustration prop) has any intrinsic properties that might cause the black line to appear.
    • Adjust the animation file or its rendering properties if necessary.
  2. Adjust Header Layout Styles:

    • Although the layout seems standard, double-check the styles applied to the headerContent and headerContainerStyles to ensure there are no unintended borders or overflows that might cause the black line.
    • Example snippet for style adjustments:
      headerContainerStyles={[styles.justifyContentCenter, styles.w100, shouldLimitHeight && styles.centralPaneAnimation, { overflow: 'hidden' }]}
  3. Overlay Content Check:

    • If overlayContent is used, ensure that it does not introduce any layout issues that could result in the black line. Adjust the overlay content or its styling as needed.
  4. Test with Different System Settings:

    • Since the issue is more pronounced with enlarged system font sizes, test the layout and animation rendering with various system settings to ensure the problem is resolved.
  5. Fallback Solution:

    • If the issue persists and is specific to iOS, consider applying a background-colored view or border that matches the page background to mask the line as a temporary workaround.

Implementation Notes:

  • Continue to ensure that any style adjustments do not negatively impact the layout on other platforms or with different settings.

By focusing on the animation rendering and the layout styles of the IllustratedHeaderPageLayout, the aim is to identify and resolve the root cause of the black line issue on the Troubleshoot page in the iOS app. Hopefully this is a good starting point as I believe the issue can be resolved with a little more digging if not

@s77rt
Copy link
Contributor

s77rt commented Feb 17, 2024

@brandonhenry Thanks for the proposal. Your RCA is not clear. Can you pinpoint the root cause?

@s77rt
Copy link
Contributor

s77rt commented Feb 17, 2024

@Gonals Can you deprioritize this? It does not seem like a deploy blocker. I can't even reproduce. Maybe we should just close?

@Beamanator Beamanator added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Feb 19, 2024
@Beamanator
Copy link
Contributor

Good call, I'm at least going to mark this NAB and let @Gonals decide if we should close - I couldn't reproduce on latest staging, iOS native - so probably we should just close this out

@Gonals
Copy link
Contributor

Gonals commented Feb 19, 2024

Let's go ahead and close for now

@Gonals Gonals closed this as completed Feb 19, 2024
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
Projects
None yet
Development

No branches or pull requests

6 participants