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 for payment 2024-05-20] [$250] Skeleton loader uses lighter color for page header #40244

Closed
1 of 6 tasks
m-natarajan opened this issue Apr 15, 2024 · 49 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Apr 15, 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: 1.4.62-4
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1713166267469379

Action Performed:

  1. Open a chat which will show a skeleton loader
  2. Look at the header of the chat report

Expected Result:

The skeleton loader for the top page/chat header should use the same color background as the skeleton loader for the chat messages in the main content screen.

Actual Result:

The skeleton loader used in the top page/chat header is using slightly lighter colors

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

CleanShot 2024-04-15 at 09 29 33@2x
Untitled

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0199d049e1997c5cb7
  • Upwork Job ID: 1779899140122308608
  • Last Price Increase: 2024-04-15
  • Automatic offers:
    • abdulrahuman5196 | Reviewer | 0
    • GandalfGwaihir | Contributor | 0
Issue OwnerCurrent Issue Owner: @twisterdotcom
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 15, 2024
Copy link

melvin-bot bot commented Apr 15, 2024

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

@allgandalf
Copy link
Contributor

allgandalf commented Apr 15, 2024

Proposal

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

Loading lines colour of header and report doesn't match

What is the root cause of that problem?

Currently we have the lines colour as theme.highlightBG this gives us faint lines

<SkeletonViewContentLoader
animate={shouldAnimate}
width={styles.w100.width}
height={height}
backgroundColor={theme.highlightBG}
foregroundColor={theme.border}
>

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

We need to use skeletonLHNIn as bg colour and theme.skeletonLHNOut as foreground colour.

We do the same for report screen:

<SkeletonViewContentLoader
animate={shouldAnimate}
height={CONST.CHAT_SKELETON_VIEW.HEIGHT_FOR_ROW_COUNT[numberOfRows]}
backgroundColor={theme.skeletonLHNIn}
foregroundColor={theme.skeletonLHNOut}
style={styles.mr5}
>

The colour of these styles for dark mode is :

skeletonLHNIn: colors.productDark400,
skeletonLHNOut: colors.productDark600,

And for light mode is:

skeletonLHNIn: colors.productLight400,
skeletonLHNOut: colors.productLight600,

This should make both the report as well as the report header consistent in loading colour

What alternative solutions did you explore? (Optional)

@twisterdotcom
Copy link
Contributor

Ahh:

Issue reported by: @shawnborton

Gonna make external.

@twisterdotcom twisterdotcom added the External Added to denote the issue can be worked on by a contributor label Apr 15, 2024
@melvin-bot melvin-bot bot changed the title Skeleton loader uses lighter color for page header [$250] Skeleton loader uses lighter color for page header Apr 15, 2024
Copy link

melvin-bot bot commented Apr 15, 2024

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

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

melvin-bot bot commented Apr 15, 2024

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

@mananjadhav
Copy link
Collaborator

I was too slow in posting a proposal. 🐌

@allgandalf
Copy link
Contributor

I was too slow in posting a proposal. 🐌

😆 godspeed

@dragnoir
Copy link
Contributor

Proposal

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

Skeleton loader uses lighter color for page header.

What is the root cause of that problem?

On the hedare we are using ReportHeaderSkeletonView for the loading animation
But on the report we use ReportActionsSkeletonView

Those boath components uses the same SkeletonViewContentLoader with different parameters
here:

<SkeletonViewContentLoader
animate={shouldAnimate}
width={styles.w100.width}
height={height}
backgroundColor={theme.highlightBG}
foregroundColor={theme.border}

and here:

<SkeletonViewContentLoader
animate={shouldAnimate}
height={CONST.CHAT_SKELETON_VIEW.HEIGHT_FOR_ROW_COUNT[numberOfRows]}
backgroundColor={theme.skeletonLHNIn}
foregroundColor={theme.skeletonLHNOut}
style={styles.mr5}

Also there's an issue with the alignment of the animation

image

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

1- to fix the colors:
we shoudl use the same backgroundColor and foregroundColor

backgroundColor={theme.skeletonLHNIn}
foregroundColor={theme.skeletonLHNOut}

2- align the header animation same as report animation
we should remove the padding left here

<View style={[styles.appContentHeaderTitle, !isSmallScreenWidth && styles.pl5]}>

POC:
image

@dragnoir
Copy link
Contributor

