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] Add quick runway preset buttons (+7 days, +30 days, +90 days) to TopUpModal

Đang mở Phù hợp với người mới
#1,635 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 7 ngày

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

Từ ngày 19/10/2026.

  • #1685 của @aazminu — đang mở

Đá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
83/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ệ
next.js, typescript
Lĩnh vực
frontend, payments

Hướng nghiên cứu

Bắt đầu từ frontend/src/components/stream-creation/TopUpModal.tsx và theo dõi cách xử lý mức phí stream và phần nhập số tiền; kiểm tra frontend/src/components/stream-creation/__tests__/TopUpModal.test.tsx để xem các mẫu kiểm thử hiện có. Thêm ba giá trị cài sẵn bằng phép tính mức phí mỗi giây đã nêu và hiển thị ngày kết thúc dự kiến khi có số tiền được nhập. Hoàn thành khi cả ba giá trị cài sẵn điền đúng số tiền và hành vi này được kiểm thử bằng một unit test.

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

Mô tả

drips-wave frontend good-first-issue ux

Overview

When topping up an active stream in frontend/src/components/stream-creation/TopUpModal.tsx, senders must manually calculate how many tokens are needed to extend the stream by a specific number of days.

Problem

  • Calculating ratePerSecond * 86400 * days mentally is error-prone and slows down recurring payroll top-ups.

Proposed Changes

  1. Add three quick-fill pill buttons inside TopUpModal.tsx: +7 Days, +30 Days, and +90 Days.
  2. Clicking a preset automatically computes the token amount from the stream's ratePerSecond and populates the amount input field.

Acceptance Criteria

  • Clicking +7 Days, +30 Days, or +90 Days populates the exact deposit amount required.
  • Displays the new projected end date below the input when an amount is entered.
  • Unit test added in frontend/src/components/stream-creation/__tests__/TopUpModal.test.tsx.
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.