devtrack icon indicating copy to clipboard operation
devtrack copied to clipboard

[GOOD FIRST ISSUE] Standardize loading skeleton heights across dashboard widgets

Open Priyanshu-byte-coder opened this issue 6 months ago • 12 comments

Problem

Loading skeletons across dashboard components have inconsistent proportions — some too tall, some too short — causing visible layout shift when data loads. Makes the dashboard feel janky on initial load.

Current skeleton heights:

  • GoalTracker: h-5, h-3, h-2
  • StreakTracker: h-5, h-20
  • PRMetrics: h-20

Expected Behavior

Each skeleton should approximate the final rendered content height so there's minimal layout shift when real data replaces the skeleton.

Acceptance Criteria

  • [ ] Review the loaded state of each component and approximate its rendered height
  • [ ] Update skeleton h-* classes in GoalTracker, StreakTracker, and PRMetrics to match
  • [ ] No functional changes — skeleton dimensions only

Files to Edit

  • src/components/GoalTracker.tsx
  • src/components/StreakTracker.tsx
  • src/components/PRMetrics.tsx

Hints

Run the app locally (npm run dev), inspect element heights in the loaded state using browser DevTools, then match those heights in the skeleton placeholder divs.

Difficulty

~30–45 min | Tailwind CSS + visual inspection

Priyanshu-byte-coder avatar May 14 '26 18:05 Priyanshu-byte-coder

Hi, I’d like to work on this issue under GSSoC. Could you please assign me?

Arman-creator1 avatar May 14 '26 19:05 Arman-creator1

Hi @Priyanshu-byte-coder

I have gone through the issue and would like to work on it under GSSoC'26.
I’m interested in contributing to this project and believe I can complete the task effectively.

Could you please assign this issue to me?
Thank you! 🚀

Payal-20-06 avatar May 14 '26 21:05 Payal-20-06

Hi, @Priyanshu-byte-coder

I've inspected the skeleton placeholder classes in all three files:

  • GoalTracker.tsx — title skeleton is h-5, progress bar skeletons are h-4 and h-2
  • StreakTracker.tsx — title is h-6, stat card skeletons are h-28
  • PRMetrics.tsx — stat card skeletons are h-24

My plan is to run the app locally, inspect the actual rendered heights of each component using DevTools, then update the skeleton h-* classes to closely match — reducing layout shift on initial load. No functional changes.

Can this be assigned to me?

mrunalC27 avatar May 20 '26 14:05 mrunalC27

Hi @Priyanshu-byte-coder , I have gone through the issue and would like to work on it under GSSoC'26. I’m interested in contributing to this project and believe I can complete the task effectively.

Could you please assign this issue to me? Thank you! 🚀

Saniya30pawar avatar May 25 '26 15:05 Saniya30pawar

Hi @Priyanshu-byte-coder ! This has been assigned but appears inactive. I'd love to fix this, I'll run the app locally, inspect the rendered heights of each component, and update the skeleton h-* classes in GoalTracker, StreakTracker, and PRMetrics to match. Please reassign this to me under GSSoC '26!

manya-singh7 avatar May 30 '26 09:05 manya-singh7

hiii @Priyanshu-byte-coder i would like to work on this issue please assign it to me under GSSoC'26.

aarushlohit avatar Jun 04 '26 10:06 aarushlohit

@aarushlohit This issue is already taken by @Payal-20-06, @Arman-creator1. Check other open issues!

github-actions[bot] avatar Jun 04 '26 10:06 github-actions[bot]

Reassigning to @Saniya30pawar — this issue had no PR and no activity for over a month, so it's going to the next person who asked for it (first come, first served).

@Saniya30pawar it's yours: please open a PR within 7 days or it'll be released again. If you're no longer interested, just say so and I'll pass it on.

Priyanshu-byte-coder avatar Jul 29 '26 17:07 Priyanshu-byte-coder

Hey @Saniya30pawar — this issue was assigned a while back with no recent activity. Unassigning so it's available for Hacktoberfest contributors. Still working on it? Comment and we'll reassign you.

Priyanshu-byte-coder avatar Oct 14 '26 18:10 Priyanshu-byte-coder

Assigned to @Priyanshu-byte-coder! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!

github-actions[bot] avatar Oct 14 '26 18:10 github-actions[bot]

I would like to work on this issue. I will start by taking a look at the skeleton dimensions and loading logic used in the scoped files mentioned and verify that the fix causes minimal layout shift when real data replaces the skeleton.

Cole-House avatar Nov 13 '26 21:11 Cole-House

Assigned to @Cole-House! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!

github-actions[bot] avatar Nov 13 '26 21:11 github-actions[bot]