You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 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.
Activity