Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Frontend] activity-content.tsx and incoming-content.tsx duplicate the same fetch/loading/error scaffolding with no shared hook

Đang mở
#1,085 12 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 7 ngày

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

Từ ngày 29/9/2026.

  • #1142 của @abdulqoyumadegoke — đang mở
  • #1589 của @boluxx123 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

frontend GrantFox OSS Maybe Rewarded Official Campaign | FWC26 refactor Stellar Wave Third Campaign

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

frontend/src/app/activity/activity-content.tsx and frontend/src/app/incoming/incoming-content.tsx both implement their own loading/error/empty-state handling around a data fetch, following the same shape. Duplicated scaffolding means a bug fix (e.g. an error-state edge case) has to be applied twice and can drift, exactly the kind of duplication already flagged for other pairs in this codebase.

Acceptance criteria

  • Extract a shared useAsyncPageData-style hook or shared presentational wrapper for loading/error/empty states
  • Migrate both pages to use it
  • Confirm existing tests for both pages still pass

Files to touch

  • frontend/src/app/activity/activity-content.tsx
  • frontend/src/app/incoming/incoming-content.tsx
  • frontend/src/hooks/

Out of scope

  • Rewriting the data-fetching library used
  • Changing the visual design of loading/error states
Ngôn ngữ chính
TypeScript
Star
18
Fork
250
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
82

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 LabsCrypt/flowfi

Tất cả issue của LabsCrypt/flowfi

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.