Skip to content

[codex] format stream row rates#833

Open
MyouzzZ wants to merge 1 commit into
Streampay-Org:mainfrom
MyouzzZ:feat/format-rate-helper
Open

[codex] format stream row rates#833
MyouzzZ wants to merge 1 commit into
Streampay-Org:mainfrom
MyouzzZ:feat/format-rate-helper

Conversation

@MyouzzZ

@MyouzzZ MyouzzZ commented Jul 2, 2026

Copy link
Copy Markdown

Summary

  • Add lib/format-rate.ts to normalize stream rate display strings and convert raw per-second rates into readable hourly/daily/weekly values.
  • Wire the formatter into StreamRow, preserving the original raw value in the title when display text changes.
  • Cover formatter behavior and StreamRow integration for raw per-second and bare numeric rates.

Closes #359

Tests

  • npm test -- format-rate
  • npm test -- app/streams/page.test.tsx
  • node scripts/run-from-realpath.mjs eslint app/components/StreamRow.tsx app/streams/page.test.tsx lib/format-rate.ts lib/format-rate.test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add streaming-rate human-readable formatter to StreamRow ("0.50 XLM / hour")

1 participant