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] skeleton view goes over the edges of the screen reported by @parasharrajat #12744

Closed
kavimuru opened this issue Nov 15, 2022 · 30 comments
Closed
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 Reviewing Has a PR in review

Comments

@kavimuru
Copy link

kavimuru commented Nov 15, 2022

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


Action Performed:

  1. Login to the app on mobile app.
  2. Navigate to any report that shows skeleton view.

Expected result:

Skeleton view should have right padding like the left edge of 20px.

Actual:

There is not padding at the right edge of the Skeleton view, it seems to go over the edge.

Workaround:

unknown

Platform:

Where is this issue occurring?

  • iOS
  • Android
  • Mobile Web

Version Number: 1.2.27-4
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat
Slack conversation:
https://expensify.slack.com/archives/C049HHMV9SM/p1668532881726039
View all open jobs on GitHub

Upwork Automation - Do Not Edit

@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 15, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 15, 2022

Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@syedsaroshfarrukhdot
Copy link
Contributor

syedsaroshfarrukhdot commented Nov 16, 2022

Proposal :-

We need to increase width to 100% in SkeletonViewLines.js and pass styles.mr5 to SkeletonViewContentLoader

<Rect x="67" y="31" width="90%" height="8" />

Like This

 <SkeletonViewContentLoader
    height={CONST.CHAT_SKELETON_VIEW.HEIGHT_FOR_ROW_COUNT[props.numberOfRows]}  
    style={styles.mr5}
>
    <Circle cx="40" cy="26" r="20" />
    <Rect x="67" y="11" width="20%" height="8" />
    <Rect x="67" y="31" width="100%" height="8" />
    {props.numberOfRows > 1 && <Rect x="67" y="51" width="50%" height="8" />}
    {props.numberOfRows > 2 && <Rect x="67" y="71" width="50%" height="8" />}
   
</SkeletonViewContentLoader>

After Fixing

Web :-

Screen Shot 2022-11-16 at 6 35 29 PM

Native :-

Simulator Screen Shot - iPhone 13 Pro - 2022-11-16 at 18 34 40

mWeb :-

Simulator Screen Shot - iPhone 13 Pro - 2022-11-16 at 18 35 55

@parasharrajat
Copy link
Member

@shawnborton Can you please review this issue?

@shawnborton
Copy link
Contributor

Yup, that looks good. But do we know why this happened in the first place? There must have been a regression at some point right?

@syedsaroshfarrukhdot
Copy link
Contributor

syedsaroshfarrukhdot commented Nov 17, 2022

@shawnborton I looked up and and found that this initial commit in SkeletonViewLines.js 0bfe1ba had created issue on android / IOS. So I believe it wasn't a regression. It might have been overlooked during development.

The issue is there is no initial marginLeft we are setting cx="40" for the eclipse which move eclipse on x-axis and when we give width to Rect to "90%" it creates issue in native platform so we can increase width to "100%" and give marinRight 20 to parent view to achieve the desired Goal of spacing at the right side so it doesn't overflow. My Proposal #12744 (comment)

@MitchExpensify MitchExpensify added the External Added to denote the issue can be worked on by a contributor label Nov 17, 2022
@melvin-bot melvin-bot bot added the Overdue label Nov 17, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 17, 2022

Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Nov 17, 2022

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

@melvin-bot
Copy link

melvin-bot bot commented Nov 17, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 17, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 17, 2022

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

@melvin-bot melvin-bot bot changed the title skeleton view goes over the edges of the screen reported by @parasharrajat [$250] skeleton view goes over the edges of the screen reported by @parasharrajat Nov 17, 2022
@mananjadhav
Copy link
Collaborator

Thanks for the proposal @syedsaroshfarrukhdot. Your proposal looks good to me. I had worked on the original implementation. I wonder how I missed this.

@grgia All yours.

🎀 👀 🎀 
C+ reviewed

@melvin-bot melvin-bot bot removed the Overdue label Nov 18, 2022
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 18, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 18, 2022

📣 @syedsaroshfarrukhdot You have been assigned to this job by @grgia!
Please apply to this job in Upwork 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 📖

@MitchExpensify
Copy link
Contributor

Offers sent to all! https://www.upwork.com/jobs/~0104a6f656912f7483

@syedsaroshfarrukhdot
Copy link
Contributor

Thank You. Just Accepted The Offer Will Be Making A PR Today.

@melvin-bot melvin-bot bot added the Overdue label Nov 21, 2022
@grgia grgia added the Reviewing Has a PR in review label Nov 21, 2022
@melvin-bot melvin-bot bot removed the Overdue label Nov 21, 2022
@mananjadhav
Copy link
Collaborator

mananjadhav commented Nov 27, 2022

@MitchExpensify @grgia The PR was deployed to production 3 days back but the title with payment date wasn't updated

@mananjadhav
Copy link
Collaborator

@MitchExpensify @grgia This is ready for payout tomorrow. Also eligible for 50% bonus to complete within 3 days.

@mananjadhav
Copy link
Collaborator

@MitchExpensify Quick bump on the payout, and here's the offending PR that added the bug. I worked on it so I have it handy.

@MitchExpensify
Copy link
Contributor

Sorry for the delay @mananjadhav, I've been sick the last few days. Paying now

@MitchExpensify MitchExpensify added the Awaiting Payment Auto-added when associated PR is deployed to production label Dec 1, 2022
@MitchExpensify
Copy link
Contributor

Everyone's been paid - Thank you! Will need to manually get the bug zero checklist in here as a next step (Awaiting payment label didn't do the trick)

@MitchExpensify
Copy link
Contributor

MitchExpensify commented Dec 1, 2022

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:

@mananjadhav
Copy link
Collaborator

Thanks @MitchExpensify. I've linked the offending PR.

@MitchExpensify
Copy link
Contributor

@mananjadhav Nice! Mind taking the other steps here when you get a chance?

@MitchExpensify
Copy link
Contributor

In terms of a regression test, asked here in Slack

@mananjadhav
Copy link
Collaborator

@grgia Can you help with the other two steps. I am not sure if we follow a template to post the comment and discussion?

@mananjadhav
Copy link
Collaborator

@grgia @MitchExpensify Quick bump here.

@MitchExpensify
Copy link
Contributor

Created an issue for the regression test!

@MitchExpensify
Copy link
Contributor

I am not sure if we follow a template to post the comment and discussion?

there is no template

@MitchExpensify
Copy link
Contributor

@grgia Seeing as we only have those two checks to complete before closing this, mind handling that once done? I'm heading ooo so if you could cover closing this issue once they're checked off it'd be great!

@grgia
Copy link
Contributor

grgia commented Dec 12, 2022

Yep, sorry for the delay, getting on that now!

@grgia
Copy link
Contributor

grgia commented Dec 12, 2022

Done! Commented on PR and discussion started

@MitchExpensify
Copy link
Contributor

Nice! Closing out

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 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

7 participants