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

feat: look up a pool by id

Đang mở
#72 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
39/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
Công nghệ
typescript
Lĩnh vực
data, full-stack

Hướng nghiên cứu

Start with worker/src/stats.ts and inspect how the indexer records pool owners and aggregates PoolRedeemed bytes; trace the existing static export and pool data flow to identify where per-pool records can be supplied. Then review the relevant UI entry point and its typecheck and lint commands. Done means the acceptance criteria are met, including lookup validation and not-found feedback, accessible themed UI, and passing pnpm typecheck && pnpm lint.

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

Mô tả

feature frontend indexer

Add a search input where a user enters a pool ID and sees that pool's details.

Today the stats file only records each pool's owner (poolOwners, keyed by poolId) and folds PoolRedeemed bytes into region totals, so the indexer (or a direct PaymentPool read) needs to keep a per-pool record before most fields can show.

Missing data: status (open/closed), nodes paid from the pool, capacity / balance, usage (bytes redeemed per pool), stake / rewards, creation date (PoolOpened block timestamp).

Acceptance criteria

  • Search input accepts a pool ID (32-byte hex) and submits on Enter or a button
  • Shows the pool's owner, status, nodes, capacity, usage, stake/rewards and creation date
  • Malformed IDs show a clear validation error without a lookup
  • Well-formed IDs with no matching pool show a clear "pool not found" message
  • Indexer (or contract read) provides the per-pool fields above; schema change follows worker/src/stats.ts
  • Works on the static export, keyboard accessible, in light and dark themes
  • pnpm typecheck && pnpm lint pass
Ngôn ngữ chính
TypeScript
Star
2
Fork
0
Merge trung bình
10 giờ 46 phút
Pull request đã merge (30 ngày)
37

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 decdn/stats

Tất cả issue của decdn/stats

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.