dragnoir commented Apr 15, 2024

@shawnborton what devices did you use for the screenshot?

I noticed a bad alignment (more padding on the left) on the header skeleton on web

image

@AbrarAlHasan
Copy link

Proposal

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

Inconsistent Color in Skeleton Loader header between the header and Main Content Screen

What is the root cause of that problem?

The Root cause of this Problem is due to the wrong Color used in the SkeltonViewContentLoader

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

Changing the Color in the Skeleton Header to the color used in the Main content Screen will Solve this Problem.

What alternative solutions did you explore? (Optional)

Copy link

melvin-bot bot commented Apr 16, 2024

📣 @AbrarAlHasan! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@AbrarAlHasan
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01d42425e0d283e140

Copy link

melvin-bot bot commented Apr 16, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@shawnborton
Copy link
Contributor

I noticed a bad alignment (more padding on the left) on the header skeleton on web

@dragnoir this was on desktop. I agree, we should fix the alignment too. cc @twisterdotcom - I like @dragnoir 's proposal to fix both the colors and alignment.

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

melvin-bot bot commented Apr 16, 2024

📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Apr 16, 2024

📣 @dragnoir You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@allgandalf
Copy link
Contributor

@twisterdotcom , my main solution is still being used over here, shouldn’t i also be eligible for compensation here?

@twisterdotcom
Copy link
Contributor

We could split this then @dragnoir? Given you're doing the work, how do we feel about 70/30?

@dragnoir
Copy link
Contributor

@twisterdotcom perfect, thank you

@allgandalf
Copy link
Contributor

allgandalf commented Apr 16, 2024

@twisterdotcom , @shawnborton wait, there are two points here, the 2nd issue which @dragnoir mentioned doesn't exist, can you share the reproducible steps for the bug you identified @dragnoir :

Screen.Recording.2024-04-16.at.7.42.36.PM.mov

Secondly, if we implement the selected proposal to remove the padding altogether then there will be an regression for desktop app:

Screen.Recording.2024-04-16.at.7.47.24.PM.mov

@dragnoir
Copy link
Contributor

@GandalfGwaihir adjust the isLoading state for HeaderView if you want to test.

20240416_152456.mp4

Don't worry, I will make sure no regressions on the PR.

@allgandalf
Copy link
Contributor

friendly bump to @twisterdotcom for assignment as per @dragnoir's comments

@twisterdotcom
Copy link
Contributor

Yes, happy to assign you. I know we've sort of circumvented @abdulrahuman5196 a bit but happy with Shawn's take from Design over an Internal engineer.

@twisterdotcom twisterdotcom assigned allgandalf and unassigned dragnoir Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

📣 @GandalfGwaihir 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@allgandalf
Copy link
Contributor

PR ready for review @abdulrahuman5196

@abdulrahuman5196
Copy link
Contributor

Hi, Thank you. Will work on review.

@allgandalf
Copy link
Contributor

friendly bump to @abdulrahuman5196 for review :)

@allgandalf
Copy link
Contributor

friendly bump @abdulrahuman5196 for review, let's get this merged soon 🚀

@abdulrahuman5196
Copy link
Contributor

Hi, Checking the PR now.

Copy link

melvin-bot bot commented Apr 29, 2024

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

@allgandalf
Copy link
Contributor

allgandalf commented May 3, 2024

Friendly bump for PR review @marcaaron

@allgandalf
Copy link
Contributor

friendly bump @marcochavezf for PR review

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 13, 2024
@melvin-bot melvin-bot bot changed the title [$250] Skeleton loader uses lighter color for page header [HOLD for payment 2024-05-20] [$250] Skeleton loader uses lighter color for page header May 13, 2024
Copy link

melvin-bot bot commented May 13, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 13, 2024
Copy link

melvin-bot bot commented May 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.72-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-05-20. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented May 13, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
  • [@abdulrahuman5196] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@abdulrahuman5196] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@abdulrahuman5196] Determine if we should create a regression test for this bug.
  • [@abdulrahuman5196] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@twisterdotcom] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 19, 2024
@twisterdotcom
Copy link
Contributor

twisterdotcom commented May 20, 2024

Payment Summary:

I dont' think this was actually an introduced bug right, but it was actually a new feature. It never looked this way before right? We just got our greys wrong originally. I'm also not sure we can do regression testing for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

9 participants