enhancement: Add Next.js loading.tsx skeleton for country leaderboard pages

Đã đóng Phù hợp với người mới
#276 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@virtuallynaman đang làm issue này rồi.

Từ ngày 28/10/2026.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
frontend, web-dev

Hướng nghiên cứu

Đọc src/app/leaderboard/[country] và DashboardSkeleton hiện có để làm theo bố cục của các trang quốc gia. Tạo hai tệp loading.tsx được yêu cầu và thêm AppHeader, skeleton bảng hoặc thẻ phù hợp cùng AppFooter; hoàn thành khi cả hai route leaderboard hiển thị bố cục tải trong lúc dữ liệu đang được tải.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

beginner friendly easy enhancement good first issue nextjs ui

When navigating between countries in /leaderboard/[country], there is no route-level loading.tsx file. Next.js App Router uses loading.tsx to instantly stream an instant loading state during server rendering.

Motivation

Adding a route-level loading.tsx with skeleton cards prevents perceived lag and layout shift during ISR/SSR country data loading.

Tasks
  • Create src/app/leaderboard/[country]/loading.tsx and src/app/leaderboard/loading.tsx.
  • Render AppHeader, a table skeleton or cards skeleton matching DashboardSkeleton, and AppFooter.
Files to Check
  • src/app/leaderboard/[country]/loading.tsx
  • src/app/leaderboard/loading.tsx

[!TIP]
🚀 Want to contribute?
Comment assign me to be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨

Ngôn ngữ chính
TypeScript
Star
31
Fork
25
Merge trung bình
9 giờ 57 phút
Pull request đã merge (30 ngày)
30

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của O2sa/DevImpact

Tất cả issue của O2sa/DevImpact

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.