[Frontend] Add quick runway preset buttons (+7 days, +30 days, +90 days) to TopUpModal
メンテナーはふだん 7 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 83/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- next.js, typescript
調査の方向性
frontend/src/components/stream-creation/TopUpModal.tsxから始めて、streamのレートと金額入力の処理を追い、既存のテストパターンを確認するためにfrontend/src/components/stream-creation/__tests__/TopUpModal.test.tsxを調べてください。指定された秒単位のレート計算を使って3つのプリセットを追加し、金額が入力されたときに予測終了日を表示してください。3つすべてのプリセットで正確な金額が入力され、その動作が単体テストでカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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 * daysmentally is error-prone and slows down recurring payroll top-ups.
Proposed Changes
- Add three quick-fill pill buttons inside
TopUpModal.tsx:+7 Days,+30 Days, and+90 Days. - Clicking a preset automatically computes the token amount from the stream's
ratePerSecondand populates the amount input field.
Acceptance Criteria
- Clicking
+7 Days,+30 Days, or+90 Dayspopulates 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.
- 主要言語
- TypeScript
- スター
- 18
- フォーク
- 250
- 平均マージ
- 5日 6時間
- マージ済み PR(30日)
- 82
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LabsCrypt/flowfi のほかの issue
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 7 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 7 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 7 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 7 日以内に返信
-
backend points: 150 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 7 日以内に返信
LabsCrypt/flowfi の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Nimblesite/SharpLsp#468 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Bundled uv is never updated and trusts the compromised eMudhra certificates対応中かも @FabienDanieau が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bg_wait's blocking mode (stopOnAttention: false) is under-documented and effectively undiscoverableオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
nicobailon/pi-subagents#3019 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
db-ux-design-system/core-web#8613 ·
メンテナーはふだん 1 日以内に返信