Skip to content

feat: Add loading skeleton state for the Repository Dashboard - #35

Merged
SHAURYASANYAL3 merged 1 commit into
voidswift:mainfrom
AliMahmoudDev:feature/dashboard-loading-skeleton
Jul 14, 2026
Merged

SHAURYASANYAL3 merged 1 commit into
voidswift:mainfrom
AliMahmoudDev:feature/dashboard-loading-skeleton

Conversation

@AliMahmoudDev

Copy link
Copy Markdown
Contributor

Summary

Adds loading skeleton states for the Repository Dashboard pages so users see content-aware placeholders instead of a blank screen during data fetching.

Changes

  • dashboard/loading.tsx — Skeleton mirroring the dashboard overview layout: 4 metric cards (Tracked Repositories, Commits, Open PRs, Closed PRs) + a 3-column repository card grid with the import button placeholder.
  • dashboard/repository/[id]/loading.tsx — Skeleton mirroring the repository detail page layout: header with health/bus factor/resilience cards, stats grid, evidence panel with progress bars and evidence lines, and the recent activity timeline.

Design decisions

  • Skeletons use Tailwind animate-pulse with bg-gray-200 / bg-gray-100 to match the existing design system.
  • Structure and spacing exactly mirror the real components so the transition from skeleton → loaded content feels seamless.
  • No new dependencies introduced.

Closes #3

Add loading.tsx files for the dashboard overview and repository detail
pages. The skeletons mirror the actual page layout so users see a
content-aware placeholder instead of a blank screen during data fetching.

- dashboard/loading.tsx: metric cards + repository grid skeleton
- dashboard/repository/[id]/loading.tsx: header, stats, evidence panels
  and timeline skeleton

Closes voidswift#3
@SHAURYASANYAL3
SHAURYASANYAL3 merged commit d7c9da1 into voidswift:main Jul 14, 2026
4 of 5 checks passed
@SHAURYASANYAL3

Copy link
Copy Markdown
Member

@AliMahmoudDev
Wow, this is a phenomenal first contribution! 🎉

You didn't just add the skeleton for the dashboard, you went above and beyond and mapped out the exact UI for the
individual repository page too. The animate-pulse styling looks incredibly clean and mirrors the layout
perfectly, which will completely fix the layout shift we were experiencing.

The code is exceptionally clean. I am approving and merging this right now. Welcome to the ForgeLens team!

Also, since you are now an official contributor, we'd love for you to join our Discord community to hang out and
chat about future features: https://discord.gg/D2jCpbYgQJ 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a loading skeleton state for the Repository Dashboard

2 participants