Skip to content

Add loading skeletons for all data-dependent pages#159

Merged
therealjhay merged 2 commits into
Betta-Pay:mainfrom
Majormaxx:40-loading-skeletons
Jul 1, 2026
Merged

Add loading skeletons for all data-dependent pages#159
therealjhay merged 2 commits into
Betta-Pay:mainfrom
Majormaxx:40-loading-skeletons

Conversation

@Majormaxx

Copy link
Copy Markdown
Contributor

Created skeleton components that mirror the layout of each page's content area using Tailwind's animate-pulse with rounded blocks. Pages show skeletons during data loading instead of blank areas.

New components:

  • components/skeletons/DashboardSkeleton.tsx — stat card grid + chart area + recent activity
  • components/skeletons/TableSkeleton.tsx — configurable ghost rows for tables
  • components/skeletons/CardGridSkeleton.tsx — card grid placeholders for payment links, FX pairs, etc.

Modified pages:

  • Dashboard — shows DashboardSkeleton for 500ms on mount
  • Transactions — shows TableSkeleton inside card during loading
  • Added loading.tsx for merchant route group

Utility:

  • lib/hooks/useSimulatedLoading.ts — reusable hook for adding loading states
npm run lint  # clean

Closes #40

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Majormaxx is attempting to deploy a commit to the therealjhay's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Majormaxx Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@therealjhay

Copy link
Copy Markdown
Contributor

Kindly resolve conflicts

Majormaxx added 2 commits July 1, 2026 11:49
Created DashboardSkeleton, TableSkeleton, and CardGridSkeleton components
that mirror page layouts with animate-pulse placeholders. Pages now
show skeletons during data loading instead of blank areas. Added
merchant layout loading.tsx for route-level loading states.
@Majormaxx Majormaxx force-pushed the 40-loading-skeletons branch from c63aaab to 3cd6e23 Compare July 1, 2026 12:54
@Majormaxx

Majormaxx commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@therealjhay Rebased onto main and resolved all merge conflicts. Lint and build should be clean now (remaining dashboard lint errors are pre-existing in main).

@therealjhay therealjhay merged commit f905f3c into Betta-Pay:main Jul 1, 2026
1 check failed
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 loading skeletons for all data-dependent pages

2 participants