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] Loading indicator on the Inbox page has thinner line than on the Reports page #55842

Open
8 tasks done
IuliiaHerets opened this issue Jan 28, 2025 · 32 comments
Open
8 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. 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 Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Jan 28, 2025

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: 9.0.90-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): applausetester+100106kh@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Search

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go offline.
  3. Go to Account settings > Troubleshoot.
  4. Click Clear cache and restart > Reset and refresh.
  5. Compare the thickness of loading indicator in Inbox and Reports.

Expected Result:

The loading indicator in Inbox should have the same thickness as the one on the Reports page.

Actual Result:

The loading indicator in Inbox is thinner than on the Reports page.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6725831_1738045224757.20250128_141644.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021884250021913137171
  • Upwork Job ID: 1884250021913137171
  • Last Price Increase: 2025-01-28
Issue OwnerCurrent Issue Owner: @hungvu193
@IuliiaHerets IuliiaHerets added Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment labels Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

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

Copy link

melvin-bot bot commented Jan 28, 2025

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

Copy link

melvin-bot bot commented Jan 28, 2025

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jan 28, 2025
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.

@hungvu193
Copy link
Contributor

Offending PR:
#52272

It came from this line:

marginBottom: -1,

@trjExpensify
Copy link
Contributor

@Expensify/design for eyes on what we want. I don't think it's a blocker really though, but should be a quick fix!

@Gonals Gonals removed the DeployBlockerCash This issue or pull request should block deployment label Jan 28, 2025
@Gonals
Copy link
Contributor

Gonals commented Jan 28, 2025

Yep, I don't think we should block on this, so removing the label!

@Gonals Gonals added Daily KSv2 Improvement Item broken or needs improvement. and removed Hourly KSv2 labels Jan 28, 2025
@dannymcclain
Copy link
Contributor

Agree we don't need to block on this, but let's fix it! The reports version is actually the correct thickness. The inbox one looks too thin.

@trjExpensify trjExpensify changed the title Reports - Loading indicator in Reports has thicker line than Inbox Loading indicator on the Inbox page has thinner line than on the Reports page Jan 28, 2025
@trjExpensify
Copy link
Contributor

Great, I've updated the OP and title to make it clear which one is wrong here.

@Gonals Gonals added the External Added to denote the issue can be worked on by a contributor label Jan 28, 2025
@melvin-bot melvin-bot bot changed the title Loading indicator on the Inbox page has thinner line than on the Reports page [$250] Loading indicator on the Inbox page has thinner line than on the Reports page Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

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

@rdipippo
Copy link

rdipippo commented Jan 28, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-01-28 15:52:16 UTC.

Proposal

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

The loading indicator on the inbox page does not match the one on the index page.

What is the root cause of that problem?

This line:

marginBottom: -1,

The negative margin on the bottom is not necessary and is the cause of the incorrect thickness. It is shifting the content one pixel, making that portion unviewable.

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

Remove the offending line.

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

N/A

What alternative solutions did you explore? (Optional)

N/A
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.

Copy link
Contributor

⚠️ @rdipippo Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

@hungvu193
Copy link
Contributor

@rdipippo Please provide a correct RCA. Thanks

@shawnborton
Copy link
Contributor

Huh, I agree with where we landed but what's weird is that on the current staging website, the loading bar looks totally correct to me.

@Themoonalsofall
Copy link
Contributor

Themoonalsofall commented Jan 28, 2025

Proposal

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

Loading indicator on the Inbox page has thinner line than on the Reports page

What is the root cause of that problem?

The above problem only occurs when we show the loading bar together with OptionsListSkeletonView

{!!isLoading && optionListItems?.length === 0 && (
<View style={[StyleSheet.absoluteFillObject, styles.appBG]}>
<OptionsListSkeletonView shouldAnimate />
</View>
)}

We are using StyleSheet.absoluteFillObject which is style position: "absolute", inset: 0px

This causes the bottom margin to not work properly.

To verify, you can delete StyleSheet.absoluteFillObject and add position absolute and top 1px, the loading bar will still show correctly.

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

Remove margin-bottom: -1px in this style

App/src/styles/index.ts

Lines 5360 to 5366 in e411125

progressBarWrapper: {
height: 2,
width: '100%',
backgroundColor: theme.transparent,
overflow: 'hidden',
marginBottom: -1,
},

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)

We can remove style StyleSheet.absoluteFillObject and add position absolute with top 1px

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.

@Themoonalsofall
Copy link
Contributor

@shawnborton To reproduce the above bug, you need to go to Troubleshoot -> Clear cache and restart to show skeleton loading.

@shawnborton
Copy link
Contributor

Got it, yeah I can reproduce if I do that. Weird that it works fine in other cases though.

@srikarparsi
Copy link
Contributor

@nkdengineer and @getusha, do you think you can take a look at this one as a follow up from #46611? Also, I can take this over @Gonals

@srikarparsi srikarparsi assigned srikarparsi and unassigned Gonals Jan 28, 2025
@dubielzyk-expensify
Copy link
Contributor

I also got the thinner bar all of a sudden 🤔

@joekaufmanexpensify
Copy link
Contributor

Yeah, if @nkdengineer and @getusha are available, that would be great since it looks like it was introduced in a PR you just worked on

@getusha
Copy link
Contributor

getusha commented Jan 31, 2025

We noticed this in the PR: #52272 (comment). Having a look

@melvin-bot melvin-bot bot added the Overdue label Jan 31, 2025
@getusha
Copy link
Contributor

getusha commented Jan 31, 2025

This only happens when the skeleton loader appears. we could just add a marginTop: 1, here:

<View style={[StyleSheet.absoluteFillObject, styles.appBG]}>

But would like a confirmation from @nkdengineer why we would need the marginBottom: -1

@nkdengineer
Copy link
Contributor

@getusha The reason is here.

Copy link

melvin-bot bot commented Feb 3, 2025

@hungvu193, @srikarparsi, @joekaufmanexpensify Eep! 4 days overdue now. Issues have feelings too...

@getusha
Copy link
Contributor

getusha commented Feb 3, 2025

@nkdengineer could you raise a PR to fix this?

@nkdengineer
Copy link
Contributor

Will give an update tomorrow.

@joekaufmanexpensify
Copy link
Contributor

TY!

@nkdengineer
Copy link
Contributor

@getusha Since we already have a space 12px when the report is loaded in LHN, we should have the same space for skeleton view wrapper.

Image

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Feb 4, 2025
@nkdengineer
Copy link
Contributor

@getusha The PR is ready for review.

@joekaufmanexpensify
Copy link
Contributor

PR in review.

@joekaufmanexpensify
Copy link
Contributor

Same

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. 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 Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests